/* ════════════════════════════════════════════
   AVP – Home Page Styles
   Solo cargar en index.html
   ════════════════════════════════════════════ */

/* ─── HERO (home) ─── */
.hero { position:relative; height:auto; min-height:705px; overflow:visible; display:flex; align-items:center; justify-content:flex-start; padding-left:61px; }
.hero-bg { position:absolute; inset:0; background-size:cover; background-position:center; }
.hero-bg::after { content:''; position:absolute; inset:0; background:linear-gradient(110deg,rgba(0,0,0,.15) 0%,rgba(0,0,0,0) 60%); }
.hero-card { position:relative; z-index:2; background:#ffffff; border-radius:24px; padding:40px; max-width:620px; width:100%; display:flex; flex-direction:column; gap:28px; }
.hero-badge { display:inline-flex; align-items:center; border:1px solid rgba(238,52,0,.1); border-radius:99px; padding:7px 16px; font-size:12px; font-weight:600; letter-spacing:1px; text-transform:uppercase; color:var(--naranja); width:fit-content; }
.hero-title { font-size:60px; font-weight:700; line-height:1.2; letter-spacing:-.5px; color:var(--negro); }
.hero-title em { color:#007179; font-style:inherit; }
.hero-title span { color:var(--verde); display:block; }
.hero-tagline { font-size:30px; font-weight:700; color:var(--gris); line-height:1.3; letter-spacing:-.3px; margin:0; }
.hero-tagline em { color:var(--verde); font-style:inherit; }
.hero-desc { font-size:16px; line-height:1.7; color:var(--gris); }
.hero-badge { display:inline-flex; align-items:center; gap:7px; border:1.5px solid var(--verde); color:var(--verde); background:rgba(0,113,121,.06); font-size:11px; font-weight:700; letter-spacing:2px; text-transform:uppercase; padding:7px 18px; border-radius:999px; align-self:flex-start; }
.hero-stats { display:flex; justify-content:center; align-items:center; gap:0; background:#fff; padding:36px 24px; width:100%; box-sizing:border-box; }
.stat-item { display:flex; flex-direction:column; align-items:center; text-align:center; padding:0 56px; }
.stat-item + .stat-item { border-left:1px solid #e2e8f0; }
.stat-value { font-size:40px; font-weight:700; color:var(--verde); line-height:1.2; }
.stat-label { font-size:13px; color:var(--gris); margin-top:4px; }
.stat-label em { font-style:normal; font-weight:600; color:var(--negro); }
/* ─── HOTSPOTS ─── */
.hero-hotspots { position:absolute; inset:0; z-index:3; pointer-events:none; overflow:visible; }
.hotspot { position:absolute; pointer-events:all; overflow:visible; }
.hotspot-dot { width:16px; height:16px; border-radius:50%; cursor:pointer; border:3px solid #fff; animation:hotspot-pulse 2.5s ease-in-out infinite; }
@keyframes hotspot-pulse {
  0%,100% { box-shadow:0 0 0 0 currentColor; transform:scale(1); }
  50% { box-shadow:0 0 0 16px transparent; transform:scale(1.2); }
}
@keyframes hotspot-pulse-amarillo {
  0%,100% { box-shadow:0 0 0 0 rgba(255,191,65,1); transform:scale(1); }
  50% { box-shadow:0 0 0 20px rgba(255,191,65,0); transform:scale(1.2); }
}
@keyframes hotspot-pulse-naranja {
  0%,100% { box-shadow:0 0 0 0 rgba(238,52,0,1); transform:scale(1); }
  50% { box-shadow:0 0 0 20px rgba(238,52,0,0); transform:scale(1.2); }
}
@keyframes hotspot-pulse-azul {
  0%,100% { box-shadow:0 0 0 0 rgba(0,179,228,1); transform:scale(1); }
  50% { box-shadow:0 0 0 20px rgba(0,179,228,0); transform:scale(1.2); }
}
.hotspot:nth-child(1) .hotspot-dot { animation:hotspot-pulse-amarillo 2.5s ease-in-out infinite; }
.hotspot:nth-child(2) .hotspot-dot { animation:hotspot-pulse-naranja 2.5s ease-in-out infinite; }
.hotspot:nth-child(3) .hotspot-dot { animation:hotspot-pulse-azul 2.5s ease-in-out infinite; }
.hotspot-tooltip { display:none; position:absolute; left:20px; top:50%; transform:translateY(-50%); background:#fff; border-radius:20px; padding:28px 32px; min-width:300px; max-width:100%; max-height:none; box-shadow:0 16px 40px rgba(0,0,0,.25); pointer-events:none; border:2px solid rgba(255,255,255,.4); }
.hotspot-tooltip.amarillo { background:#805000; border:2px solid rgba(0,0,0,.1); }
.hotspot-tooltip.naranja { background:#8B0000; border:2px solid rgba(0,0,0,.1); }
.hotspot-tooltip.azul { background:#005580; border:2px solid rgba(0,0,0,.1); }
.hotspot-tooltip { position:relative; /* Necesario para posicionar el botón de cerrar */ }
.hotspot.is-open .hotspot-tooltip {
  display:flex;
  flex-direction:column;
  gap:3px;
  pointer-events:auto; /* Permitir clics en el tooltip y su contenido */
}
.hotspot-close-btn {
  position:absolute;
  top:10px; /* Ajusta según sea necesario */
  right:10px; /* Ajusta según sea necesario */
  background:rgba(0,0,0,0.1); /* Fondo ligero */
  border:none;
  border-radius:50%;
  width:30px; height:30px;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; color:#fff; /* Color del icono */
  transition:background .2s ease; z-index:10; /* Asegurar que esté por encima del contenido del tooltip */
}
.hotspot-close-btn:hover { background:rgba(0,0,0,0.2); }
/* Ajuste de color para tooltips claros */
.hotspot-tooltip:not(.amarillo):not(.naranja):not(.azul) .hotspot-close-btn {
  color:var(--gris);
  background:rgba(0,0,0,0.05);
}
.hotspot-tooltip:not(.amarillo):not(.naranja):not(.azul) .hotspot-close-btn:hover {
  background:rgba(0,0,0,0.1);
}
.hotspot-tag { font-size:11px; font-weight:700; letter-spacing:1.5px; text-transform:uppercase; margin-bottom:4px; display:block; }
.hotspot-tooltip strong { font-size:20px; color:#0f172a; line-height:1.3; font-weight:700; }
.hotspot-tooltip.amarillo strong,
.hotspot-tooltip.naranja strong,
.hotspot-tooltip.azul strong { color:#fff; text-shadow:0 2px 4px rgba(0,0,0,.1); }
.hotspot-tooltip.amarillo { border:3px solid rgba(255,255,255,.3); }
.hotspot-tooltip.naranja { border:3px solid rgba(255,255,255,.3); }
.hotspot-tooltip.azul { border:3px solid rgba(255,255,255,.3); }
.hotspot-km { font-size:28px; font-weight:700; color:#0f172a; margin:12px 0; }
.hotspot-tooltip.amarillo .hotspot-km,
.hotspot-tooltip.naranja .hotspot-km,
.hotspot-tooltip.azul .hotspot-km { color:#fff; }
.hotspot-tooltip p { font-size:14px; color:#64748b; margin:0; line-height:1.7; margin-top:6px; }
.hotspot-tooltip.amarillo p,
.hotspot-tooltip.naranja p,
.hotspot-tooltip.azul p { color:#fff; font-weight:500; }
.hero-legend { position:absolute; right:24px; bottom:24px; z-index:3; background:rgba(255,255,255,.40); -webkit-backdrop-filter:blur(18px); backdrop-filter:blur(18px); border-radius:14px; padding:16px; min-width:220px; }
.legend-title { font-size:11px; font-weight:600; letter-spacing:.5px; text-transform:uppercase; color:var(--gris); margin-bottom:10px; }
.legend-item { display:flex; align-items:center; gap:12px; margin-bottom:6px; font-size:13px; }
.legend-line { width:32px; height:4px; border-radius:99px; flex-shrink:0; }
.legend-item span { color:var(--negro); font-weight:600; }
.legend-item small { color:var(--gris); }

/* ─── ABOUT (home) ─── */
.about-section { padding:72px 61px; background:#fff; }
.about-inner { display:flex; align-items:flex-start; gap:64px; max-width:1320px; margin:0 auto; }
.about-image-wrap { flex:0 0 520px; position:relative; box-shadow:var(--shadow-lg); }
.about-image-wrap img { width:100%; height:597px; object-fit:cover; display:block; border-radius:17px; overflow:hidden; }
.about-badge-year { position:absolute; bottom:-30px; right:-20px; background:#007179; color:#fff; border-radius:15px; padding:26px; box-shadow:0 21px 13px rgba(0,0,0,.1); }
.about-badge-year .year { font-size:34px; font-weight:700; line-height:1; display:block; }
.about-badge-year .year-label { font-size:14px; color:rgba(255,255,255,.8); margin-top:4px; display:block; }
.about-badge-year .year-bar { width:34px; height:3px; background:var(--amarillo); border-radius:99px; margin-top:10px; }
.about-content { flex:1; display:flex; flex-direction:column; gap:24px; padding-top:12px; }
.about-title { font-size:34px; font-weight:700; line-height:1.23; letter-spacing:.25px; color:var(--negro); }
.about-title em { color:var(--verde); font-style:normal; }
.about-desc { font-size:16px; line-height:1.75; color:var(--gris); text-align:justify; }
.features-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:8px; }
.feature-card { background:var(--gris-claro); border-radius:14px; padding:16px; transition:transform .25s ease, box-shadow .25s ease; }
.feature-card:hover { transform:translateY(-6px); box-shadow:0 12px 28px rgba(0,0,0,.1); }
.feature-icon { width:28px; height:28px; color:var(--verde); margin-bottom:10px; }
.feature-icon svg { width:100%; height:100%; }
.feature-card h4 { font-size:14px; font-weight:600; color:var(--negro); margin-bottom:6px; }
.feature-card p { font-size:12px; color:var(--gris); line-height:1.6; }

/* ─── NEWS (home) ─── */
.news-section { background:#fff; padding:96px 61px; }
.news-header { display:flex; align-items:flex-end; justify-content:space-between; margin-bottom:40px; }
.news-title { font-size:48px; font-weight:600; line-height:1.17; color:var(--negro); }
.news-title em { color:var(--verde); font-style:normal; }
.news-link { display:flex; align-items:center; gap:6px; font-size:13px; font-weight:500; color:var(--verde); text-decoration:none; white-space:nowrap; }
.news-link svg { width:16px; height:16px; }
.news-grid { display:grid; grid-template-columns:1.9fr 1fr; gap:24px; }
.news-featured { background:#fff; border:1px solid var(--border); border-radius:16px; overflow:hidden; box-shadow:var(--shadow-sm); display:flex; flex-direction:column; }
.news-featured-image { height:340px; position:relative; overflow:hidden; }
.news-featured-image img { width:100%; height:100%; object-fit:cover; display:block; }
.news-featured-image::after { content:''; position:absolute; inset:0; background:linear-gradient(to top,rgba(0,0,0,.6),rgba(0,0,0,.1) 50%,transparent); }
.news-cat-badge { position:absolute; top:16px; left:16px; z-index:2; border-radius:99px; padding:5px 12px; font-size:11px; font-weight:600; letter-spacing:.5px; text-transform:uppercase; color:#fff; }
.news-featured-body { padding:24px; display:flex; flex-direction:column; justify-content:space-between; flex:1; gap:12px; }
.news-date { display:flex; align-items:center; gap:6px; font-size:12px; color:var(--gris); }
.news-date svg { width:13px; height:13px; }
.news-featured-title { font-size:20px; font-weight:600; color:var(--negro); line-height:1.35; }
.news-featured-desc { font-size:14px; color:var(--gris); line-height:1.7; }
.news-read-more { display:inline-flex; align-items:center; gap:4px; font-size:13px; font-weight:500; color:var(--verde); text-decoration:none; }
.news-read-more svg { width:14px; height:14px; }
.news-side { display:flex; flex-direction:column; gap:24px; }
.news-card { background:#fff; border:1px solid var(--border); border-radius:16px; overflow:hidden; box-shadow:var(--shadow-sm); flex:1; display:flex; flex-direction:column; }
.news-card-image { height:160px; position:relative; overflow:hidden; }
.news-card-image img { width:100%; height:100%; object-fit:cover; display:block; }
.news-card-body { padding:20px; display:flex; flex-direction:column; gap:8px; flex:1; }
.news-card-title { font-size:15px; font-weight:600; color:var(--negro); line-height:1.4; }
.news-card-link { display:inline-flex; align-items:center; gap:4px; font-size:12px; font-weight:500; color:var(--verde); text-decoration:none; margin-top:auto; }
.news-card-link svg { width:13px; height:13px; }

/* ─── FAQ SECTION ─── */
.faq-section { padding:80px 61px; background:#fff; }
.faq-inner { max-width:860px; margin:0 auto; }
.faq-header { text-align:center; margin-bottom:56px; }
.faq-eyebrow { font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:2px; color:var(--verde); margin-bottom:12px; }
.faq-title { font-size:36px; font-weight:700; color:var(--negro); margin-bottom:16px; line-height:1.25; }
.faq-subtitle { font-size:16px; color:var(--gris); line-height:1.65; max-width:580px; margin:0 auto; }
.faq-list { display:flex; flex-direction:column; }
.faq-item { border-bottom:1px solid var(--border); }
.faq-item:first-child { border-top:1px solid var(--border); }
.faq-btn { display:flex; align-items:center; justify-content:space-between; gap:20px; width:100%; background:none; border:none; padding:22px 0; text-align:left; cursor:pointer; font-size:16px; font-weight:600; color:var(--negro); font-family:effra,sans-serif; line-height:1.4; transition:color .2s; }
.faq-btn:hover { color:var(--verde); }
.faq-icon { width:30px; height:30px; border-radius:50%; border:1.5px solid var(--border); display:flex; align-items:center; justify-content:center; flex-shrink:0; transition:background .25s,border-color .25s; }
.faq-icon svg { transition:transform .3s ease; color:var(--gris); }
.faq-item.open .faq-btn { color:var(--verde); }
.faq-item.open .faq-icon { background:var(--verde); border-color:var(--verde); }
.faq-item.open .faq-icon svg { transform:rotate(45deg); color:#fff; }
.faq-body { max-height:0; overflow:hidden; transition:max-height .38s cubic-bezier(.4,0,.2,1); }
.faq-body-inner { padding:0 40px 24px 0; font-size:15px; color:var(--gris); line-height:1.75; margin:0; }
.faq-body-inner a { color:var(--verde); font-weight:600; text-decoration:none; }
.faq-body-inner a:hover { text-decoration:underline; }
.faq-item.open .faq-body { max-height:400px; }

/* ─── RESPONSIVE ─── */
@media(max-width:1100px) {
  .about-section,.news-section { padding-left:32px; padding-right:32px; }
  .hero-legend { display:none; }
  .about-inner { flex-direction:column; }
  .about-image-wrap { flex:none; width:100%; }
  .about-image-wrap img { height:320px; }
  .about-badge-year { bottom:-10px; right:16px; }
  .news-header { flex-direction:column; align-items:flex-start; gap:12px; }
  .news-title { font-size:36px; }
}
@media(max-width:900px) {
  .hero { height:auto; min-height:0; flex-direction:column; align-items:stretch; justify-content:flex-start; padding:0; }
  .hero-bg { position:relative; height:260px; width:100%; flex-shrink:0; background-position:62% 35% !important; }
  .hotspot-tooltip { min-width:140px; max-width:85vw; font-size:12px; padding:16px 18px; }
  /* Asegurar que hero-hotspots se alinee con hero-bg en móvil para que los puntos no se muevan */
  .hero-hotspots {
    position: absolute; /* Mantener posicionamiento absoluto relativo a .hero */
    top: 0; /* Alinear con la parte superior de .hero-bg */
    height: 260px; /* Coincidir con la altura de .hero-bg */
    left: 0; /* Asegurar que esté alineado a la izquierda */
    width: 100%; /* Asegurar que ocupe todo el ancho */
  }
  .hotspot-tooltip strong { font-size:14px; }
  .hotspot-km { font-size:14px; }
  .hero-title { font-size:32px; }
  .news-grid { grid-template-columns:1fr; }
  .features-grid { grid-template-columns:1fr; }
  .faq-section { padding:56px 32px; }
  .faq-title { font-size:28px; }
  .faq-btn { font-size:15px; }
}
@media(max-width:700px) {
  .hotspot-tooltip { min-width:120px; max-width:calc(100vw - 24px); max-height:none; font-size:11px; padding:14px 16px; }
  .hotspot-tooltip strong { font-size:13px; }
  .hotspot-km { font-size:12px; }
  .hero-title { font-size:26px; }
  .hero-desc, .about-desc, .faq-body-inner { font-size:14px; line-height:1.65; }
  .hero-card { padding:24px 20px; gap:14px; }
  .hero-stats { gap:8px; flex-wrap:nowrap; padding:24px 16px; }
  .stat-item { flex:1; min-width:0; padding:0 12px; }
  .stat-value { font-size:20px; }
  .stat-label { font-size:10px; }
  .faq-section { padding:48px 20px; }
  .faq-title { font-size:24px; }
  .faq-btn { font-size:14px; padding:18px 0; }
  .faq-body-inner { padding-right:0; }
}
