/* ===== Variables ===== */
:root {
  --primary: #0b3d61;
  --primary-dark: #082c46;
  --primary-light: #1a5a8c;
  --accent: #2e9e4f;
  --accent-dark: #237a3d;
  --gold: #f2a900;
  --light: #f4f7fa;
  --gray: #6b7688;
  --border: #e3e8ef;
  --white: #ffffff;
  --text: #1c2b3a;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(11, 61, 97, 0.08);
  --shadow-lg: 0 20px 45px rgba(11, 61, 97, 0.16);
  --font-head: "Poppins", sans-serif;
  --font-body: "Inter", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { text-decoration: none; color: inherit; }

ul { list-style: none; }

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--primary); line-height: 1.2; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.icon { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }

body.preload-lock { overflow: hidden; }

/* ===== Preloader ===== */
.preloader {
  position: fixed; inset: 0; z-index: 2000;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 22px;
  transition: opacity .6s ease, visibility .6s ease;
}
.preloader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.preloader__logo {
  width: 96px; height: 96px;
  display: flex; align-items: center; justify-content: center;
  animation: preloaderPulse 1.8s ease-in-out infinite;
}
.preloader__logo img {
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,.35));
}
@keyframes preloaderPulse {
  0%, 100% { transform: scale(1); opacity: .9; }
  50% { transform: scale(1.08); opacity: 1; }
}

.preloader__text {
  color: var(--white); font-family: var(--font-head); font-weight: 700;
  font-size: 1.15rem; letter-spacing: .02em; text-align: center;
  opacity: 0; animation: preloaderFadeIn .8s ease .3s forwards;
}
@keyframes preloaderFadeIn { to { opacity: 1; } }

.preloader__bar {
  width: 160px; height: 3px; border-radius: 999px;
  background: rgba(255,255,255,.15); overflow: hidden;
}
.preloader__bar span {
  display: block; height: 100%; width: 40%;
  background: linear-gradient(90deg, var(--gold), #ffcf4d);
  border-radius: 999px;
  animation: preloaderBar 1.2s ease-in-out infinite;
}
@keyframes preloaderBar {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

@media (prefers-reduced-motion: reduce) {
  .preloader__logo, .preloader__bar span { animation: none; }
}

/* ===== Toast de bienvenida ===== */
.welcome-toast-overlay {
  position: fixed; inset: 0; z-index: 1499;
  background: rgba(8,44,70,.45);
  opacity: 0; visibility: hidden;
  transition: opacity .4s ease, visibility .4s ease;
}
.welcome-toast-overlay.is-visible { opacity: 1; visibility: visible; }

.welcome-toast {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(.92);
  background: var(--white); color: var(--primary-dark);
  border-radius: 20px; box-shadow: var(--shadow-lg);
  padding: 38px 40px; max-width: min(400px, 88vw);
  text-align: center;
  z-index: 1500;
  opacity: 0; visibility: hidden;
  transition: opacity .4s ease, transform .4s ease, visibility .4s ease;
}
.welcome-toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }

.welcome-toast__logo {
  width: 72px; height: 72px; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
}
.welcome-toast__logo img {
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(11,61,97,.25));
}
.welcome-toast h3 { font-size: 1.3rem; margin-bottom: 8px; }
.welcome-toast p { color: var(--gray); font-size: .92rem; line-height: 1.5; margin: 0; }

@media (max-width: 560px) {
  .welcome-toast { padding: 30px 26px; }
  .welcome-toast h3 { font-size: 1.15rem; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--accent { background: var(--accent); color: var(--white); box-shadow: 0 8px 20px rgba(46,158,79,.35); }
.btn--accent:hover { background: var(--accent-dark); }
.btn--outline { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn--outline:hover { background: rgba(255,255,255,.15); }
.btn--primary { background: var(--primary); color: var(--white); margin-top: 8px; }
.btn--primary:hover { background: var(--primary-dark); }
.btn--full { width: 100%; }

/* ===== Top bar ===== */
.topbar { background: var(--primary-dark); color: rgba(255,255,255,.85); font-size: .82rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; padding: 8px 24px; flex-wrap: wrap; gap: 8px; }
.topbar__info { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: 6px; }
.topbar__item .icon { width: 14px; height: 14px; opacity: .85; }
.topbar__social { display: flex; gap: 10px; }
.social-btn {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, transform .2s ease;
}
.social-btn .icon { width: 14px; height: 14px; }
.social-btn:hover { background: var(--accent); transform: translateY(-2px); }

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 500;
  background: var(--white);
  box-shadow: 0 2px 14px rgba(0,0,0,.06);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 24px; gap: 20px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.brand__mark img { width: 100%; height: 100%; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__text strong { font-family: var(--font-head); color: var(--primary); font-size: 1.05rem; }
.brand__text small { color: var(--gray); font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; }

.nav__list { display: flex; gap: 30px; }
.nav__close { display: none; }
.nav__link {
  font-weight: 600; font-size: .93rem; color: var(--text);
  position: relative; padding: 6px 0;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  background: var(--accent); transition: width .25s ease;
}
.nav__link:hover, .nav__link.active { color: var(--primary); }
.nav__link:hover::after, .nav__link.active::after { width: 100%; }

.header__actions { display: flex; align-items: center; gap: 16px; }

.hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: none; border: none; cursor: pointer;
}
.hamburger span { width: 24px; height: 2px; background: var(--primary); transition: all .25s ease; }
.hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { position: relative; height: 88vh; min-height: 560px; overflow: hidden; }
.hero__slides { position: relative; width: 100%; height: 100%; }
.hero__slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; visibility: hidden;
  transition: opacity 1s ease;
  display: flex; align-items: center;
}
.hero__slide.is-active { opacity: 1; visibility: visible; }
.hero__content { color: var(--white); max-width: 620px; }
.eyebrow {
  display: inline-block; padding: 6px 16px; border-radius: 999px;
  background: rgba(255,255,255,.15); font-size: .8rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; margin-bottom: 18px;
  backdrop-filter: blur(4px);
}
.eyebrow--dark { background: rgba(11,61,97,.08); color: var(--primary); }
.hero__content h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); color: var(--white); margin-bottom: 16px; }
.hero__content p { font-size: 1.1rem; opacity: .92; margin-bottom: 30px; max-width: 520px; }
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; }

.hero__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.18); color: var(--white);
  border: none; font-size: 1rem; cursor: pointer; z-index: 5;
  transition: background .2s ease;
}
.hero__arrow:hover { background: rgba(255,255,255,.35); }
.hero__arrow--prev { left: 24px; }
.hero__arrow--next { right: 24px; }

.hero__dots { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 5; }
.hero__dots .dot {
  width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.4);
  border: none; cursor: pointer; transition: background .2s ease, transform .2s ease;
}
.hero__dots .dot.is-active { background: var(--white); transform: scale(1.2); }

/* ===== Section head ===== */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 10px; }

/* ===== Mundo Vecinal / accesos rápidos ===== */
.mundo { padding: 60px 0 70px; background: var(--light); }
.mundo__panel {
  background: var(--white); border-radius: 20px; padding: 22px;
  box-shadow: var(--shadow-lg);
}

.mundo__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  grid-auto-rows: 1fr;
  gap: 14px;
}

.mundo__photo {
  grid-row: 1 / -1;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 10px;
  padding: 26px;
  min-height: 230px;
  border: none;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: transform .25s ease, box-shadow .25s ease;
}
.mundo__photo:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.mundo__photo--right { align-items: flex-end; text-align: right; }
.mundo__photo h3 { color: var(--white); font-size: 1.5rem; }
.mundo__photo-cta {
  color: var(--white); font-weight: 700; font-size: .88rem;
  background: rgba(255,255,255,.18); padding: 8px 14px; border-radius: 999px;
  backdrop-filter: blur(2px);
}
.mundo__photo > .mundo__btn-icon { width: 30px; height: 30px; color: var(--gold); margin-bottom: 2px; }

.mundo__btn-icon { width: 21px; height: 21px; fill: currentColor; flex-shrink: 0; color: var(--gold); opacity: .9; transition: opacity .25s ease, transform .25s ease; }
.mundo__btn-label { display: flex; align-items: center; gap: 12px; }

.mundo__btn {
  background: var(--primary);
  color: var(--white);
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-weight: 600;
  font-size: .95rem;
  position: relative;
  overflow: hidden;
  transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}
.mundo__btn:hover { background: var(--primary-light); transform: translateY(-3px); box-shadow: 0 20px 45px rgba(242,169,0,.22), var(--shadow-lg); }
.mundo__btn:hover .mundo__btn-icon { opacity: 1; transform: scale(1.08); }
.mundo__btn--photo { background-size: contain; background-position: center; background-repeat: no-repeat; background-color: var(--primary); }
.mundo__btn--photo:hover {
  background-color: var(--primary);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}
.mundo__btn--light { background: var(--primary-light); }
.mundo__btn--light:hover { background: var(--primary); }

.mundo__btn-icon-wrap {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  background: rgba(242,169,0,.16);
  display: flex; align-items: center; justify-content: center;
  transition: background .3s ease, transform .3s ease;
}
.mundo__btn:hover .mundo__btn-icon-wrap {
  background: linear-gradient(135deg, var(--gold), #ffcf4d);
  transform: scale(1.08) rotate(-8deg);
}
.mundo__btn:hover .mundo__btn-icon-wrap .mundo__btn-icon { color: var(--primary-dark); opacity: 1; }

.mundo__btn-shine {
  position: absolute;
  top: 0; left: -60%;
  width: 35%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.25), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}
.mundo__btn:hover .mundo__btn-shine { animation: mundoShine 1s ease forwards; }
@keyframes mundoShine {
  from { left: -60%; }
  to { left: 140%; }
}

.mundo__btn-arrow {
  position: absolute;
  right: 16px;
  bottom: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #ffcf4d);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translate(12px, 12px) scale(.6);
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
}
.mundo__btn-arrow svg { width: 15px; height: 15px; }
.mundo__btn:hover .mundo__btn-arrow { opacity: 1; transform: translate(0, 0) scale(1); }
.mundo__badge {
  background: var(--gold); color: var(--primary-dark);
  font-weight: 800; font-size: .72rem; letter-spacing: .03em;
  text-transform: uppercase; padding: 6px 10px; border-radius: 6px;
  white-space: nowrap;
}

.mundo__btn--stack {
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 8px;
  cursor: default;
}
.mundo__btn--stack:hover { background: var(--primary); }
.mundo__btn-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; color: var(--white); font-weight: 600; font-size: .95rem;
}
.mundo__btn-row:hover { text-decoration: none; }
.mundo__btn-sub {
  align-self: flex-start;
  color: rgba(255,255,255,.75);
  font-size: .78rem; font-weight: 500;
  text-decoration: underline; text-underline-offset: 3px;
  transition: color .2s ease;
}
.mundo__btn-sub:hover { color: var(--white); }

.mundo__panels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 14px;
}

.mundo__info {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 22px;
  text-align: center;
}
.mundo__info h4 {
  font-size: .92rem; font-weight: 700; margin-bottom: 12px;
}
.mundo__info h4:not(:first-child) { margin-top: 18px; }

.mundo__info--photo {
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-height: 230px;
  padding: 26px 18px;
  border: none;
}
.mundo__info--photo h4 { color: var(--white); margin-bottom: 0; }
.mundo__info--photo h4:not(:first-child) { margin-top: 10px; }

.mundo__hours {
  background: linear-gradient(120deg, var(--primary), var(--primary-light));
  border-radius: 14px; padding: 26px 22px; color: var(--white);
  display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 20px; text-align: center;
}
.mundo__hours h4 { color: var(--white); font-size: 1rem; }
.mundo__hours-badge {
  background: var(--white); color: var(--primary-dark);
  font-family: var(--font-head); font-weight: 800; font-size: 1.15rem;
  padding: 12px 16px; border-radius: 8px; letter-spacing: .01em;
}

/* ===== Servicio técnico ===== */
.tech {
  padding: 80px 0;
  background-size: cover;
  background-position: center;
}
.tech--tramites { background: var(--light); }
.tech__grid {
  display: grid;
  grid-template-columns: .8fr 1.6fr;
  gap: 40px;
  align-items: start;
}
.tech__head h2 { margin-bottom: 8px; }
.tech__head p { color: var(--gray); font-size: .95rem; }

.tech__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.tech-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform .25s ease, box-shadow .25s ease;
}
.tech-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); text-decoration: none; }
.tech-card__icon { width: 30px; height: 30px; color: var(--accent); }
.tech-card h4 { font-size: 1rem; margin: 0; }

.tech-card--photo {
  grid-column: span 2;
  background-size: cover;
  background-position: center;
  padding: 0;
  min-height: 0;
}

@media (max-width: 880px) {
  .tech__grid { grid-template-columns: 1fr; }
  .tech__cards { grid-template-columns: 1fr 1fr; }
  .tech-card--photo { min-height: 200px; }
}
@media (max-width: 560px) {
  .tech__cards { grid-template-columns: 1fr; }
}

/* Efecto hover (estilo Edenor) — tarjetas de Servicio técnico y Trámites (no aplica a la tarjeta con foto) */
.tech-card:not(.tech-card--photo) {
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
}
.tech-card:not(.tech-card--photo):hover { border-color: rgba(46,158,79,.25); }
.tech-card__arrow {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #17b6a3);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translate(14px, 14px) scale(.6);
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
}
.tech-card__arrow svg { width: 18px; height: 18px; }
.tech-card:not(.tech-card--photo):hover .tech-card__arrow {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

/* ===== About / Institucional ===== */
.about { padding: 90px 0 0; }
.about__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 60px; align-items: start; }
.about__text p { color: var(--gray); margin-bottom: 16px; }
.about__text h2 { margin-bottom: 18px; }
.about__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 24px 0 10px; }
.about__cols h4 { color: var(--accent); font-size: 1rem; margin-bottom: 6px; }
.about__cols p { font-size: .92rem; margin-bottom: 0; }

.about__card {
  background: var(--primary); color: var(--white); border-radius: var(--radius);
  padding: 34px; box-shadow: var(--shadow-lg);
}
.about__card h3 { color: var(--white); margin-bottom: 20px; }
.board-list li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.15); font-size: .92rem;
}
.board-list li:last-child { border-bottom: none; }
.board-list span { opacity: .75; }
.board-list strong { font-weight: 600; }

.about__video.video-thumb { max-width: none; margin: 0; min-height: 320px; }

/* ===== Stats ===== */
.stats {
  margin-top: 80px; padding: 50px 24px;
  background: linear-gradient(120deg, var(--primary), var(--primary-light));
  border-radius: var(--radius);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  color: var(--white); text-align: center;
}
.stat__num { font-family: var(--font-head); font-size: 2.6rem; font-weight: 800; }
.stat__plus { font-family: var(--font-head); font-size: 2.6rem; font-weight: 800; color: var(--gold); }
.stat p { opacity: .85; font-size: .92rem; margin-top: 6px; }

/* ===== Activities ===== */
.activities { padding: 100px 0 90px; background: var(--light); }
.activities__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.activity-card {
  background: var(--white); border-radius: var(--radius); padding: 34px;
  text-align: center; border: 1px solid var(--border);
  transition: transform .25s ease, box-shadow .25s ease;
}
.activity-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.activity-card__icon {
  width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 18px;
  background: rgba(11,61,97,.08); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.activity-card__icon svg { width: 28px; height: 28px; fill: currentColor; }
.activity-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.activity-card p { color: var(--gray); font-size: .92rem; }

/* ===== News ===== */
.news { padding: 100px 0; }
.news__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news-card {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
  box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease;
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.news-card__img { height: 190px; background-size: cover; background-position: center; }
.news-card__body { padding: 24px; }
.news-card__date { color: var(--accent); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.news-card__body h3 { font-size: 1.08rem; margin: 10px 0; }
.news-card__body p { color: var(--gray); font-size: .92rem; margin-bottom: 14px; }
.news-card__link { color: var(--primary); font-weight: 700; font-size: .9rem; }

/* ===== FAQ / Accordion ===== */
.faq { padding: 0 0 100px; }
.accordion { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.accordion__item { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.accordion__trigger {
  width: 100%; text-align: left; background: var(--light); border: none;
  padding: 18px 22px; font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  color: var(--primary); cursor: pointer; display: flex; justify-content: space-between; align-items: center;
}
.accordion__trigger::after { content: "+"; font-size: 1.3rem; transition: transform .25s ease; }
.accordion__item.is-open .accordion__trigger::after { transform: rotate(45deg); }
.accordion__panel {
  max-height: 0; overflow: hidden; transition: max-height .3s ease;
  padding: 0 22px;
}
.accordion__item.is-open .accordion__panel { max-height: 200px; padding: 4px 22px 20px; }
.accordion__panel p { color: var(--gray); font-size: .93rem; }

/* ===== Soporte 24/7 ===== */
.support {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  padding: 100px 0;
  text-align: center;
}
.support__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(9,52,84,.88), rgba(9,52,84,.65));
  z-index: 1;
}
.support__particles {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 2;
  pointer-events: none;
}
.support__content { position: relative; z-index: 3; max-width: 720px; }
.support__content h2 { color: var(--white); font-size: 2.1rem; margin-bottom: 14px; }
.support__content p { color: rgba(255,255,255,.85); font-size: 1.05rem; margin-bottom: 28px; }

@media (max-width: 640px) {
  .support { min-height: 340px; padding: 70px 0; }
  .support__content h2 { font-size: 1.6rem; }
}

/* ===== Contact ===== */
.contact { padding: 100px 0; background: var(--light); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact__info h2 { margin: 10px 0 12px; }
.contact__info > p { color: var(--gray); margin-bottom: 26px; }
.contact__list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 26px; }
.contact__list li { display: flex; align-items: center; gap: 12px; color: var(--text); font-size: .95rem; }
.contact__list .icon { color: var(--accent); }
.contact__map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); position: relative; }
.contact__map iframe { width: 100%; height: 260px; border: 0; display: block; }
.contact__map-link {
  display: block; text-align: right; font-size: .8rem; color: var(--gray);
  background: var(--white); padding: 6px 12px;
}
.contact__map-link:hover { color: var(--primary); }

.tramites-card {
  background: linear-gradient(120deg, var(--primary), var(--primary-light));
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  padding: 34px;
  min-height: 260px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  box-shadow: var(--shadow-lg);
  transition: transform .25s ease, box-shadow .25s ease;
}
.tramites-card:hover { transform: translateY(-4px); }
.tramites-card__icon {
  width: 52px; height: 52px; border-radius: 12px;
  border: 1.5px solid rgba(46,158,79,.7); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.tramites-card__icon svg { width: 26px; height: 26px; fill: currentColor; }
.tramites-card__row {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; margin-top: 30px;
}
.tramites-card__text { color: var(--white); font-family: var(--font-head); font-size: 1.35rem; text-align: left; }
.tramites-card__text strong { color: var(--accent); font-weight: 700; }
.tramites-card__btn {
  background: var(--white); color: var(--primary); font-weight: 700;
  padding: 12px 28px; border-radius: 999px; white-space: nowrap;
}

/* ===== Footer ===== */
.footer { background: var(--primary-dark); color: rgba(255,255,255,.75); padding: 70px 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,.1); }
.brand--footer .brand__text strong { color: var(--white); }
.brand--footer .brand__text small { color: rgba(255,255,255,.6); }
.footer__brand p { margin: 16px 0 20px; font-size: .9rem; line-height: 1.7; }
.footer__social { display: flex; gap: 10px; }
.footer__col h4 { color: var(--white); font-size: 1rem; margin-bottom: 18px; }
.footer__col ul { display: flex; flex-direction: column; gap: 12px; font-size: .9rem; }
.footer__col a:hover { color: var(--accent); }
.footer__bottom-inner { padding: 22px 24px; text-align: center; font-size: .85rem; }
.footer__credit { margin-top: 6px; font-size: .78rem; color: rgba(255,255,255,.55); }
.footer__credit a { color: rgba(255,255,255,.75); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.footer__credit a:hover { color: var(--accent); }

/* ===== Back to top ===== */
.to-top {
  position: fixed; bottom: 26px; right: 26px; width: 46px; height: 46px;
  border-radius: 50%; background: var(--primary); color: var(--white);
  border: none; font-size: 1.1rem; cursor: pointer; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, background .2s ease;
  z-index: 400;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--accent); }

/* ===== Reveal animation ===== */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .about__grid, .contact__grid { grid-template-columns: 1fr; }
  .activities__grid, .news__grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .mundo__grid { grid-template-columns: 1fr 1fr; }
  .mundo__photo { grid-row: auto; grid-column: 1 / -1; min-height: 160px; }
  .mundo__btn--photo { grid-column: 1 / -1; min-height: 160px; }
  .mundo__panels { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .topbar { display: none; }
  .nav {
    position: fixed; top: 0; right: -100%; width: min(320px, 85%); height: 100vh;
    background: var(--white); box-shadow: -10px 0 30px rgba(0,0,0,.15);
    transition: right .3s ease; padding: 100px 30px 30px; z-index: 600;
    overflow-y: auto;
  }
  .nav.is-open { right: 0; }
  .nav__list { flex-direction: column; gap: 22px; }
  .header__actions .btn--accent { display: none; }
  .header__actions { position: relative; z-index: 601; }
  .hamburger { display: flex; }
  .nav__overlay {
    position: fixed; inset: 0; background: rgba(8,44,70,.55);
    z-index: 599; opacity: 0; visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
  }
  .nav__overlay.is-open { opacity: 1; visibility: visible; }
  .nav__close {
    display: flex; align-items: center; justify-content: center;
    position: absolute; top: 20px; right: 20px;
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--light); border: none; color: var(--primary);
    font-size: 1.6rem; line-height: 1; cursor: pointer;
    transition: background .2s ease;
  }
  .nav__close:hover { background: var(--border); }
  .activities__grid, .news__grid { grid-template-columns: 1fr; }
  .about__cols { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; text-align: left; }
  .hero__arrow { display: none; }
  .mundo__grid { grid-template-columns: 1fr; }
  .mundo__panel { padding: 16px; }
  .modal__list { grid-template-columns: 1fr; }
  .modal__dialog { padding: 30px 22px; }
}

/* ===== Modal: Beneficios ===== */
.modal {
  position: fixed; inset: 0; z-index: 900;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__overlay {
  position: absolute; inset: 0; background: rgba(8, 44, 70, .65); backdrop-filter: blur(2px);
}
.modal__dialog {
  position: relative; background: var(--white); border-radius: 18px;
  padding: 40px; max-width: 720px; width: 100%; max-height: 85vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: translateY(16px) scale(.98); transition: transform .25s ease;
}
.modal.is-open .modal__dialog { transform: translateY(0) scale(1); }
.modal__close {
  position: absolute; top: 18px; right: 18px; width: 36px; height: 36px;
  border-radius: 50%; border: none; background: var(--light); color: var(--primary);
  font-size: 1.3rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease;
}
.modal__close:hover { background: var(--border); }
.modal__dialog h3 { font-size: 1.5rem; margin: 10px 0 8px; }
.modal__intro { color: var(--gray); margin-bottom: 20px; }
.modal__intro--alert {
  background: rgba(242,169,0,.12);
  border: 1px solid rgba(242,169,0,.4);
  color: var(--primary-dark);
  padding: 12px 16px;
  border-radius: 10px;
  font-size: .88rem;
  line-height: 1.5;
}
.modal__intro--alert a { color: var(--accent-dark); font-weight: 700; text-decoration: underline; }
.modal__list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px;
  margin-bottom: 26px; list-style: none;
}
.modal__list li {
  position: relative; padding-left: 26px; font-size: .92rem; color: var(--text);
  line-height: 1.4;
}
.modal__list li::before {
  content: "\2713"; position: absolute; left: 0; top: 0;
  width: 18px; height: 18px; border-radius: 50%; background: var(--accent);
  color: var(--white); font-size: .68rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ===== Modal: Pagar factura ===== */
.pay-options { display: flex; flex-direction: column; gap: 14px; margin-top: 10px; }
.pay-option {
  display: flex; align-items: center; gap: 16px;
  background: var(--light); border: 1px solid var(--border);
  border-radius: 14px; padding: 18px 20px;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.pay-option:hover {
  background: var(--white); border-color: var(--accent);
  transform: translateY(-2px); box-shadow: var(--shadow);
  text-decoration: none;
}
.pay-option__icon {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
}
.pay-option__icon svg { width: 22px; height: 22px; fill: currentColor; }
.pay-option__text { display: flex; flex-direction: column; gap: 2px; text-align: left; flex: 1; }
.pay-option__text strong { color: var(--primary); font-size: 1rem; }
.pay-option__text small { color: var(--gray); font-size: .82rem; }
.pay-option__arrow { color: var(--accent); font-size: 1.2rem; font-weight: 700; flex-shrink: 0; }

.modal__social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}
.modal__social-btn {
  display: flex; align-items: center; gap: 10px;
  background: var(--light); border: 1px solid var(--border);
  color: var(--primary); font-weight: 700; font-size: .92rem;
  padding: 12px 18px; border-radius: 999px;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.modal__social-btn .icon { width: 18px; height: 18px; fill: currentColor; }
.modal__social-btn:hover {
  background: var(--accent); color: var(--white); transform: translateY(-2px);
  text-decoration: none;
}

/* ===== Modal: Formularios de trámites ===== */
.tform { display: flex; flex-direction: column; gap: 16px; margin-top: 6px; }
.tform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tform label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: .85rem; font-weight: 600; color: var(--primary);
}
.tform input, .tform select, .tform textarea {
  font-family: inherit; font-size: .95rem; font-weight: 400;
  color: var(--text); background: var(--light);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 11px 14px; transition: border-color .2s ease, background .2s ease;
}
.tform input:focus, .tform select:focus, .tform textarea:focus {
  outline: none; border-color: var(--accent); background: var(--white);
}
.tform textarea { resize: vertical; min-height: 80px; }
.tform__submit { align-self: flex-start; margin-top: 4px; }
.tform__status { font-size: .88rem; font-weight: 600; min-height: 1.2em; }
.tform__status.is-success { color: var(--accent-dark); }
.tform__status.is-error { color: #c0392b; }

@media (max-width: 560px) {
  .tform__row { grid-template-columns: 1fr; }
}

/* ===== Modal: Video ===== */
.modal__dialog--video {
  max-width: 960px; padding: 0; background: transparent; box-shadow: none;
  overflow: visible;
}
.modal__dialog--video .modal__close {
  top: -46px; right: 0; background: rgba(255,255,255,.15); color: var(--white);
}
.modal__dialog--video .modal__close:hover { background: rgba(255,255,255,.3); }
.video-wrap {
  position: relative; width: 100%; padding-bottom: 56.25%;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg);
  background: #000;
}
.video-wrap iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}

/* ===== Acordeón numerado (trámites) ===== */
.faq-numbered { margin-top: 24px; }
.faq-numbered__item { border-bottom: 1px solid var(--border); }
.faq-numbered__item:first-child { border-top: 1px solid var(--border); }
.faq-numbered__trigger {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; gap: 22px;
  padding: 22px 4px; text-align: left;
}
.faq-numbered__num { font-family: var(--font-head); font-weight: 700; color: var(--accent); font-size: .95rem; width: 26px; flex-shrink: 0; }
.faq-numbered__q { flex: 1; font-family: var(--font-head); font-weight: 600; color: var(--primary); font-size: 1rem; }
.faq-numbered__plus {
  width: 34px; height: 34px; border-radius: 50%; background: var(--light);
  color: var(--primary); display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0; transition: transform .25s ease, background .2s ease;
}
.faq-numbered__item.is-open .faq-numbered__plus { transform: rotate(45deg); background: var(--accent); color: var(--white); }
.faq-numbered__panel { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-numbered__item.is-open .faq-numbered__panel { max-height: 160px; }
.faq-numbered__panel p { color: var(--gray); font-size: .9rem; padding: 0 4px 20px 48px; }

/* ===== Video institucional ===== */
.video-section { padding: 90px 0; }
.video-thumb {
  position: relative;
  display: block;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  background-color: var(--primary-dark);
  border: none;
  cursor: pointer;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.video-thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(8, 44, 70, .25);
  transition: background .25s ease;
}
.video-thumb:hover::after { background: rgba(8, 44, 70, .4); }
.video-thumb__play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 84px; height: 84px; border-radius: 50%;
  background: rgba(255,255,255,.95);
  display: flex; align-items: center; justify-content: center;
  z-index: 1;
  transition: transform .25s ease, background .25s ease;
}
.video-thumb__play svg { width: 34px; height: 34px; fill: var(--primary); margin-left: 4px; }
.video-thumb:hover .video-thumb__play { transform: translate(-50%, -50%) scale(1.1); background: var(--white); }

/* ===== WhatsApp flotante ===== */
.whatsapp-float {
  position: fixed; left: 26px; bottom: 26px; z-index: 400;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 25px rgba(37, 211, 102, .45);
  transition: transform .2s ease, box-shadow .2s ease;
}
.whatsapp-float .icon { width: 30px; height: 30px; position: relative; z-index: 1; }
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 12px 30px rgba(37, 211, 102, .6); }

.whatsapp-float__pulse {
  position: absolute; inset: 0; border-radius: 50%;
  background: #25d366; opacity: .55;
  animation: whatsapp-pulse 2s ease-out infinite;
}

@keyframes whatsapp-pulse {
  0% { transform: scale(1); opacity: .55; }
  70% { transform: scale(1.9); opacity: 0; }
  100% { transform: scale(1.9); opacity: 0; }
}

@media (max-width: 760px) {
  .whatsapp-float { left: 18px; bottom: 18px; width: 52px; height: 52px; }
  .whatsapp-float .icon { width: 26px; height: 26px; }
}
