/* ============================================================================
   GARAVITO Y ASOCIADOS — REDISEÑO 2026
   style2.css · Hoja de estilos del rediseño

   BASE GLOBAL
   ----------------------------------------------------------------------------
   Esta base define el sistema visual principal de toda la web:
   01. VARIABLES CSS
   02. RESET SUAVE Y BASE
   03. TIPOGRAFÍA GLOBAL
   04. HELPERS Y ESTRUCTURA DE SECCIONES
   05. BOTONES REUTILIZABLES
   06. WHATSAPP FLOTANTE
   07. SCROLL TO TOP
   08. UTILIDADES VARIAS
   09. RESPONSIVE GLOBAL

   Reglas importantes del rediseño:
   - Color principal: #005a7f
   - Color secundario: #d8b86d
   - No usar rem.
   - No usar clamp().
   - Todo en px.
   - Responsive organizado al final de esta base.
   ============================================================================ */


/* ============================================================================
   01. VARIABLES CSS — Sistema de diseño
   ============================================================================ */

:root {
    /* ------------------------------------------------------------------------
       COLORES PRINCIPALES DE MARCA
       ------------------------------------------------------------------------
       Azul principal:
       Se usa para fondos oscuros, títulos, botones principales, íconos fuertes,
       enlaces importantes y elementos de autoridad visual.

       Dorado secundario:
       Se usa como acento premium en líneas, detalles, badges, íconos,
       hover states y elementos decorativos.
       ------------------------------------------------------------------------ */

    --gar-primary: #005a7f;
    --gar-primary-dark: #004563;
    --gar-primary-deep: #003247;
    --gar-primary-light: #1b7198;
    --gar-primary-soft: #dbe8ed;

    --gar-secondary: #d8b86d;
    --gar-secondary-dark: #b99645;
    --gar-secondary-deep: #8c6f2d;
    --gar-secondary-light: #ead49a;
    --gar-secondary-soft: #fbf4df;

    /* ------------------------------------------------------------------------
       ALIAS DE ACENTO
       ------------------------------------------------------------------------
       Se mantienen estas variables porque varias secciones actuales ya usan
       --gar-accent, --gar-accent-dark y --gar-accent-light.
       Así evitamos romper estilos existentes.
       ------------------------------------------------------------------------ */

    --gar-accent: #d8b86d;
    --gar-accent-dark: #b99645;
    --gar-accent-light: #ead49a;

    /* ------------------------------------------------------------------------
       NEUTROS PREMIUM
       ------------------------------------------------------------------------ */

    --gar-white: #ffffff;
    --gar-cream: #faf7f0;
    --gar-cream-2: #f4efe4;
    --gar-border: #e8ddc8;

    /* ------------------------------------------------------------------------
       COLORES DE TEXTO
       ------------------------------------------------------------------------ */

    --gar-text: #142b36;
    --gar-text-soft: #415763;
    --gar-text-muted: #71828a;

    /* ------------------------------------------------------------------------
       COLORES DE SISTEMA
       ------------------------------------------------------------------------
       WhatsApp deja de ser verde puro para integrarse a la identidad visual.
       El objetivo principal sigue siendo contacto, pero con coherencia visual.
       ------------------------------------------------------------------------ */

    --gar-success: #1f7a66;
    --gar-danger: #b83a3a;
    --gar-warning: #d8b86d;

    --gar-whatsapp: #0f8f72;
    --gar-whatsapp-dark: #0a6f59;

    /* ------------------------------------------------------------------------
       TIPOGRAFÍA
       ------------------------------------------------------------------------ */

    --gar-font-display: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --gar-font-hero: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --gar-font-body: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* ------------------------------------------------------------------------
       SOMBRAS
       ------------------------------------------------------------------------ */

    --gar-shadow-soft: 0 4px 20px rgba(0, 90, 127, 0.08);
    --gar-shadow-medium: 0 12px 40px rgba(0, 90, 127, 0.13);
    --gar-shadow-strong: 0 20px 60px rgba(0, 90, 127, 0.20);
    --gar-shadow-cta: 0 8px 24px rgba(0, 90, 127, 0.28);

    /* ------------------------------------------------------------------------
       RADIOS
       ------------------------------------------------------------------------ */

    --gar-radius-sm: 8px;
    --gar-radius-md: 14px;
    --gar-radius-lg: 22px;
    --gar-radius-xl: 30px;
    --gar-radius-pill: 999px;

    /* ------------------------------------------------------------------------
       TRANSICIONES
       ------------------------------------------------------------------------ */

    --gar-transition-fast: 0.2s ease;
    --gar-transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* ------------------------------------------------------------------------
       ESPACIADOS GLOBALES DE SECCIÓN
       ------------------------------------------------------------------------ */

    --gar-section-padding: 96px 0;
    --gar-section-padding-tablet: 80px 0;
    --gar-section-padding-mobile: 64px 0;
    --gar-section-padding-small: 56px 0;
}


/* ============================================================================
   02. RESET SUAVE Y BASE
   ============================================================================ */

/* Aplica box-sizing solo a componentes nuevos del rediseño */
[class*="gar-"],
[class*="gar-"] *,
[class*="gar-"] *::before,
[class*="gar-"] *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Evita saltos visuales por imágenes sin display definido */
[class*="gar-"] img {
    max-width: 100%;
}


/* ============================================================================
   03. TIPOGRAFÍA GLOBAL
   ============================================================================ */

/* ---------------------------------------------------------------------------
   Headings globales dentro de secciones del rediseño.
   --------------------------------------------------------------------------- */

.gar-section h1,
.gar-section h2,
.gar-section h3,
.gar-section h4,
.gar-section h5,
.gar-section h6 {
    font-family: var(--gar-font-display);
    font-weight: 700;
    color: var(--gar-primary);
    line-height: 1.2;
    margin-top: 0;
}

/* Desktop */
.gar-section h1 {
    font-size: 58px;
}

.gar-section h2 {
    font-size: 44px;
}

.gar-section h3 {
    font-size: 30px;
}

.gar-section h4 {
    font-size: 24px;
}

.gar-section h5 {
    font-size: 20px;
}

.gar-section h6 {
    font-size: 16px;
}

/* ---------------------------------------------------------------------------
   Párrafos globales dentro de secciones.
   --------------------------------------------------------------------------- */

.gar-section p {
    font-family: var(--gar-font-body);
    color: var(--gar-text-soft);
    font-size: 17px;
    line-height: 28px;
    margin-top: 0;
}

/* ---------------------------------------------------------------------------
   Enlaces globales dentro de secciones.
   --------------------------------------------------------------------------- */

.gar-section a {
    color: var(--gar-primary);
    text-decoration: none;
    transition: color var(--gar-transition-fast);
}

.gar-section a:hover {
    color: var(--gar-secondary);
    text-decoration: none;
}


/* ============================================================================
   04. HELPERS Y ESTRUCTURA DE SECCIONES
   ============================================================================ */

/* ---------------------------------------------------------------------------
   Sección genérica
   --------------------------------------------------------------------------- */

.gar-section {
    position: relative;
    padding: var(--gar-section-padding);
    font-family: var(--gar-font-body);
    color: var(--gar-text);
}

/* ---------------------------------------------------------------------------
   Variantes de fondo
   --------------------------------------------------------------------------- */

.gar-section--white {
    background-color: var(--gar-white);
}

.gar-section--cream {
    background-color: var(--gar-cream);
}

.gar-section--dark {
    background-color: var(--gar-primary);
    color: var(--gar-white);
}

.gar-section--darker {
    background-color: var(--gar-primary-dark);
    color: var(--gar-white);
}

/* ---------------------------------------------------------------------------
   Eyebrow global
   Texto pequeño superior usado antes de títulos de sección.
   --------------------------------------------------------------------------- */

.gar-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 16px;
    color: var(--gar-secondary);
    font-family: var(--gar-font-display);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.gar-eyebrow::before {
    content: '';
    width: 30px;
    height: 2px;
    background: var(--gar-secondary);
}

.gar-eyebrow--center {
    justify-content: center;
}

/* ---------------------------------------------------------------------------
   Texto lead global
   --------------------------------------------------------------------------- */

.gar-lead {
    font-family: var(--gar-font-body);
    font-size: 18px;
    line-height: 30px;
    color: var(--gar-text-soft);
}

/* ---------------------------------------------------------------------------
   Contenedor de título centrado
   --------------------------------------------------------------------------- */

.gar-section-title {
    max-width: 720px;
    margin: 0 auto 64px;
    text-align: center;
}


/* ============================================================================
   05. BOTONES REUTILIZABLES
   ============================================================================ */

/* ---------------------------------------------------------------------------
   Botón base
   --------------------------------------------------------------------------- */

.gar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 29px;
    border: none;
    border-radius: var(--gar-radius-pill);
    font-family: var(--gar-font-display);
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: all var(--gar-transition-smooth);
}

/* ---------------------------------------------------------------------------
   Botón principal tipo WhatsApp
   Ahora usa azul de marca para mantener coherencia visual.
   --------------------------------------------------------------------------- */

.gar-btn--whatsapp {
    background: var(--gar-whatsapp);
    color: var(--gar-white) !important;
    box-shadow: var(--gar-shadow-cta);
}

.gar-btn--whatsapp:hover {
    background: var(--gar-whatsapp-dark);
    color: var(--gar-white) !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 90, 127, 0.36);
}

.gar-btn--whatsapp i {
    font-size: 21px;
}

/* ---------------------------------------------------------------------------
   Botón primario azul
   --------------------------------------------------------------------------- */

.gar-btn--primary {
    background: var(--gar-primary);
    color: var(--gar-white) !important;
}

.gar-btn--primary:hover {
    background: var(--gar-primary-dark);
    color: var(--gar-white) !important;
    transform: translateY(-2px);
    box-shadow: var(--gar-shadow-medium);
}

/* ---------------------------------------------------------------------------
   Botón outline para fondos claros
   --------------------------------------------------------------------------- */

.gar-btn--outline {
    background: transparent;
    color: var(--gar-primary) !important;
    border: 2px solid var(--gar-primary);
}

.gar-btn--outline:hover {
    background: var(--gar-primary);
    color: var(--gar-white) !important;
}

/* ---------------------------------------------------------------------------
   Botón ghost para fondos oscuros
   --------------------------------------------------------------------------- */

.gar-btn--ghost-light {
    background: rgba(255, 255, 255, 0.12);
    color: var(--gar-white) !important;
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
}

.gar-btn--ghost-light:hover {
    background: var(--gar-white);
    color: var(--gar-primary) !important;
    border-color: var(--gar-white);
}

/* ---------------------------------------------------------------------------
   Botón dorado secundario
   --------------------------------------------------------------------------- */

.gar-btn--accent {
    background: var(--gar-secondary);
    color: var(--gar-primary-deep) !important;
}

.gar-btn--accent:hover {
    background: var(--gar-secondary-dark);
    color: var(--gar-white) !important;
    transform: translateY(-2px);
}

/* ---------------------------------------------------------------------------
   Tamaños de botones
   --------------------------------------------------------------------------- */

.gar-btn--lg {
    padding: 19px 38px;
    font-size: 18px;
}

.gar-btn--sm {
    padding: 11px 21px;
    font-size: 14px;
}

.gar-btn--block {
    width: 100%;
}


/* ============================================================================
   06. WHATSAPP FLOTANTE
   ============================================================================ */

.gar-whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 999;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    padding: 14px 22px 14px 16px;
    border-radius: var(--gar-radius-pill);
    background: var(--gar-whatsapp);
    color: var(--gar-white) !important;
    font-family: var(--gar-font-display);
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 8px 30px rgba(0, 90, 127, 0.35);
    transition: all var(--gar-transition-smooth);
}

.gar-whatsapp-float:hover {
    background: var(--gar-whatsapp-dark);
    color: var(--gar-white) !important;
    transform: scale(1.04);
    text-decoration: none;
}

.gar-whatsapp-float i {
    font-size: 26px;
    line-height: 1;
}

.gar-whatsapp-float__text {
    line-height: 1.1;
}

.gar-whatsapp-float__text small {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
    text-transform: uppercase;
    opacity: 0.95;
}

/* Pulso visual del botón flotante */
.gar-whatsapp-float::after {
    content: '';
    position: absolute;
    inset: -4px;
    border: 2px solid var(--gar-whatsapp);
    border-radius: inherit;
    pointer-events: none;
    animation: gar-pulse-whatsapp 2400ms infinite;
}

@keyframes gar-pulse-whatsapp {
    0% {
        opacity: 0.6;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(1.25);
    }
}


/* ============================================================================
   07. SCROLL TO TOP
   ============================================================================ */

.gar-scroll-top {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 998;
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: var(--gar-primary);
    color: var(--gar-secondary);
    font-size: 18px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: var(--gar-shadow-medium);
    transition: all var(--gar-transition-fast);
}

.gar-scroll-top:hover {
    background: var(--gar-primary-dark);
    color: var(--gar-secondary-light);
    transform: translateY(-3px);
    text-decoration: none;
}

.gar-scroll-top.is-visible {
    display: inline-flex;
}


/* ============================================================================
   08. UTILIDADES VARIAS
   ============================================================================ */

/* Ocultar scrollbar visualmente, manteniendo funcionalidad */
.gar-no-scrollbar::-webkit-scrollbar {
    display: none;
}

.gar-no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Imagen responsive segura */
.gar-img-fluid {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Separador dorado decorativo */
.gar-divider-gold {
    width: 60px;
    height: 3px;
    margin: 24px 0;
    border: none;
    background: var(--gar-secondary);
}

/* Punto pulsante decorativo */
.gar-pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gar-secondary);
    animation: gar-pulse 2000ms infinite;
}

@keyframes gar-pulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.3);
    }
}


/* ============================================================================
   09. RESPONSIVE GLOBAL
   ============================================================================ */

/* ---------------------------------------------------------------------------
   Desktop medio / laptop pequeña
   --------------------------------------------------------------------------- */

@media (max-width: 1199px) {
    .gar-section h1 {
        font-size: 52px;
    }

    .gar-section h2 {
        font-size: 42px;
    }

    .gar-section h3 {
        font-size: 28px;
    }

    .gar-section p {
        font-size: 16px;
        line-height: 27px;
    }
}


/* ---------------------------------------------------------------------------
   Tablet
   --------------------------------------------------------------------------- */

@media (max-width: 991px) {
    .gar-section {
        padding: var(--gar-section-padding-tablet);
    }

    .gar-section h1 {
        font-size: 46px;
    }

    .gar-section h2 {
        font-size: 38px;
    }

    .gar-section h3 {
        font-size: 28px;
    }

    .gar-section h4 {
        font-size: 22px;
    }

    .gar-section h5 {
        font-size: 19px;
    }

    .gar-section h6 {
        font-size: 16px;
    }

    .gar-section p {
        font-size: 16px;
        line-height: 26px;
    }

    .gar-lead {
        font-size: 17px;
        line-height: 28px;
    }

    .gar-section-title {
        margin-bottom: 48px;
    }
}


/* ---------------------------------------------------------------------------
   Mobile
   --------------------------------------------------------------------------- */

@media (max-width: 767px) {
    .gar-section {
        padding: var(--gar-section-padding-mobile);
    }

    .gar-section h1 {
        font-size: 38px;
    }

    .gar-section h2 {
        font-size: 34px;
    }

    .gar-section h3 {
        font-size: 25px;
    }

    .gar-section h4 {
        font-size: 21px;
    }

    .gar-section h5 {
        font-size: 18px;
    }

    .gar-section h6 {
        font-size: 16px;
    }

    .gar-section p {
        font-size: 15px;
        line-height: 25px;
    }

    .gar-lead {
        font-size: 16px;
        line-height: 27px;
    }

    .gar-section-title {
        max-width: 100%;
        margin-bottom: 40px;
        text-align: left;
    }

    .gar-eyebrow {
        font-size: 11px;
        gap: 9px;
        margin-bottom: 14px;
    }

    .gar-eyebrow::before {
        width: 24px;
    }

    .gar-btn {
        min-height: 50px;
        padding: 15px 22px;
        font-size: 15px;
    }

    .gar-btn--lg {
        min-height: 54px;
        padding: 16px 24px;
        font-size: 16px;
    }

    .gar-btn--sm {
        min-height: 44px;
        padding: 11px 18px;
        font-size: 14px;
    }

    .gar-whatsapp-float {
        right: 16px;
        bottom: 16px;
        padding: 14px;
    }

    .gar-whatsapp-float__text {
        display: none;
    }

    .gar-whatsapp-float i {
        font-size: 27px;
    }

    .gar-scroll-top.is-visible {
        display: none;
    }
}


/* ---------------------------------------------------------------------------
   Mobile pequeño
   --------------------------------------------------------------------------- */

@media (max-width: 575px) {
    .gar-section {
        padding: var(--gar-section-padding-small);
    }

    .gar-section h1 {
        font-size: 34px;
    }

    .gar-section h2 {
        font-size: 30px;
    }

    .gar-section h3 {
        font-size: 23px;
    }

    .gar-section h4 {
        font-size: 20px;
    }

    .gar-section p {
        font-size: 15px;
        line-height: 24px;
    }

    .gar-lead {
        font-size: 15px;
        line-height: 25px;
    }

    .gar-btn {
        width: 100%;
        justify-content: center;
        padding: 15px 20px;
        font-size: 15px;
    }

    .gar-divider-gold {
        margin: 20px 0;
    }
}

/* FIN BASE GLOBAL */