/* estilos principales para el portal de pronósticos Mundial 2026 */
:root {
  --bg: #F8FAFC;
  --surface: #1E3A5F;
  --surface-strong: #10203B;
  --surface-soft: #334155;
  --text: #E2E8F0;
  --text-strong: #FFFFFF;
  --muted: #94A3B8;
  --border: rgba(226, 232, 240, 0.16);
  --accent: #C9A227;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.25);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #F8FAFC;
  color: var(--text);
}

img {
  max-width: 100%;
  display: block;
}

button,
a {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: 240px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.8rem 1.5rem 2rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.82));
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1508766206392-8bd5cf550d1b?auto=format&fit=crop&w=1200&q=80');
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  filter: grayscale(0.7) brightness(0.75);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  padding: 1.4rem 1.8rem 1.8rem;
  border: 1px solid rgba(226, 232, 240, 0.12);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.85);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  animation: fadeInUp 1.1s ease;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  margin: 0;
  color: var(--text-strong);
}

.hero-subtitle {
  margin: 1rem auto 0;
  max-width: 620px;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.8;
}

.section-intro {
  padding: 2rem 0 0.5rem;
}

.info-card {
  background: rgba(30, 58, 95, 0.95);
  border: 1px solid rgba(226, 232, 240, 0.14);
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  padding: 1.8rem;
  backdrop-filter: blur(8px);
}

.info-card p {
  margin: 0 0 1.5rem;
  color: var(--text);
  line-height: 1.8;
}

.action-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.action-link.primary {
  background: rgba(201, 162, 39, 0.16);
  color: var(--accent);
  border: 1px solid rgba(201, 162, 39, 0.24);
}

.action-link.secondary {
  border: 1px solid rgba(148, 163, 184, 0.32);
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.action-link:hover,
.action-link:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.14);
}

.grid-fechas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  padding: 2rem 0 3rem;
}

.fecha-card {
  background: #0F172A;
  border: 1px solid rgba(226, 232, 240, 0.1);
  border-radius: 18px;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.16);
  overflow: hidden;
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.fecha-card:hover {
  transform: translateY(-3px);
  border-color: rgba(226, 232, 240, 0.18);
  box-shadow: 0 22px 35px rgba(15, 23, 42, 0.18);
}

.fecha-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  width: 100%;
  text-decoration: none;
  color: var(--text-strong);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  background: linear-gradient(180deg, #1E3A5F 0%, #10203B 100%);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.fecha-btn:hover,
.fecha-btn:focus-visible {
  background: linear-gradient(180deg, #243d61 0%, #11223d 100%);
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.15);
}

/* Modal (iframe) - experimental mode */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  overflow: hidden;
  padding: 1rem;
}
.modal[aria-hidden="false"] {
  display: flex;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.6);
}
.modal-dialog {
  position: relative;
  width: min(1200px, 90%);
  max-width: 1200px;
  max-height: 98vh;
  background: linear-gradient(180deg, rgba(20,34,56,0.98), rgba(12,22,38,0.98));
  border: 1px solid rgba(226,232,240,0.06);
  border-radius: 12px;
  box-shadow: 0 40px 80px rgba(2,6,23,0.6);
  z-index: 2010;
  display: flex;
  flex-direction: column;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.modal-header h3 { margin: 0; color: var(--text-strong); font-size: 1.05rem; }
.modal-close {
  background: transparent;
  border: none;
  color: var(--text-strong);
  font-size: 1.1rem;
  cursor: pointer;
}
.modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.5rem;
}
.iframe-wrap {
  width: 100%;
}
.iframe-wrap iframe {
  display: block;
  width: 100%;
  min-height: 1200px;
  height: auto;
  border: none;
  border-radius: 6px;
  overflow: hidden;
}

@media (max-width: 720px) {
  .modal-dialog { width: 95%; border-radius: 10px; }
}
 

.footer {
  padding: 2rem 0 2.5rem;
  text-align: center;
  color: var(--muted);
}

.footer strong,
.footer p {
  margin: 0.3rem 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .hero {
    min-height: 170px;
    padding: 1.2rem 1rem 1.2rem;
  }

  .hero-content {
    padding: 1.2rem 1.4rem 1.4rem;
    border-radius: 20px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    margin-top: 0.9rem;
    font-size: 0.98rem;
  }

  .section-intro {
    padding-top: 1.5rem;
  }

  .fecha-btn {
    min-height: 84px;
  }

  .action-group {
    justify-content: center;
  }


}
