/* ==========================================================================
   ELEMSIN — Sistema de diseño corporativo
   Paleta: blanco (#ffffff), azul corporativo (#0e3c6e), negro (#0a0f14)
   Estilo: ingeniería / editorial, esquinas rectas, hairlines, sin gradientes
   ========================================================================== */

:root {
    --primary:       #0e3c6e;
    --primary-dark:  #0a2c52;
    --primary-deep:  #081c33;
    --primary-light: #1a5aa8;
    --black:         #0a0f14;
    --white:         #ffffff;
    --gray-50:       #f6f8fa;
    --gray-100:      #eef1f5;
    --gray-200:      #e4e8ee;
    --gray-300:      #c7ced8;
    --gray-400:      #8b97a4;
    --gray-500:      #5b6672;
    --gray-700:      #2e3640;
    --gray-900:      #101820;
    --line:          #e4e8ee;
    --wa:            #25d366;
    --wa-dark:       #128c7e;
    --radius:        4px;
    --shadow-sm:     0 1px 2px rgba(10, 44, 82, .06);
    --shadow-md:     0 12px 32px -14px rgba(10, 44, 82, .22);
    --shadow-lg:     0 26px 52px -22px rgba(10, 44, 82, .30);
    --font-main:     'Roboto', Arial, Helvetica, sans-serif;
    --font-head:     'Roboto Condensed', 'Roboto', Arial, sans-serif;
    --container:     1200px;
    --header-h:      74px;
}

/* ---------- Reset básico ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.65;
    color: var(--gray-900);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--primary-light); }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    color: var(--black);
    line-height: 1.18;
    margin: 0 0 .5em;
    font-weight: 700;
    letter-spacing: .01em;
}
p { margin: 0 0 1em; }
iframe { max-width: 100%; border: 0; }
svg { flex-shrink: 0; }

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 2000;
    background: var(--primary); color: #fff; padding: 10px 16px;
}
.skip-link:focus { left: 0; }

/* ---------- Utilidades ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* Etiqueta pequeña de sección (kicker) */
.kicker {
    display: block; font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
    font-weight: 600; color: var(--primary); margin-bottom: 10px;
}

/* Botones: mayúsculas, bordes redondeados, estilo corporativo */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 30px; border-radius: 8px; font-weight: 600; font-size: 13px;
    letter-spacing: .08em; text-transform: uppercase; line-height: 1; cursor: pointer;
    border: 1px solid transparent; text-align: center;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: var(--gray-100); color: var(--primary-dark); }
.btn-cta {
    background: linear-gradient(135deg, var(--black) 0%, var(--primary) 100%);
    color: #fff; padding: 10px 18px; font-size: 12px;
}
.btn-cta:hover { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%); color: #fff; }
.navbar .btn-cta { color: #fff; }
.navbar .btn-cta:hover { color: #fff; }
.btn-outline.btn-on-dark { border-color: rgba(255,255,255,.85); color: #fff; }
.btn-outline.btn-on-dark:hover { background: #fff; color: var(--primary); }

.section { padding: 76px 0; }
.section-alt { background: var(--gray-50); }
.section-dark { background: var(--primary); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }

/* Cabeceras de sección: alineadas a la izquierda con regla de acompañamiento */
.section-head { max-width: 780px; margin: 0 0 48px; text-align: left; }
.section-eyebrow {
    display: inline-flex; align-items: center; gap: 12px;
    font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
    font-weight: 600; color: var(--primary); margin-bottom: 14px;
}
.section-eyebrow::before { content: ""; width: 30px; height: 2px; background: var(--primary); flex: none; }
.section-title { font-size: clamp(28px, 4vw, 40px); margin-bottom: 14px; }
.section-subtitle { color: var(--gray-500); font-size: 17px; max-width: 660px; }
.section-dark .section-eyebrow { color: #9ec3ea; }
.section-dark .section-eyebrow::before { background: #9ec3ea; }
.section-dark .section-subtitle { color: rgba(255,255,255,.85); }

/* Cabecera de página interior: imagen de fondo con overlay azul para legibilidad */
.page-hero {
    background-color: var(--primary-dark); background-size: cover; background-position: center;
    background-repeat: no-repeat; color: #fff; padding: 58px 0;
    position: relative; overflow: hidden; border-bottom: 2px solid var(--primary-light);
}
.page-hero::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(8,28,51,.92) 0%, rgba(8,28,51,.62) 55%, rgba(8,28,51,.35) 100%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(30px, 5vw, 46px); margin-bottom: 8px; }
.page-hero .breadcrumb { color: rgba(255,255,255,.82); font-size: 14px; }
.page-hero .breadcrumb a { color: #fff; text-decoration: underline; }
.page-hero .breadcrumb a:hover { color: #bfd6f0; }

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

/* ==========================================================================
   Barra superior
   ========================================================================== */
.topbar { background: var(--primary); color: #fff; font-size: 12.5px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; flex-wrap: wrap; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.topbar-link { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,.92); }
.topbar-link:hover { color: #fff; text-decoration: underline; }

/* ==========================================================================
   Navegación principal
   ========================================================================== */
.navbar { background: #fff; position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid var(--line); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 20px; }
.site-logo img { width: 205px; }

.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-item > a {
    display: inline-flex; align-items: center; gap: 5px; padding: 12px 14px;
    font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
    font-size: 14px; letter-spacing: .4px; color: var(--black);
}
.nav-item > a:hover,
.nav-item.active > a { color: var(--primary); }
.nav-item > a::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px;
    background: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav-item:hover > a::after,
.nav-item.active > a::after { transform: scaleX(1); }

/* Desplegables */
.dropdown {
    position: absolute; top: 100%; left: 0; min-width: 300px; background: #fff;
    border: 1px solid var(--line); border-top: 2px solid var(--primary);
    box-shadow: var(--shadow-md); padding: 8px 0; opacity: 0; visibility: hidden;
    transform: translateY(10px); transition: all .22s ease; z-index: 1200;
}
.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown li a {
    display: block; padding: 10px 20px; color: var(--gray-700); font-size: 14.5px;
}
.dropdown li a:hover, .dropdown li a.active { background: var(--gray-50); color: var(--primary); }
.dropdown .active { color: var(--primary); }

/* Botón hamburguesa (móvil) */
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--primary); border-radius: 2px; transition: all .25s ease; }

/* ==========================================================================
   Slider hero (portada)
   ========================================================================== */
.hero { position: relative; height: clamp(380px, 62vh, 640px); overflow: hidden; background: var(--primary-dark); }
.hero-slide {
    position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1s ease;
    background-size: cover; background-position: center;
    display: flex; align-items: center;
}
.hero-slide.is-active { opacity: 1; visibility: visible; z-index: 2; }
.hero-slide::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.5) 38%, rgba(0,0,0,.12) 68%, rgba(0,0,0,0) 85%);
}
.hero-content { position: relative; z-index: 3; max-width: 940px; color: #fff; padding: 40px 0; margin-right: auto; }
.hero-title {
    font-family: var(--font-head); font-weight: 700; color: #fff;
    font-size: clamp(30px, 5.2vw, 54px); line-height: 1.08; margin-bottom: 16px;
    text-shadow: 0 1px 3px rgba(8,28,51,.6), 0 3px 12px rgba(8,28,51,.4);
}
.hero-text { font-size: clamp(15px, 1.6vw, 18px); color: rgba(255,255,255,.95); max-width: 580px; margin-bottom: 28px; text-shadow: 0 1px 3px rgba(8,28,51,.65); }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-arrows button {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.28); color: #fff;
    width: 44px; height: 44px; border-radius: 2px; cursor: pointer;
    transition: background .2s ease;
}
.hero-arrows button:hover { background: var(--primary); }
.hero-prev { left: 18px; }
.hero-next { right: 18px; }
.hero-dots { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 5; display: flex; gap: 10px; }
.hero-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: rgba(255,255,255,.4); cursor: pointer; transition: all .22s ease; }
.hero-dots button.is-active { background: #fff; }

/* ==========================================================================
   Secciones de la portada
   ========================================================================== */

/* Directorio de servicios (editorial, indexado) */
.services-directory { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; }
.service-row {
    display: grid; grid-template-columns: 52px 1fr; gap: 18px;
    padding: 30px 0; border-top: 1px solid var(--line); align-items: start;
}
.service-row:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
.service-row__num {
    font-family: var(--font-head); font-size: 15px; font-weight: 700;
    color: var(--gray-300); padding-top: 3px;
}
.service-row__cat { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--gray-400); margin-bottom: 6px; }
.service-row h3 { font-size: 21px; margin-bottom: 8px; }
.service-row p { color: var(--gray-500); font-size: 15px; margin: 0 0 14px; }
.service-row__link {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--primary);
}
.service-row__link svg { transition: transform .2s ease; }
.service-row__link:hover { color: var(--black); }
.service-row__link:hover svg { transform: translateX(4px); }

/* Tarjetas de servicio (páginas interiores) */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; display: flex; flex-direction: column;
    transition: box-shadow .25s ease, transform .25s ease;
}
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.service-card__img { height: 200px; overflow: hidden; background: var(--gray-100); border-bottom: 1px solid var(--line); }
.service-card__img img { width: 100%; height: 100%; object-fit: cover; }
.service-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.service-card__body h3 { font-size: 20px; margin-bottom: 8px; }
.service-card__body p { color: var(--gray-500); font-size: 14.5px; flex: 1; margin: 0 0 14px; }
.service-card__link {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--primary);
}
.service-card__link:hover { color: var(--black); }

/* Panel intro fusión */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split__media { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.split__media img { width: 100%; }
.split__body h2 { font-size: clamp(26px, 3.6vw, 38px); }
.split__body ul.checks li { display: flex; gap: 10px; margin-bottom: 10px; color: var(--gray-700); }
.checks svg { color: var(--primary); margin-top: 4px; }

/* Franja de valor: columnas separadas por hairlines */
.value-strip { display: grid; grid-template-columns: repeat(3, 1fr); }
.value-card { padding: 22px 0 0; position: relative; }
.value-card::before { content: ""; display: block; width: 30px; height: 2px; background: var(--primary); margin-bottom: 20px; }
.value-card + .value-card { padding-left: 44px; border-left: 1px solid var(--line); }
.value-card h3 { font-size: 20px; margin-bottom: 8px; }
.value-card p { color: var(--gray-500); font-size: 14.5px; margin: 0; }

/* Franja de datos técnicos dentro del panel de fusión (.split) */
.stat-strip {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    margin: 8px 0 28px;
}
.stat-item {
    padding: 18px 18px 18px 0; display: flex; flex-direction: column; gap: 4px;
}
.stat-item + .stat-item { padding-left: 18px; border-left: 1px solid var(--line); }
.stat-item__value {
    font-family: var(--font-head); font-weight: 700; color: var(--primary);
    font-size: clamp(20px, 2.4vw, 26px); line-height: 1;
}
.stat-item__label { font-size: 12.5px; color: var(--gray-500); letter-spacing: .01em; }
@media (max-width: 600px) {
    .stat-strip { grid-template-columns: 1fr; }
    .stat-item + .stat-item { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* Franja de certificaciones en portada (clara, tarjetas tipo ficha) */
.cert-banner { background: var(--gray-50); color: var(--gray-900); padding: 76px 0; }
.cert-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.cert-item {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 30px 26px; transition: border-color .25s ease, box-shadow .25s ease;
}
.cert-item:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.cert-item__tag { display: block; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--primary); margin-bottom: 10px; }
.cert-item h3 { color: var(--black); font-size: 19px; margin: 0 0 6px; }
.cert-item p { color: var(--gray-500); font-size: 13.5px; margin: 0; }
.cert-banner__cta { margin-top: 40px; }

/* CTA inferior: claro, con hairline superior */
.cta-band { background: #fff; border-top: 1px solid var(--line); color: var(--gray-900); padding: 56px 0; }
.cta-band h2 { color: var(--black); font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 6px; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.cta-inner > div:first-child { flex: 1 1 380px; }
.cta-band__text { color: var(--gray-500); margin: 0; font-size: 15.5px; }

/* ==========================================================================
   Contenido de páginas interiores
   ========================================================================== */
.content-wrap { padding: 64px 0 80px; }
.content-area { max-width: 900px; margin: 0 auto; }
.content-area h2 { font-size: 27px; margin-top: 32px; color: var(--primary); letter-spacing: .01em; }
.content-area h3 { font-size: 22px; margin-top: 24px; }
.content-area ul, .content-area ol { margin: 0 0 1.1em 1.2em; list-style: disc; }
.content-area ol { list-style: decimal; }
.content-area li { margin-bottom: 8px; color: var(--gray-700); }
.content-area blockquote {
    border-left: 3px solid var(--primary); background: var(--gray-50);
    margin: 24px 0; padding: 18px 22px;
}

/* Listas de características: filas editoriales con hairline */
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 44px; margin: 28px 0; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.feature-list svg { color: var(--primary); margin-top: 4px; }
.feature-list li strong { color: var(--black); }

/* Galería / tarjetas de imagen */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.photo-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.photo-card img { width: 100%; height: 230px; object-fit: cover; }
.photo-card figcaption { padding: 14px 18px; font-size: 14px; color: var(--gray-700); border-top: 1px solid var(--line); }

/* Galería de certificados: solo nombre + icono, la imagen se abre al presionar */
.cert-gallery { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin: 30px 0 8px; }
.cert-thumb {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    text-align: center; padding: 26px 16px; cursor: pointer;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    font-family: var(--font-main);
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.cert-thumb:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.cert-thumb__icon {
    display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
    background: var(--gray-50); border: 1px solid var(--line); color: var(--primary);
    transition: background .25s ease, color .25s ease;
}
.cert-thumb:hover .cert-thumb__icon { background: var(--primary); color: #fff; }
.cert-thumb__title { font-family: var(--font-head); font-weight: 700; font-size: 16px; color: var(--black); line-height: 1.2; }
.cert-thumb__sub { font-size: 11px; color: var(--gray-500); text-transform: uppercase; letter-spacing: .08em; }

/* Lightbox para ver el certificado completo */
.lightbox {
    position: fixed; inset: 0; z-index: 2000; background: rgba(8,20,33,.9);
    display: flex; align-items: center; justify-content: center; padding: 28px;
}
.lightbox[hidden] { display: none; }
.lightbox__figure { max-width: min(900px, 94vw); margin: 0; }
.lightbox img { max-height: 84vh; width: auto; margin: 0 auto; border: 4px solid #fff; border-radius: 4px; box-shadow: var(--shadow-lg); }
.lightbox__figcaption { text-align: center; color: #fff; margin-top: 14px; font-size: 14px; }
.lightbox__close {
    position: absolute; top: 18px; right: 22px; width: 46px; height: 46px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.12); color: #fff;
    font-size: 22px; line-height: 1; cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
}
.lightbox__close:hover { background: var(--primary); border-color: var(--primary); }

/* ==========================================================================
   Formularios
   ========================================================================== */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 500; font-size: 14px; color: var(--gray-900); margin-bottom: 6px; }
.form-group .req { color: #c0392b; }
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%; padding: 12px 14px; border: 1px solid var(--gray-300); border-radius: 3px;
    font-family: var(--font-main); font-size: 15px; color: var(--gray-900); background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(14,60,110,.12); }
.form-group textarea { min-height: 130px; resize: vertical; }
.form-group .hint { font-size: 12.5px; color: var(--gray-500); margin-top: 5px; }
.form-note { font-size: 12.5px; color: var(--gray-500); margin: -6px 0 18px; }
.checkbox-line { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; color: var(--gray-700); }
.checkbox-line input { width: 16px; height: 16px; margin-top: 3px; flex: none; }
.checkbox-line label { font-weight: 400; margin: 0; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.form-success { display: none; background: #e8f7ee; color: #1c7c3e; border: 1px solid #b7e4c6; padding: 14px 16px; margin-bottom: 18px; }
.form-success.show { display: block; }

/* ==========================================================================
   Página de contacto
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
.contact-info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.contact-info-card .ci-head { background: var(--primary); color: #fff; padding: 22px 24px; border-bottom: 2px solid var(--primary-light); }
.contact-info-card .ci-head h3 { color: #fff; margin: 0; font-size: 20px; }
.ci-body { padding: 24px; }
.ci-body li { display: flex; gap: 12px; margin-bottom: 16px; align-items: flex-start; color: var(--gray-700); }
.ci-body svg { color: var(--primary); margin-top: 3px; }
.contact-map { margin-top: 24px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.contact-map iframe { width: 100%; height: 300px; display: block; }

/* ==========================================================================
   Pie de página
   ========================================================================== */
.site-footer { background: var(--primary-deep); color: rgba(255,255,255,.8); border-top: 2px solid var(--primary-light); }
.footer-grid {
    display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 48px; padding: 64px 24px 44px;
    max-width: var(--container); margin: 0 auto;
}
.footer-logo { width: 200px; margin-bottom: 18px; display: block; }
.footer-col p { font-size: 14px; color: rgba(255,255,255,.72); }
.footer-title {
    color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .12em;
    font-weight: 600; margin-bottom: 18px; padding-bottom: 10px; position: relative;
}
.footer-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 30px; height: 2px; background: var(--primary-light); }
.footer-links li, .footer-contact li { margin-bottom: 9px; }
.footer-links a, .footer-contact a { color: rgba(255,255,255,.78); font-size: 14px; }
.footer-links a:hover, .footer-contact a:hover { color: #fff; text-decoration: underline; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.footer-contact svg { color: #fff; margin-top: 3px; }
.social-links { display: flex; gap: 10px; margin-top: 20px; }
.social-links a {
    display: grid; place-items: center; width: 40px; height: 40px;
    border: 1px solid rgba(255,255,255,.22); border-radius: 2px; color: #fff;
    transition: background .2s ease, border-color .2s ease;
}
.social-links a:hover { background: var(--primary-light); border-color: var(--primary-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding: 18px 0; }
.footer-bottom-inner {
    max-width: var(--container); margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
    font-size: 13.5px; color: rgba(255,255,255,.68);
}
.footer-bottom a { color: rgba(255,255,255,.85); text-decoration: underline; }

/* ==========================================================================
   Botón flotante de WhatsApp
   ========================================================================== */
.wa-float { position: fixed; bottom: 22px; right: 22px; z-index: 1500; }
.wa-float__link {
    display: grid; place-items: center; width: 68px; height: 68px;
    background: var(--wa); color: #fff; border-radius: 50%;
    box-shadow: 0 8px 22px rgba(37,211,102,.35);
    transition: background .2s ease, transform .2s ease;
}
.wa-float__link:hover { background: var(--wa-dark); color: #fff; transform: translateY(-2px); }
.wa-float__icon { width: 34px; height: 34px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .service-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .split { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .topbar-right .topbar-link:nth-child(2) { display: none; }
}

@media (max-width: 900px) {
    .nav-toggle { display: flex; }
    .main-nav {
        position: fixed; top: 0; right: -320px; width: 300px; height: 100%;
        background: #fff; box-shadow: var(--shadow-lg); z-index: 1300;
        padding: 90px 24px 30px; transition: right .3s ease; overflow-y: auto;
    }
    .main-nav.is-open { right: 0; }
    .nav-menu { flex-direction: column; align-items: stretch; gap: 2px; }
    .nav-item > a { padding: 13px 6px; width: 100%; justify-content: space-between; }
    .nav-item > a::after { display: none; }
    .dropdown {
        position: static; opacity: 1; visibility: visible; transform: none;
        border: 0; border-top: 0; box-shadow: none; padding: 0 0 6px; display: none; min-width: 0;
    }
    .nav-item.is-open > .dropdown { display: block; }
    .dropdown li a { padding: 10px 14px; }
    .nav-cta { margin-top: 14px; }
    .hero-arrows button { display: none; }
    .cert-grid { grid-template-columns: repeat(2, 1fr); }
    .cert-gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 700px) {
    .services-directory { grid-template-columns: 1fr; }
    .service-row:nth-last-child(-n+2) { border-bottom: 0; }
    .service-row:last-child { border-bottom: 1px solid var(--line); }
    .feature-list { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .section { padding: 54px 0; }
    .service-grid { grid-template-columns: 1fr; }
    .value-strip { grid-template-columns: 1fr; }
    .value-card + .value-card { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); padding-top: 28px; }
    .cert-grid { grid-template-columns: 1fr; }
    .cert-gallery { grid-template-columns: repeat(2, 1fr); }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom-inner { justify-content: center; text-align: center; }
    .topbar-left { display: none; }
    .topbar-inner { justify-content: center; }

    .page-hero { padding: 44px 0; }
    .content-wrap { padding: 48px 0 60px; }
    .form-card { padding: 26px 20px; }
    .split { gap: 32px; }
    .contact-grid { gap: 28px; }
    .site-logo img { width: 168px; }
    .hero-content { padding: 28px 0; }
    .cert-thumb { padding: 20px 12px; }
    .section-head { margin-bottom: 36px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { width: 100%; }
    .cta-inner .btn { width: 100%; }
    .form-card .btn { width: 100%; }
    .hero-title { font-size: clamp(26px, 8.2vw, 34px); }
    .hero-text { font-size: 15px; }
    .page-hero h1 { font-size: clamp(24px, 7.5vw, 32px); }
    .page-hero { padding: 38px 0; }
    .hero-dots { bottom: 16px; }
    .wa-float { bottom: 16px; right: 16px; }
    .wa-float__link { width: 60px; height: 60px; }
    .wa-float__icon { width: 30px; height: 30px; }
}

/* ---------- Animaciones de aparición ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal="left"] { transform: translateX(-28px); }
[data-reveal="right"] { transform: translateX(28px); }
[data-reveal].is-visible[data-reveal="left"],
[data-reveal].is-visible[data-reveal="right"] { transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
}