/* ============================================================
   ENVY CONEXIONES — Design System
   Paleta: Negro #0A0A0A | Ambar #F59E0B | Ambar claro #FBBF24 | Cream #F8F5F0 | White
   Tipografia: Space Grotesk (headings) + Inter (body)
   ============================================================ */

/* ---- Variables ----
   Paleta: Monocromatica + acento ambar
   Negro como color de marca (mismo del logo); ambar para acentos/CTAs.
   ---------------------------------- */
:root {
    /* Acento ambar (reemplaza azul/cyan; mantenemos los nombres por compatibilidad) */
    --blue:         #F59E0B;   /* ambar */
    --blue-dark:    #D97706;   /* ambar oscuro - hover */
    --blue-light:   #FEF3C7;   /* ambar claro - chips/bg */
    --cyan:         #FBBF24;   /* ambar brillante - gradient pareja */

    /* Marca: negro del logo */
    --navy:         #0A0A0A;
    --navy-2:       #1A1A1A;

    /* Texto y neutros */
    --text:         #0A0A0A;
    --text-2:       #525252;
    --muted:        #8A8A8A;

    /* Fondos */
    --bg:           #FFFFFF;
    --bg-alt:       #F8F5F0;   /* cream - mas calido que el gris azulado anterior */
    --border:       #E5E5E5;
    --card-bg:      #FFFFFF;

    /* Sistema */
    --radius-sm:    6px;
    --radius:       12px;
    --radius-lg:    20px;
    --shadow-sm:    0 1px 8px rgba(10,10,10,0.06);
    --shadow:       0 4px 24px rgba(10,10,10,0.08);
    --shadow-lg:    0 12px 48px rgba(245,158,11,0.18);
    --transition:   all 0.28s cubic-bezier(0.4,0,0.2,1);
    --header-h:     72px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
}

body {
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5 {
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.15;
    font-weight: 700;
    color: var(--text);
}
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.875rem, 4vw, 2.75rem); }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }
p  { font-size: 1.0625rem; color: var(--text-2); }

/* ---- Layout ---- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section { padding: 6rem 0; }
.section--alt  { background: var(--bg-alt); }
.section--dark { background: var(--navy); }

.section-header {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 4rem;
}
.section-header h2 { margin-bottom: .75rem; }
.section-header p  { font-size: 1.0625rem; }

.section-footer {
    text-align: center;
    margin-top: 3rem;
}

/* ---- Badge ---- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: var(--blue-light);
    color: var(--blue);
    padding: .35rem 1rem;
    border-radius: 999px;
    font-family: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.badge--light {
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.9);
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .875rem 1.875rem;
    border-radius: var(--radius-sm);
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1;
    transition: var(--transition);
    border: 2px solid transparent;
    white-space: nowrap;
}
.btn--primary {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
}
.btn--primary:hover {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: #fff;
}
.btn--ghost {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border-color: rgba(255,255,255,0.25);
    backdrop-filter: blur(8px);
}
.btn--ghost:hover {
    background: rgba(255,255,255,0.16);
    border-color: rgba(255,255,255,0.5);
    color: #fff;
}
.btn--outline-blue {
    background: transparent;
    color: var(--blue);
    border-color: var(--blue);
}
.btn--outline-blue:hover {
    background: var(--blue);
    color: #fff;
    transform: translateY(-1px);
}
.btn--outline-white {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.4);
}
.btn--outline-white:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
    color: #fff;
}
.btn--sm  { padding: .625rem 1.25rem; font-size: .9rem; }
.btn--lg  { padding: 1.0625rem 2.25rem; font-size: 1.0625rem; }
.btn--full { width: 100%; }

/* Estado loading del boton */
.btn-loading { display: none; }
.btn.is-loading .btn-text    { display: none; }
.btn.is-loading .btn-loading { display: flex; align-items: center; gap: .5rem; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: var(--header-h);
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(10,10,10,0.06);
    transition: var(--transition);
}
.site-header.is-scrolled {
    background: rgba(255,255,255,0.97);
    box-shadow: 0 2px 24px rgba(10,10,10,0.08);
}
.site-header__inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    width: 100%;
}
.site-header__logo {
    flex-shrink: 0;
}
.site-header__logo img {
    height: 48px;
    width: auto;
    display: block;
}
.site-header__logo-text {
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -.02em;
}
.logo-envy       { color: var(--navy); }
.logo-conexiones { color: var(--blue); }

.site-nav { margin-left: auto; }
.site-nav__list {
    display: flex;
    align-items: center;
    gap: .25rem;
}
.site-nav__list a {
    color: var(--text-2);
    padding: .5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: .9375rem;
    font-weight: 500;
    transition: var(--transition);
}
.site-nav__list a:hover,
.site-nav__list li.is-active a {
    color: var(--blue);
    background: var(--blue-light);
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-shrink: 0;
}

/* Burger */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: .5rem;
    cursor: pointer;
}
.burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: var(--transition);
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0; bottom: 0;
    background: var(--navy);
    z-index: 999;
    padding: 2rem 1.5rem;
    overflow-y: auto;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
}
.mobile-nav.is-open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}
.mobile-nav__list {
    display: flex;
    flex-direction: column;
    gap: .25rem;
}
.mobile-nav__list a {
    display: block;
    color: rgba(255,255,255,0.8);
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    font-size: 1.125rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: var(--transition);
}
.mobile-nav__list a:hover,
.mobile-nav__list li.is-active a {
    color: #fff;
    background: rgba(255,255,255,0.06);
}
.mobile-nav__cta {
    display: block;
    text-align: center;
    margin-top: 1.5rem;
    width: 100%;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    /* svh = altura del viewport descontando URL bar mobile: garantiza que
       todo el contenido + scroll indicator caben sin tener que scrollear */
    min-height: 100svh;
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
    overflow: hidden;
    padding-top: var(--header-h);
}

/* Dot grid (sutil, oscuro sobre claro) */
.hero__bg-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(10,10,10,0.07) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

/* Glows (suaves, tonalidad azul) */
.hero__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}
.hero__glow--1 {
    width: 600px; height: 600px;
    background: rgba(245,158,11,0.08);
    bottom: -200px; left: -100px;
}
.hero__glow--2 {
    width: 400px; height: 400px;
    background: rgba(251,191,36,0.06);
    top: -100px; right: -50px;
}

.hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 4rem 0;
}

/* Hero badge */
.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--blue-light);
    color: var(--blue);
    border: 1px solid rgba(245,158,11,0.18);
    padding: .4rem 1rem;
    border-radius: 999px;
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}
.hero__badge-dot {
    width: 6px; height: 6px;
    background: var(--cyan);
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .5; transform: scale(1.3); }
}

.hero__title {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    color: var(--navy);
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -.03em;
}
.hero__title-gradient {
    background: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__desc {
    color: var(--text-2);
    font-size: 1.125rem;
    line-height: 1.7;
    max-width: 500px;
    margin-bottom: 2.5rem;
}

.hero__cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

/* Stats */
.hero__stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.hero__stat-value {
    display: block;
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1;
}
.hero__stat-label {
    display: block;
    font-size: .8125rem;
    color: var(--muted);
    margin-top: .25rem;
}
.hero__stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* Visual tech grid */
.hero__visual {
    display: flex;
    justify-content: center;
    align-items: center;
}
.tech-grid {
    position: relative;
    width: 420px;
    height: 420px;
    max-width: 100%;
}
.tech-grid__card {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,0.85);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-sm);
    color: var(--text);
    font-size: .8125rem;
    font-weight: 600;
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
    transition: var(--transition);
    animation: float 3s ease-in-out infinite;
}
.tech-grid__card:hover {
    background: #fff;
    border-color: rgba(245,158,11,0.3);
    box-shadow: var(--shadow);
}
.tech-grid__card--1 {
    top: 0; left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
}
.tech-grid__card--2 {
    top: 50%; left: 0;
    transform: translateY(-50%);
    animation-delay: .75s;
}
.tech-grid__card--3 {
    top: 50%; right: 0;
    transform: translateY(-50%);
    animation-delay: 1.5s;
}
.tech-grid__card--4 {
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    animation-delay: 2.25s;
}
.tech-grid__icon { color: var(--blue); }

.tech-grid__lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { margin-top: 0; }
    50% { margin-top: -8px; }
}

/* Scroll indicator */
.hero__scroll {
    position: absolute;
    bottom: 1.75rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-2);
    transition: var(--transition);
    animation: bounce 2s ease-in-out infinite;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.hero__scroll:hover { color: var(--blue); }
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: border-color .35s ease, background .35s ease;
    position: relative;
    overflow: hidden;
}
.service-card:hover {
    border-color: rgba(251,191,36,0.5);
}

.service-card__icon {
    width: 60px; height: 60px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}
.service-card__icon--blue  { background: var(--blue-light); color: var(--blue); }
.service-card__icon--cyan  { background: rgba(251,191,36,0.1); color: var(--cyan); }
.service-card__icon--navy  { background: rgba(10,10,10,0.08); color: var(--navy); }

.service-card__title {
    font-size: 1.1875rem;
    margin-bottom: .625rem;
    color: var(--text);
}
.service-card__desc {
    font-size: .9375rem;
    color: var(--text-2);
    margin-bottom: 1.25rem;
    line-height: 1.6;
}
.service-card__list {
    display: flex;
    flex-direction: column;
    gap: .4rem;
}
.service-card__list li {
    font-size: .875rem;
    color: var(--text-2);
    padding-left: 1rem;
    position: relative;
}
.service-card__list li::before {
    content: '';
    position: absolute;
    left: 0; top: .55em;
    width: 5px; height: 5px;
    background: var(--blue);
    border-radius: 50%;
}

/* CTA card */
.service-card--cta {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
    border-color: rgba(245,158,11,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
}
.service-card--cta::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
}
.service-card__cta-inner {
    text-align: center;
}
.service-card__cta-inner h3 {
    color: #fff;
    margin-bottom: .75rem;
}
.service-card__cta-inner p {
    color: rgba(255,255,255,0.6);
    font-size: .9375rem;
    margin-bottom: 1.5rem;
}

/* ============================================================
   WHY US
   ============================================================ */
.why-us {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.why-us__desc {
    font-size: 1.0625rem;
    color: var(--text-2);
    margin: 1rem 0 2rem;
    line-height: 1.7;
}
.why-us__features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.why-feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.why-feature__icon {
    flex-shrink: 0;
    width: 44px; height: 44px;
    background: var(--blue-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    margin-top: .1rem;
}
.why-feature h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: .25rem;
    color: var(--text);
}
.why-feature p {
    font-size: .9rem;
    color: var(--text-2);
    line-height: 1.55;
}

/* Dashboard mockup */
.why-us__visual { perspective: 1000px; }
.why-us__mockup {
    background: var(--navy-2);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0,0,0,0.4), 0 0 0 1px rgba(245,158,11,0.1);
    transform: rotateY(-3deg) rotateX(2deg);
}
.mockup-bar {
    background: rgba(255,255,255,0.04);
    padding: .875rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex;
    gap: .5rem;
}
.mockup-bar span {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
}
.mockup-bar span:nth-child(1) { background: #FF5F57; }
.mockup-bar span:nth-child(2) { background: #FFBD2E; }
.mockup-bar span:nth-child(3) { background: #28C840; }

.mockup-body { padding: 1.75rem; }

.mockup-stat { margin-bottom: 1.25rem; }
.mockup-stat__label {
    font-size: .75rem;
    color: rgba(255,255,255,0.45);
    margin-bottom: .5rem;
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
}
.mockup-stat__bar {
    height: 6px;
    background: rgba(255,255,255,0.08);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: .35rem;
}
.mockup-stat__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    border-radius: 999px;
    animation: bar-grow 2s ease-out forwards;
    transform-origin: left;
}
@keyframes bar-grow {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}
.mockup-stat__val {
    font-size: .8125rem;
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 700;
    color: var(--cyan);
    text-align: right;
}
.mockup-alerts {
    display: flex;
    flex-direction: column;
    gap: .625rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.mockup-alert {
    display: flex;
    align-items: center;
    gap: .625rem;
    font-size: .8125rem;
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 500;
    color: rgba(255,255,255,0.6);
}
.mockup-alert__dot {
    width: 8px; height: 8px;
    border-radius: 50%;
}
.mockup-alert--ok .mockup-alert__dot  { background: #28C840; box-shadow: 0 0 6px #28C840; }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.gallery-grid--full {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.gallery-item { border-radius: var(--radius); overflow: hidden; }
.gallery-item__img {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    cursor: pointer;
    background: rgba(255,255,255,0.04);
}
.gallery-item__img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.gallery-item__img:hover img {
    transform: scale(1.06);
}
.gallery-item__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,10,10,0.9) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 1.25rem;
    opacity: 0;
    transition: var(--transition);
}
.gallery-item__img:hover .gallery-item__overlay { opacity: 1; }
.gallery-item__info h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: .25rem;
}
.gallery-item__info span,
.gallery-item__location {
    font-size: .8rem;
    color: rgba(255,255,255,0.65);
    display: flex;
    align-items: center;
    gap: .3rem;
}
.gallery-item__cat {
    background: rgba(245,158,11,0.6);
    color: #fff;
    padding: .2rem .6rem;
    border-radius: 999px;
    font-size: .75rem;
}
.gallery-item__zoom {
    color: rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(4px);
    border-radius: var(--radius-sm);
    padding: .5rem;
    align-self: flex-start;
    transition: var(--transition);
}
.gallery-item__zoom:hover { background: rgba(245,158,11,0.6); }

.gallery-item__placeholder {
    aspect-ratio: 4/3;
    background: rgba(255,255,255,0.04);
    border: 1px dashed rgba(255,255,255,0.12);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    color: rgba(255,255,255,0.3);
    font-size: .875rem;
}

.gallery-item__no-img {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.03);
    color: rgba(255,255,255,0.2);
    aspect-ratio: 4/3;
}

.gallery-item__meta {
    display: flex;
    justify-content: space-between;
    padding: .625rem 0;
    font-size: .8125rem;
    color: var(--muted);
    border-top: 1px solid var(--border);
}

.gallery-empty {
    text-align: center;
    padding: 4rem 0;
    color: rgba(255,255,255,0.5);
}

/* Filtros galeria */
.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 2.5rem;
}
.gallery-filter {
    background: var(--bg-alt);
    color: var(--text-2);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: .5rem 1.25rem;
    font-size: .875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}
.gallery-filter:hover,
.gallery-filter.is-active {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
    backdrop-filter: blur(4px);
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox__content {
    max-width: 90vw;
    max-height: 85vh;
}
.lightbox__content img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius);
}
.lightbox__close {
    position: absolute;
    top: 1.25rem; right: 1.25rem;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}
.lightbox__close:hover { background: rgba(255,255,255,0.2); }
.lightbox__nav {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    width: 50px; height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}
.lightbox__nav:hover { background: rgba(245,158,11,0.6); }
.lightbox__nav--prev { left: 1.25rem; }
.lightbox__nav--next { right: 1.25rem; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 5rem;
    align-items: start;
}

.contact-info h2 { margin-bottom: .75rem; }
.contact-info > p {
    color: var(--text-2);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.contact-info__items {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.contact-info__item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.contact-info__icon {
    width: 42px; height: 42px;
    background: var(--blue-light);
    color: var(--blue);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact-info__label {
    display: block;
    font-size: .8rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .05em;
    font-weight: 600;
    margin-bottom: .2rem;
}
.contact-info__value {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}
a.contact-info__value:hover { color: var(--blue); }

/* Form */
.contact-form-wrap {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: .375rem;
}
.form-label {
    font-size: .875rem;
    font-weight: 600;
    color: var(--text);
}
.form-input {
    width: 100%;
    padding: .875rem 1rem;
    background: var(--bg-alt);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    color: var(--text);
    transition: var(--transition);
    outline: none;
    appearance: none;
}
.form-input:focus {
    background: #fff;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(245,158,11,0.1);
}
.form-input.has-error { border-color: #EF4444; }
.form-textarea {
    resize: vertical;
    min-height: 140px;
}
.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .875rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}
.form-error {
    font-size: .8125rem;
    color: #EF4444;
    display: none;
}
.form-error.is-visible { display: block; }

/* Respuesta del formulario */
.form-response {
    display: none;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: .9375rem;
    font-weight: 500;
}
.form-response.is-success {
    display: block;
    background: #F0FDF4;
    color: #166534;
    border: 1px solid #BBF7D0;
}
.form-response.is-error {
    display: block;
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

/* ============================================================
   CONTACT FORM 7 — integracion con nuestro sistema de form
   ============================================================ */
.wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
/* CF7 inserta un <p> alrededor del submit si autop esta on; lo bajamos por si */
.wpcf7-form p { margin: 0; }

/* El boton de submit que viene de CF7 */
.wpcf7-submit {
    cursor: pointer;
    appearance: none;
    border: 0;
    font-family: inherit;
}

/* Spinner de CF7 mientras envia */
.wpcf7-spinner {
    background-color: var(--text-2);
    margin: 0 0 0 .75rem;
}

/* Mensaje de respuesta global de CF7 (success/error) */
.wpcf7 form .wpcf7-response-output {
    margin: 1rem 0 0;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: .9375rem;
    font-weight: 500;
    border-width: 1px;
    border-style: solid;
}
.wpcf7 form.sent .wpcf7-response-output {
    background: #F0FDF4;
    color: #166534;
    border-color: #BBF7D0;
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
    background: #FEF3C7;
    color: #92400E;
    border-color: #FDE68A;
}
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output {
    background: #FEF2F2;
    color: #991B1B;
    border-color: #FECACA;
}

/* Tip inline de validacion (debajo del campo) */
.wpcf7-not-valid-tip {
    color: #EF4444;
    font-size: .8125rem;
    margin-top: .375rem;
    display: block;
}
.wpcf7-form .wpcf7-not-valid {
    border-color: #EF4444;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--navy);
    color: rgba(255,255,255,0.7);
    padding: 5rem 0 0;
}
.site-footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.site-footer__logo img {
    max-width: 220px;
    height: auto;
    margin-bottom: 1.25rem;
    display: block;
}
.site-footer__logo {
    display: inline-block;
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 700;
    font-size: 1.375rem;
    margin-bottom: 1rem;
}
.site-footer__tagline {
    font-size: .9375rem;
    line-height: 1.65;
    margin-bottom: 1.5rem;
    color: rgba(255,255,255,0.5);
}
.site-footer__heading {
    font-size: .8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: rgba(255,255,255,0.4);
    margin-bottom: 1.25rem;
    font-family: 'Geist', sans-serif;
}
.site-footer__links {
    display: flex;
    flex-direction: column;
    gap: .625rem;
}
.site-footer__links a {
    color: rgba(255,255,255,0.6);
    font-size: .9375rem;
    transition: var(--transition);
}
.site-footer__links a:hover {
    color: #fff;
    padding-left: .25rem;
}
.site-footer__contact {
    display: flex;
    flex-direction: column;
    gap: .875rem;
}
.site-footer__contact li {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: .9375rem;
    color: rgba(255,255,255,0.6);
}
.site-footer__contact a { color: rgba(255,255,255,0.6); }
.site-footer__contact a:hover { color: #fff; }
.site-footer__contact svg { flex-shrink: 0; opacity: .5; }

.site-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.75rem 0;
    font-size: .875rem;
    color: rgba(255,255,255,0.35);
}
.site-footer__bottom a {
    color: rgba(255,255,255,0.5);
}
.site-footer__bottom a:hover { color: #fff; }

/* Social links */
.social-links { display: flex; gap: .625rem; }
.social-links__item {
    width: 38px; height: 38px;
    background: rgba(255,255,255,0.08);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
}
.social-links__item:hover {
    background: var(--blue);
    color: #fff;
    transform: translateY(-2px);
}
.social-links__item--dark {
    background: var(--bg-alt);
    color: var(--text-2);
    gap: .5rem;
    width: auto;
    padding: .5rem .875rem;
    font-size: .875rem;
    font-weight: 500;
}
.social-links__item--dark:hover {
    background: var(--blue);
    color: #fff;
}

/* ============================================================
   WHATSAPP FLOTANTE
   ============================================================ */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 998;
    width: 58px; height: 58px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,.45);
    transition: var(--transition);
}
.whatsapp-float:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 32px rgba(37,211,102,.55);
    color: #fff;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: .5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 .75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: .9375rem;
    font-weight: 500;
    color: var(--text-2);
    transition: var(--transition);
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
}
.pagination .dots { border: none; background: none; color: var(--muted); }

/* ============================================================
   MISC
   ============================================================ */
/* Espacio para el header fixed en paginas que no son home.
   En home (body.home) el .hero gestiona su propio padding-top. */
.main-content { padding-top: var(--header-h); }
body.home .main-content { padding-top: 0; }

.page-content { max-width: 780px; }
.page-content p  { margin-bottom: 1.25rem; }
.page-content h2 { margin: 2rem 0 1rem; }
.page-content h3 { margin: 1.5rem 0 .75rem; }

.empty-state {
    text-align: center;
    padding: 5rem 0;
    color: var(--muted);
}
.empty-state__icon { margin: 0 auto 1.25rem; color: var(--border); }

.error-404 {
    text-align: center;
    padding: 5rem 0;
}
.error-404__code {
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 9rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}
.error-404__title { margin-bottom: .75rem; }
.error-404__desc  { color: var(--muted); margin-bottom: 2rem; }

/* Spin animation */
.spin { animation: spin 1s linear infinite; }
@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Animate on scroll */
[data-animate] { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
[data-animate="fade-right"] { transform: translateX(-24px); }
[data-animate="fade-left"]  { transform: translateX(24px); }
[data-animate].is-visible   { opacity: 1; transform: none; }

/* ============================================================
   PAGE: SERVICIOS
   ============================================================ */
.section-divider {
    height: 1px;
    background: var(--border);
    margin: 0;
}

.service-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}
.service-detail--reverse { direction: rtl; }
.service-detail--reverse > * { direction: ltr; }

.service-detail__icon {
    width: 72px; height: 72px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.service-detail__icon--blue  { background: var(--blue-light); color: var(--blue); }
.service-detail__icon--cyan  { background: rgba(251,191,36,0.1); color: var(--cyan); }
.service-detail__icon--navy  { background: rgba(10,10,10,0.08); color: var(--navy); }

.service-detail__content .badge { margin-bottom: .75rem; }
.service-detail__content h2     { margin-bottom: 1rem; }
.service-detail__content > p    { margin-bottom: 1.75rem; }

.service-detail__list-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.service-detail__col h4 {
    font-size: .875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--muted);
    margin-bottom: .75rem;
}

.service-check-list {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.service-check-list li {
    font-size: .9375rem;
    color: var(--text-2);
    padding-left: 1.5rem;
    position: relative;
}
.service-check-list li::before {
    content: '';
    position: absolute;
    left: 0; top: .45em;
    width: 16px; height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230057FF' stroke-width='2.5'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}
.service-check-list--secondary li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2300C2FF' stroke-width='2.5'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

/* Placeholder imagen servicio */
.service-detail__image--placeholder {
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.service-placeholder {
    aspect-ratio: 4/3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    border-radius: var(--radius-lg);
    border: 2px dashed var(--border);
    color: var(--muted);
    font-size: .9rem;
    font-weight: 500;
    transition: var(--transition);
}
.service-placeholder--1 { background: linear-gradient(135deg, #FEF3C7 0%, #F8F5F0 100%); color: var(--blue); }
.service-placeholder--2 { background: linear-gradient(135deg, rgba(251,191,36,0.06) 0%, #F8F5F0 100%); color: var(--cyan); }
.service-placeholder--3 { background: linear-gradient(135deg, #FEF3C7 0%, rgba(251,191,36,0.06) 100%); color: var(--blue); }
.service-placeholder--4 { background: linear-gradient(135deg, rgba(10,10,10,0.04) 0%, #F8F5F0 100%); color: var(--navy); }
.service-placeholder--5 { background: linear-gradient(135deg, rgba(251,191,36,0.08) 0%, #FEF3C7 100%); color: var(--cyan); }
.service-placeholder--6 { background: linear-gradient(135deg, #FEF3C7 0%, rgba(10,10,10,0.04) 100%); color: var(--blue); }

/* Proceso */
.process-steps {
    display: flex;
    align-items: flex-start;
    gap: 0;
    justify-content: center;
    flex-wrap: wrap;
}
.process-step {
    flex: 1;
    min-width: 180px;
    max-width: 220px;
    text-align: center;
    padding: 1.5rem 1rem;
}
.process-step__num {
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255,255,255,0.06);
    line-height: 1;
    margin-bottom: .75rem;
}
.process-step__icon {
    width: 56px; height: 56px;
    background: rgba(245,158,11,0.15);
    border: 1px solid rgba(245,158,11,0.3);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyan);
    margin: 0 auto 1rem;
}
.process-step h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: .5rem;
}
.process-step p {
    color: rgba(255,255,255,0.5);
    font-size: .875rem;
    line-height: 1.6;
}
.process-step__arrow {
    color: rgba(255,255,255,0.2);
    align-self: center;
    padding: 0 .5rem;
    margin-top: -2rem;
    flex-shrink: 0;
}

/* CTA servicios */
.services-cta {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
    border: 1px solid rgba(245,158,11,0.2);
    border-radius: var(--radius-lg);
    padding: 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.services-cta::before {
    content: '';
    position: absolute;
    top: -100px; left: 50%;
    transform: translateX(-50%);
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(245,158,11,0.15) 0%, transparent 70%);
    pointer-events: none;
}
.services-cta__inner { position: relative; z-index: 1; }
.services-cta h2 { color: #fff; margin-bottom: .75rem; }
.services-cta > .services-cta__inner > p { color: rgba(255,255,255,0.65); margin-bottom: 2rem; }
.services-cta__btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.services-cta__note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    color: rgba(255,255,255,0.4) !important;
    font-size: .875rem !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .hero__inner              { grid-template-columns: 1fr; gap: 3rem; }
    .hero__visual             { display: none; }
    .services-grid            { grid-template-columns: repeat(2, 1fr); }
    .why-us                   { grid-template-columns: 1fr; gap: 3rem; }
    .why-us__visual           { display: none; }
    .site-footer__grid        { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
    .contact-wrapper          { grid-template-columns: 1fr; gap: 3rem; }
    .service-detail           { grid-template-columns: 1fr; gap: 2.5rem; }
    .service-detail--reverse  { direction: ltr; }
    .service-detail__image--placeholder { display: none; }
    .service-detail__list-grid { grid-template-columns: 1fr; }
    .process-step__arrow      { display: none; }
    .services-cta             { padding: 2.5rem 1.5rem; }
}

@media (max-width: 768px) {
    :root { --header-h: 64px; }

    .section { padding: 4rem 0; }
    .services-grid  { grid-template-columns: 1fr; }
    .gallery-grid   { grid-template-columns: repeat(2, 1fr); }
    .form-row       { grid-template-columns: 1fr; }
    .contact-form-wrap { padding: 1.5rem; }
    .site-footer__grid  { grid-template-columns: 1fr; gap: 2rem; }
    .hero__stats     { flex-direction: column; align-items: flex-start; gap: .75rem; }
    .hero__stat-divider { display: none; }
    .hero__cta       { flex-direction: column; }
    .hero__cta .btn  { width: 100%; }
    .site-footer__bottom { flex-direction: column; text-align: center; }

    /* Mobile menu visible */
    .burger       { display: flex; }
    .site-nav     { display: none; }
    .mobile-nav   { display: block; }
    .site-header__actions .btn--primary { display: none; }
}

@media (max-width: 480px) {
    .gallery-grid { grid-template-columns: 1fr; }
    .hero__title  { font-size: 2.25rem; }
    .error-404__code { font-size: 6rem; }
    .tech-grid { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ============================================================
   SERVICIOS — Archive, single, breadcrumbs, FAQ, CTA, contenido
   ============================================================ */

/* ---- Container narrow (para contenido editorial) ---- */
.container--narrow {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---- Breadcrumbs ---- */
.breadcrumbs {
    padding-top: calc(var(--header-h) + 1.25rem);
    padding-bottom: .75rem;
    font-size: .875rem;
    color: var(--text-2);
    background: var(--bg-alt);
}
.breadcrumbs__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;
}
.breadcrumbs__item {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}
.breadcrumbs__item a {
    color: var(--text-2);
}
.breadcrumbs__item a:hover { color: var(--blue); }
.breadcrumbs__item [aria-current="page"] {
    color: var(--text);
    font-weight: 600;
}
.breadcrumbs__sep {
    color: var(--muted);
    user-select: none;
}

/* ---- Archive: header ---- */
.servicios-header {
    position: relative;
    padding: calc(var(--header-h) + 1.5rem) 0 2.5rem;
    background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
    overflow: hidden;
}
.servicios-header__inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}
.servicios-header__title {
    margin-bottom: 1rem;
}
.servicios-header__desc {
    font-size: 1.125rem;
    color: var(--text-2);
    margin-bottom: 0;
}

.servicios-empty {
    text-align: center;
    padding: 4rem 1rem;
    background: var(--bg-alt);
    border-radius: var(--radius);
}

/* ---- Grid de 3 columnas (variante) ---- */
.services-grid--3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

/* ---- Tarjeta de servicio como link (variante con banner) ---- */
.service-card--link {
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    padding: 0;
}
.service-card--link:hover {
    color: inherit;
}
.service-card__media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
}
.service-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}
.service-card--link:hover .service-card__media img {
    transform: scale(1.03);
}
.service-card__body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.service-card__cta {
    margin-top: auto;
    padding-top: 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: var(--blue);
    font-weight: 600;
    font-size: .9375rem;
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
}
.service-card--link:hover .service-card__cta { gap: .65rem; }

/* ---- Hero del single servicio ---- */
.servicio-hero {
    padding: calc(var(--header-h) + 1.5rem) 0 3rem;
    background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
}
.servicio-hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.servicio-hero__title {
    margin-top: .75rem;
    margin-bottom: 1rem;
}
.servicio-hero__subtitle {
    font-size: 1.1875rem;
    color: var(--text-2);
    margin-bottom: 2rem;
}
.servicio-hero__cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.servicio-hero__media {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.servicio-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

/* ---- Cuerpo del servicio (contenido editable) ---- */
.servicio-body {
    padding: 4rem 0 3rem;
}
.servicio-content {
    font-size: 1.0625rem;
    color: var(--text);
}
.servicio-content > * + * { margin-top: 1.25rem; }
.servicio-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-top: .5rem;
}
.servicio-content h3 {
    margin-top: 1.75rem;
    margin-bottom: .75rem;
}
.servicio-content p {
    font-size: 1.0625rem;
    line-height: 1.75;
}
.servicio-content p.lead,
.servicio-content .lead {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text);
    font-weight: 500;
}
.servicio-content ul,
.servicio-content ol {
    margin: 1.25rem 0 1.25rem 0;
    padding-left: 0;
}
.servicio-content ul li,
.servicio-content ol li {
    color: var(--text);
    font-size: 1.0625rem;
    line-height: 1.7;
    margin-bottom: .5rem;
}

/* ---- Lista con check (envy-list--check) ---- */
.envy-list--check {
    list-style: none;
    padding-left: 0 !important;
}
.envy-list--check li {
    position: relative;
    padding-left: 2rem;
}
.envy-list--check li::before {
    content: '';
    position: absolute;
    left: 0;
    top: .55em;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--blue-light) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230057FF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/12px no-repeat;
    flex-shrink: 0;
}

/* ---- Lista de pasos (envy-steps) ---- */
.envy-steps {
    list-style: none;
    counter-reset: step;
    padding-left: 0 !important;
}
.envy-steps li {
    counter-increment: step;
    position: relative;
    padding-left: 3rem;
    margin-bottom: 1rem !important;
}
.envy-steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: .9375rem;
}

/* ---- FAQ ---- */
.faq__list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}
.faq__item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    transition: var(--transition);
}
.faq__item[open] {
    border-color: var(--blue);
    box-shadow: var(--shadow);
}
.faq__q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 600;
    font-size: 1.0625rem;
    color: var(--text);
    list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__chevron {
    flex-shrink: 0;
    color: var(--blue);
    transition: var(--transition);
}
.faq__item[open] .faq__chevron { transform: rotate(180deg); }
.faq__a {
    padding-top: 1rem;
    color: var(--text-2);
    line-height: 1.7;
}
.faq__a p { color: var(--text-2); }
.faq__a p + p { margin-top: .75rem; }

/* ---- Caja CTA reutilizable ---- */
.cta-box {
    background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 100%);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
}
.cta-box h2 {
    color: #fff;
    margin-bottom: .75rem;
}
.cta-box p {
    color: rgba(255,255,255,0.85);
    font-size: 1.0625rem;
    max-width: 580px;
    margin: 0 auto 1.75rem;
}
.cta-box__actions {
    display: inline-flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}
.cta-box .btn--primary {
    background: #fff;
    color: var(--blue);
}
.cta-box .btn--primary:hover {
    background: var(--bg-alt);
    color: var(--blue-dark);
}
.cta-box .btn--ghost {
    border: 1.5px solid rgba(255,255,255,0.4);
    color: #fff;
}
.cta-box .btn--ghost:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}

/* Gutenberg core/group con clase cta-box: misma apariencia */
.wp-block-group.cta-box {
    margin: 2.5rem 0;
}
.wp-block-group.cta-box .wp-block-buttons {
    justify-content: center;
}
.wp-block-group.cta-box .wp-block-button__link {
    border-radius: var(--radius-sm);
}

.servicio-cta-final {
    padding-top: 2rem;
    padding-bottom: 6rem;
}

/* ---- Paginacion ---- */
.pagination {
    display: flex;
    justify-content: center;
    gap: .5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}
.pagination__item .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 .75rem;
    border-radius: var(--radius-sm);
    background: var(--bg-alt);
    color: var(--text);
    font-weight: 600;
    font-size: .9375rem;
    transition: var(--transition);
}
.pagination__item .page-numbers:hover {
    background: var(--blue-light);
    color: var(--blue);
}
.pagination__item .page-numbers.current {
    background: var(--blue);
    color: #fff;
}

/* ---- Lead paragraph (para Gutenberg) ---- */
.servicio-content p.lead,
p.lead {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text);
    font-weight: 500;
}

/* ---- Responsive servicios ---- */
@media (max-width: 1024px) {
    .services-grid--3 { grid-template-columns: repeat(2, 1fr); }
    .servicio-hero__inner { grid-template-columns: 1fr; }
    .servicio-hero__media { order: -1; max-width: 520px; margin: 0 auto; }
}

@media (max-width: 640px) {
    .services-grid--3 { grid-template-columns: 1fr; }
    .servicios-header { padding: calc(var(--header-h) + 1.5rem) 0 3rem; }
    .servicios-header__title { font-size: 2rem; }
    .servicio-hero { padding: calc(var(--header-h) + 1.5rem) 0 3rem; }
    .servicio-hero__cta { flex-direction: column; }
    .servicio-hero__cta .btn { width: 100%; }
    .cta-box { padding: 2.5rem 1.5rem; }
    .cta-box__actions { flex-direction: column; width: 100%; }
    .cta-box__actions .btn { width: 100%; }
    .breadcrumbs__list { font-size: .8125rem; }
}

/* ============================================================
   BLOG — Archive y single post
   ============================================================ */

/* ---- Blog archive header ---- */
.blog-header {
    padding: calc(var(--header-h) + 1.5rem) 0 2.5rem;
    background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
    text-align: center;
}
.blog-header__inner {
    max-width: 720px;
    margin: 0 auto;
}
.blog-header__title {
    margin-bottom: 1rem;
}
.blog-header__desc {
    font-size: 1.125rem;
    color: var(--text-2);
}

/* ---- Blog grid ---- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.blog-card {
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color .35s ease;
    position: relative;
}
.blog-card:hover {
    border-color: rgba(251,191,36,0.5);
}
.blog-card__media {
    display: block;
    aspect-ratio: 16 / 10;
    background: var(--bg-alt);
    overflow: hidden;
}
.blog-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.blog-card:hover .blog-card__media img { transform: scale(1.04); }
.blog-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
}
.blog-card__body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    flex: 1;
}
.blog-card__cat {
    align-self: flex-start;
    font-family: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--blue);
    background: var(--blue-light);
    padding: .25rem .65rem;
    border-radius: 999px;
}
.blog-card__cat:hover { background: rgba(245,158,11,0.18); }
.blog-card__title {
    font-size: 1.25rem;
    line-height: 1.3;
    color: var(--text);
}
.blog-card__title a { color: inherit; }
.blog-card__title a:hover { color: var(--blue); }
.blog-card__excerpt {
    font-size: .9375rem;
    line-height: 1.6;
    color: var(--text-2);
}
.blog-card__meta {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    font-family: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .75rem;
    color: var(--muted);
}

.blog-empty {
    text-align: center;
    padding: 4rem 1rem;
    background: var(--bg-alt);
    border-radius: var(--radius);
    max-width: 620px;
    margin: 0 auto;
}

/* ---- Single post ---- */
.post-hero {
    padding: calc(var(--header-h) + 1.5rem) 0 2rem;
    background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
    text-align: center;
}
.post-hero__meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}
.post-hero__meta .badge { margin-bottom: 0; }
.post-hero__date,
.post-hero__reading {
    font-family: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .8125rem;
    color: var(--text-2);
}
.post-hero__date::before { content: '\2022'; margin-right: .75rem; color: var(--muted); }
.post-hero__reading::before { content: '\2022'; margin-right: .75rem; color: var(--muted); }
.post-hero__title {
    margin-bottom: 1rem;
}
.post-hero__excerpt {
    font-size: 1.1875rem;
    color: var(--text-2);
    max-width: 700px;
    margin: 0 auto;
}

.post-thumbnail {
    margin: 2rem auto 3rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.post-thumbnail img { width: 100%; height: auto; display: block; }

.post-article {
    padding-bottom: 4rem;
}
.post-content {
    padding: 2rem 0;
}
.post-tags {
    margin-top: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}
.post-tag {
    font-size: .8125rem;
    color: var(--text-2);
    background: var(--bg-alt);
    padding: .35rem .75rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.post-tag:hover {
    background: var(--blue-light);
    color: var(--blue);
}

@media (max-width: 1024px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .blog-grid { grid-template-columns: 1fr; }
    .blog-header { padding: calc(var(--header-h) + 1.5rem) 0 2.5rem; }
    .post-hero  { padding: calc(var(--header-h) + 1.5rem) 0 1.5rem; }
    .post-hero__meta { gap: .35rem; }
}

/* ============================================================
   PORTFOLIO single - proyecto individual
   ============================================================ */
.portfolio-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem 2.5rem;
    margin-top: 1.5rem;
    list-style: none;
    padding: 0;
}
.portfolio-meta li {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    align-items: center;
    min-width: 80px;
}
.portfolio-meta__label {
    font-family: 'Geist Mono', ui-monospace, monospace;
    font-size: .7rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}
.portfolio-meta__value {
    font-family: 'Geist', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

.portfolio-cover {
    margin: 2rem 0 1rem;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.portfolio-cover__img {
    width: 100%;
    height: auto;
    display: block;
}

.portfolio-nav {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 1.75rem 0;
    background: var(--bg-alt);
}
.portfolio-nav__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.portfolio-nav__link {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    padding: 1rem;
    border-radius: var(--radius-sm);
    transition: background .2s ease;
}
.portfolio-nav__link:hover {
    background: rgba(245,158,11,0.08);
}
.portfolio-nav__link--prev { text-align: left; }
.portfolio-nav__link--next { text-align: right; }
.portfolio-nav__dir {
    font-family: 'Geist Mono', ui-monospace, monospace;
    font-size: .7rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}
.portfolio-nav__title {
    font-family: 'Geist', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

@media (max-width: 640px) {
    .portfolio-nav__inner { grid-template-columns: 1fr; gap: .5rem; }
    .portfolio-nav__link--next { text-align: left; }
    .portfolio-meta { gap: 1rem 2rem; }
}

/* ============================================================
   MOBILE REFINEMENTS — pasada de ajustes finos
   ============================================================ */

@media (max-width: 768px) {
    /* Containers mas justos */
    .container,
    .container--narrow { padding-left: 1.25rem; padding-right: 1.25rem; }

    /* Section padding mas compacto */
    .section { padding: 3.5rem 0; }

    /* ---- Hero del home ---- */
    /* Mantenemos altura del viewport para que el scroll indicator sea visible */
    .hero {
        min-height: 100vh;
        min-height: 100svh;
        padding-top: var(--header-h);
        padding-bottom: 4rem;
    }
    .hero__inner { padding: 1rem 0; gap: 1.5rem; }
    .hero__badge { font-size: .7rem; padding: .3rem .85rem; margin-bottom: 1rem; }
    .hero__title { font-size: clamp(1.875rem, 8vw, 2.5rem); margin-bottom: 1rem; }
    .hero__desc { font-size: 1rem; margin-bottom: 1.5rem; line-height: 1.6; }
    .hero__cta { margin-bottom: 1.5rem; }
    .hero__stats { gap: .75rem; }
    .hero__stat-value { font-size: 1.375rem; }
    .hero__scroll {
        bottom: 1rem;
        width: 32px; height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .hero__scroll svg { width: 18px; height: 18px; }

    /* ---- Section header ---- */
    .section-header { margin-bottom: 2.5rem; }
    .section-header h2 { font-size: clamp(1.5rem, 6vw, 2rem); }

    /* ---- Servicios archive ---- */
    .servicios-header { padding: calc(var(--header-h) + 1.25rem) 0 2rem; }
    .servicios-header__title { font-size: clamp(1.875rem, 7vw, 2.25rem); }
    .servicios-header__desc { font-size: 1rem; }

    /* ---- Single servicio ---- */
    .servicio-hero { padding: calc(var(--header-h) + 1.25rem) 0 2.5rem; }
    .servicio-hero__inner { gap: 1.5rem; }
    .servicio-hero__title { font-size: clamp(1.75rem, 7vw, 2.25rem); }
    .servicio-hero__subtitle { font-size: 1.0625rem; margin-bottom: 1.5rem; }
    .servicio-hero__media { max-width: 100%; }
    .servicio-body { padding: 2.5rem 0 1.5rem; }
    .servicio-content > * + * { margin-top: 1rem; }
    .servicio-content h2 { margin-top: 2rem; }

    /* ---- Service cards mas compactas ---- */
    .service-card { padding: 1.5rem; }
    .service-card__icon { width: 52px; height: 52px; margin-bottom: 1rem; }
    .service-card__title { font-size: 1.0625rem; }

    /* ---- Blog ---- */
    .blog-header { padding: calc(var(--header-h) + 1.25rem) 0 2.5rem; }
    .blog-header__title { font-size: clamp(1.875rem, 7vw, 2.5rem); }
    .blog-header__desc { font-size: 1rem; }
    .blog-grid { gap: 1.25rem; }
    .blog-card__body { padding: 1.25rem; gap: .6rem; }
    .blog-card__title { font-size: 1.125rem; }

    /* ---- Single post ---- */
    .post-hero { padding: calc(var(--header-h) + 1.25rem) 0 1.5rem; }
    .post-hero__title { font-size: clamp(1.75rem, 6vw, 2.25rem); }
    .post-hero__excerpt { font-size: 1.0625rem; }
    .post-thumbnail { margin: 1.5rem auto 2rem; }

    /* ---- CTA box ---- */
    .cta-box { padding: 2.25rem 1.25rem; }
    .cta-box h2 { font-size: 1.5rem; }
    .cta-box p { font-size: 1rem; }
    .servicio-cta-final { padding-top: 1.5rem; padding-bottom: 3rem; }

    /* ---- FAQ ---- */
    .faq__item { padding: 1rem 1.25rem; }
    .faq__q { font-size: 1rem; gap: .75rem; }
    .faq__a { font-size: .9375rem; }

    /* ---- Contact form: prevenir zoom iOS ---- */
    .form-input,
    .form-textarea,
    .form-select {
        font-size: 16px;
    }
    .contact-form-wrap { padding: 1.5rem; }

    /* ---- Mobile nav: touch targets adecuados ---- */
    .mobile-nav__list a {
        padding: 1.1rem 1.25rem;
        min-height: 52px;
        font-size: 1.0625rem;
    }
    .mobile-nav { padding: 1.5rem 1.25rem; }

    /* ---- WhatsApp float mas compacto ---- */
    .whatsapp-float {
        width: 54px;
        height: 54px;
        bottom: 1rem;
        right: 1rem;
    }
    .whatsapp-float svg { width: 24px; height: 24px; }

    /* ---- Footer ---- */
    .site-footer { padding: 3rem 0 0; }
    .site-footer__grid { padding-bottom: 2.5rem; gap: 2rem; }
    .site-footer__logo img { max-width: 180px; }
    .site-footer__bottom { padding: 1.5rem 0; gap: .5rem; text-align: center; }

    /* ---- Logo header mas chico ---- */
    .site-header__logo img { height: 40px; }

    /* ---- Botones lg mas chicos en mobile ---- */
    .btn--lg { padding: .9rem 1.5rem; font-size: 1rem; }

    /* ---- Pagination ---- */
    .pagination__item .page-numbers {
        min-width: 36px; height: 36px;
        font-size: .875rem;
    }
}

@media (max-width: 480px) {
    :root { --header-h: 60px; }

    .container,
    .container--narrow { padding-left: 1rem; padding-right: 1rem; }

    .section { padding: 2.75rem 0; }

    /* Hero: titulo aun mas chico */
    .hero__title { font-size: 1.875rem; }
    .hero__desc { font-size: .9375rem; }

    /* Cards en archive: padding aun mas compacto */
    .service-card__body { padding: 1.25rem; }
    .blog-card__body    { padding: 1rem; }

    /* CTA box minimo padding */
    .cta-box { padding: 2rem 1rem; }
    .cta-box h2 { font-size: 1.375rem; }

    /* WhatsApp float minimo */
    .whatsapp-float {
        width: 50px; height: 50px;
        bottom: .75rem; right: .75rem;
    }

    /* Logo header */
    .site-header__logo img { height: 36px; }

    /* Mobile nav padding */
    .mobile-nav__list a { padding: 1rem 1.25rem; min-height: 48px; }
}

/* ============================================================
   CARD HOVER — minimalista flat
   Solo border + color del titulo + flecha del CTA + scale leve imagen
   ============================================================ */
.service-card--link .service-card__title,
.blog-card .blog-card__title a {
    transition: color .25s ease;
}
.service-card--link:hover .service-card__title,
.blog-card:hover .blog-card__title a {
    color: var(--blue);
}
