/* ═══════════════════════════════════════════════════════════════════
   SERVICIOS PRO · Stylesheet principal
   Sistema de diseño: tipografía + espacios + color. Sin iconos.
   ═══════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font: 16px/1.65 'Inter', system-ui, -apple-system, sans-serif;
  color: #0f172a;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  /* Sticky footer: body en column, footer queda al final aunque haya poco contenido */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}
/* Footer pegado al final */
.site-footer {
  margin-top: auto;
  flex-shrink: 0;
}
/* Topbar y header tampoco se encojen */
.topbar, .site-header {
  flex-shrink: 0;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .15s; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
::selection { background: var(--brand); color: #fff; }

/* ─── Contenedor ─── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .container { padding: 0 18px; } }

/* ═══ TOPBAR ═══ */
.topbar {
  background: #0f172a;
  color: #cbd5e1;
  font-size: 13px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar-left { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar-link { display: inline-flex; gap: 6px; align-items: center; }
.topbar-label { color: #64748b; text-transform: uppercase; font-size: 11px; letter-spacing: .05em; font-weight: 600; }
.topbar-link:hover { color: #fff; }
.topbar-right { display: flex; gap: 14px; align-items: center; }
.topbar-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #94a3b8;
  transition: color .15s;
}
.topbar-social svg { width: 18px; height: 18px; display: block; }
.topbar-social:hover { color: #fff; }
/* En mobile (≤640px) ocultamos email + horario */
@media (max-width: 640px) {
  .topbar-hide-mobile { display: none; }

  /* Topbar más compacto: ocultar labels (TEL., Email) y reducir tamaños */
  .topbar { padding: 7px 0 !important; }
  .topbar-label { display: none !important; }
  .topbar-link { font-size: 12px !important; gap: 0 !important; }
  .topbar-left {
    gap: 12px !important;
    flex-wrap: nowrap;
    overflow: hidden;
    min-width: 0;
    flex: 1;
  }
  .topbar-link {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
  }

  /* Redes sociales con iconos compactos */
  .topbar-right {
    gap: 10px !important;
    flex-shrink: 0;
  }
  .topbar-social svg {
    width: 16px !important;
    height: 16px !important;
  }
}
/* En tablet (641-980px) solo ocultamos el horario, email queda visible */
@media (min-width: 641px) and (max-width: 980px) {
  .topbar-hide-tablet { display: none; }
}
/* En mobile el horario también oculto */
@media (max-width: 640px) {
  .topbar-hide-tablet { display: none; }
}

/* Mobile chico (<420px): si email es muy largo, mostrar solo teléfono */
@media (max-width: 380px) {
  .topbar-left .topbar-link:nth-child(2) {
    /* Si quieren ocultar email en pantallas muy chicas, descomentar:
       display: none !important; */
  }
  .topbar-link { font-size: 11px !important; }
  .topbar-right { gap: 8px !important; }
  .topbar-social svg { width: 14px !important; height: 14px !important; }
}

/* ═══ HEADER ═══ */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e4e7eb;
  position: sticky; top: 0; z-index: 100;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; gap: 32px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { height: 40px; width: auto; }
.brand-text { font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: #0f172a; }

.site-nav { display: flex; align-items: center; gap: 36px; }
/* Nav inline (desktop): vive dentro del header */
.site-nav-inline { display: flex; align-items: center; gap: 28px; }
.site-nav-inline .nav-list { display: flex; gap: 28px; align-items: center; }

/* Nav mobile (off-canvas): hidden by default, slides in from right */
.site-nav {
  display: none; /* en desktop no existe */
}

.nav-link { font-size: 15px; font-weight: 500; color: #475569; padding: 4px 0; position: relative; }
.nav-link:hover { color: #0f172a; }
.nav-link.is-active { color: var(--brand); }
.nav-link.is-active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -22px; height: 2px; background: var(--brand); }

.nav-cta {
  background: var(--brand); color: #fff; padding: 10px 18px;
  border-radius: 8px; font-weight: 600; font-size: 13.5px;
  transition: all .15s; display: inline-block;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--brand2); color: #fff; transform: translateY(-1px); }

/* En tablet horizontal (981-1100px) achicar más el CTA del nav para que no
   se vea tan invasivo y se note menos sobre el hero */
@media (min-width: 981px) and (max-width: 1100px) {
  .nav-cta {
    padding: 8px 14px;
    font-size: 12.5px;
  }
  .site-nav-inline .nav-list { gap: 22px; }
  .site-nav-inline { gap: 20px; }
  .nav-link { font-size: 14px; }
}

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; background: none; border: none; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #0f172a; transition: .2s; }
.nav-close { display: none; }

@media (max-width: 900px) {
  /* Desktop nav OUT */
  .site-nav-inline { display: none; }

  /* Mobile toggle visible */
  .nav-toggle { display: flex; }

  /* Mobile drawer */
  .site-nav {
    display: flex;
    position: fixed; top: 0; right: -100%; bottom: 0;
    width: min(85%, 340px);
    height: 100vh; height: 100dvh; /* dvh para mobile real-screen */
    background: #fff;
    flex-direction: column; align-items: flex-start;
    padding: 70px 28px 28px;
    gap: 18px;
    transition: right .3s;
    box-shadow: -20px 0 40px rgba(0,0,0,.15);
    z-index: 110;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .site-nav.open { right: 0; }

  .site-nav .nav-close {
    display: flex;
    align-items: center; justify-content: center;
    position: absolute; top: 16px; right: 16px;
    width: 40px; height: 40px;
    background: none; border: none;
    font-size: 28px; line-height: 1;
    cursor: pointer; color: #0f172a;
  }
  .site-nav .nav-list {
    display: flex; flex-direction: column;
    gap: 0; width: 100%; list-style: none;
    padding: 0; margin: 0;
  }
  .site-nav .nav-link {
    padding: 14px 0;
    font-size: 17px; font-weight: 500;
    display: block;
    border-bottom: 1px solid #f1f5f9;
  }
  .site-nav .nav-link.is-active::after { display: none; }
  .site-nav .nav-cta {
    width: 100%; text-align: center;
    margin-top: 12px;
  }
}

/* Backdrop del menú mobile */
.nav-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, .55);
  z-index: 105;
  opacity: 0;
  transition: opacity .25s;
}
.nav-backdrop.is-visible { display: block; opacity: 1; }
body.nav-locked { overflow: hidden; }

/* ═══ WHATSAPP FLOAT ═══ */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,.4);
  transition: transform .15s;
}
.whatsapp-float:hover { transform: scale(1.08); color: #fff; }

/* ═══ BUTTONS ═══ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; border-radius: 9px; font-weight: 600; font-size: 15px;
  transition: all .15s; cursor: pointer; font-family: inherit; line-height: 1;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand2); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37,99,235,.3); }
.btn-ghost { background: transparent; color: #0f172a; border: 1.5px solid #e2e8f0; }
.btn-ghost:hover { border-color: #0f172a; background: #0f172a; color: #fff; }
.btn-dark { background: #0f172a; color: #fff; }
.btn-dark:hover { background: #1e293b; color: #fff; }

/* ═══ HERO ═══ */
.hero {
  padding: 80px 0 100px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(37,99,235,.25), transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(245,158,11,.15), transparent 50%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.hero-label {
  display: inline-block; padding: 6px 14px; border-radius: 20px;
  background: rgba(255,255,255,.1); font-size: 13px; font-weight: 500;
  margin-bottom: 20px; letter-spacing: .02em;
}
.hero h1 { font-size: clamp(34px, 5vw, 58px); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; margin-bottom: 22px; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero p.lead { font-size: 18px; color: #cbd5e1; margin-bottom: 32px; max-width: 500px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual { border-radius: 16px; overflow: hidden; aspect-ratio: 4/3; box-shadow: 0 30px 60px rgba(0,0,0,.4); }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 900px) {
  .hero { padding: 60px 0 70px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
}

/* ═══ SECTIONS ═══ */
.section { padding: 90px 0; }
.section-title { text-align: center; max-width: 680px; margin: 0 auto 60px; }
.section-title .kicker { color: var(--brand); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; display: block; margin-bottom: 10px; }
.section-title h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin-bottom: 14px; }
.section-title p { font-size: 17px; color: #64748b; }

/* ═══ STATS ═══ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { padding: 28px; border: 1px solid #e4e7eb; border-radius: 14px; background: #fff; text-align: center; }
.stat-num { font-size: 42px; font-weight: 800; color: var(--brand); letter-spacing: -.03em; line-height: 1; }
.stat-num::after { content: '+'; }
.stat-label { font-size: 14px; color: #64748b; margin-top: 8px; font-weight: 500; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ═══ SERVICES GRID ═══ */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.service-card {
  background: #fff; border: 1px solid #e4e7eb; border-radius: 16px; overflow: hidden;
  transition: all .2s; display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(15,23,42,.08); border-color: var(--brand); }
.service-card-img { aspect-ratio: 16/10; overflow: hidden; background: #f1f5f9; }
.service-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.service-card:hover .service-card-img img { transform: scale(1.05); }
.service-card-body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.service-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; letter-spacing: -.01em; }
.service-card p { color: #64748b; font-size: 15px; margin-bottom: 18px; flex: 1; }
.service-card .service-price { font-size: 14px; color: var(--brand); font-weight: 600; margin-bottom: 14px; }
.service-card .service-link { color: #0f172a; font-weight: 600; font-size: 14px; }
.service-card .service-link::after { content: ' →'; transition: transform .2s; display: inline-block; }
.service-card:hover .service-link::after { transform: translateX(4px); }

/* ═══ SERVICE DETAIL BLOCK (services.php) ═══ */
.service-block { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; padding: 50px 0; border-bottom: 1px solid #f1f5f9; }
.service-block:nth-child(even) .service-block-img { order: 2; }
.service-block-img { border-radius: 14px; overflow: hidden; aspect-ratio: 4/3; }
.service-block-img img { width: 100%; height: 100%; object-fit: cover; }
.service-block h2 { font-size: 32px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 16px; }
.service-block .block-lead { color: #475569; margin-bottom: 22px; font-size: 16px; }
.service-features { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; margin-bottom: 22px; }
.service-features li { font-size: 14px; padding-left: 22px; position: relative; color: #334155; }
.service-features li::before { content: ''; position: absolute; left: 0; top: 8px; width: 12px; height: 6px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg); }
@media (max-width: 900px) {
  .service-block { grid-template-columns: 1fr; gap: 30px; padding: 30px 0; }
  .service-block:nth-child(even) .service-block-img { order: 0; }
  .service-features { grid-template-columns: 1fr; }
}

/* ═══ GALLERY ═══ */
.gallery-filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 40px; }
.gallery-filter { padding: 8px 18px; border: 1px solid #e4e7eb; border-radius: 20px; font-size: 14px; font-weight: 500; color: #64748b; background: #fff; cursor: pointer; }
.gallery-filter.active, .gallery-filter:hover { background: #0f172a; color: #fff; border-color: #0f172a; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.gallery-item {
  aspect-ratio: 4/3; border-radius: 12px; overflow: hidden; position: relative; cursor: pointer;
  background: #f1f5f9;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item-label {
  position: absolute; inset: auto 0 0 0; padding: 60px 18px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
  color: #fff; font-weight: 600; font-size: 15px;
  transform: translateY(15px); opacity: 0; transition: all .2s;
}
.gallery-item:hover .gallery-item-label { transform: translateY(0); opacity: 1; }

/* ═══ REVIEWS ═══ */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.review-card { background: #fff; border: 1px solid #e4e7eb; border-radius: 16px; padding: 30px; position: relative; }
.review-card::before { content: '"'; position: absolute; top: 14px; right: 26px; font-size: 80px; line-height: 1; font-family: Georgia, serif; color: #e2e8f0; font-weight: 700; }
.review-stars { color: var(--accent); letter-spacing: 2px; font-size: 16px; margin-bottom: 14px; }
.review-text { font-size: 15px; color: #334155; margin-bottom: 22px; min-height: 110px; }
.review-author { display: flex; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid #f1f5f9; }
.review-author img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.review-author-name { font-weight: 700; font-size: 15px; }
.review-author-meta { font-size: 13px; color: #64748b; }

/* ═══ AREAS ═══ */
.areas-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.area-card { border-radius: 14px; overflow: hidden; border: 1px solid #e4e7eb; background: #fff; display: flex; flex-direction: column; }
.area-card-img { aspect-ratio: 16/9; overflow: hidden; }
.area-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.area-card:hover .area-card-img img { transform: scale(1.04); }
.area-card-body { padding: 22px; flex: 1; }
.area-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.area-card p { font-size: 14px; color: #64748b; }

/* ═══ CTA BANNER (full-width section) ═══ */
.cta-section {
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 70px 0;
}
.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,.10), transparent 60%),
              radial-gradient(circle at 80% 80%, rgba(255,255,255,.06), transparent 50%);
  pointer-events: none;
}
.cta-banner {
  background: transparent;
  color: #fff;
  padding: 0;
  border-radius: 0;
  text-align: center;
  position: relative;
  overflow: visible;
  z-index: 2;
}
.cta-banner::before { display: none; }
.cta-banner > * { position: relative; }
.cta-banner h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; margin-bottom: 14px; letter-spacing: -.02em; }
.cta-banner p { font-size: 17px; opacity: .9; margin-bottom: 26px; max-width: 560px; margin-inline: auto; }
.cta-banner .btn { background: #fff; color: var(--brand); }
.cta-banner .btn:hover { background: #0f172a; color: #fff; }

@media (max-width: 700px) {
  .cta-section { padding: 50px 0; }
}

/* ═══ CONTACT ═══ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info { background: #0f172a; color: #fff; padding: 40px; border-radius: 16px; }
.contact-info h3 { font-size: 22px; margin-bottom: 20px; }
.contact-info p { color: #cbd5e1; margin-bottom: 26px; font-size: 15px; }
.contact-details { display: grid; gap: 18px; }
.contact-detail { display: block; }
.contact-detail-label { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: #94a3b8; font-weight: 600; margin-bottom: 4px; }
.contact-detail-value { font-size: 15px; color: #fff; }
.contact-detail a { color: #fff; }
.contact-detail a:hover { color: var(--accent); }

.contact-form { background: #fff; border: 1px solid #e4e7eb; border-radius: 16px; padding: 36px; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: #334155; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #cbd5e1; border-radius: 8px;
  font: inherit; font-size: 14px; background: #fff; transition: border-color .15s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 500px) { .form-row { grid-template-columns: 1fr; } }

/* ═══ PAGE HEADER (sub-páginas) ═══ */
.page-header {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff; padding: 70px 0 80px; text-align: center;
}
.page-header h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 800; letter-spacing: -.02em; margin-bottom: 12px; }
.page-header p { color: #cbd5e1; font-size: 17px; max-width: 620px; margin-inline: auto; }
.page-breadcrumb { margin-top: 16px; font-size: 13px; color: #94a3b8; }
.page-breadcrumb a { color: #cbd5e1; }
.page-breadcrumb a:hover { color: #fff; }
.page-breadcrumb .sep { margin: 0 10px; color: #475569; }

/* ═══ FOOTER ═══ */
.site-footer { background: #0f172a; color: #cbd5e1; padding: 70px 0 0; margin-top: 60px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 48px; padding-bottom: 50px; border-bottom: 1px solid #1e293b; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }

.footer-brand { font-size: 22px; font-weight: 800; color: #fff; display: inline-block; margin-bottom: 14px; letter-spacing: -.02em; }
.footer-about { font-size: 14px; line-height: 1.7; margin-bottom: 20px; max-width: 340px; }
.footer-socials { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-socials a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,.06);
    color: #94a3b8;
    transition: background .15s, color .15s, transform .15s;
}
.footer-socials a:hover { background: rgba(255,255,255,.12); color: #fff; transform: translateY(-2px); }
.footer-socials a svg { display: block; }

.footer-col h4 { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 18px; letter-spacing: .02em; }
.footer-col ul li { margin-bottom: 10px; font-size: 14px; }
.footer-col a { color: #94a3b8; }
.footer-col a:hover { color: #fff; }

.footer-contact li { display: flex; flex-direction: column; gap: 2px; margin-bottom: 14px; }
.footer-label { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: #64748b; font-weight: 600; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  /* IMPORTANTE: solo padding-top/bottom — el lateral lo da .container */
  padding-top: 22px;
  padding-bottom: 22px;
  font-size: 13px;
  color: #64748b;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: inherit; }
.footer-bottom a:hover { color: #fff; }

/* En tablet y mobile, centrar todo el footer-bottom para que se lea mejor */
@media (max-width: 900px) {
  .footer-bottom {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding-top: 24px;
    padding-bottom: 24px;
  }
}

/* ─── Páginas legales (Términos / Privacidad) ─── */
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.page-header {
  background: linear-gradient(135deg, var(--color-primary, #2563eb), var(--color-primary-dark, #1e40af));
  color: #fff; padding: 80px 0 50px; text-align: center;
}
.page-header h1 { font-size: 36px; font-weight: 800; margin-bottom: 8px; letter-spacing: -.02em; }
.page-header p { font-size: 17px; opacity: .9; }

.prose { color: #334155; font-size: 16px; line-height: 1.75; }
.prose p { margin-bottom: 16px; }
.prose h2 { font-size: 22px; font-weight: 700; color: #0f172a; margin-top: 36px; margin-bottom: 14px; letter-spacing: -.01em; }
.prose h3 { font-size: 18px; font-weight: 700; color: #0f172a; margin-top: 24px; margin-bottom: 10px; }
.prose ul, .prose ol { margin: 14px 0; padding-left: 24px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: #0f172a; font-weight: 600; }
.prose a { color: var(--color-primary, #2563eb); text-decoration: underline; }
.prose hr { border: none; border-top: 1px solid #e2e8f0; margin: 32px 0; }


/* ═══ LANGUAGE SWITCHER ═══ */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin-right: 16px;
  font-size: 0; /* eliminate inline-block whitespace */
}
.lang-opt {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #94a3b8;
  text-decoration: none;
  transition: color .15s;
  text-transform: uppercase;
}
.lang-opt:hover { color: #0f172a; }
.lang-opt.is-active {
  color: #0f172a;
}
.lang-opt:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 12px;
  background: #cbd5e1;
}

/* Mobile: full pill style */
.lang-switch-mobile {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin: 16px 22px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 9px;
}
.lang-switch-mobile .lang-opt {
  flex: 1;
  padding: 9px 14px;
  font-size: 13px;
  border-radius: 6px;
  text-transform: none;
  letter-spacing: 0;
}
.lang-switch-mobile .lang-opt::after { display: none; }
.lang-switch-mobile .lang-opt.is-active {
  background: #fff;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(15,23,42,.08);
}


/* ═══ ACCESSIBILITY ═══ */
/* Texto solo para screen readers (invisible visualmente) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ═══════════════════════════════════════════════════════════════════
 *  HERO PRO — v2 · imagen como background con gradient cinematográfico
 *  Layout: imagen ocupa todo el lado derecho, gradient la difumina
 *  hacia el centro, cards superpuestas sobre la imagen.
 *  Soporta dark (default) + light theme via [data-hero-theme]
 * ═══════════════════════════════════════════════════════════════════ */

.hero-pro {
  position: relative;
  padding: 0;
  overflow: hidden;
  margin-bottom: 0;
  min-height: 720px;
  background: #0a1020;
  color: #fff;
}
.hero-pro[data-hero-theme="light"] {
  background: #f8fafc;
  color: #0f172a;
}

/* ─── Imagen de fondo del hero (ocupa todo el lado derecho) ─── */
.hero-pro-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.hero-pro-bg img {
  position: absolute;
  right: 0;
  top: 0;
  width: 70%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

/* Gradient overlay que difumina la imagen del centro hacia la izquierda */
.hero-pro-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    #0a1020 0%,
    #0a1020 30%,
    rgba(10, 16, 32, 0.92) 40%,
    rgba(10, 16, 32, 0.65) 55%,
    rgba(10, 16, 32, 0.25) 75%,
    rgba(10, 16, 32, 0.05) 100%
  );
  z-index: 2;
}
.hero-pro[data-hero-theme="light"] .hero-pro-bg::before {
  background: linear-gradient(
    to right,
    #f8fafc 0%,
    #f8fafc 30%,
    rgba(248, 250, 252, 0.92) 40%,
    rgba(248, 250, 252, 0.65) 55%,
    rgba(248, 250, 252, 0.25) 75%,
    rgba(248, 250, 252, 0.05) 100%
  );
}

/* Gradient adicional vertical sutil (top→bottom) para profundidad */
.hero-pro-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 16, 32, 0.4) 0%,
    transparent 30%,
    transparent 70%,
    rgba(10, 16, 32, 0.6) 100%
  );
  z-index: 3;
}
.hero-pro[data-hero-theme="light"] .hero-pro-bg::after {
  background: linear-gradient(
    to bottom,
    rgba(248, 250, 252, 0.3) 0%,
    transparent 30%,
    transparent 70%,
    rgba(248, 250, 252, 0.5) 100%
  );
}

/* Decoración: glow sutil de marca en zonas estratégicas */
.hero-bg-decoration {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background:
    radial-gradient(ellipse 700px 500px at 20% 30%, rgba(37,99,235,.18), transparent 60%),
    radial-gradient(ellipse 500px 400px at 70% 60%, rgba(37,99,235,.10), transparent 70%);
}
.hero-pro[data-hero-theme="light"] .hero-bg-decoration {
  background:
    radial-gradient(ellipse 700px 500px at 20% 30%, rgba(37,99,235,.10), transparent 60%),
    radial-gradient(ellipse 500px 400px at 70% 60%, rgba(37,99,235,.06), transparent 70%);
}

/* ─── Grid principal (todo encima de la imagen) ─── */
.hero-pro-grid {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(480px, 1.1fr) minmax(360px, 1fr);
  gap: 60px;
  align-items: center;
  padding: 70px 0 30px;
  min-height: 640px;
}

/* ─── LADO IZQUIERDO ─── */
.hero-pro-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(37,99,235,.30);
  font-size: 13px; font-weight: 500;
  color: #93c5fd;
  margin-bottom: 28px;
}
.hero-pro[data-hero-theme="light"] .hero-pro-badge {
  background: rgba(255, 255, 255, .8);
  color: var(--brand);
  border-color: rgba(37,99,235,.20);
}

.hero-pro-title {
  font-size: clamp(38px, 5.8vw, 68px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.025em;
  margin-bottom: 22px;
  text-shadow: 0 2px 20px rgba(0,0,0,.5);
}
.hero-pro[data-hero-theme="light"] .hero-pro-title {
  text-shadow: none;
}
.hero-pro-title .hero-accent {
  color: var(--brand);
  background: linear-gradient(135deg, #60a5fa, var(--brand));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-pro[data-hero-theme="light"] .hero-pro-title .hero-accent {
  background: linear-gradient(135deg, var(--brand), var(--brand2, #1e40af));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-pro-sub {
  font-size: 17px;
  color: #cbd5e1;
  margin-bottom: 36px;
  max-width: 480px;
  line-height: 1.6;
  text-shadow: 0 1px 10px rgba(0,0,0,.4);
}
.hero-pro[data-hero-theme="light"] .hero-pro-sub {
  color: #475569;
  text-shadow: none;
}

/* CTAs */
.hero-pro-ctas {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-bottom: 32px;
}
.hero-pro-btn {
  padding: 11px 18px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  display: inline-flex; align-items: center; gap: 7px;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s, background .15s;
  cursor: pointer;
  border: 1px solid transparent;
}
.hero-pro-btn:hover { transform: translateY(-1px); }
.hero-pro-btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 20px rgba(37,99,235,.45);
}
.hero-pro-btn-primary:hover {
  background: var(--brand2, #1e40af);
  box-shadow: 0 8px 28px rgba(37,99,235,.55);
}
.hero-pro-btn-secondary {
  background: rgba(15, 23, 42, .5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-color: rgba(255,255,255,.20);
  color: #fff;
}
.hero-pro-btn-secondary:hover {
  background: rgba(15, 23, 42, .7);
  border-color: rgba(255,255,255,.35);
}
.hero-pro[data-hero-theme="light"] .hero-pro-btn-secondary {
  background: rgba(255,255,255,.8);
  border-color: rgba(15,23,42,.15);
  color: #0f172a;
}
.hero-pro[data-hero-theme="light"] .hero-pro-btn-secondary:hover {
  background: #fff;
  border-color: rgba(15,23,42,.25);
}

/* Trust badges */
.hero-pro-trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.hero-pro-trust-item {
  display: flex; align-items: center; gap: 10px;
}
.hero-pro-trust-item svg {
  width: 24px; height: 24px;
  color: var(--brand);
  flex-shrink: 0;
}
.hero-pro-trust-item strong {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #e2e8f0;
  line-height: 1.3;
}
.hero-pro-trust-item span {
  display: block;
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.3;
}
.hero-pro[data-hero-theme="light"] .hero-pro-trust-item strong {
  color: #0f172a;
}
.hero-pro[data-hero-theme="light"] .hero-pro-trust-item span {
  color: #64748b;
}

/* ─── LADO DERECHO: Service cards stack ─── */
.hero-pro-services {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-self: center;
  max-width: 280px;
  margin-left: auto;
  width: 100%;
}
.hero-pro-service-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(15,23,42,.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.10);
  text-decoration: none;
  color: inherit;
  transition: all .25s cubic-bezier(.4, 0, .2, 1);
  box-shadow: 0 8px 24px rgba(0,0,0,.20);
}
.hero-pro-service-card:hover {
  background: rgba(37,99,235,.20);
  border-color: rgba(37,99,235,.45);
  transform: translateX(-6px);
}
.hero-pro[data-hero-theme="light"] .hero-pro-service-card {
  background: rgba(255,255,255,.85);
  border-color: rgba(15,23,42,.08);
  box-shadow: 0 12px 32px rgba(15,23,42,.10);
}
.hero-pro[data-hero-theme="light"] .hero-pro-service-card:hover {
  background: #fff;
  border-color: var(--brand);
  box-shadow: 0 14px 36px rgba(37,99,235,.18);
}

.hero-pro-service-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand2, #1e40af));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: #fff;
  box-shadow: 0 4px 12px rgba(37,99,235,.40);
}
.hero-pro-service-icon svg {
  width: 18px; height: 18px;
}
.hero-pro-service-text {
  flex: 1; min-width: 0;
}
.hero-pro-service-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-pro-service-sub {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-pro[data-hero-theme="light"] .hero-pro-service-title { color: #0f172a; }
.hero-pro[data-hero-theme="light"] .hero-pro-service-sub { color: #64748b; }

.hero-pro-service-arrow {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(59,130,246,.20);
  display: flex; align-items: center; justify-content: center;
  color: #60a5fa;
  flex-shrink: 0;
  transition: all .25s;
}
.hero-pro-service-arrow svg {
  width: 12px; height: 12px;
}
.hero-pro-service-card:hover .hero-pro-service-arrow {
  background: var(--brand);
  color: #fff;
  transform: translateX(2px);
}
.hero-pro[data-hero-theme="light"] .hero-pro-service-arrow {
  background: rgba(37,99,235,.12);
  color: var(--brand);
}

/* ─── STATS — flotan sin contenedor, separados visualmente ─── */
.hero-pro-stats-wrap {
  position: relative;
  z-index: 6;
  margin-top: 0;
  padding-bottom: 50px;
}
.hero-pro-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}
.hero-pro[data-hero-theme="light"] .hero-pro-stats {
  background: transparent;
  border: none;
  box-shadow: none;
}

.hero-pro-stat {
  display: flex; align-items: center; gap: 14px;
  padding: 0;
  position: relative;
}
.hero-pro-stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -12px; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 42px;
  background: rgba(255,255,255,.10);
}
.hero-pro[data-hero-theme="light"] .hero-pro-stat:not(:last-child)::after {
  background: rgba(15,23,42,.10);
}

.hero-pro-stat-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(37,99,235,.18);
  display: flex; align-items: center; justify-content: center;
  color: #60a5fa;
  flex-shrink: 0;
}
.hero-pro[data-hero-theme="light"] .hero-pro-stat-icon {
  background: rgba(37,99,235,.10);
  color: var(--brand);
}
.hero-pro-stat-num {
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  margin-bottom: 4px;
  letter-spacing: -.02em;
}
.hero-pro-stat-label {
  font-size: 12.5px;
  color: #94a3b8;
  letter-spacing: .02em;
}
.hero-pro[data-hero-theme="light"] .hero-pro-stat-num { color: #0f172a; }
.hero-pro[data-hero-theme="light"] .hero-pro-stat-label { color: #64748b; }


/* ═══════════════════════════════════════════════════════════════════
 *  HERO PRO — RESPONSIVE v3 (bulletproof)
 *
 *  IMPORTANTE: NO pisar `padding: 0 24px` del .container.
 *  Usamos padding-top/bottom específicos.
 *  Texto siempre con overflow-wrap: anywhere para que no se salga.
 * ═══════════════════════════════════════════════════════════════════ */

/* Asegurar que el contenido nunca se desborde */
.hero-pro * { overflow-wrap: break-word; word-break: break-word; }
.hero-pro-title { overflow-wrap: break-word; word-break: keep-all; }

/* Tablet horizontal: gradient se difumina antes */
@media (max-width: 1100px) {
  .hero-pro-bg img { width: 80%; }
  .hero-pro-bg::before {
    background: linear-gradient(
      to right,
      #0a1020 0%, #0a1020 22%,
      rgba(10, 16, 32, 0.92) 32%,
      rgba(10, 16, 32, 0.55) 50%,
      rgba(10, 16, 32, 0.20) 75%,
      rgba(10, 16, 32, 0.05) 100%
    );
  }
  .hero-pro[data-hero-theme="light"] .hero-pro-bg::before {
    background: linear-gradient(
      to right,
      #f8fafc 0%, #f8fafc 22%,
      rgba(248, 250, 252, 0.92) 32%,
      rgba(248, 250, 252, 0.55) 50%,
      rgba(248, 250, 252, 0.20) 75%,
      rgba(248, 250, 252, 0.05) 100%
    );
  }
}

/* Tablet vertical / mobile-grande: 1 columna pero imagen sigue de fondo */
@media (max-width: 980px) {
  .hero-pro {
    min-height: auto;
    margin-bottom: 0;
  }
  .hero-pro-bg img {
    width: 100%;
    height: 100%;
    object-position: center center;
  }
  .hero-pro-bg::before {
    background: linear-gradient(
      to bottom,
      rgba(10, 16, 32, 0.45) 0%,
      rgba(10, 16, 32, 0.75) 50%,
      rgba(10, 16, 32, 0.95) 100%
    ) !important;
  }
  .hero-pro[data-hero-theme="light"] .hero-pro-bg::before {
    background: linear-gradient(
      to bottom,
      rgba(248, 250, 252, 0.40) 0%,
      rgba(248, 250, 252, 0.75) 50%,
      rgba(248, 250, 252, 0.95) 100%
    ) !important;
  }

  /* Bajar el contenido del hero — más espacio arriba para que se vea la imagen */
  .hero-pro-grid {
    grid-template-columns: 1fr !important;
    gap: 24px;
    padding-top: 240px !important;
    padding-bottom: 30px;
    min-height: auto;
    align-items: start;
    text-align: center;
  }

  /* Centrar el badge */
  .hero-pro-badge {
    margin-left: auto;
    margin-right: auto;
  }

  /* Centrar la sub */
  .hero-pro-sub {
    margin-left: auto;
    margin-right: auto;
  }

  /* CTAs centrados en tablet */
  .hero-pro-ctas {
    justify-content: center !important;
  }

  .hero-pro-services {
    max-width: 100% !important;
    margin: 0 !important;
    width: 100%;
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
  }

  .hero-pro-title { font-size: clamp(30px, 5.5vw, 44px); }
  .hero-pro-sub { font-size: 16px; max-width: 100%; }

  .hero-pro-trust {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px 12px;
    max-width: 100%;
  }

  /* Stats en tablet: 4 en horizontal, compactos */
  .hero-pro-stats {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 12px !important;
  }
  .hero-pro-stat {
    padding: 0 8px !important;
    gap: 10px !important;
    flex-direction: row;
    align-items: center;
  }
  .hero-pro-stat-icon {
    width: 38px !important;
    height: 38px !important;
    border-radius: 9px;
  }
  .hero-pro-stat-icon svg {
    width: 20px !important;
    height: 20px !important;
  }
  .hero-pro-stat-num {
    font-size: 22px !important;
    line-height: 1.05 !important;
  }
  .hero-pro-stat-label {
    font-size: 10.5px !important;
    line-height: 1.2 !important;
  }
  /* Divisores entre stats — verticales sutiles */
  .hero-pro-stat:not(:last-child)::after {
    display: block !important;
    width: 1px;
    height: 32px;
    background: rgba(255,255,255,0.10);
    right: -6px !important;
  }
}

/* Mobile (<700px): imagen como BACKGROUND ABSOLUTO con texto superpuesto */
@media (max-width: 700px) {
  .hero-pro {
    background: #0a1020 !important;
    padding: 0 !important;
    min-height: auto !important;
    position: relative !important;
    overflow: hidden !important;
  }
  .hero-pro[data-hero-theme="light"] {
    background: #f8fafc !important;
  }

  /* Imagen como background absoluto cubriendo el área superior del hero */
  .hero-pro-bg {
    position: absolute !important;
    top: 0; left: 0; right: 0;
    height: 580px; /* área de imagen — texto se superpone abajo */
    width: 100%;
    inset: auto !important;
    overflow: hidden;
    z-index: 1;
    margin-bottom: 0 !important;
  }
  .hero-pro-bg img {
    position: absolute !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center 35%;
    right: auto !important;
    top: auto !important;
    left: 0;
  }
  /* Gradient: 0-50% transparente (imagen pura), 50-100% se difumina al azul */
  .hero-pro-bg::before {
    content: '';
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(
      to bottom,
      rgba(10, 16, 32, 0) 0%,
      rgba(10, 16, 32, 0) 50%,
      rgba(10, 16, 32, 0.45) 65%,
      rgba(10, 16, 32, 0.80) 80%,
      rgba(10, 16, 32, 0.95) 92%,
      #0a1020 100%
    ) !important;
    z-index: 2;
  }
  .hero-pro[data-hero-theme="light"] .hero-pro-bg::before {
    background: linear-gradient(
      to bottom,
      rgba(248, 250, 252, 0) 0%,
      rgba(248, 250, 252, 0) 50%,
      rgba(248, 250, 252, 0.45) 65%,
      rgba(248, 250, 252, 0.80) 80%,
      rgba(248, 250, 252, 0.95) 92%,
      #f8fafc 100%
    ) !important;
  }
  .hero-pro-bg::after { display: none !important; }

  .hero-bg-decoration {
    display: none !important;
  }

  /* Grid: padding-top grande para que el contenido caiga sobre el gradient */
  .hero-pro-grid {
    grid-template-columns: 1fr !important;
    gap: 22px;
    padding-top: 380px !important; /* texto arranca a 380px desde arriba (zona gradient) */
    padding-bottom: 32px !important;
    min-height: auto !important;
    align-items: start;
    position: relative;
    z-index: 5;
  }

  /* Texto del hero */
  .hero-pro-badge {
    margin-bottom: 16px;
    font-size: 12px;
    padding: 6px 12px;
  }
  .hero-pro-title {
    font-size: 28px !important;
    line-height: 1.15;
    margin-bottom: 14px;
    text-shadow: none !important;
  }
  .hero-pro-sub {
    font-size: 15px !important;
    line-height: 1.5;
    margin-bottom: 24px;
    max-width: 100%;
    text-shadow: none !important;
  }

  /* CTAs lado a lado, ancho natural (no full-width) */
  .hero-pro-ctas {
    flex-direction: row;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: nowrap;
    justify-content: flex-start;
  }
  .hero-pro-btn {
    width: auto;
    flex: 0 0 auto;  /* NO se estira — ancho natural según contenido */
    justify-content: center;
    padding: 10px 14px;
    font-size: 12.5px;
    white-space: nowrap;
  }
  .hero-pro-btn svg {
    width: 13px; height: 13px;
  }

  /* Trust badges — display:grid forzado, 2 columnas */
  .hero-pro-trust {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px 10px;
    max-width: 100%;
  }
  .hero-pro-trust-item {
    display: flex !important;
    align-items: center;
    gap: 10px;
    min-width: 0; /* permite que el texto se encoja */
  }
  .hero-pro-trust-item svg {
    width: 22px !important;
    height: 22px !important;
    flex-shrink: 0;
  }
  .hero-pro-trust-item > div {
    min-width: 0;
    flex: 1;
  }
  .hero-pro-trust-item strong {
    font-size: 12px !important;
    display: block;
  }
  .hero-pro-trust-item span {
    font-size: 11px !important;
    display: block;
  }

  /* Service cards: una abajo de otra, full-width */
  .hero-pro-services {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: 1fr !important;
    max-width: 100% !important;
    margin: 0 !important;
    width: 100% !important;
    gap: 10px;
  }
  .hero-pro-service-card {
    padding: 12px 14px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  .hero-pro-service-card:hover {
    transform: none !important;
  }

  /* Stats horizontales en mobile (4 columnas chiquitas) */
  .hero-pro-stats-wrap {
    margin-top: 0 !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }
  .hero-pro-stats {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 8px !important;
  }
  .hero-pro-stat {
    padding: 0 4px !important;
    gap: 6px !important;
    flex-direction: column !important;
    text-align: center;
    align-items: center;
  }
  .hero-pro-stat:not(:last-child)::after { display: none !important; }
  .hero-pro-stat-num {
    font-size: 18px !important;
    line-height: 1 !important;
    margin-bottom: 2px !important;
  }
  .hero-pro-stat-label {
    font-size: 9.5px !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
  }
  .hero-pro-stat-icon {
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px !important;
  }
  .hero-pro-stat-icon svg { width: 16px !important; height: 16px !important; }
}

/* Mobile chico (<420px) */
@media (max-width: 420px) {
  .hero-pro-bg {
    height: 500px !important;
  }
  .hero-pro-grid {
    padding-top: 320px !important;
    padding-bottom: 24px !important;
    gap: 18px;
  }
  .hero-pro-title { font-size: 24px !important; }
  .hero-pro-trust { grid-template-columns: 1fr !important; gap: 10px; }
  /* Stats: mantener 4 columnas horizontales pero más chiquitas */
  .hero-pro-stats {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 6px !important;
  }
  .hero-pro-stat-num { font-size: 16px !important; }
  .hero-pro-stat-label { font-size: 8.5px !important; }
  .hero-pro-stat-icon {
    width: 28px !important;
    height: 28px !important;
  }
  .hero-pro-stat-icon svg { width: 14px !important; height: 14px !important; }
}

/* ═══════════════════════════════════════════════════════════════════
 *  HEADER TRANSPARENTE en mobile/tablet (overlay sobre el hero)
 *  Logo más grande + hamburguesa visible con fondo glassmorphism
 * ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  /* Topbar (TEL/email) más translúcido */
  .topbar {
    background: rgba(10, 16, 32, 0.85) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: none !important;
  }

  /* Header SIEMPRE VISIBLE — fixed para que la hamburguesa quede al scroll.
     Empieza transparente sobre el hero, se vuelve blanco glassmorphism al scrollear (clase .scrolled la agrega JS) */
  .site-header {
    background: transparent !important;
    border-bottom: none !important;
    position: fixed !important;
    top: 36px; /* debajo del topbar */
    left: 0; right: 0;
    z-index: 90;
    transition: background 0.25s ease, backdrop-filter 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, top 0.25s ease;
  }
  .site-header.scrolled {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(228, 231, 235, 0.5) !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    top: 0; /* sube cuando se vuelve sólido (oculta el topbar) */
  }
  /* Topbar fixed pero se oculta al scrollear (lo manejamos con clase .scrolled-hide) */
  .topbar {
    position: fixed !important;
    top: 0; left: 0; right: 0;
    z-index: 91;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .topbar.scrolled-hide {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
  }

  /* Header inner: padding más compacto */
  .header-inner {
    padding: 12px 0 !important;
  }

  /* Logo MÁS GRANDE en mobile */
  .brand-logo {
    height: 56px !important;
    /* Drop-shadow para destacar sobre el hero */
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
  }
  .brand-text {
    color: #fff !important;
    font-size: 26px !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  }

  /* Hamburguesa MUY visible: fondo glassmorphism + barras blancas */
  .nav-toggle {
    background: rgba(15, 23, 42, 0.55) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 10px !important;
    padding: 11px 12px !important;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  }
  .nav-toggle span {
    background: #fff !important;
    width: 20px !important;
    height: 2.5px !important;
  }
  .nav-toggle:hover {
    background: rgba(15, 23, 42, 0.75) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
  }
  /* NOTA: el padding-top del .hero-pro-grid en mobile se maneja
     en el bloque @media (max-width: 700px) del hero — ahí se calcula
     según la altura del banner de imagen. */
}

/* Mobile chico — logo un toque menor */
@media (max-width: 480px) {
  .brand-logo { height: 50px !important; }
  .brand-text { font-size: 22px !important; }
  .nav-toggle {
    width: 42px;
    height: 42px;
    padding: 10px !important;
  }
  .nav-toggle span {
    width: 18px !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════
 *  TABLET HORIZONTAL & DESKTOP (901+px) — header con fondo sólido
 *  En esa zona el menú horizontal entra. Forzamos fondo blanco siempre
 *  para que los menús se lean bien sobre el hero.
 * ═══════════════════════════════════════════════════════════════════ */
@media (min-width: 901px) {
  /* Header sólido (anula cualquier transparencia heredada) */
  .site-header {
    background: #fff !important;
    border-bottom: 1px solid #e4e7eb !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 100 !important;
  }
  /* Topbar con su color sólido normal (sin blur del mobile) */
  .topbar {
    background: #0f172a !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  /* Logo a tamaño normal */
  .brand-logo {
    height: 40px !important;
    filter: none !important;
  }
  .brand-text {
    color: #0f172a !important;
    text-shadow: none !important;
    font-size: 20px !important;
  }
  /* Hamburguesa NO se ve en desktop */
  .nav-toggle {
    display: none !important;
  }
}

/* Tablet horizontal específico (901-1100px) — afinar nav para que no sea invasivo */
@media (min-width: 901px) and (max-width: 1100px) {
  .header-inner {
    padding: 14px 0 !important;
    gap: 20px !important;
  }
  .nav-cta {
    padding: 8px 14px !important;
    font-size: 12.5px !important;
  }
  .site-nav-inline .nav-list { gap: 18px !important; }
  .site-nav-inline { gap: 16px !important; }
  .nav-link { font-size: 13.5px !important; }
}

/* ═══════════════════════════════════════════════════════════════════
 *  SCROLL-TO-TOP BUTTON (toggle desde admin)
 * ═══════════════════════════════════════════════════════════════════ */
.nx-scroll-top {
  position: fixed;
  /* Siempre arriba del área del WhatsApp float (24px bottom + 56px alto + 12px gap). */
  bottom: 92px;
  right: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--brand, #2563eb);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
  z-index: 80;
}
.nx-scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.nx-scroll-top:hover {
  background: var(--brand2, #1e40af);
  transform: translateY(-2px);
}
.nx-scroll-top svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 640px) {
  .nx-scroll-top {
    /* En mobile el WhatsApp también es 56x56 en bottom 24px. */
    bottom: 88px;
    right: 16px;
    width: 44px;
    height: 44px;
  }
}
