:root{
  --primary:#0e5aa7;
  --primary-dark:#093d72;
  --secondary:#63aad4;
  --secondary-soft:#d9ecf7;
  --accent:#f2f7fb;
  --text:#1f2937;
  --muted:#667085;
  --border:#d7e1eb;
  --surface:#ffffff;
  --surface-alt:#f6f9fc;
  --surface-soft:#fbfdff;
  --shadow:0 16px 36px rgba(15,23,42,.08);
  --shadow-lg:0 22px 60px rgba(15,23,42,.14);
}
html{scroll-behavior:smooth}
body{font-family:Arial,Helvetica,sans-serif;color:var(--text);background:#fff;overflow-x:hidden}
a{text-decoration:none}
img{max-width:100%;height:auto}

.site-header{position:sticky;top:0;z-index:1040;background:rgba(255,255,255,.9);backdrop-filter:saturate(150%) blur(12px);box-shadow:0 10px 30px rgba(15,23,42,.06)}
.header-accent{height:4px;background:linear-gradient(90deg,#5fb4d7,#3290c7,#5fb4d7)}
.main-nav-wrap{background:linear-gradient(180deg,rgba(255,255,255,.95),rgba(247,250,253,.92));border-bottom:1px solid rgba(14,90,167,.08)}
.nav-shell{display:flex;align-items:center;justify-content:space-between;gap:1.25rem;min-height:88px}
.brand-mark{display:block;flex:0 0 auto;position:relative;z-index:2}
.brand-mark img{height:46px;width:auto;display:block;filter:drop-shadow(0 4px 12px rgba(15,23,42,.1))}
.site-navbar{flex:1 1 auto}
.nav-grid{width:100%;display:flex;justify-content:flex-end;align-items:center;gap:.45rem}
.nav-grid>.nav-item{position:relative}
.nav-box{display:flex;align-items:center;justify-content:center;min-height:54px;padding:0 1.15rem !important;text-transform:uppercase;font-weight:700;font-size:.92rem;letter-spacing:.035em;color:var(--primary) !important;background:transparent;border:1px solid transparent;border-radius:999px;transition:all .22s ease}
.nav-box:hover,.nav-box:focus{background:rgba(14,90,167,.06);border-color:rgba(14,90,167,.08);color:var(--primary-dark)!important;transform:translateY(-1px)}
.nav-box.is-active,.show>.nav-box{background:linear-gradient(180deg,#ffffff 0%,#eef6fc 100%);border-color:#cfe1ee;color:var(--primary-dark)!important;box-shadow:0 10px 24px rgba(14,90,167,.12), inset 0 -2px 0 var(--secondary)}
.main-dropdown{margin-top:.55rem;border:1px solid var(--border);border-radius:1.05rem;padding:.75rem;box-shadow:var(--shadow-lg);min-width:290px;background:rgba(255,255,255,.98);backdrop-filter:blur(10px)}
.dropdown-item{border-radius:.8rem;padding:.72rem .9rem;color:#234;font-weight:600;transition:.18s ease}
.dropdown-item:hover,.dropdown-item:focus,.dropdown-item.active{background:var(--accent);color:var(--primary-dark);transform:translateX(2px)}
.navbar-toggler{display:none;border:1px solid var(--border);border-radius:1rem;padding:.52rem .78rem;background:#fff;box-shadow:var(--shadow)}
.navbar-toggler:focus{box-shadow:0 0 0 .18rem rgba(14,90,167,.18)}
.navbar-toggler-icon{width:1.4rem;height:1.4rem;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2814,90,167,.95%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.3' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e")}

.mobile-menu{max-width:360px;background:linear-gradient(180deg,#fafdff,#f5f9fc)}
.mobile-menu .offcanvas-header{padding:1rem 1rem .7rem;border-bottom:1px solid var(--border)}
.mobile-brand img{height:40px;width:auto}
.mobile-nav{display:flex;flex-direction:column;gap:.7rem}
.mobile-link,.mobile-details summary{display:flex;align-items:center;justify-content:space-between;padding:1rem 1.05rem;border:1px solid var(--border);border-radius:1rem;background:#fff;color:var(--primary-dark);font-weight:700;text-transform:uppercase;letter-spacing:.02em;box-shadow:var(--shadow)}
.mobile-link.is-active,.mobile-details.is-active summary{box-shadow:inset 0 -3px 0 var(--secondary),var(--shadow);background:linear-gradient(180deg,#ffffff 0%, #edf4fa 100%)}
.mobile-details summary{list-style:none;cursor:pointer}
.mobile-details summary::-webkit-details-marker{display:none}
.mobile-details summary::after{content:'+';font-size:1.2rem;color:var(--primary)}
.mobile-details[open] summary::after{content:'–'}
.mobile-submenu{display:grid;gap:.45rem;padding:.65rem .2rem .15rem}
.mobile-submenu a{padding:.75rem .9rem;border-radius:.85rem;background:var(--accent);color:var(--primary-dark);font-weight:600}

.hero{position:relative;overflow:hidden;padding:5.2rem 0 4.2rem;background-color:#123d67;color:#fff;background-position:center;background-size:cover;background-repeat:no-repeat;isolation:isolate}
.hero::before{content:'';position:absolute;inset:0;background:linear-gradient(120deg,rgba(6,32,60,.92) 4%,rgba(10,57,102,.84) 40%,rgba(14,90,167,.66) 100%);z-index:1}
.hero::after{content:'';position:absolute;inset:0;background:
  radial-gradient(circle at 18% 18%, rgba(255,255,255,.14), transparent 30%),
  linear-gradient(rgba(255,255,255,.055) 1px,transparent 1px),
  linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px);
  background-size:auto,34px 34px,34px 34px;opacity:.22;z-index:1}
.hero .container{position:relative;z-index:2}
.hero .row{align-items:center}
.hero-badge{display:inline-flex;align-items:center;gap:.45rem;padding:.52rem 1rem;border-radius:999px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.22);font-weight:700;font-size:.84rem;text-transform:uppercase;letter-spacing:.08em;color:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.15)}
.hero h1,.hero .lead,.hero p,.hero .display-4{color:#fff !important;text-shadow:0 2px 10px rgba(0,0,0,.18)}
.hero h1,.hero .display-4{font-size:clamp(2.35rem,4vw,4.1rem);line-height:.98;max-width:13ch}
.hero .lead{font-size:1.18rem;line-height:1.7;max-width:56ch;color:rgba(255,255,255,.9)!important}
.hero-card{position:relative;background:linear-gradient(180deg,rgba(255,255,255,.16),rgba(255,255,255,.08));border:1px solid rgba(255,255,255,.2);border-radius:1.6rem;padding:1rem;box-shadow:0 28px 60px rgba(0,0,0,.22);backdrop-filter:blur(10px)}
.hero-card::before{content:'';position:absolute;inset:12px auto auto 12px;width:72px;height:72px;border-radius:1.25rem;background:linear-gradient(180deg,rgba(255,255,255,.18),rgba(255,255,255,0));pointer-events:none}
.hero-card img{position:relative;border-radius:1.12rem;display:block;width:100%;height:335px;object-fit:cover;border:1px solid rgba(255,255,255,.18);background:#fff;box-shadow:0 16px 30px rgba(0,0,0,.18)}
.hero-actions{display:flex;flex-wrap:wrap;gap:1rem;margin-top:.35rem}
.hero-actions .btn{border-radius:999px;padding:.95rem 1.6rem;font-weight:700;border-width:2px;box-shadow:0 10px 24px rgba(0,0,0,.12)}
.hero-actions .btn-light{background:#fff;color:#16375d}
.hero-actions .btn-outline-light{background:rgba(255,255,255,.05)}
.hero:not(.home-slider) .col-lg-7{position:relative}
.hero:not(.home-slider) .col-lg-7::after{content:'';position:absolute;right:1rem;bottom:-1.15rem;width:170px;height:10px;background:linear-gradient(90deg,rgba(99,170,212,.65),transparent);filter:blur(8px);opacity:.75}

.home-slider{padding:0;background:#d9e9f4}
.home-slider::before,.home-slider::after{display:none}
.home-carousel{border-radius:0 0 2rem 2rem;overflow:hidden;box-shadow:var(--shadow)}
.home-carousel .carousel-indicators{bottom:1.15rem;margin-bottom:0;z-index:4}
.home-carousel .carousel-indicators [data-bs-target]{width:11px;height:11px;border-radius:50%;border:none;background:rgba(255,255,255,.5);opacity:1}
.home-carousel .carousel-indicators .active{background:#fff}
.home-carousel .carousel-control-prev,.home-carousel .carousel-control-next{width:58px;top:50%;bottom:auto;transform:translateY(-50%);z-index:4;opacity:1}
.home-carousel .carousel-control-prev{left:1rem}
.home-carousel .carousel-control-next{right:1rem}
.home-carousel .carousel-control-prev-icon,.home-carousel .carousel-control-next-icon{width:54px;height:54px;border-radius:50%;background-color:rgba(255,255,255,.92);background-size:20px 20px;box-shadow:var(--shadow)}
.home-slide{position:relative;min-height:540px;background-position:center;background-size:cover;background-repeat:no-repeat}
.home-slide::before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,rgba(245,250,255,.96) 0%,rgba(242,248,252,.84) 45%,rgba(15,90,167,.18) 100%)}
.home-slide .container{position:relative;z-index:2;padding-top:4.25rem;padding-bottom:6rem}
.home-copy{max-width:560px;padding-right:1rem}
.home-copy .hero-badge{background:rgba(14,90,167,.08);border-color:rgba(14,90,167,.14);color:var(--primary-dark)}
.home-copy h1{font-size:clamp(2.7rem,5vw,3.5rem);line-height:.96;color:#16375d!important;text-shadow:none;max-width:none}
.home-copy .lead{font-size:1.25rem;color:#476179!important;text-shadow:none;max-width:520px}
.home-visual{display:flex;justify-content:center;align-items:center}
.home-visual-card{background:rgba(255,255,255,.92);border:1px solid rgba(255,255,255,.85);border-radius:2rem;padding:1rem;box-shadow:0 18px 50px rgba(15,23,42,.18);max-width:640px;width:100%}
.home-visual-card img{display:block;width:100%;height:auto;border-radius:1.35rem}

.section{padding:5rem 0}
.section-alt{background:linear-gradient(180deg,#fbfdff 0%,#f5f9fc 100%)}
.section-kicker{display:inline-block;text-transform:uppercase;letter-spacing:.14em;color:var(--primary);font-weight:800;font-size:.78rem;margin-bottom:.85rem}
.section-title{font-weight:800;line-height:1.06;margin-bottom:1rem;color:#17375d;font-size:clamp(2rem,3vw,2.9rem)}
.card-clean,.service-card,.info-card,.legal-card,.contact-card,.stat-card{position:relative;overflow:hidden;background:linear-gradient(180deg,#ffffff 0%,#fbfdff 100%);border:1px solid var(--border);border-radius:1.45rem;box-shadow:var(--shadow);height:100%;padding:1.55rem;transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease}
.card-clean::before,.service-card::before,.info-card::before,.legal-card::before,.contact-card::before,.stat-card::before{content:'';position:absolute;left:1.3rem;right:1.3rem;top:0;height:4px;border-radius:0 0 999px 999px;background:linear-gradient(90deg,var(--secondary),rgba(99,170,212,.1))}
.card-clean:hover,.service-card:hover,.info-card:hover,.contact-card:hover,.stat-card:hover{transform:translateY(-3px);box-shadow:0 22px 44px rgba(15,23,42,.1);border-color:#c7dceb}
.service-card h3,.info-card h3,.contact-card h3,.legal-card h3,.card-clean h3{font-size:1.14rem;font-weight:800;color:#17375d;line-height:1.25;margin-bottom:.8rem}
.card-clean p,.service-card p,.info-card p,.legal-card p,.contact-card p,.muted{color:var(--muted);line-height:1.72}
.card-clean.has-icon,.service-card.has-icon{padding-top:1.6rem}
.feature-icon,.info-icon,.service-mini-icon{width:56px;height:56px;border-radius:1.1rem;display:grid;place-items:center;background:linear-gradient(180deg,#eef6fd,#dfeef9);color:var(--primary);border:1px solid #cfe2f1;box-shadow:inset 0 1px 0 rgba(255,255,255,.8),0 8px 18px rgba(99,170,212,.18);margin-bottom:1rem;font-size:1.28rem;font-weight:700}
.stat-card{display:flex;flex-direction:column;justify-content:center;gap:.35rem;min-height:140px}
.stat-card strong{font-size:1.5rem;color:#17375d;line-height:1.1}

.info-card{padding:1.6rem 1.6rem 1.35rem}
.info-card h3{display:flex;align-items:center;gap:.75rem}
.info-card h3::before{/*content:''*/;flex:0 0 44px;width:44px;height:44px;border-radius:1rem;background:linear-gradient(180deg,#eef6fd,#dfeef9);border:1px solid #cfe2f1;box-shadow:inset 0 1px 0 rgba(255,255,255,.8)}
.feature-list,.simple-list{list-style:none;padding-left:0;margin-bottom:0;display:grid;gap:.72rem}
.feature-list li,.simple-list li{position:relative;margin:0;padding:.05rem 0 .05rem 2.15rem;line-height:1.65;color:#344a5f}
.feature-list li::before,.simple-list li::before{content:'✓';position:absolute;left:0;top:.1rem;width:1.45rem;height:1.45rem;border-radius:50%;display:grid;place-items:center;background:linear-gradient(180deg,#eaf5fc,#d9ecf8);border:1px solid #c7deef;color:var(--primary);font-size:.8rem;font-weight:800;box-shadow:0 4px 10px rgba(99,170,212,.18)}

.cta-band{position:relative;overflow:hidden;border-radius:1.75rem;background:linear-gradient(135deg,#ffffff,#f6fbff);color:#17375d;padding:2.35rem;border:1px solid #cfe0ef;box-shadow:var(--shadow)}
.cta-band::before{content:'';position:absolute;inset:auto -40px -65px auto;width:210px;height:210px;border-radius:50%;background:radial-gradient(circle, rgba(99,170,212,.16), transparent 65%)}
.cta-band .lead{color:#5c7387}

.footer{background:#0f172a;color:#d6e2ee;padding:4rem 0 2rem}
.footer a{color:#eef5fb}
.footer a:hover{color:#fff}
.footer-bottom{padding-top:1.5rem;margin-top:2rem;border-top:1px solid rgba(255,255,255,.12);font-size:.92rem;color:#9eb3c8}
.footer-logo{max-width:210px}

.map-embed iframe{border:0;width:100%;height:100%;border-radius:1.25rem}
.contact-card .section-title{margin-bottom:1.2rem}
.contact-item{display:flex;gap:1rem;align-items:flex-start;margin-bottom:1.25rem;padding-bottom:1.1rem;border-bottom:1px solid rgba(215,225,235,.72)}
.contact-item:last-child{border-bottom:none;padding-bottom:0;margin-bottom:0}
.contact-icon{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(180deg,#eef6fd,#dfeef9);color:var(--primary);font-weight:700;box-shadow:inset 0 1px 0 rgba(255,255,255,.8)}
.form-control{border-radius:1rem;border-color:#cfdceb;padding:.95rem 1rem;background:#fcfeff}
.form-control:focus{border-color:#7db6db;box-shadow:0 0 0 .18rem rgba(14,90,167,.12)}

.legal-card{padding:1.7rem}
.legal-card h2{color:#17375d}

.back-top{position:fixed;right:20px;bottom:20px;width:46px;height:46px;border-radius:50%;display:grid;place-items:center;background:#0f3656;color:#fff;box-shadow:var(--shadow);opacity:0;visibility:hidden;transform:translateY(10px);transition:all .2s ease;z-index:20}
.back-top.show{opacity:1;visibility:visible;transform:none}
.badge-soft{display:inline-flex;align-items:center;padding:.45rem .8rem;background:var(--accent);border:1px solid var(--border);border-radius:999px;color:var(--primary-dark);font-weight:700;font-size:.9rem}
.reveal-on-scroll{opacity:0;transform:translateY(26px);transition:opacity .55s ease,transform .55s ease;will-change:opacity,transform}
.reveal-on-scroll.is-visible{opacity:1;transform:none}

/* interior page consistency */
.page-about .hero,.page-servicios .hero,.page-contacto .hero,.page-none .hero,.section-oficinas .hero,.section-comunidades .hero,.section-industrial .hero,.section-educativos .hero,.section-hospitales .hero,.section-superficies .hero,.section-residencias .hero{padding-top:5.4rem;padding-bottom:4.4rem}
.page-about .hero .hero-card,.page-servicios .hero .hero-card,.page-contacto .hero .hero-card,.page-none .hero .hero-card,.section-oficinas .hero .hero-card,.section-comunidades .hero .hero-card,.section-industrial .hero .hero-card,.section-educativos .hero .hero-card,.section-hospitales .hero .hero-card,.section-superficies .hero .hero-card,.section-residencias .hero .hero-card{transform:translateY(.25rem)}
.page-about .card-clean p,.page-servicios .card-clean p,.section-oficinas .info-card p,.section-comunidades .info-card p,.section-industrial .info-card p,.section-educativos .info-card p,.section-hospitales .info-card p,.section-superficies .info-card p,.section-residencias .info-card p{font-size:1.03rem}

@media (min-width:992px){
  .nav-item.dropdown:hover .dropdown-menu{display:block}
  .site-navbar{display:flex;justify-content:flex-end}
  .nav-grid{width:auto;padding:.4rem;background:rgba(255,255,255,.82);border:1px solid rgba(14,90,167,.08);border-radius:999px;box-shadow:0 18px 35px rgba(15,23,42,.07)}
}

@media (max-width:1199.98px){
  .home-slide{min-height:500px}
  .home-copy h1{font-size:clamp(2.4rem,4.6vw,4.3rem)}
  .nav-box{padding:0 .95rem!important;font-size:.86rem}
}

@media (max-width:991.98px){
  .navbar-toggler{display:inline-flex}
  .nav-shell{justify-content:space-between;min-height:74px}
  .brand-mark img{height:38px}
  .site-navbar{flex:0 0 auto}
  .hero{padding:4rem 0 3rem}
  .home-slide{min-height:auto}
  .home-slide .container{padding-top:2.5rem;padding-bottom:5rem}
  .home-copy{max-width:none;padding-right:0}
  .home-copy h1{font-size:clamp(2.15rem,10vw,3.4rem)}
  .home-copy .lead{font-size:1.08rem;max-width:none}
  .home-visual-card{margin-top:1rem}
  .hero-card img{height:250px}
  .section{padding:3.8rem 0}
  .hero h1,.hero .display-4{max-width:none}
}

@media (max-width:767.98px){
  .site-header{box-shadow:0 4px 14px rgba(15,23,42,.06)}
  .nav-shell{min-height:68px}
  .brand-mark img{height:34px}
  .home-carousel{border-radius:0 0 1.35rem 1.35rem}
  .home-slide::before{background:linear-gradient(180deg,rgba(247,251,255,.96) 0%,rgba(242,248,252,.92) 45%,rgba(242,248,252,.85) 100%)}
  .home-slide .container{padding-top:2.2rem;padding-bottom:4.8rem}
  .home-copy h1{font-size:2.5rem;line-height:1}
  .home-copy .lead{font-size:1rem}
  .home-visual-card{padding:.65rem;border-radius:1.2rem}
  .home-visual-card img{border-radius:.9rem}
  .home-carousel .carousel-control-prev,.home-carousel .carousel-control-next{width:40px}
  .home-carousel .carousel-control-prev{left:.35rem}
  .home-carousel .carousel-control-next{right:.35rem}
  .home-carousel .carousel-control-prev-icon,.home-carousel .carousel-control-next-icon{width:38px;height:38px;background-size:14px 14px}
  .hero{padding:3.35rem 0 2.6rem}
  .hero .lead{font-size:1.03rem;line-height:1.62}
  .hero-card{padding:.7rem;border-radius:1.25rem}
  .hero-card img{height:220px;border-radius:.9rem}
  .hero-actions{gap:.75rem}
  .hero-actions .btn{width:100%;justify-content:center}
  .section-title{font-size:2rem}
  .cta-band{padding:1.7rem}
  .feature-icon,.info-icon,.service-mini-icon{width:50px;height:50px;font-size:1.15rem}
}
