:root {
  --navy: #10233f;
  --blue: #1769aa;
  --green: #19a974;
  --lime: #b7d935;
  --orange: #f28c28;
  --ink: #1b2838;
  --muted: #637083;
  --line: #dce4ee;
  --surface: #ffffff;
  --soft: #f4f7fb;
  --shadow: 0 18px 45px rgba(16, 35, 63, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  background: var(--surface);
}

.reveal {
  --reveal-y: 18px;
  opacity: 0;
  filter: blur(4px);
  transform: translate3d(0, var(--reveal-y), 0);
  transition:
    opacity 680ms ease,
    filter 680ms ease,
    transform 680ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 220ms ease,
    box-shadow 220ms ease,
    background 180ms ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal.is-visible {
  --reveal-y: 0px;
  opacity: 1;
  filter: blur(0);
}

.reveal.legal-link {
  transform: translate3d(0, calc(var(--reveal-y, 0px) + var(--card-lift, 0px)), 0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
  }

  .hero::before {
    animation: none;
    transform: scale(1.02);
  }
}

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

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

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(220, 228, 238, 0.8);
  backdrop-filter: blur(16px);
}

.navbar {
  width: min(1180px, calc(100% - 32px));
  min-height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: auto;
  max-width: min(430px, 50vw);
  max-height: 88px;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.nav-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  color: var(--navy);
  font-weight: 700;
  border-radius: 999px;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  color: #ffffff;
  background: var(--blue);
  outline: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--navy);
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: clamp(600px, calc(92vh - 88px), 780px);
  overflow: hidden;
  display: grid;
  align-items: center;
  color: #ffffff;
  background: var(--navy);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -2%;
  z-index: 0;
  background: url("assets/estadio-municipal.jpg") center center / cover no-repeat;
  transform: scale(1);
  animation: heroImageZoom 24s ease-in-out infinite alternate;
  pointer-events: none;
  will-change: transform;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(105deg, rgba(16, 35, 63, 0.9), rgba(16, 35, 63, 0.58)),
    linear-gradient(180deg, rgba(16, 35, 63, 0.12), rgba(16, 35, 63, 0.4)),
    linear-gradient(0deg, rgba(16, 35, 63, 0.72) 0%, transparent 34%);
  pointer-events: none;
}

@keyframes heroImageZoom {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.055);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding: 68px 0 88px;
}

.eyebrow,
.section-kicker,
.news-date {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--lime);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--navy);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 760px;
  color: #ffffff;
  font-size: clamp(2.35rem, 4.5vw, 4.25rem);
  line-height: 1;
}

.hero h1 span {
  display: block;
}

.hero-title-pre {
  font-size: 0.74em;
}

.hero p:not(.eyebrow) {
  max-width: 560px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.02rem, 1.6vw, 1.22rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #ffffff;
  background: var(--green);
  box-shadow: 0 12px 28px rgba(25, 169, 116, 0.28);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #138e62;
  outline: none;
}

.button-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.section {
  padding: 62px 0;
}

.intro-section {
  padding-top: 56px;
  padding-bottom: 54px;
  background: #ffffff;
}

.news-section {
  padding-top: 52px;
  padding-bottom: 54px;
}

.legal-section {
  padding-top: 54px;
  padding-bottom: 58px;
}

.intro-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 54px;
  align-items: start;
}

.intro-grid h2,
.section-heading h2,
.contact-grid h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.intro-copy p,
.section-heading p,
.contact-grid > div > p,
.contact-info p {
  color: var(--muted);
}

.intro-copy p:first-child {
  margin-top: 0;
}

.contact-section {
  background: var(--soft);
}

.location-section {
  background:
    linear-gradient(180deg, #ffffff 0%, rgba(244, 247, 251, 0.82) 100%);
}

.news-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, #ffffff 0%, rgba(244, 247, 251, 0.78) 48%, #ffffff 100%),
    linear-gradient(135deg, rgba(23, 105, 170, 0.06), rgba(25, 169, 116, 0.05));
}

.news-section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.news-section .section-heading {
  max-width: 660px;
  margin-right: auto;
  margin-left: auto;
  margin-bottom: 30px;
  text-align: center;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading p:last-child {
  margin: 14px 0 0;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  align-items: stretch;
}

.contact-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(16, 35, 63, 0.08);
}

.instagram-widget-wrapper {
  width: 100%;
  max-width: 420px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin: 0 auto;
  padding: 0;
  background: transparent;
}

.instagram-widget-wrapper > div {
  width: 100%;
  max-width: 100%;
  border: 0;
  margin: 0 auto;
}

.legal-section {
  background: #ffffff;
}

.legal-link {
  --card-lift: 0px;
  display: grid;
  place-items: center;
  min-height: 156px;
  padding: 24px 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(16, 35, 63, 0.06);
  transition:
    opacity 680ms ease,
    filter 680ms ease,
    transform 680ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.legal-link:hover,
.legal-link:focus-visible {
  --card-lift: -4px;
  transform: translateY(var(--card-lift));
  border-color: rgba(23, 105, 170, 0.24);
  box-shadow: 0 18px 38px rgba(16, 35, 63, 0.12);
  outline: none;
}

.legal-link img {
  width: 100%;
  height: 86px;
  object-fit: contain;
  object-position: center;
}

.contact-info {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.contact-info p {
  margin: 0;
}

.contact-info strong {
  color: var(--navy);
}

.contact-form {
  display: grid;
  gap: 12px;
  padding: 28px;
}

.contact-form label {
  color: var(--navy);
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  color: var(--ink);
  font: inherit;
  background: #fbfdff;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(23, 105, 170, 0.14);
  background: #ffffff;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form .button {
  margin-top: 8px;
}

.form-note {
  min-height: 24px;
  margin: 0;
  color: var(--green);
  font-weight: 700;
}

.map-card {
  position: relative;
  width: 100%;
  height: clamp(360px, 42vw, 500px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(16, 35, 63, 0.11);
}

.map-card iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.site-footer {
  padding: 28px 0;
  color: rgba(255, 255, 255, 0.82);
  background: var(--navy);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-content p {
  margin: 0;
}

.footer-content p:first-child {
  color: #ffffff;
  font-weight: 800;
}

.footer-staff-link {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.86rem;
  font-weight: 700;
  transition: color 160ms ease;
}

.footer-staff-link:hover,
.footer-staff-link:focus-visible {
  color: rgba(255, 255, 255, 0.86);
  outline: none;
}

.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 14px 30px rgba(16, 35, 63, 0.22);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  transform: translateY(-3px) scale(1.03);
  background: #20bd5a;
  box-shadow: 0 18px 38px rgba(16, 35, 63, 0.28);
  outline: none;
}

.whatsapp-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  padding: 7px 10px;
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
  border-radius: var(--radius);
  background: var(--navy);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.whatsapp-float:hover .whatsapp-tooltip,
.whatsapp-float:focus-visible .whatsapp-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.back-to-top {
  position: fixed;
  right: 30px;
  bottom: 96px;
  z-index: 30;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--navy);
  border: 1px solid rgba(220, 228, 238, 0.95);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 26px rgba(16, 35, 63, 0.16);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 180ms ease,
    visibility 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  transform: translateY(-3px);
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(16, 35, 63, 0.22);
  outline: none;
}

@media (max-width: 860px) {
  .navbar {
    min-height: 70px;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav-menu {
    position: absolute;
    top: 70px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu a {
    justify-content: center;
    border-radius: var(--radius);
  }

  .hero {
    min-height: clamp(440px, 68vh, 560px);
  }

  .hero-content {
    padding: 42px 0 52px;
  }

  .hero h1 {
    max-width: 620px;
    font-size: clamp(2.1rem, 7vw, 3.5rem);
  }

  .hero p:not(.eyebrow) {
    max-width: 520px;
  }

  .intro-grid,
  .contact-grid,
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 54px 0;
  }

  .intro-section,
  .news-section,
  .legal-section,
  .location-section {
    padding-top: 52px;
    padding-bottom: 54px;
  }

  .hero::before {
    background-position: center center;
  }
}

@media (max-width: 560px) {
  .container,
  .navbar {
    width: min(100% - 28px, 1120px);
  }

  .brand-logo {
    max-width: min(294px, 70vw);
    max-height: 62px;
  }

  .hero {
    min-height: clamp(390px, 62vh, 500px);
  }

  .hero::before {
    background-position: center center;
  }

  .hero-content {
    padding: 34px 0 44px;
  }

  .hero h1 {
    font-size: clamp(1.55rem, 6.8vw, 2.45rem);
  }

  .hero p:not(.eyebrow) {
    margin-top: 12px;
    font-size: 1rem;
  }

  .hero-actions {
    margin-top: 18px;
  }

  .section {
    padding: 46px 0;
  }

  .section-heading {
    margin-bottom: 22px;
  }

  .map-card {
    height: 360px;
  }

  .hero-actions,
  .footer-content {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 54px;
    height: 54px;
  }

  .whatsapp-float svg {
    width: 29px;
    height: 29px;
  }

  .whatsapp-tooltip {
    display: none;
  }

  .back-to-top {
    right: 19px;
    bottom: 84px;
    width: 44px;
    height: 44px;
  }

  .back-to-top svg {
    width: 22px;
    height: 22px;
  }

  .contact-form {
    padding: 22px;
  }
}
