/* ════════════════════════════════════════════════
   TUNJA TECHNICAL SERVICE — style.css v4.0
   Optimizado para PageSpeed: WebP, sin bloqueo de
   renderizado, contraste corregido, CLS controlado.
   ════════════════════════════════════════════════ */

:root {
    --brand-red:       #ce0e2d;
    --brand-dark-red:  #7a0816;
    --brand-navy:      #051126;
    --brand-navy-mid:  #0a1f45;
    --accent-gold:     #c9973a;

    --light-bg:        #f5f7fc;
    --surface:         #ffffff;
    --surface-alt:     #eef1f8;
    --border:          rgba(5,17,38,0.09);
    --text-dark:       #0d1b2a;
    --text-mid:        #33465a;   /* oscurecido levemente para mejor contraste (era #3d4f63) */
    --text-muted:      #5d7488;   /* oscurecido para cumplir contraste AA (era #7a8ea0) */
    --text-light:      #ffffff;

    --shadow-sm:  0 2px 8px rgba(5,17,38,0.07);
    --shadow-md:  0 8px 28px rgba(5,17,38,0.12);
    --shadow-lg:  0 20px 50px rgba(5,17,38,0.18);
    --shadow-red: 0 8px 30px rgba(206,14,45,0.35);

    --transition:      all 0.3s cubic-bezier(0.25,0.8,0.25,1);
    --flip-transition: transform 0.75s cubic-bezier(0.4,0,0.2,1);

    --font-display: 'DM Serif Display', Georgia, serif;
    --font-body:    'Poppins', system-ui, sans-serif;
    --font-wide:    'Bebas Neue', Impact, sans-serif;
}

/* ──────────────────────────────────────
   RESET + BASE
────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* Placeholder para imágenes lazy mientras cargan (evita salto visual / CLS) */
img[loading="lazy"] {
    background-color: var(--surface-alt);
}

/* ──────────────────────────────────────
   TRUST BAR
────────────────────────────────────── */
.trust-bar {
    background: var(--brand-navy);
    color: #9ab0c8;   /* aclarado para contraste AA sobre navy oscuro */
    font-size: 0.77rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.2rem;
    padding: 9px 5%;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    flex-wrap: wrap;
}

.trust-bar span {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.trust-bar i { color: #ff4d63; font-size: 0.82rem; }
.trust-bar a { color: #9ab0c8; transition: color 0.2s; }
.trust-bar a:hover { color: #fff; }
.trust-divider { color: rgba(255,255,255,0.15); font-size: 0.7rem; }

/* ──────────────────────────────────────
   HEADER / NAVBAR
────────────────────────────────────── */
.header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    height: 72px;
    box-shadow: 0 2px 16px rgba(5,17,38,0.08);
    transition: var(--transition);
}

.main-logo { height: 54px; width: auto; object-fit: contain; }

nav ul {
    display: flex;
    align-items: center;
    gap: 2rem;
}

nav a {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--brand-navy);
    position: relative;
    padding: 4px 0;
    transition: var(--transition);
    letter-spacing: 0.2px;
}

nav a:not(.nav-cta):hover { color: var(--brand-red); }

nav a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-red);
    border-radius: 2px;
    transition: width 0.3s ease;
}

nav a:not(.nav-cta):hover::after { width: 100%; }

.nav-cta {
    background: linear-gradient(135deg, var(--brand-red), var(--brand-dark-red));
    color: var(--text-light) !important;
    padding: 9px 20px !important;
    border-radius: 50px;
    font-size: 0.85rem !important;
    box-shadow: 0 4px 14px rgba(206,14,45,0.28);
    display: flex !important;
    align-items: center;
    gap: 7px;
    transition: var(--transition) !important;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-red) !important;
}

/* ──────────────────────────────────────
   HERO
────────────────────────────────────── */
.hero {
    position: relative;
    background-image:
        linear-gradient(160deg, rgba(5,17,38,0.93) 0%, rgba(122,8,22,0.58) 100%),
        url('https://images.unsplash.com/photo-1581092921461-eab62e97a780?auto=format&fit=crop&w=1600&q=70');
    background-size: cover;
    background-position: center;
    /* fixed ELIMINADO: causaba parpadeo y retraso visual al cargar */
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    padding: 6rem 5% 0;
    overflow: hidden;
}

.hero-grain {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.35;
}

.hero-content {
    position: relative;
    max-width: 860px;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.09);
    border: 1px solid rgba(255,255,255,0.18);
    backdrop-filter: blur(8px);
    color: #f0d29a;   /* aclarado de #e8c97a para contraste AA */
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 7px 20px;
    border-radius: 50px;
    margin-bottom: 2rem;
    animation: fadeInDown 0.8s ease-out;
}

.hero-badge i { color: var(--accent-gold); }

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5.5vw, 4.4rem);
    font-weight: 400;
    line-height: 1.12;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 24px rgba(0,0,0,0.45);
    animation: fadeInDown 0.9s ease-out 0.1s backwards;
}

.hero h1 em {
    font-style: italic;
    color: #f7b3bd; /* aclarado de #f4a0ac para contraste AA sobre fondo oscuro */
}

.hero > .hero-content > p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.88);
    max-width: 640px;
    margin: 0 auto 2.8rem;
    line-height: 1.75;
    animation: fadeInUp 0.9s ease-out 0.25s backwards;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.9s ease-out 0.4s backwards;
}

/* Botones generales */
.btn-primary {
    background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-dark-red) 100%);
    color: var(--text-light);
    padding: 15px 36px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 50px;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-red);
    transition: var(--transition);
    letter-spacing: 0.3px;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 38px rgba(206,14,45,0.52);
}

.btn-ghost {
    background: rgba(255,255,255,0.12);
    color: var(--text-light);
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(6px);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-ghost:hover {
    background: rgba(255,255,255,0.22);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-3px);
}

/* Stats del hero — ahora en flujo normal (no absolute)
   margin-top:auto las empuja al fondo del flex container
   sin necesidad de position absolute, eliminando el parpadeo */
.hero-stats {
    margin-top: auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5,17,38,0.88);
    backdrop-filter: blur(18px);
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 1.4rem 3rem;
    border-radius: 16px 16px 0 0;
    /* sin animation delay — aparece de inmediato con el resto */
    animation: fadeInUp 0.6s ease-out 0.3s backwards;
    z-index: 5;
    gap: 0;
    flex-wrap: wrap;
}

.stat { text-align: center; padding: 0 2.2rem; }

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.1rem;
    color: var(--text-light);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.72rem;
    color: #8aa0b8;  /* aclarado de #6a86a4 para contraste AA */
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.9px;
}

.stat-divider {
    width: 1px;
    height: 46px;
    background: rgba(255,255,255,0.09);
    flex-shrink: 0;
}

/* ──────────────────────────────────────
   BRANDS STRIP — ticker infinito
────────────────────────────────────── */
.brands-strip {
    background: var(--surface);
    padding: 1.4rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
}

.brands-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    white-space: nowrap;
    text-align: center;
    padding: 0 5%;
}

.brands-track {
    width: 100%;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.brands-inner {
    display: flex;
    align-items: center;
    gap: 0;
    width: max-content;
    animation: ticker 30s linear infinite;
    will-change: transform;
}

.brands-track:hover .brands-inner {
    animation-play-state: paused;
}

.brands-inner span {
    font-family: var(--font-wide);
    font-size: 1.1rem;
    letter-spacing: 3px;
    color: var(--text-muted);
    white-space: nowrap;
    transition: color 0.25s;
    padding: 0 2.8rem;
    position: relative;
}

.brands-inner span::after {
    content: '·';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--brand-red);
    font-size: 1.3rem;
    line-height: 1;
}

.brands-inner span:hover { color: var(--brand-red); }

@keyframes ticker {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ──────────────────────────────────────
   QUIÉNES SOMOS
────────────────────────────────────── */
.about {
    padding: 7rem 5%;
    background: var(--surface);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 72px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

.about-image-wrapper img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.image-accent-bar {
    position: absolute;
    top: 28px;
    left: -14px;
    width: 6px;
    height: 55%;
    background: linear-gradient(to bottom, var(--brand-red), var(--brand-dark-red));
    border-radius: 6px;
}

.image-badge {
    position: absolute;
    bottom: 26px;
    right: -18px;
    background: var(--brand-navy);
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 14px;
    font-size: 0.86rem;
    font-weight: 700;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255,255,255,0.06);
}

.image-badge i { color: var(--accent-gold); font-size: 1.2rem; }

/* Tags de sección */
.section-tag {
    display: inline-block;
    color: var(--brand-red);
    font-weight: 700;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 2.8px;
    margin-bottom: 0.9rem;
}

.section-tag.light { color: rgba(255,255,255,0.75); }

.about-text h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem,3.5vw,3rem);
    color: var(--brand-navy);
    margin-bottom: 1.6rem;
    line-height: 1.18;
}

.about-text > p {
    color: var(--text-mid);
    margin-bottom: 1.2rem;
    font-size: 1rem;
    text-align: justify;
    line-height: 1.78;
}

.about-features {
    margin-top: 2.4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: var(--surface-alt);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.feature-item:hover {
    border-color: var(--brand-red);
    box-shadow: 0 4px 18px rgba(206,14,45,0.1);
    transform: translateY(-2px);
}

.feature-icon {
    flex-shrink: 0;
    color: var(--brand-red);
    font-size: 1.05rem;
    margin-top: 3px;
}

.feature-item strong {
    display: block;
    font-size: 0.87rem;
    font-weight: 700;
    color: var(--brand-navy);
    margin-bottom: 2px;
}

.feature-item p {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin: 0;
}

/* ──────────────────────────────────────
   SERVICIOS — FLIP CARDS (con <img> real)
────────────────────────────────────── */
.services {
    padding: 7rem 5%;
    background: var(--light-bg);
}

.section-header {
    text-align: center;
    margin-bottom: 3.8rem;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem,3.5vw,3rem);
    color: var(--brand-navy);
    margin-bottom: 0.6rem;
    line-height: 1.18;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 0.96rem;
    margin-top: 0.5rem;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 26px;
    max-width: 1200px;
    margin: 0 auto;
    perspective: 1200px;
}

.flip-card {
    height: 440px;
    border-radius: 18px;
    cursor: pointer;
    position: relative;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: var(--flip-transition);
    transform-style: preserve-3d;
    border-radius: 18px;
    box-shadow: var(--shadow-md);
}

.flip-card:hover .flip-card-inner { transform: rotateY(180deg); }

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 18px;
    overflow: hidden;
}

/* Frente: imagen real de fondo + overlay degradado */
.flip-card-front {
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* La imagen real ocupa toda la tarjeta como fondo */
.card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Overlay oscuro encima de la imagen para legibilidad del texto */
.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 30%, rgba(5,17,38,0.92) 100%);
    z-index: 1;
}

.card-overlay--back {
    background: linear-gradient(160deg, rgba(5,17,38,0.95) 0%, rgba(122,8,22,0.93) 100%);
}

.front-content {
    position: relative;
    z-index: 2;
    padding: 2rem 1.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.front-icon-wrap {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(206,14,45,0.22);
    border: 2px solid rgba(206,14,45,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #ff8a9b;  /* aclarado de #f07089 para contraste AA */
    margin-bottom: 0.4rem;
    transition: var(--transition);
}

.flip-card:hover .front-icon-wrap {
    background: rgba(206,14,45,0.4);
    border-color: var(--brand-red);
}

.flip-card-front h3 {
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}

.front-cta {
    font-size: 0.77rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.5px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.flip-card:hover .front-cta { color: #f7b3bd; }

/* Dorso */
.flip-card-back {
    color: var(--text-light);
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.6rem;
}

.back-text-container {
    position: relative;
    z-index: 2;
    text-align: center;
    background: rgba(5,17,38,0.55);
    padding: 1.8rem 1.4rem 1.4rem;
    border-radius: 14px;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.08);
    width: 100%;
}

.back-icon {
    font-size: 1.9rem;
    color: #ff8a9b;
    margin-bottom: 0.7rem;
}

.flip-card-back h4 {
    font-size: 0.92rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
}

.back-text-container ul {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 1.2rem;
}

.back-text-container ul li {
    font-size: 0.86rem;
    color: rgba(255,255,255,0.92);
    padding-left: 1.2rem;
    position: relative;
    line-height: 1.4;
}

.back-text-container ul li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: #ff8a9b;
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1;
}

.back-cta-btn {
    position: relative;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #25d366;
    color: #fff;
    font-size: 0.83rem;
    font-weight: 700;
    padding: 9px 20px;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(37,211,102,0.35);
}

.back-cta-btn:hover {
    background: #1bae55;
    transform: translateY(-2px);
}

/* ════════════════════════════════════════════════
   INTERACTIVIDAD TÁCTIL — CSS Checkbox Hack
   (sin JavaScript) — funciona en móvil y escritorio
   ════════════════════════════════════════════════ */
.flip-toggle {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.flip-label {
    position: absolute;
    inset: 0;
    z-index: 10;
    cursor: pointer;
    border-radius: inherit;
}

.flip-label--back {
    z-index: 1;
    bottom: 80px; /* deja libre el botón de WhatsApp en el dorso */
}

.flip-toggle:checked ~ .flip-card-inner {
    transform: rotateY(180deg);
}

@media (hover: hover) and (pointer: fine) {
    .flip-card:hover .flip-card-inner {
        transform: rotateY(180deg);
    }
    .flip-toggle:checked ~ .flip-card-inner {
        transform: rotateY(180deg);
    }
    .flip-label {
        display: none;
    }
}

/* ──────────────────────────────────────
   PROCESO
────────────────────────────────────── */
.process {
    padding: 7rem 5%;
    background: var(--brand-navy);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.process::before {
    content: 'PROCESO';
    position: absolute;
    font-family: var(--font-wide);
    font-size: 14rem;
    color: rgba(255,255,255,0.025);
    letter-spacing: 8px;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    pointer-events: none;
    white-space: nowrap;
}

.process-tag { color: rgba(255,255,255,0.55); }

.process .section-header h2 { color: var(--text-light); }

.process-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1080px;
    margin: 3.5rem auto 0;
    flex-wrap: wrap;
    gap: 0;
}

.process-step {
    flex: 1;
    min-width: 170px;
    max-width: 220px;
    text-align: center;
    padding: 0 1.2rem;
    position: relative;
}

.step-num {
    font-family: var(--font-display);
    font-size: 3.8rem;
    line-height: 1;
    color: rgba(255,255,255,0.06);
    margin-bottom: -0.5rem;
    font-style: italic;
}

.step-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(206,14,45,0.14);
    border: 1px solid rgba(206,14,45,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.6rem;
    color: #ff5a6f;  /* aclarado de var(--brand-red) para contraste AA sobre navy */
    transition: var(--transition);
}

.process-step:hover .step-icon-wrap {
    background: rgba(206,14,45,0.28);
    border-color: var(--brand-red);
    transform: scale(1.08);
}

.process-step h3 {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.process-step p {
    font-size: 0.83rem;
    color: #8aa0b8;  /* aclarado de #5e7899 para contraste AA */
    line-height: 1.65;
}

.process-connector {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding-bottom: 2rem;
}

.process-connector span {
    width: 40px;
    height: 1px;
    background: linear-gradient(to right, rgba(206,14,45,0.3), rgba(206,14,45,0.6), rgba(206,14,45,0.3));
    position: relative;
}

.process-connector span::after {
    content: '';
    position: absolute;
    right: -4px;
    top: -3px;
    border: 4px solid transparent;
    border-left-color: rgba(206,14,45,0.6);
}

/* ──────────────────────────────────────
   RESEÑAS
────────────────────────────────────── */
.reviews {
    padding: 7rem 5%;
    background: var(--light-bg);
}

.reviews-global-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.stars-display { display: flex; gap: 4px; }
.stars-display i { color: var(--accent-gold); font-size: 1.3rem; }

.rating-text {
    font-size: 0.88rem;
    color: var(--text-mid);
    font-weight: 600;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 3.5rem auto 0;
}

.review-card {
    background: var(--surface);
    border-radius: 18px;
    padding: 1.8rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: transform 0.35s cubic-bezier(0.25,0.8,0.25,1),
                box-shadow 0.35s ease,
                border-color 0.35s ease;
    position: relative;
    overflow: hidden;
    animation: cardEntrance 0.65s ease-out both;
}

.review-card:nth-child(1) { animation-delay: 0.05s; }
.review-card:nth-child(2) { animation-delay: 0.15s; }
.review-card:nth-child(3) { animation-delay: 0.25s; }
.review-card:nth-child(4) { animation-delay: 0.35s; }
.review-card:nth-child(5) { animation-delay: 0.45s; }
.review-card:nth-child(6) { animation-delay: 0.55s; }

@keyframes cardEntrance {
    from { opacity: 0; transform: translateY(32px); }
    to   { opacity: 1; transform: translateY(0); }
}

.review-card::before {
    content: '\201C';
    position: absolute;
    top: -12px;
    right: 18px;
    font-family: Georgia, serif;
    font-size: 7rem;
    color: rgba(206,14,45,0.06);
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

.review-card::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(to bottom, var(--brand-red), var(--brand-dark-red));
    border-radius: 4px 0 0 4px;
    transition: height 0.35s ease;
}

.review-card:hover::after { height: 100%; }

.review-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(5,17,38,0.13);
    border-color: rgba(206,14,45,0.2);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.1rem;
}

.reviewer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-navy), var(--brand-navy-mid));
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.88rem;
    flex-shrink: 0;
    border: 2px solid rgba(206,14,45,0.3);
    letter-spacing: 0.5px;
}

.reviewer-info { flex: 1; min-width: 0; }

.reviewer-info strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--brand-navy);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.reviewer-info span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.review-stars { margin-left: auto; display: flex; gap: 2px; flex-shrink: 0; }
.review-stars i { color: var(--accent-gold); font-size: 0.78rem; }

.review-card > p {
    font-size: 0.88rem;
    color: var(--text-mid);
    line-height: 1.75;
    margin-bottom: 1.1rem;
}

.review-service {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 5px 14px;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-mid);
}

.review-service i { color: var(--brand-red); font-size: 0.8rem; }

/* ──────────────────────────────────────
   UBICACIÓN
────────────────────────────────────── */
.location-section {
    padding: 7rem 5%;
    background: var(--surface);
}

.location-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 48px;
    align-items: stretch;
}

.location-info {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.location-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 20px;
    background: var(--surface-alt);
    border-radius: 14px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.location-card:hover {
    border-color: rgba(206,14,45,0.22);
    box-shadow: 0 4px 18px rgba(206,14,45,0.08);
}

.loc-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-red), var(--brand-dark-red));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(206,14,45,0.3);
}

/* h3 dentro de location-card (antes h4, corregido para jerarquía) */
.location-card h3 {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--brand-navy);
    margin-bottom: 5px;
}

.location-card p {
    font-size: 0.88rem;
    color: var(--text-mid);
    line-height: 1.65;
}

.location-card a {
    color: var(--brand-red);
    font-weight: 600;
    transition: color 0.2s;
}

.location-card a:hover { color: var(--brand-dark-red); }

.map-column {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.map-wrapper {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    min-height: 360px;
    flex: 1;
}

.map-wrapper iframe { display: block; width: 100%; height: 100%; min-height: 360px; }

/* Botón "Cómo llegar" debajo del mapa */
.directions-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--brand-red), var(--brand-dark-red));
    color: var(--text-light);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 14px 28px;
    border-radius: 12px;
    box-shadow: var(--shadow-red);
    transition: var(--transition);
    letter-spacing: 0.3px;
}

.directions-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(206,14,45,0.48);
}

.directions-btn i {
    font-size: 1.1rem;
}

/* ──────────────────────────────────────
   CTA FINAL
────────────────────────────────────── */
.cta-section {
    background: linear-gradient(145deg, var(--brand-red) 0%, var(--brand-dark-red) 100%);
    padding: 7rem 5%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-grain {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.3;
}

.cta-section::before,
.cta-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
}

.cta-section::before { width: 500px; height: 500px; top: -180px; left: -120px; }
.cta-section::after  { width: 340px; height: 340px; bottom: -100px; right: -70px; }

.cta-inner {
    position: relative;
    z-index: 2;
    max-width: 680px;
    margin: 0 auto;
}

.cta-inner h2 {
    font-family: var(--font-display);
    font-size: clamp(1.9rem,4vw,3.1rem);
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.18;
}

.cta-inner p {
    color: rgba(255,255,255,0.85);
    font-size: 1rem;
    line-height: 1.72;
    margin-bottom: 2.4rem;
}

.btn-wa {
    background: #fff;
    color: var(--brand-dark-red);
    box-shadow: 0 8px 30px rgba(0,0,0,0.22);
    font-size: 1.05rem;
}

.btn-wa:hover {
    background: #f8f8f8;
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(0,0,0,0.3);
}

.cta-phone {
    margin-top: 1.5rem !important;
    font-size: 0.96rem;
    color: rgba(255,255,255,0.78) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cta-phone a {
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    transition: var(--transition);
}

.cta-phone a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ──────────────────────────────────────
   BOTÓN FLOTANTE WHATSAPP
────────────────────────────────────── */
.whatsapp-float {
    position: fixed;
    bottom: 36px;
    right: 36px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    box-shadow: 0 6px 24px rgba(37,211,102,0.48);
    z-index: 1000;
    transition: var(--transition);
    animation: waPulse 2.6s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.12) rotate(5deg);
    box-shadow: 0 10px 32px rgba(37,211,102,0.65);
}

.wa-tooltip {
    position: absolute;
    right: 72px;
    background: var(--brand-navy);
    color: var(--text-light);
    font-size: 0.77rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    box-shadow: var(--shadow-md);
}

.wa-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: var(--brand-navy);
    border-right: 0;
}

.whatsapp-float:hover .wa-tooltip { opacity: 1; }

/* ──────────────────────────────────────
   FOOTER
────────────────────────────────────── */
footer {
    background: var(--brand-navy);
    color: var(--text-light);
    border-top: 4px solid var(--brand-red);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1.3fr;
    gap: 3rem;
    padding: 4.5rem 5% 3.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 1.2rem;
    filter: brightness(0) invert(1) opacity(0.9);
}

.footer-brand p {
    font-size: 0.87rem;
    color: #7491a8;  /* aclarado de #4e6880 para contraste AA sobre navy */
    line-height: 1.75;
    max-width: 320px;
    margin-bottom: 1.5rem;
}

/* Redes sociales */
.footer-social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #fff;
    transition: var(--transition);
    flex-shrink: 0;
}

.social-link:hover { transform: translateY(-3px) scale(1.1); }

.social-fb   { background: #1877f2; box-shadow: 0 4px 12px rgba(24,119,242,0.35); }
.social-fb:hover { background: #166fe5; }

.social-ig   { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); box-shadow: 0 4px 12px rgba(220,39,67,0.4); }

.social-tt   { background: #010101; border: 1px solid rgba(255,255,255,0.15); box-shadow: 0 4px 12px rgba(0,0,0,0.4); }
.social-tt:hover { background: #1a1a1a; }

.social-wa   { background: #25d366; box-shadow: 0 4px 12px rgba(37,211,102,0.4); }
.social-wa:hover { background: #1bae55; }

.social-mail { background: var(--brand-red); box-shadow: 0 4px 12px rgba(206,14,45,0.35); }
.social-mail:hover { background: var(--brand-dark-red); }

/* Encabezados del footer (h2 reasignados para jerarquía correcta de documento) */
.footer-heading {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: rgba(255,255,255,0.4);
    margin-bottom: 1.4rem;
    font-weight: 700;
    font-family: var(--font-body);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-links li a {
    color: #7491a8;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: var(--transition);
}

.footer-links li a i { font-size: 0.65rem; color: var(--brand-red); }

.footer-links li a:hover {
    color: var(--text-light);
    padding-left: 4px;
}

.footer-contact p {
    font-size: 0.88rem;
    color: #7491a8;
    margin-bottom: 0.85rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    transition: var(--transition);
    line-height: 1.55;
}

.footer-contact p i {
    color: var(--brand-red);
    font-size: 0.9rem;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-contact a { color: #7491a8; transition: color 0.2s; }
.footer-contact a:hover { color: var(--text-light); }

.footer-addr-indent {
    display: block;
    padding-left: 0;
}

.footer-bottom {
    padding: 2rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.boyaca-phrase {
    font-family: 'Georgia', serif;
    font-style: italic;
    color: #ff7d8e;  /* aclarado de rgba(206,14,45,0.85) para contraste AA */
    font-size: 1rem;
    margin-bottom: 1.4rem;
    letter-spacing: 0.3px;
    line-height: 1.6;
    text-align: center;
    border-left: 3px solid var(--brand-red);
    padding-left: 1rem;
    display: block;
}

.boyaca-phrase .fa-quote-left,
.boyaca-phrase .fa-quote-right {
    font-size: 0.75rem;
    opacity: 0.6;
    vertical-align: middle;
    margin: 0 4px;
}

.footer-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-copy {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.32);
}

.back-to-top {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.55);
    font-size: 0.85rem;
    transition: var(--transition);
}

.back-to-top:hover {
    background: var(--brand-red);
    border-color: var(--brand-red);
    color: #fff;
}

/* ──────────────────────────────────────
   KEYFRAMES
────────────────────────────────────── */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-22px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes waPulse {
    0%   { box-shadow: 0 0 0 0 rgba(37,211,102,0.55); }
    70%  { box-shadow: 0 0 0 18px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ──────────────────────────────────────
   RESPONSIVE
────────────────────────────────────── */
@media (max-width: 1024px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        max-width: 680px;
    }

    .image-accent-bar { display: none; }
    .image-badge { right: 16px; }

    .location-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .map-wrapper { min-height: 320px; }
    .map-column { width: 100%; }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-logo { margin: 0 auto 1rem; }
    .footer-brand p { max-width: 100%; text-align: center; }
    .footer-social { justify-content: center; }
}

@media (max-width: 768px) {
    .trust-bar {
        gap: 0.7rem 1.2rem;
        font-size: 0.72rem;
    }

    .trust-divider { display: none; }

    .header {
        height: auto;
        flex-direction: column;
        gap: 0.8rem;
        padding: 1rem 5%;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.6rem 1.2rem;
        font-size: 0.83rem;
    }

    .hero {
        min-height: auto;
        padding: 5rem 5% 0;
    }

    .hero-stats {
        flex-wrap: wrap;
        padding: 1rem 1.5rem;
        gap: 0.5rem;
        border-radius: 0;
        width: 100%;
    }

    .stat { padding: 0.4rem 1rem; }
    .stat-divider { display: none; }

    .brands-strip { flex-direction: column; gap: 1rem; text-align: center; }
    .brands-label { text-align: center; }

    .about-features { grid-template-columns: 1fr; }

    .process-connector { display: none; }

    .process-steps {
        flex-direction: column;
        align-items: center;
        gap: 2.4rem;
    }

    .process-step { max-width: 300px; }

    .reviews-grid { grid-template-columns: 1fr; }

    .footer-top { grid-template-columns: 1fr; text-align: center; }
    .footer-links ul { align-items: center; }
    .footer-links li a { justify-content: center; }
    .footer-contact p { justify-content: center; }

    .footer-bottom-row { flex-direction: column; gap: 1rem; text-align: center; }

    .whatsapp-float { bottom: 20px; right: 20px; width: 54px; height: 54px; font-size: 1.75rem; }
    .wa-tooltip { display: none; }

    .service-grid { gap: 20px; }
    .flip-card { height: 400px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2.1rem; }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary,
    .btn-ghost {
        width: 100%;
        justify-content: center;
    }

    .hero-stats { justify-content: center; }

    .about-image-wrapper img { height: 280px; }

    .process-step { padding: 0 1rem; }

    .stat-number { font-size: 1.7rem; }
}

/* ──────────────────────────────────────
   REDUCCIÓN DE MOVIMIENTO
────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}