:root {
  --bg: #eefaf4;
  --bg-strong: #dbf3e7;
  --surface: #ffffff;
  --panel: rgba(255, 255, 255, 0.78);
  --primary: #087f72;
  --primary-2: #08a391;
  --secondary: #e64e35;
  --secondary-2: #ff815c;
  --warning: #ffc543;
  --danger: #c9342c;
  --success: #128a5c;
  --semaforo-red: #f0523e;
  --semaforo-yellow: #ffd23f;
  --semaforo-green: #07a878;
  --text: #19332e;
  --muted: #49615c;
  --border: rgba(29, 48, 45, 0.1);
  --shadow: 0 24px 60px rgba(8, 127, 114, 0.22);
  --shadow-soft: 0 14px 30px rgba(25, 51, 46, 0.14);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 15px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: linear-gradient(180deg, #f0fbf4 0%, #fff0e8 100%);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(17, 34, 54, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand strong {
  display: block;
  color: var(--primary);
  font-size: 1.15rem;
  line-height: 1.1;
}

.brand span {
  display: block;
  color: var(--secondary);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--semaforo-red) 0 33%, var(--semaforo-yellow) 33% 66%, var(--semaforo-green) 66%);
  color: white;
  font-weight: 900;
  font-size: 1.4rem;
  box-shadow: 0 16px 26px rgba(8, 127, 114, 0.3);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 600;
  color: var(--muted);
}

.main-nav a {
  position: relative;
  transition: color 0.25s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--primary);
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 46px;
  height: 46px;
  padding: 0;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  margin: 5px auto;
  background: var(--primary);
  border-radius: 12px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 90px 0 50px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(230, 78, 53, 0.18), transparent 30%),
    radial-gradient(circle at center, rgba(255, 197, 67, 0.24), transparent 25%),
    radial-gradient(circle at bottom right, rgba(7, 168, 120, 0.2), transparent 35%),
    linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(219, 243, 231, 0.98));
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.hero-copy {
  max-width: 620px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(230, 78, 53, 0.16), rgba(255, 197, 67, 0.2), rgba(7, 168, 120, 0.15));
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgba(13, 27, 42, 0.04);
}

.eyebrow.light {
  background: rgba(255,255,255,0.16);
  color: white;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 18px;
  line-height: 1.1;
}

h1 {
  margin-top: 18px;
  font-size: clamp(2.4rem, 4vw, 4.5rem);
  color: var(--text);
}

h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  color: var(--text);
}

h3 {
  font-size: clamp(1.3rem, 2vw, 1.8rem);
}

p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.02rem;
}

.hero-copy p {
  font-size: 1.11rem;
  max-width: 55ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--semaforo-red), #f97316 25%, var(--semaforo-yellow) 55%, var(--semaforo-green) 100%);
  color: white;
  box-shadow: 0 18px 28px rgba(22, 163, 74, 0.2);
}

.btn-secondary {
  background: rgba(8, 127, 114, 0.12);
  border-color: rgba(8, 127, 114, 0.25);
  color: var(--primary);
}

.hero-pills {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-pills li {
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(17, 34, 54, 0.05);
  color: var(--primary);
  border-radius: 999px;
  padding: 9px 12px;
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(17, 34, 54, 0.06);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 24px;
}

.hero-image-card {
  position: relative;
  min-height: 430px;
  padding: 0;
  overflow: hidden;
  animation: hero-float 5s ease-in-out infinite;
}

.hero-image-card img {
  width: 100%;
  height: 430px;
  object-fit: cover;
  filter: saturate(1.12) contrast(1.04);
}

.hero-image-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 12, 18, 0.04) 28%, rgba(5, 12, 18, 0.82) 100%);
  pointer-events: none;
}

.hero-image-overlay {
  position: absolute;
  z-index: 1;
  right: 22px;
  bottom: 22px;
  left: 22px;
  color: white;
}

.hero-image-overlay .label {
  display: inline-block;
  padding: 7px 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--semaforo-red), var(--semaforo-yellow), var(--semaforo-green));
  color: #142018;
  font-size: 0.74rem;
  font-weight: 800;
}

.hero-image-overlay strong {
  display: block;
  margin-top: 12px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
}

.hero-image-overlay small {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
}

.mini-card {
  background: linear-gradient(135deg, rgba(8, 127, 114, 0.12), rgba(230, 78, 53, 0.14));
  border-radius: 18px;
  padding: 18px;
  border: 1px solid rgba(17, 34, 54, 0.04);
}

.mini-card .label {
  display: inline-block;
  color: var(--secondary);
  background: rgba(230, 78, 53, 0.14);
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.mini-card strong {
  display: block;
  font-size: 1.45rem;
  margin-bottom: 6px;
}

.mini-card small {
  color: var(--muted);
  line-height: 1.6;
}

.mini-chart {
  margin-top: 26px;
  height: 180px;
  display: grid;
  grid-template-columns: repeat(5, minmax(40px, 1fr));
  align-items: end;
  gap: 12px;
  padding: 18px 8px 0;
}

.bar {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: center;
  border-radius: 14px 14px 0 0;
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.28), rgba(250, 204, 21, 0.5), rgba(239, 68, 68, 0.25));
  min-height: 60px;
  animation: pulse 3s ease-in-out infinite alternate;
}

.bar span {
  position: absolute;
  bottom: -26px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
}

.bar-a { height: 42%; }
.bar-b { height: 66%; animation-delay: 0.2s; }
.bar-c { height: 84%; animation-delay: 0.4s; }
.bar-d { height: 72%; animation-delay: 0.6s; }
.bar-e { height: 58%; animation-delay: 0.8s; }

.slider-section,
.content-section,
.rules-section,
.faq-section,
.contact-section {
  padding: 90px 0;
}

.solidario-section {
  padding: 0 0 90px;
  scroll-margin-top: 100px;
}

.solidario-panel {
  padding: 34px;
  background: linear-gradient(135deg, #ddf5e7, #ffe7dd);
  border: 1px solid rgba(8, 127, 114, 0.2);
  border-left: 6px solid var(--secondary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.solidario-panel h2 {
  color: var(--primary);
}

.solidario-panel p:last-child {
  margin-bottom: 0;
}

.image-credit {
  margin: 12px 4px 0;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: right;
}

.image-credit a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.seo-box {
  background: linear-gradient(135deg, rgba(7, 168, 120, 0.11), rgba(255, 197, 67, 0.15), rgba(230, 78, 53, 0.1));
  border: 1px solid rgba(13, 27, 42, 0.06);
  border-radius: 22px;
  padding: 22px 24px;
  margin: 0 0 30px;
}

.seo-box p {
  margin: 0;
  font-size: 1.04rem;
  color: var(--text);
}

.section-heading {
  margin-bottom: 36px;
}

.section-heading.center {
  text-align: center;
}

.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #151817;
  box-shadow: var(--shadow-soft);
}

.slides {
  position: relative;
  min-height: 520px;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.slide.active {
  opacity: 1;
  visibility: visible;
}

.slide img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.05);
}

.slide-overlay {
  position: absolute;
  inset: auto 30px 30px 30px;
  background: linear-gradient(120deg, rgba(8, 127, 114, 0.46), rgba(230, 78, 53, 0.34));
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 20px;
  padding: 18px 20px;
  color: white;
  box-shadow: 0 16px 30px rgba(0,0,0,0.12);
}

.slide-overlay span {
  display: inline-block;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.9;
}

.slide-overlay h3 {
  margin: 8px 0 0;
  color: white;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.8);
  color: var(--primary);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.carousel-btn.prev { left: 18px; }
.carousel-btn.next { right: 18px; }

.carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.65);
}

.dot.active {
  width: 26px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.info-grid,
.rules-grid,
.feature-grid
{
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 24px;
}

.info-card,
.rule-card,
.feature,
.article-panel,
.side-panel,
.contact-card,
.legal-card {
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(17, 34, 54, 0.06);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.info-card,
.rule-card,
.feature {
  padding: 28px 22px;
}

.info-card h3,
.rule-card h3,
.feature h3,
.side-panel h3,
.article-panel h3,
.contact-card h3,
.legal-card h3 {
  color: var(--text);
  margin-bottom: 12px;
}

.article-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-top: 32px;
}

.article-panel,
.side-panel {
  padding: 28px 24px;
}

.quote-box {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 17px;
  background: linear-gradient(135deg, rgba(8, 127, 114, 0.12), rgba(230, 78, 53, 0.14));
  border: 1px solid rgba(8, 127, 114, 0.12);
}

.quote-box strong {
  display: block;
  color: var(--primary);
  margin-bottom: 6px;
}

.side-panel ul,
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.side-panel li,
.site-footer li {
  padding: 7px 0;
  color: var(--muted);
}

.feature-band {
  padding: 0 0 90px;
}

.feature {
  position: relative;
  overflow: hidden;
}

.feature i {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(8,127,114,0.18), rgba(230,78,53,0.22));
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.info-banner {
  padding: 0 0 90px;
}

.banner-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 34px 32px;
  background: linear-gradient(135deg, var(--primary-2), var(--secondary));
  border-radius: 26px;
  color: white;
  box-shadow: var(--shadow);
}

.banner-box h2 {
  color: white;
  margin: 10px 0 0;
  max-width: 620px;
}

.faq-list {
  display: grid;
  gap: 16px;
}

.faq-item {
  background: rgba(255,255,255,0.84);
  border: 1px solid rgba(17, 34, 54, 0.06);
  border-radius: 18px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border: 0;
  background: transparent;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.faq-question::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--primary);
}

.faq-item.active .faq-question::after { content: "−"; }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

.faq-answer p {
  padding: 0 24px 20px;
  margin: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: start;
}

.contact-copy ul {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.contact-card {
  padding: 30px 24px;
}

.contact-card label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--text);
  font-weight: 600;
}

.contact-card input,
.contact-card textarea {
  width: 100%;
  border: 1px solid rgba(17,34,54,0.12);
  border-radius: 12px;
  background: #f3faf7;
  padding: 14px 14px;
  color: var(--text);
}

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1000;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #1ecf68, #19b75b);
  color: white;
  font-size: 1.8rem;
  box-shadow: 0 18px 35px rgba(30, 207, 104, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 22px 40px rgba(30, 207, 104, 0.6);
}

.site-footer {
  background: linear-gradient(180deg, #050606 0%, #101312 100%);
  color: rgba(255,255,255,0.9);
  padding: 70px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 0.9fr;
  gap: 32px;
}

.footer-brand strong {
  color: white;
}

.site-footer p,
.site-footer li,
.site-footer span {
  color: rgba(255,255,255,0.76);
}

.site-footer h4 {
  color: white;
  margin-bottom: 16px;
}

.social-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.social-links a {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  color: white;
  border: 1px solid rgba(255,255,255,0.08);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 30px;
  padding-top: 18px;
  font-size: 0.92rem;
}

.legal-page-main {
  padding: 80px 0 90px;
}

.legal-card {
  padding: 34px 32px;
}

.legal-card h1,
.legal-card h2,
.legal-card h3 {
  color: var(--text);
}

.legal-card ul,
.legal-card ol {
  margin: 0 0 18px 22px;
  color: var(--muted);
  line-height: 1.8;
}

.legal-card li {
  margin-bottom: 8px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse {
  0% { transform: scaleY(1); filter: brightness(1); }
  100% { transform: scaleY(1.06); filter: brightness(1.08); }
}

@keyframes hero-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(0.5deg); }
}

@media (max-width: 980px) {
  .hero-grid,
  .contact-grid,
  .article-layout,
  .footer-grid,
  .info-grid,
  .rules-grid,
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-grid,
  .contact-grid,
  .article-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .main-nav {
    position: absolute;
    top: 82px;
    left: 24px;
    right: 24px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 22px 20px;
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(17,34,54,0.04);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
  }

  .main-nav.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
}

@media (max-width: 720px) {
  .hero {
    padding-top: 52px;
  }

  .slider-section,
  .content-section,
  .rules-section,
  .faq-section,
  .contact-section,
  .feature-band {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .banner-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .info-grid,
  .rules-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .slides,
  .slide img {
    min-height: 420px;
    height: 420px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
