:root {
    --navy: #0f2c57;
    --navy-2: #23406a;
    --gray: #8c8c8f;
    --light: #f5f6f8;
    --white: #ffffff;
    --dark: #162031;
    --shadow: 0 18px 50px rgba(15, 44, 87, 0.14);
    --radius: 24px;
    --container: 1200px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; color: var(--dark); background: var(--white); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(var(--container), calc(100% - 2rem)); margin: 0 auto; }
.site-shell { overflow: clip; }
.topbar { background: var(--navy); color: var(--white); font-size: .92rem; }
.topbar-inner { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; padding: .85rem 0; justify-content: space-between; }
.topbar a { color: var(--white); }
.main-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(15,44,87,.08); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 0; }
.brand { display: flex; align-items: center; gap: .85rem; }
.brand img { width: 72px; height: auto; }
.brand strong { display: block; color: var(--navy); font-size: 1.15rem; }
.brand small { color: var(--gray); }
.main-nav ul { display: flex; align-items: center; gap: 1.25rem; list-style: none; padding: 0; margin: 0; }
.main-nav a { font-weight: 700; color: var(--navy); position: relative; }
.main-nav a.active::after, .main-nav a:hover::after { content: ''; position: absolute; left: 0; bottom: -.45rem; width: 100%; height: 3px; background: linear-gradient(90deg, var(--gray), var(--navy)); border-radius: 999px; }
.nav-toggle { display: none; border: 0; background: var(--navy); color: var(--white); padding: .75rem .9rem; border-radius: 12px; }
.has-mega { position: relative; }
.mega-menu { position: absolute; left: 50%; top: calc(100% + 22px); transform: translateX(-50%) translateY(10px); width: min(1100px, 92vw); background: var(--white); border-radius: var(--radius); padding: 1.2rem; box-shadow: var(--shadow); display: grid; grid-template-columns: 290px 1fr; gap: 1.2rem; opacity: 0; visibility: hidden; transition: .35s ease; }
.has-mega:hover .mega-menu { opacity: 1; visibility: visible; }
.mega-intro { background: linear-gradient(180deg, var(--navy), var(--navy-2)); color: var(--white); border-radius: 20px; padding: 1.5rem; }
.mega-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.mega-card { border: 1px solid rgba(15,44,87,.08); padding: .75rem; border-radius: 18px; transition: .3s ease; background: #fff; }
.mega-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.mega-card img { aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; margin-bottom: .75rem; }
.mega-card span { display: block; font-weight: 700; color: var(--navy); margin-bottom: .35rem; }
.mega-card small { color: #5c6675; line-height: 1.5; }
.hero { position: relative; padding: 4rem 0 3rem; background: linear-gradient(180deg, rgba(15,44,87,.05), rgba(15,44,87,0)); }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(circle at top right, rgba(140,140,143,.18), transparent 28%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; position: relative; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; color: var(--gray); font-weight: 700; }
.hero h1, .page-hero h1 { color: var(--navy); font-size: clamp(2.4rem, 4vw, 4.3rem); line-height: 1.05; margin: 0 0 1rem; }
.hero p { font-size: 1.05rem; line-height: 1.75; }
.hero-actions, .action-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.4rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .95rem 1.35rem; border-radius: 999px; font-weight: 700; transition: .3s ease; }
.btn-primary { background: linear-gradient(90deg, var(--navy), var(--navy-2)); color: var(--white) !important; box-shadow: var(--shadow); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-secondary { background: rgba(15,44,87,.08); color: var(--navy); }
.hero-highlights, .check-list, .stats-list, .footer-list, .contact-list, .info-list { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.hero-highlights li, .check-list li, .stats-list li, .contact-list li, .info-list li { position: relative; padding-left: 1.4rem; margin-bottom: .75rem; line-height: 1.6; }
.hero-highlights li::before, .check-list li::before, .stats-list li::before, .contact-list li::before, .info-list li::before { content: '•'; position: absolute; left: 0; color: var(--gray); font-weight: 900; }
.hero-card { border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); background: var(--white); }
.hero-card img { width: 100%; min-height: 520px; object-fit: cover; }
.hero-badge { position: absolute; bottom: 1rem; left: 1rem; padding: .9rem 1.2rem; background: rgba(255,255,255,.92); border-radius: 999px; color: var(--navy); font-weight: 700; box-shadow: var(--shadow); }
.floating-card { animation: floatY 5s ease-in-out infinite; }
section { padding: 4.2rem 0; }
.section-head { max-width: 720px; margin-bottom: 2rem; }
.section-head h2 { font-size: clamp(2rem, 3vw, 3rem); color: var(--navy); margin: 0 0 .6rem; }
.section-head p { line-height: 1.75; color: #000; }
.grid-2, .grid-3, .grid-4, .contact-grid, .service-grid, .about-grid, .stats-grid, .gallery-grid { display: grid; gap: 1.4rem; }
.grid-2, .about-grid, .contact-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3, .service-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4, .stats-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
.card, .service-card, .stat-card, .contact-card, .gallery-item, .feature-card { background: var(--white); border-radius: 24px; box-shadow: var(--shadow); padding: 1.35rem; border: 1px solid rgba(15,44,87,.06); }
.service-card img, .gallery-item img { border-radius: 18px; width: 100%; object-fit: cover; }
.service-card img { aspect-ratio: 4/3; }
.gallery-item { padding: .65rem; }
.gallery-item img { aspect-ratio: 1/1; }
.service-card h3, .stat-card h3, .feature-card h3, .contact-card h3 { color: var(--navy); margin-top: 1rem; }
.service-card p, .feature-card p, .contact-card p, .card p { color: #536074; line-height: 1.7; }
.service-card:hover, .gallery-item:hover, .feature-card:hover { transform: translateY(-6px); transition: .35s ease; }
.band { background: linear-gradient(180deg, rgba(15,44,87,.96), rgba(35,64,106,.96)); color: var(--white); }
.band .section-head h2, .band h3 { color: var(--navy); }
.band .section-head h2 { color: var(--white); }
.page-hero { padding: 3rem 0 2rem; background: linear-gradient(180deg, rgba(15,44,87,.06), transparent); }
.page-hero p { color: #536074; line-height: 1.8; max-width: 850px; }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 1.75rem; align-items: center; }
.split img { border-radius: 28px; box-shadow: var(--shadow); }
.coverage-tags { display: flex; flex-wrap: wrap; gap: .7rem; }
.coverage-tags span, .pill { padding: .65rem .95rem; background: rgba(255,255,255,.5); color: var(--navy); border-radius: 999px; font-weight: 700; }
.contact-form .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
.contact-form input, .contact-form textarea, .contact-form select { width: 100%; border: 1px solid rgba(15,44,87,.15); border-radius: 16px; padding: 1rem 1rem; font: inherit; }
.contact-form textarea { min-height: 160px; resize: vertical; }
.contact-form .full { grid-column: 1 / -1; }
.notice { padding: 1rem 1.15rem; border-radius: 16px; margin-bottom: 1rem; font-weight: 700; }
.notice.success { background: rgba(28, 155, 92, .12); color: #16643c; }
.notice.error { background: rgba(199, 51, 63, .12); color: #7b1220; }
.map-embed iframe { width: 100%; min-height: 420px; border: 0; border-radius: 24px; box-shadow: var(--shadow); }
.main-footer { padding-top: 1rem; background: #0d1728; color: rgba(255,255,255,.82); }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr 1fr .8fr; gap: 1.5rem; padding: 3rem 0; }
.footer-logo { width: 110px; margin-bottom: 1rem; }
.footer-list li { margin-bottom: .7rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 1rem 0 2rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-socials { display: flex; gap: 1rem; }
.whatsapp-float { position: fixed; right: 22px; bottom: 22px; width: 68px; height: 68px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; font-size: 1.7rem; z-index: 80; box-shadow: 0 18px 40px rgba(37, 211, 102, .35); }
.whatsapp-float .wave { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(37, 211, 102, .45); animation: shockwave 2.5s infinite; }
.whatsapp-float .wave-delay { animation-delay: 1.1s; }
.whatsapp-float .icon { position: relative; z-index: 2; }
.reveal { opacity: 0; transform: translateY(26px); transition: .75s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .15s; }
.info-qr-page { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(180deg, rgba(15,44,87,.06), #fff); padding: 2rem 1rem; }
.info-qr-card { width: min(760px, 100%); background: #fff; border-radius: 32px; box-shadow: var(--shadow); padding: 2.2rem; text-align: center; }
.info-qr-card img { width: 140px; margin: 0 auto 1rem; }
.info-buttons, .social-icons { display: flex; flex-wrap: wrap; justify-content: center; gap: .85rem; margin-top: 1.5rem; }
.info-button, .social-icon { padding: .95rem 1.2rem; border-radius: 999px; background: rgba(15,44,87,.08); color: var(--navy); font-weight: 700; display: inline-flex; align-items: center; gap: .45rem; }
.info-button.primary { background: linear-gradient(90deg, var(--navy), var(--navy-2)); color: #fff; }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes shockwave { 0% { transform: scale(1); opacity: .75; } 100% { transform: scale(1.8); opacity: 0; } }
@media (max-width: 1100px) {
  .hero-grid, .split, .grid-2, .about-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .grid-3, .service-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-4, .stats-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .mega-menu { grid-template-columns: 1fr; }
  .mega-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 860px) {
    
    .nav-toggle { display: inline-flex; }
  .main-nav { position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 1rem;
    box-shadow: var(--shadow);
    display: none;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch; }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .main-nav ul li,
  .has-mega {
    width: 100%;
    min-width: 0;
  }

  .mega-menu {
    position: static;
    transform: none;
    width: 100%;
    max-width: 100%;
    opacity: 1;
    visibility: visible;
    display: none;
    margin-top: 1rem;
    padding: 1rem;
    box-sizing: border-box;
    overflow: hidden;
  }

  .has-mega.open .mega-menu {
    display: grid;
  }

  .mega-intro,
  .mega-grid,
  .mega-card {
    min-width: 0;
    width: 100%;
  }

  .mega-card img {
    width: 100%;
    height: auto;
  }

  .hero-card img {
    min-height: 360px;
  }
    
  .nav-toggle { display: inline-flex; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding: 1rem; box-shadow: var(--shadow); display: none; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: flex-start; }
  .has-mega { width: 100%; }
  .mega-menu { position: static; transform: none; width: 100%; opacity: 1; visibility: visible; display: none; margin-top: 1rem; }
  .has-mega.open .mega-menu { display: grid; }
  .hero-card img { min-height: 360px; }
}
@media (max-width: 640px) {
  .grid-3, .grid-4, .service-grid, .stats-grid, .gallery-grid, .mega-grid, .contact-form .form-grid { grid-template-columns: 1fr; }
  .topbar-inner { justify-content: center; }
  .brand span small { display: none; }
  .hero, section { padding: 3rem 0; }
  .info-qr-card { padding: 1.6rem; }
}
.feature-card.reveal h3 {
    color: #0b274f;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
}

.feature-card.reveal:hover h3 {
    color: #163a70; /* navy más claro al hover */
}
@media (max-width: 860px) {
  .main-nav ul li {
    width: 100%;
  }

  .has-mega > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-right: 0.25rem;
  }

  .has-mega > a::after {
    content: '+';
    font-size: 1.2rem;
    line-height: 1;
    color: var(--navy);
    transition: transform .25s ease;
  }

  .has-mega.open > a::after {
    content: '−';
  }

  .mega-menu {
    padding: 1rem;
    border-radius: 18px;
  }

  .mega-intro {
    padding: 1.2rem;
  }
  @media (max-width: 860px) {
  .main-nav ul li {
    width: 100%;
  }

  .has-mega > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-right: 0.25rem;
  }

  /* Evita que la línea azul del menú interfiera con Services en móvil */
  .has-mega > a.active::after,
  .has-mega > a:hover::after {
    content: none;
  }

  /* Indicador del submenú */
  .has-mega > a::before {
    content: '+';
    font-size: 1.2rem;
    line-height: 1;
    color: var(--navy);
    margin-left: auto;
    padding-left: 0.75rem;
  }

  .has-mega.open > a::before {
    content: '−';
  }

  .mega-menu {
    padding: 1rem;
    border-radius: 18px;
  }

  .mega-intro {
    padding: 1.2rem;
  }
  @media (max-width: 860px) {
  .mobile-services-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .mobile-services-row > a {
    flex: 1;
  }

  .mega-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    color: var(--navy);
    font-size: 1.35rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 8px;
    flex-shrink: 0;
  }

  .mobile-services-row > a.active::after,
  .mobile-services-row > a:hover::after {
    content: none;
  }

  .mega-menu {
    padding: 1rem;
    border-radius: 18px;
  }

  .mega-intro {
    padding: 1.2rem;
  }
}

@media (min-width: 861px) {
  .mega-toggle-btn {
    display: none;
  }

  .mobile-services-row {
    display: block;
  }
}

@media (max-width: 860px) {
  .site-shell {
    overflow: visible;
  }
}
button.mega-toggle-btn {
    background: none;
    border: none;
}
.service-gallery-section {
    padding: 4.2rem 0;
}

.service-gallery-stack {
    display: grid;
    gap: 2rem;
    width: 100%;
}

.service-gallery-block {
    background: var(--white);
    border: 1px solid rgba(15,44,87,.08);
    border-radius: 28px;
    box-shadow: var(--shadow);
    padding: 1.5rem;
    width: 100%;
}

.service-gallery-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.service-gallery-head h3 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(1.4rem, 2.2vw, 2rem);
}

.service-gallery-head p {
    margin: 0;
    color: #536074;
    font-weight: 600;
}

.service-gallery-section .service-gallery-grid,
.service-gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 1rem !important;
    width: 100% !important;
}

.service-gallery-item {
    margin: 0;
}

.service-gallery-link {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 20px;
    background: #f5f6f8;
    box-shadow: 0 10px 30px rgba(15,44,87,.10);
    width: 100%;
    aspect-ratio: 4 / 3;
}

.service-gallery-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.service-gallery-link:hover img {
    transform: scale(1.06);
}

.service-gallery-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: .55rem .85rem;
    border-radius: 999px;
    background: rgba(15,44,87,.92);
    color: #fff;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .03em;
}

@media (max-width: 900px) {
    .service-gallery-section .service-gallery-grid,
    .service-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 540px) {
    .service-gallery-section .service-gallery-grid,
    .service-gallery-grid {
        grid-template-columns: 1fr !important;
    }

    .service-gallery-block {
        padding: 1.1rem;
    }
}