:root {
  --verde: #2F5D1E;
  --verde-claro: #4F7F2A;
  --amarillo: #F4D000;
  --fondo: #F9F9F9;
  --texto: #333;
  --bg: #F7F8FA;
  --card: rgba(255,255,255,0.82);
  --stroke: rgba(17, 24, 39, 0.10);
  --shadow-soft: 0 12px 30px rgba(0,0,0,0.08);
  --radius-xl: 22px;
  --radius-lg: 16px;
  --title: #0F172A;
  --muted: rgba(15,23,42,0.66);

  --font-sans: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-serif: "Fraunces", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px; /* Evita que el header fijo tape los títulos al navegar */
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(244,208,0,0.20), transparent 55%),
    radial-gradient(1100px 650px at 95% 10%, rgba(47,93,30,0.18), transparent 55%),
    var(--bg);
  color: var(--texto);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

/* Accesibilidad: Foco visible para navegación por teclado */
:focus-visible {
  outline: 2px solid var(--verde);
  outline-offset: 2px;
}

.muted {
  color: var(--muted);
}

.section-head {
  margin-bottom: 24px;
}

.section-head h2 {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  letter-spacing: -0.02em;
  color: #3a7a18;
}

.section-head p {
  margin: 0;
  line-height: 1.7;
  max-width: 72ch;
}

/* ===== HEADER ===== */
header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--stroke);
}

.header-container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo {
  flex: 0 0 auto;
}

.logo a {
  display: block;
}

.logo img {
  height: 78px;
  width: auto;
  object-fit: contain;
}

/* NAV */
nav {
  flex: 1 1 auto;
  min-width: 0;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: nowrap;
}

nav ul li {
  position: relative;
}

nav ul li a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.01em;
  color: rgba(15,23,42,0.82);
  padding: 8px 8px;
  border-radius: 999px;
  white-space: nowrap;
  position: relative;
  transition: background .2s ease, color .2s ease;
}

nav ul li a:hover {
  background: rgba(15,23,42,0.06);
}

nav ul li a::after,
.more-btn::after {
  content: "";
  position: absolute;
  left: 12px;
  bottom: 5px;
  width: 0;
  height: 2px;
  background: var(--amarillo);
  border-radius: 999px;
  transition: width .25s ease;
}

nav ul li a:hover::after,
.more-btn:hover::after {
  width: calc(100% - 24px);
}

/* Dropdown */
.nav-more {
  display: flex;
  align-items: center;
}

.more-btn {
  border: 0;
  background: transparent;
  font-family: inherit;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.01em;
  color: rgba(15,23,42,0.82);
  padding: 8px 10px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  position: relative;
}

.more-btn:hover {
  background: rgba(15,23,42,0.06);
}

.more-btn .chev {
  font-size: 11px;
  line-height: 1;
  transition: transform .2s ease;
}

.nav-more.open .more-btn .chev {
  transform: rotate(180deg);
}

.more-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 240px;
  max-width: 320px;
  margin: 0;
  padding: 10px;
  list-style: none;
  display: none;
  z-index: 999;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.98);
  box-shadow: 0 16px 40px rgba(0,0,0,0.14);
}

.more-menu::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 16px;
  width: 12px;
  height: 12px;
  background: rgba(255,255,255,0.98);
  border-top: 1px solid var(--stroke);
  border-left: 1px solid var(--stroke);
  transform: rotate(45deg);
}

.nav-more.open .more-menu {
  display: block;
}

.more-menu li a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
}

.more-menu li a:hover {
  background: rgba(15,23,42,0.06);
}

/* CTA */
.cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  font-size: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--verde), var(--verde-claro));
  border: 1px solid rgba(47,93,30,0.12);
  box-shadow: 0 14px 30px rgba(47,93,30,0.22);
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(47,93,30,0.28);
}

/* Hamburguesa */
.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background: rgba(255,255,255,0.9);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #0F172A;
  transition: transform .25s ease, opacity .25s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO ===== */
.hero {
  max-width: 1300px;
  margin: 22px auto 0;
  padding: 110px 24px;
  text-align: center;
  color: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255,255,255,0.18);
  background: url("./img/15.png") center center / cover no-repeat;
  box-shadow: 0 20px 45px rgba(0,0,0,0.14);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.30), rgba(0,0,0,0.52));
}

.hero h1,
.hero p {
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-shadow: 0 10px 24px rgba(0,0,0,0.25);
}

.hero p {
  margin: 0 auto;
  max-width: 720px;
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.65;
  color: rgba(255,255,255,0.9);
}

/* ===== SECCIONES ===== */
section {
  max-width: 1200px;
  margin: 22px auto;
  padding: 60px 30px;
}

#acerca p,
#acerca li,
#productos p,
#productos li {
  text-align: justify;
  text-justify: inter-word;
  line-height: 1.75;
}

/* Tarjetas */
.beneficios,
.programas,
.hospitales,
.productos,
.innovipss,
.congresos,
.eduloto,
.partners,
.ubicacion,
.acerca,
.donaciones,
.contacto {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-soft);
}

.beneficios::before,
.programas::before,
.hospitales::before,
.productos::before,
.innovipss::before,
.congresos::before,
.eduloto::before,
.partners::before,
.ubicacion::before,
.acerca::before,
.donaciones::before,
.contacto::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, var(--amarillo), rgba(244,208,0,0.35));
}

/* ===== CARRUSEL IMG ===== */

.carousel {
  width: 100%;          
  max-width: 900px;    
  margin: 0px auto;   
  overflow: hidden;
  border-radius: 50px;
}

.track {
  display: flex;
  width: max-content;
  animation: scroll 30s linear infinite;
}

.track img {
  height: 250px;       
  width: auto;         
  flex-shrink: 0;
  margin-right: 10px; 
  border-radius: 12px;
  object-fit: cover;
}

/* Donaciones */

.donaciones h2 {
    text-align: center;
    margin-bottom: 10px;
}

.donaciones-desc {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 30px;
    font-size: 16px;
}

.donaciones-card {
    max-width: 1000px;
    margin: auto;
    padding: 20px 24px;
    background: var(--fondo);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
}

.dato {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #ddd;
    gap: 10px;
}

.dato span {
    font-size: 14px;
    color: #666;
}

.dato strong {
    font-size: 15px;
    color: var(--verde);
    word-break: break-all;
}

.copiar {
    background: var(--verde);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
}

.copiar:hover {
    background: var(--verde-claro);
}

.nota {
    margin-top: 20px;
    font-size: 14px;
    text-align: center;
    color: #555;
}

/* ================= FOOTER ================= */

.footer{
  background:#1E3D14;
  color:#e5e7eb;
  padding:60px 20px 20px;
  margin-top:80px;
}

.footer-container{
  max-width:1200px;
  margin:auto;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:40px;
}

.footer-col h4{
  font-size:16px;
  margin-bottom:14px;
  color:#a7f3d0;
}

.footer-col p{
  font-size:14px;
  line-height:1.6;
  color:#cbd5e1;
}

.footer-logo{
  width:200px;
  margin-bottom:16px;
}

.footer-col ul{
  list-style:none;
  padding:0;
}

.footer-col ul li{
  margin-bottom:8px;
}

.footer-col ul li a{
  text-decoration:none;
  color:#cbd5e1;
  font-size:14px;
  transition:0.3s;
}

.footer-col ul li a:hover{
  color:#2F5D1E;
}

.footer-social{
  display:flex;
  gap:12px;
  margin-top:10px;
}

.footer-social a{
  display:flex;
  align-items:center;
  justify-content:center;
  width:36px;
  height:36px;
  border-radius:50%;
  background:#1e293b;
  color:white;
  font-size:15px;
  transition:0.3s;
}

.footer-social a:hover{
  background:#2F5D1E;
}

.back-top{
  display:inline-block;
  margin-top:16px;
  font-size:14px;
  color:#38bdf8;
  text-decoration:none;
}

.back-top:hover{
  text-decoration:underline;
}

.footer-bottom{
  border-top:1px solid rgba(255,255,255,0.1);
  margin-top:40px;
  padding-top:15px;
  text-align:center;
  font-size:13px;
  color:#94a3b8;
}

/* Movimiento Carrusel */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-1800px);
  }
}

/* ===== PRODUCTO ===== */
#productos {
  text-align: center;
}

.producto-texto {
  text-align: left;
  margin-top: 24px;
}

.eduloto-note {
  margin-top: 16px;
}

.producto-frame {
  display: inline-block;
  margin: 18px auto 20px;
  padding: 12px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(15,23,42,0.10);
  box-shadow: 0 16px 36px rgba(0,0,0,0.14);
  background: #fff;
}

.producto-img {
  width: auto;
  height: auto;
  max-width: 520px;
  max-height: 380px;
  object-fit: contain;
  border-radius: var(--radius-lg);
}



/* ===== UBICACIÓN ===== */
.location-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 16px;
  margin-top: 18px;
}

.location-card,
.map-card {
  background: rgba(255,255,255,0.75);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.location-card {
  padding: 22px;
}

.location-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(244,208,0,0.35);
  background: rgba(244,208,0,0.12);
  color: rgba(15,23,42,0.82);
  font-weight: 900;
  margin-bottom: 14px;
}

.location-title {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  letter-spacing: -0.02em;
  font-size: 22px;
  color: var(--title);
}

.location-text {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.7;
}

.location-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 900;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid var(--stroke);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--verde), var(--verde-claro));
  color: #fff;
  box-shadow: 0 14px 30px rgba(47,93,30,0.22);
  border-color: rgba(47,93,30,0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(47,93,30,0.28);
}

.btn-ghost {
  background: rgba(255,255,255,0.86);
  color: rgba(15,23,42,0.86);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.10);
}

.location-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.75);
  color: rgba(15,23,42,0.80);
  font-weight: 800;
  font-size: 13px;
}

.map-card iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  filter: saturate(1.05) contrast(1.04);
}

/* ===== CONTACTO ===== */
.contacto {
  text-align: center;
}

.contacto .section-head {
  display: grid;
  place-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.contacto-desc {
  max-width: 740px;
  margin: 0 auto 25px;
  font-size: 16px;
  line-height: 1.75;
}

.contacto-card {
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: 0 14px 30px rgba(0,0,0,0.08);
}

.contacto-group {
  margin-bottom: 24px;
}

.contacto-label {
  margin: 0 0 10px;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--verde);
}

.contacto-line {
  margin: 0 0 10px;
  font-size: 16px;
}

.contacto-link {
  text-decoration: none;
  color: var(--verde);
  font-weight: 800;
}

.contacto-redes {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.red {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 26px;
  text-decoration: none;
  transition: transform .3s ease, box-shadow .3s ease;
  box-shadow: 0 10px 22px rgba(0,0,0,0.14);
}

.fb { background: #1877F2; }
.ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.yt { background: #FF0000; }
.tt { background: #010101; }
.mail { background: var(--verde); }
.wa { background: #25D366; }

.red:hover {
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 14px 30px rgba(0,0,0,0.20);
}

/* ===== SELECTOR DE IDIOMA ===== */
.language-floating {
  position: fixed;
  left: 20px;
  bottom: 24px;
  z-index: 450;
  background: rgba(255,255,255,0.90);
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 8px 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

.language-floating select {
  border: none;
  outline: none;
  background: transparent;
  font-weight: 900;
  color: rgba(15,23,42,0.82);
  cursor: pointer;
  font-family: inherit;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1280px) {
  nav ul li a,
  .more-btn,
  .cta {
    font-size: 11px;
  }

  nav ul li a,
  .more-btn {
    padding: 8px 6px;
  }

  .logo img {
    height: 56px;
  }
}

@media (max-width: 980px) {
  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .location-grid {
    grid-template-columns: 1fr;
  }

  .map-card iframe {
    min-height: 320px;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 12px 16px;
  }

  .cta {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(82vw, 360px);
    height: 100vh;
    padding: 92px 18px 24px;
    background: rgba(255,255,255,0.97);
    box-shadow: -6px 0 24px rgba(0,0,0,0.14);
    transition: right .35s ease;
    z-index: 420;
    overflow-y: auto;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  nav.active {
    right: 0;
  }

  nav ul {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 10px;
  }

  nav ul li a,
  .more-btn {
    width: 100%;
    justify-content: space-between;
    font-size: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(15,23,42,0.03);
  }

  .nav-more {
    display: block;
    width: 100%;
  }

  .nav-more .more-btn {
    display: none;
  }

  .nav-more .more-menu {
    display: block;
    position: static;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0;
    min-width: unset;
    max-width: unset;
    border-radius: 0;
  }

  .nav-more .more-menu::before {
    display: none;
  }

  .nav-more .more-menu li a {
    width: 100%;
    font-size: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(15,23,42,0.03);
    justify-content: flex-start;
  }

  .hero {
    margin: 18px 16px 0;
    padding: 80px 18px;
  }

  section {
    margin: 18px 16px;
    padding: 46px 20px;
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .producto-img {
    max-width: 100%;
    max-height: 320px;
  }

  .language-floating {
    left: 14px;
    bottom: 14px;
  }
}

@media (max-width: 480px) {
  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery img {
    height: 220px;
  }

  .logo img {
    height: 50px;
  }

  .location-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

/* Respetar preferencia de movimiento reducido del usuario */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}