*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --color-primary: #0077c8;
  --color-primary-dark: #005a92;
  --color-accent: #ff4b4b;
  --color-bg: #f5fbff;
  --color-bg-alt: #ffffff;
  --color-text: #223046;
  --color-muted: #708099;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.08);
  --radius-lg: 18px;
  --radius-full: 999px;
  --transition-fast: 0.2s ease;
  --max-width: 1120px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--color-text);
  background: radial-gradient(circle at top, #e6f4ff 0, #f8fbff 45%, #ffffff 100%);
}

/* Layout helpers */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.9);
}

.section h2 {
  font-size: clamp(2rem, 3vw, 2.4rem);
  margin: 0 0 0.75rem;
}

.section-intro {
  max-width: 640px;
  margin: 0 auto 2.25rem;
  text-align: center;
  color: var(--color-muted);
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.two-col-reverse {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}

.two-col-reverse > :first-child {
  order: 2;
}

.two-col-reverse > :last-child {
  order: 1;
}

/* Header */

.main-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.92));
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 25px rgba(0, 119, 200, 0.35);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-weight: 700;
  font-size: 1.05rem;
}

.brand-subtitle {
  font-size: 0.78rem;
  color: var(--color-muted);
}

/* Nav */

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-list {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--color-muted);
  padding: 0.35rem 0;
  position: relative;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  transition: width var(--transition-fast);
}

.nav-list a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  height: 32px;
  justify-content: center;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #ffffff;
}

.nav-toggle span {
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: var(--color-text);
}

/* Hero */

.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../img/portada.jpg");
  background-size: cover;
  background-position: center;
  filter: blur(3px);
  transform: scale(1.04);
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(0, 119, 200, 0.6), transparent 55%),
              radial-gradient(circle at bottom right, rgba(255, 75, 75, 0.5), transparent 55%);
  mix-blend-mode: soft-light;
  z-index: -1;
}

.hero-content {
  padding: 4.5rem 1.5rem 4rem;
  max-width: 640px;
  color: #ffffff;
  text-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  margin-bottom: 0.6rem;
}

.hero h1 {
  font-size: clamp(2.6rem, 4vw, 3.2rem);
  margin: 0 0 0.75rem;
}

.hero-lead {
  font-size: 1.02rem;
  max-width: 34rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.hero-schedule {
  font-size: 0.95rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #ffffff;
  box-shadow: 0 16px 36px rgba(0, 73, 138, 0.55);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 44px rgba(0, 73, 138, 0.65);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.7);
  color: #ffffff;
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.16);
}

.btn-full {
  width: 100%;
  margin-top: 0.5rem;
}

/* Section text */

.section-text p {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--color-text);
}

.section-text p + p {
  margin-top: 0.4rem;
}

.bullet-list {
  margin: 0.9rem 0 0;
  padding-left: 1.1rem;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.bullet-list li {
  margin-bottom: 0.25rem;
}

/* Media stack */

.section-gallery .media-stack {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto;
  gap: 0.7rem;
}

.section-gallery img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  display: block;
  box-shadow: var(--shadow-soft);
}

.section-gallery .media-stack > img:first-child {
  grid-row: 1 / span 2;
}

.media-row {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 0.7rem;
}

/* Highlights */

.highlights {
  text-align: center;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: rgba(255, 255, 255, 0.96);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.4rem;
  box-shadow: var(--shadow-soft);
  text-align: left;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: 1.02rem;
}

.card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-muted);
}

/* Map */

.section-map iframe {
  width: 100%;
  min-height: 260px;
  border: none;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

/* Redes y video */

.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.04);
}

.social-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.06);
}

.social-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
}

.section-video .video-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.section-video .video-wrapper::before {
  content: "";
  display: block;
  padding-bottom: 56.25%;
}

.section-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Galería */

.gallery-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-grid figure {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.gallery-grid figure::after {
  content: "Ver";
  position: absolute;
  bottom: 0.6rem;
  right: 0.8rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.gallery-grid figure:hover img {
  transform: scale(1.04);
  filter: brightness(1.02);
}

.gallery-grid figure:hover::after {
  opacity: 1;
  transform: translateY(0);
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 16, 34, 0.82);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
  z-index: 80;
}

.lightbox.show {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 900px;
  width: 92%;
  max-height: 88vh;
}

.lightbox img {
  width: 100%;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.6);
  background: #000;
}

.lightbox-close {
  position: absolute;
  top: -42px;
  right: -8px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 1.4rem;
  background: rgba(255, 255, 255, 0.92);
  color: #111827;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

/* Contact */

.contact-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  font-size: 0.95rem;
}

.contact-list li {
  margin-bottom: 0.25rem;
}

.contact-list a {
  color: var(--color-primary);
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}

.section-form form {
  background: rgba(255, 255, 255, 0.96);
  padding: 1.4rem 1.3rem 1.5rem;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

.form-field {
  margin-bottom: 0.8rem;
}

label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.2rem;
  color: var(--color-muted);
}

input,
textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  padding: 0.55rem 0.7rem;
  font: inherit;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  background: #f9fbff;
}

input:focus,
textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(0, 119, 200, 0.17);
  background: #ffffff;
}

textarea {
  resize: vertical;
}

.form-note {
  margin: 0.4rem 0 0;
  font-size: 0.78rem;
  color: var(--color-muted);
}

/* Footer */

.main-footer {
  background: #020617;
  color: #e2e8f0;
  padding: 1.5rem 0 1.8rem;
  margin-top: 2rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
}

.footer-brand {
  margin: 0 0 0.25rem;
}

.footer-address {
  margin: 0;
  color: #94a3b8;
}

.main-footer a {
  color: #38bdf8;
  text-decoration: none;
}

.main-footer a:hover {
  text-decoration: underline;
}

/* WhatsApp floating */

.whatsapp-float {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: radial-gradient(circle at top left, #25d366, #128c7e);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
  z-index: 60;
}

.whatsapp-icon {
  font-size: 1.5rem;
  color: #ffffff;
}

/* Responsive */

@media (max-width: 960px) {
  .two-col,
  .two-col-reverse {
    grid-template-columns: minmax(0, 1fr);
  }

  .two-col-reverse > :first-child,
  .two-col-reverse > :last-child {
    order: initial;
  }

  .section {
    padding: 3.4rem 0;
  }

  .hero {
    min-height: 70vh;
  }

  .hero-content {
    max-width: 540px;
  }

  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-gallery .media-stack {
    grid-template-columns: 1.3fr 1fr;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding-inline: 1.1rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-list {
    position: absolute;
    top: 100%;
    right: 0;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    padding: 0.6rem 1rem 0.8rem;
    border-radius: 0 0 0 16px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.25);
    transform-origin: top right;
    transform: scale(0.9);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }

  .nav-list.show {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cards-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-content {
    padding-top: 3.6rem;
  }
}

@media (max-width: 520px) {
  .hero {
    min-height: 64vh;
  }

  .hero-content {
    padding-bottom: 3.1rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .section-gallery .media-stack {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .whatsapp-float {
    width: 52px;
    height: 52px;
    right: 0.9rem;
    bottom: 0.9rem;
  }
}
