:root{
  --site-primary:#0F3D64;
  --site-secondary:#1FA67A;
  --site-primary-rgb:15,61,100;
  --site-secondary-rgb:31,166,122;
  --site-bg:#F4F7FB;
  --site-card:#ffffff;
  --site-text:#1f2937;
  --site-muted:#6b7280;
  --site-border:rgba(var(--site-primary-rgb),.08);
  --site-radius:24px;
  --site-radius-sm:16px;
  --site-shadow:0 18px 50px rgba(var(--site-primary-rgb),.10);
  --site-shadow-soft:0 10px 30px rgba(var(--site-primary-rgb),.06);
}

*{box-sizing:border-box}

html{
  scroll-behavior:smooth;
}

@media (prefers-reduced-motion: reduce){
  html{
    scroll-behavior:auto;
  }
  *,*::before,*::after{
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
    scroll-behavior:auto !important;
  }
}

:focus-visible{
  outline:3px solid rgba(var(--site-secondary-rgb),.55);
  outline-offset:2px;
}

@keyframes fadeInUp{
  from{opacity:0; transform:translateY(16px);}
  to{opacity:1; transform:translateY(0);}
}

.hero-content > *{
  animation:fadeInUp .7s ease both;
}

.hero-content .hero-badge{animation-delay:.05s}
.hero-content .hero-title{animation-delay:.12s}
.hero-content .hero-subtitle{animation-delay:.2s}
.hero-content .d-flex{animation-delay:.28s}

body{
  margin:0;
  font-family:'Inter',sans-serif;
  color:var(--site-text);
  background:var(--site-bg);
  line-height:1.65;
}

h1,h2,h3,h4,h5,h6{
  font-family:'Poppins',sans-serif;
  letter-spacing:-.02em;
  color:#142235;
}

a{
  text-decoration:none;
}

img{
  max-width:100%;
}

.fw-800{
  font-weight:800;
}

/* =========================
   AVISO URGENTE
========================= */
.aviso-urgente-bar{
  background:linear-gradient(135deg, #b3261e, #d9534f);
  color:#fff;
  padding:.7rem 0;
  font-size:.92rem;
}

.aviso-urgente-bar i.bi-exclamation-triangle-fill{
  animation:avisoBlink 1.6s ease-in-out infinite;
}

@keyframes avisoBlink{
  0%,100%{opacity:1;}
  50%{opacity:.45;}
}

.aviso-urgente-link{
  color:#fff;
  text-decoration:underline;
  font-weight:700;
  margin-left:.4rem;
  white-space:nowrap;
}

.aviso-urgente-link:hover{
  color:#fff;
}

.aviso-urgente-close{
  background:rgba(255,255,255,.15);
  border:none;
  color:#fff;
  width:28px;
  height:28px;
  border-radius:50%;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  transition:background .2s ease;
}

.aviso-urgente-close:hover{
  background:rgba(255,255,255,.3);
}

/* =========================
   NAVBAR
========================= */
.site-navbar{
  background:linear-gradient(135deg, rgba(var(--site-primary-rgb),.96), rgba(var(--site-secondary-rgb),.90));
  backdrop-filter:blur(10px);
  box-shadow:0 10px 28px rgba(0,0,0,.10);
  padding:.85rem 0;
  transition:padding .3s ease, box-shadow .3s ease;
}

.site-navbar.is-scrolled{
  padding:.5rem 0;
  box-shadow:0 14px 34px rgba(0,0,0,.16);
}

.site-navbar .nav-link{
  position:relative;
}

.site-navbar .nav-link::after{
  content:"";
  position:absolute;
  left:.9rem;
  right:.9rem;
  bottom:.3rem;
  height:2px;
  border-radius:2px;
  background:#fff;
  transform:scaleX(0);
  transform-origin:left;
  transition:transform .25s ease;
}

.site-navbar .nav-link:hover::after,
.site-navbar .nav-link.active::after{
  transform:scaleX(1);
}

.site-navbar .navbar-brand{
  color:#fff;
}

.site-navbar .nav-link{
  color:rgba(255,255,255,.88);
  font-weight:500;
  padding:.65rem .9rem;
  border-radius:999px;
  transition:all .25s ease;
}

.site-navbar .nav-link:hover{
  color:#fff;
  background:rgba(255,255,255,.08);
}

.site-navbar .nav-link.active{
  color:#fff;
  font-weight:700;
  background:rgba(255,255,255,.10);
}

.site-logo{
  width:50px;
  height:50px;
  object-fit:contain;
  border-radius:14px;
  background:#fff;
  padding:5px;
  display:block;
  box-shadow:0 8px 18px rgba(0,0,0,.08);
}

.site-logo-placeholder{
  width:50px;
  height:50px;
  border-radius:14px;
  background:#fff;
  display:grid;
  place-items:center;
  color:var(--site-primary);
  font-size:1.35rem;
  box-shadow:0 8px 18px rgba(0,0,0,.08);
}

.btn-site-accent{
  background:#fff;
  color:var(--site-primary);
  border:none;
  border-radius:999px;
  font-weight:700;
  padding:.6rem 1rem;
  box-shadow:0 8px 18px rgba(0,0,0,.08);
}

.btn-site-accent:hover{
  background:#f5fbff;
  color:var(--site-primary);
}

/* =========================
   HERO
========================= */
.hero-section{
  position:relative;
  min-height:620px;
  display:flex;
  align-items:center;
  background-size:cover;
  background-position:center;
  overflow:hidden;
}

.hero-overlay{
  position:absolute;
  inset:0;
  background:
    linear-gradient(110deg, rgba(7,23,39,.78) 0%, rgba(var(--site-primary-rgb),.58) 45%, rgba(var(--site-secondary-rgb),.18) 100%);
}

.hero-section::before,
.hero-section::after{
  content:"";
  position:absolute;
  border-radius:50%;
  filter:blur(60px);
  pointer-events:none;
  z-index:1;
}

.hero-section::before{
  width:420px;
  height:420px;
  right:-120px;
  top:-160px;
  background:radial-gradient(circle, rgba(var(--site-secondary-rgb),.35), transparent 70%);
}

.hero-section::after{
  width:320px;
  height:320px;
  left:-100px;
  bottom:-140px;
  background:radial-gradient(circle, rgba(255,255,255,.14), transparent 72%);
}

.hero-content{
  position:relative;
  z-index:2;
  color:#fff;
}

.hero-badge{
  display:inline-flex;
  align-items:center;
  gap:.55rem;
  padding:.65rem 1rem;
  border-radius:999px;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.16);
  backdrop-filter:blur(8px);
  color:#fff;
  font-weight:500;
}

.hero-title{
  font-size:clamp(2.2rem, 5vw, 4.4rem);
  font-weight:800;
  line-height:1.03;
  color:#fff;
  max-width:880px;
  margin-bottom:1rem;
}

.hero-subtitle{
  max-width:760px;
  color:rgba(255,255,255,.88);
  font-size:1.08rem;
  margin-bottom:2rem;
}

.hero-section .btn-light{
  border-radius:999px;
  font-weight:700;
  box-shadow:0 10px 25px rgba(0,0,0,.12);
}

.hero-section .btn-outline-light{
  border-radius:999px;
  font-weight:700;
}

/* =========================
   SECCIONES
========================= */
.section-block{
  padding:78px 0;
}

.section-title{
  font-size:clamp(1.7rem, 3vw, 2.5rem);
  font-weight:800;
  margin-bottom:.35rem;
}

.section-text{
  color:var(--site-muted);
  max-width:760px;
}

.section-overlap{
  margin-top:-78px;
  position:relative;
  z-index:5;
}

.bg-white{
  background:#fff !important;
}

/* =========================
   CABECERAS DE SECCIÓN
========================= */
.section-head{
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:1rem;
  margin-bottom:1.8rem;
  flex-wrap:wrap;
}

.section-head h2{
  margin:0 0 .25rem 0;
  font-size:clamp(1.7rem, 3vw, 2.5rem);
  font-weight:800;
}

.section-head p{
  margin:0;
  color:var(--site-muted);
}

/* =========================
   TARJETAS
========================= */
.soft-card{
  background:var(--site-card);
  border:1px solid var(--site-border);
  border-radius:var(--site-radius);
  box-shadow:var(--site-shadow);
}

.feature-card,
.news-card,
.board-card,
.tariff-card{
  height:100%;
  padding:1.6rem;
}

.feature-card-top{
  padding:1.75rem 1.5rem;
  transition:transform .25s ease, box-shadow .25s ease;
}

.feature-card-top:hover{
  transform:translateY(-5px);
  box-shadow:0 22px 45px rgba(var(--site-primary-rgb),.13);
}

.feature-icon{
  width:60px;
  height:60px;
  border-radius:18px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg, rgba(var(--site-primary-rgb),.09), rgba(var(--site-secondary-rgb),.15));
  color:var(--site-primary);
  font-size:1.45rem;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.5);
  transition:transform .3s ease, background .3s ease, color .3s ease;
}

.feature-card-top:hover .feature-icon{
  transform:scale(1.08) rotate(-4deg);
  background:linear-gradient(135deg, var(--site-primary), var(--site-secondary));
  color:#fff;
}

/* =========================
   ABOUT
========================= */
.about-highlight{
  position:relative;
  overflow:hidden;
}

.about-highlight::after{
  content:"";
  position:absolute;
  width:260px;
  height:260px;
  right:-100px;
  bottom:-90px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(var(--site-secondary-rgb),.16), transparent 68%);
  pointer-events:none;
}

.mini-stat{
  background:#fff;
  border:1px solid var(--site-border);
  border-radius:18px;
  padding:1rem;
  height:100%;
  text-align:center;
  box-shadow:var(--site-shadow-soft);
  transition:transform .25s ease, box-shadow .25s ease;
}

.mini-stat:hover{
  transform:translateY(-3px);
  box-shadow:0 16px 34px rgba(var(--site-primary-rgb),.12);
}

.mini-stat-value{
  font-size:1.4rem;
  font-weight:800;
  color:var(--site-primary);
  margin-bottom:.35rem;
}

.mini-stat-label{
  color:var(--site-muted);
  font-size:.92rem;
}

/* =========================
   TARIFAS DESTACADAS
========================= */
.tariff-highlight-item{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:1rem;
  padding:1rem 1.1rem;
  border:1px solid var(--site-border);
  border-radius:18px;
  background:linear-gradient(180deg,#fff,#fbfdff);
  box-shadow:var(--site-shadow-soft);
}

.tariff-price{
  color:var(--site-primary);
  font-size:1.05rem;
}

/* =========================
   NOTICIAS
========================= */
.news-card{
  display:flex;
  flex-direction:column;
  overflow:hidden;
  transition:transform .25s ease, box-shadow .25s ease;
}

.news-card:hover{
  transform:translateY(-6px);
  box-shadow:0 24px 50px rgba(var(--site-primary-rgb),.14);
}

.news-image{
  width:100%;
  height:220px;
  object-fit:cover;
  border-radius:18px;
  background:#eaf0f6;
  transition:transform .4s ease;
}

.news-card:hover .news-image{
  transform:scale(1.035);
}

.news-card h5{
  font-size:1.18rem;
  margin-bottom:.6rem;
}

.news-card p{
  flex-grow:1;
}

.news-card .btn-link{
  color:var(--site-primary);
  font-weight:700;
}

.news-content{
  font-size:1.03rem;
  line-height:1.85;
  color:var(--site-text);
}

.news-content p{
  margin-bottom:1rem;
}

.news-content h2,
.news-content h3,
.news-content h4{
  margin-top:1.6rem;
  margin-bottom:.8rem;
}

/* =========================
   DOCUMENTOS
========================= */
.doc-card{
  display:flex;
  flex-direction:column;
  gap:.75rem;
  transition:transform .25s ease, box-shadow .25s ease;
}

.doc-card:hover{
  transform:translateY(-5px);
  box-shadow:0 22px 45px rgba(var(--site-primary-rgb),.13);
}

.doc-icon{
  width:58px;
  height:58px;
  border-radius:18px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg, rgba(var(--site-primary-rgb),.10), rgba(var(--site-secondary-rgb),.15));
  color:var(--site-primary);
  font-size:1.45rem;
}

.doc-cat{
  font-size:.85rem;
  color:var(--site-muted);
}

/* =========================
   GALERÍA
========================= */
.gallery-tile{
  padding:0;
  overflow:hidden;
  border-radius:20px;
}

.gallery-tile img{
  width:100%;
  height:230px;
  object-fit:cover;
  display:block;
  transition:transform .35s ease;
}

.gallery-tile:hover img{
  transform:scale(1.06);
}

/* =========================
   DIRECTIVA
========================= */
.board-card{
  display:flex;
  flex-direction:column;
  transition:transform .22s ease, box-shadow .22s ease;
}

.board-card:hover{
  transform:translateY(-4px);
  box-shadow:0 22px 45px rgba(var(--site-primary-rgb),.13);
}

.board-photo{
  width:100%;
  height:280px;
  object-fit:cover;
  border-radius:18px;
  background:#edf3f8;
}

/* =========================
   CTA CONTACTO
========================= */
.contact-cta-section{
  padding-top:12px;
}

.contact-cta-box{
  background:linear-gradient(135deg, rgba(var(--site-primary-rgb),.97), rgba(var(--site-secondary-rgb),.88));
  color:#fff;
  border-radius:30px;
  padding:2.2rem 2.4rem;
  box-shadow:0 24px 55px rgba(var(--site-primary-rgb),.18);
}

.contact-cta-box h2{
  color:#fff;
}

.text-white-75{
  color:rgba(255,255,255,.80);
}

/* =========================
   PÁGINAS INTERNAS
========================= */
.page-hero{
  padding:74px 0 46px;
  background:linear-gradient(135deg, rgba(var(--site-primary-rgb),.08), rgba(var(--site-secondary-rgb),.10));
  border-bottom:1px solid rgba(var(--site-primary-rgb),.05);
}

.contact-box{
  padding:1.5rem;
  border-radius:22px;
  background:#fff;
  border:1px solid var(--site-border);
  box-shadow:var(--site-shadow);
  height:100%;
}

/* =========================
   TABLAS
========================= */
.tariff-table{
  border-radius:18px;
  overflow:hidden;
}

.tariff-table thead th{
  background:linear-gradient(135deg, var(--site-primary), var(--site-secondary));
  color:#fff;
  border:none;
  padding:1rem .9rem;
}

.tariff-table tbody tr{
  transition:background-color .2s ease;
}

.tariff-table tbody tr:nth-child(even){
  background-color:rgba(var(--site-primary-rgb),.025);
}

.tariff-table tbody tr:hover{
  background-color:rgba(var(--site-secondary-rgb),.08);
}

.tariff-table tbody td{
  vertical-align:middle;
  padding:1rem .9rem;
}

.tariff-badge{
  display:inline-block;
  padding:.32rem .75rem;
  border-radius:999px;
  font-size:.78rem;
  font-weight:700;
  white-space:nowrap;
}

.tariff-badge-cargo_fijo{
  background:rgba(var(--site-primary-rgb),.12);
  color:var(--site-primary);
}

.tariff-badge-tramo_consumo{
  background:rgba(var(--site-secondary-rgb),.15);
  color:#0e7a54;
}

.tariff-badge-cuota_incorporacion{
  background:rgba(111,66,193,.12);
  color:#6f42c1;
}

.tariff-badge-otros{
  background:rgba(255,193,7,.18);
  color:#8a6100;
}

.tariff-value-pill{
  display:inline-block;
  padding:.35rem .85rem;
  border-radius:10px;
  background:linear-gradient(135deg, rgba(var(--site-primary-rgb),.08), rgba(var(--site-secondary-rgb),.12));
  color:var(--site-primary);
  font-weight:800;
}

/* =========================
   FORMULARIOS
========================= */
.form-control,
.form-select{
  border-radius:15px;
  padding:.9rem 1rem;
  border:1px solid #d7e1ea;
  background:#fff;
}

.form-control:focus,
.form-select:focus{
  border-color:var(--site-secondary);
  box-shadow:0 0 0 .2rem rgba(var(--site-secondary-rgb),.12);
}

.btn-primary-site{
  background:linear-gradient(135deg, var(--site-primary), var(--site-secondary));
  border:none;
  border-radius:14px;
  padding:.88rem 1.2rem;
  font-weight:700;
  box-shadow:0 10px 22px rgba(var(--site-primary-rgb),.14);
  transition:transform .2s ease, box-shadow .2s ease, filter .2s ease;
  position:relative;
  overflow:hidden;
  isolation:isolate;
}

.btn-primary-site::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:linear-gradient(115deg, transparent 20%, rgba(255,255,255,.28) 40%, transparent 60%);
  transform:translateX(-120%);
  transition:transform .6s ease;
}

.btn-primary-site:hover::before{
  transform:translateX(120%);
}

.btn-primary-site:hover{
  color:#fff;
  filter:brightness(.98);
  transform:translateY(-2px);
  box-shadow:0 14px 28px rgba(var(--site-primary-rgb),.2);
}

.btn{
  transition:transform .2s ease, box-shadow .2s ease, filter .2s ease, background-color .2s ease, color .2s ease;
}

/* =========================
   FOOTER
========================= */
.site-footer{
  position:relative;
  margin-top:80px;
  background:linear-gradient(180deg, #11263c 0%, #0a1c2d 100%);
  color:#fff;
  overflow:hidden;
}

.site-footer::before{
  content:"";
  position:absolute;
  width:380px;
  height:380px;
  right:-140px;
  top:-180px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(var(--site-secondary-rgb),.20), transparent 70%);
  filter:blur(10px);
  pointer-events:none;
}

.site-footer .container{
  position:relative;
  z-index:1;
}

.footer-logo{
  width:40px;
  height:40px;
  max-width:40px;
  max-height:40px;
  object-fit:contain;
  border-radius:10px;
  background:#fff;
  padding:4px;
  flex:0 0 auto;
}

.footer-apr-system a{
  display:inline-flex;
}

.footer-apr-system img{
  height:42px;
  max-height:42px;
  width:auto;
  max-width:160px;
  object-fit:contain;
  border-radius:10px;
  background:#fff;
  padding:6px 10px;
}

.footer-title,
.footer-subtitle{
  font-weight:800;
  color:#fff;
}

.footer-subtitle{
  font-size:.85rem;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:rgba(255,255,255,.55);
  margin-bottom:1rem;
}

.footer-links li{
  margin-bottom:.55rem;
}

.footer-links a{
  color:rgba(255,255,255,.74);
  transition:all .2s ease;
}

.footer-links a:hover{
  color:#fff;
  padding-left:3px;
}

.footer-pill{
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  padding:.4rem .8rem;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  color:rgba(255,255,255,.85);
  font-size:.85rem;
}

.footer-social{
  margin-top:.5rem;
}

.footer-social a{
  width:38px;
  height:38px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.14);
  color:#fff;
  transition:transform .2s ease, background .2s ease;
}

.footer-social a:hover{
  background:linear-gradient(135deg, var(--site-primary), var(--site-secondary));
  transform:translateY(-3px);
  color:#fff;
}

.site-footer-bottom{
  border-top:1px solid rgba(255,255,255,.08);
  color:rgba(255,255,255,.72);
}

.footer-bottom-link{
  color:rgba(255,255,255,.72);
  font-size:.85rem;
  transition:color .2s ease;
}

.footer-bottom-link:hover{
  color:#fff;
}

/* =========================
   WHATSAPP
========================= */
.whatsapp-float{
  position:fixed;
  right:20px;
  bottom:20px;
  width:60px;
  height:60px;
  border-radius:50%;
  display:grid;
  place-items:center;
  color:#fff;
  background:#25D366;
  box-shadow:0 15px 34px rgba(37,211,102,.34);
  font-size:1.7rem;
  z-index:999;
  transition:transform .2s ease;
}

.whatsapp-float::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:50%;
  background:#25D366;
  animation:whatsappPulse 2.4s ease-out infinite;
  z-index:-1;
}

@keyframes whatsappPulse{
  0%{transform:scale(1); opacity:.55;}
  100%{transform:scale(1.9); opacity:0;}
}

.whatsapp-float:hover{
  color:#fff;
  transform:translateY(-2px);
}

/* =========================
   VOLVER ARRIBA
========================= */
.back-to-top{
  position:fixed;
  left:20px;
  bottom:20px;
  width:48px;
  height:48px;
  border-radius:50%;
  border:none;
  display:grid;
  place-items:center;
  color:#fff;
  background:linear-gradient(135deg, var(--site-primary), var(--site-secondary));
  box-shadow:0 12px 28px rgba(var(--site-primary-rgb),.28);
  font-size:1.2rem;
  z-index:999;
  opacity:0;
  visibility:hidden;
  transform:translateY(12px);
  transition:opacity .25s ease, transform .25s ease, visibility .25s;
}

.back-to-top.is-visible{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}

.back-to-top:hover{
  color:#fff;
  transform:translateY(-3px);
}

/* =========================
   CARRUSEL HERO
========================= */
.hero-slider-wrap .carousel-indicators{
  bottom:1.5rem;
}

.hero-slider-wrap .carousel-indicators button{
  width:10px;
  height:10px;
  border-radius:50%;
  border:2px solid rgba(255,255,255,.6);
  background-color:rgba(255,255,255,.35);
  opacity:1;
  margin:0 6px;
  transition:width .3s ease, background-color .3s ease;
}

.hero-slider-wrap .carousel-indicators button.active{
  width:26px;
  border-radius:6px;
  background-color:#fff;
  border-color:#fff;
}

/* =========================
   REVEAL AL HACER SCROLL
========================= */
.reveal{
  opacity:0;
  transform:translateY(22px);
  transition:opacity .6s ease, transform .6s ease;
}

.reveal.is-visible{
  opacity:1;
  transform:translateY(0);
}

/* =========================
   UTILIDADES
========================= */
.rounded-4{
  border-radius:1rem !important;
}

/* =========================
   NOTICIAS A LO ANCHO
========================= */
.container-fluid .news-card{
  max-width:100%;
}

.container-fluid .news-image{
  height:250px;
}

@media (min-width: 1400px){
  .container-fluid.px-xl-5{
    padding-left:3.5rem !important;
    padding-right:3.5rem !important;
  }

  .container-fluid .news-image{
    height:270px;
  }
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 991.98px){
  .section-overlap{
    margin-top:0;
  }

  .hero-section{
    min-height:540px;
  }

  .board-photo{
    height:240px;
  }
}

@media (max-width: 767.98px){
  .section-block{
    padding:58px 0;
  }

  .hero-title{
    font-size:2.4rem;
  }

  .hero-subtitle{
    font-size:1rem;
  }

  .contact-cta-box{
    padding:1.6rem;
  }

  .section-head{
    align-items:flex-start;
  }

  .container-fluid .news-image{
    height:220px;
  }
}

@media (max-width: 575.98px){
  .hero-section{
    min-height:500px;
  }

  .site-logo,
  .site-logo-placeholder{
    width:44px;
    height:44px;
  }

  .news-image{
    height:200px;
  }

  .gallery-tile img{
    height:180px;
  }

  .container-fluid .news-image{
    height:200px;
  }
}