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

:root {
  --color-bg: #030b1a;
  --color-bg-soft: #061326;
  --color-primary: #00a7c4;
  --color-primary-soft: rgba(0, 167, 196, 0.16);
  --color-accent: #7c32aa;
  --color-text: #f5f7fb;
  --color-text-soft: #c2c8d6;
  --color-card: #071425;
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.45);
  --radius-lg: 18px;
  --radius-pill: 999px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: radial-gradient(circle at top left, #083f72 0, #030b1a 40%, #000 100%);
  color: var(--color-text);
  line-height: 1.6;
}

/* Layout basics */

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.section {
  padding: 4.5rem 0;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.section-intro {
  color: var(--color-text-soft);
  max-width: 640px;
  margin-bottom: 2rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2.5rem;
}

@media (max-width: 768px) {
  .section {
    padding: 3.25rem 0;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(3, 11, 26, 0.96), rgba(6, 19, 38, 0.96));
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(0, 167, 196, 0.4);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-main {
  font-weight: 700;
  font-size: 1.18rem;
}

.logo-sub {
  font-weight: 700;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  color: var(--color-primary);
}

.logo-tagline {
  font-size: 0.72rem;
  color: var(--color-text-soft);
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  list-style: none;
}

.main-nav a {
  color: var(--color-text-soft);
  text-decoration: none;
  font-size: 0.9rem;
  position: relative;
  padding-bottom: 0.15rem;
}

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

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

.header-cta .btn {
  font-size: 0.86rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  margin: 4px 0;
  border-radius: 4px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 860px) {
  .main-nav ul {
    position: absolute;
    inset: 56px 0 auto;
    background: rgba(3, 11, 26, 0.98);
    padding: 0.75rem 1.2rem 1rem;
    flex-direction: column;
    align-items: flex-start;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.24s ease, opacity 0.24s ease;
  }

  .main-nav ul.open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: block;
  }

  .header-inner {
    align-items: center;
  }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.9rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  box-shadow: 0 14px 30px rgba(0, 167, 196, 0.45);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid rgba(0, 167, 196, 0.65);
}

.btn-outline:hover {
  background: rgba(0, 167, 196, 0.1);
}

/* Hero */

.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  padding: 3.5rem 0 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      to bottom,
      rgba(3, 11, 26, 0.35),
      rgba(3, 11, 26, 0.9)
    ),
    url("../images/portada.png");
  background-size: cover;
  background-position: center;
  filter: saturate(1.2);
  opacity: 0.9;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 0, rgba(0, 167, 196, 0.35), transparent 60%);
  mix-blend-mode: screen;
  z-index: -1;
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
  gap: 2.75rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 3vw, 2.8rem);
  margin-bottom: 0.75rem;
}

.hero p {
  color: var(--color-text-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1.4rem 0 1rem;
}

.hero-note {
  font-size: 0.9rem;
}

.hero-highlight {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.stats-card {
  background: rgba(6, 19, 38, 0.9);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.6rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.06);
  max-width: 320px;
}

.stats-card h2 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.stats-card ul {
  list-style: none;
}

.stats-card li {
  font-size: 0.9rem;
  color: var(--color-text-soft);
  padding-left: 1.1rem;
  position: relative;
  margin: 0.35rem 0;
}

.stats-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
}

.stats-card span {
  color: var(--color-text);
  font-weight: 600;
}

@media (max-width: 960px) {
  .hero {
    padding-top: 3.1rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-highlight {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: auto;
    padding-bottom: 3.1rem;
  }
}

/* About */

.about {
  background: radial-gradient(circle at top, rgba(0, 167, 196, 0.16), transparent 55%),
    var(--color-bg-soft);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.about-card {
  background: rgba(3, 11, 26, 0.8);
  border-radius: var(--radius-lg);
  padding: 1rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.about-card h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

/* Programas */

.programas {
  background: var(--color-bg);
}

.program-grid {
  margin-top: 1.75rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
}

.program-card {
  background: rgba(6, 19, 38, 0.95);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.9rem;
  color: var(--color-text-soft);
}

.program-card h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  color: var(--color-text);
}

@media (max-width: 960px) {
  .program-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .program-grid {
    grid-template-columns: 1fr;
  }
}

/* Gallery */

.gallery {
  background: var(--color-bg-soft);
}

.gallery-grid {
  margin-top: 1.75rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.gallery-item {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: #000;
  cursor: zoom-in;
}

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

.gallery-item:hover img {
  transform: scale(1.04);
  opacity: 0.92;
}

.gallery-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--color-text-soft);
}

@media (max-width: 960px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 80;
  padding: 1.5rem;
}

.lightbox.open {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 960px;
  width: 100%;
}

.lightbox img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.lightbox-close {
  position: absolute;
  top: -32px;
  right: 0;
  background: none;
  border: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}

/* Video */

.video-section {
  background: var(--color-bg);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

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

/* Social */

.social {
  background: var(--color-bg-soft);
}

.social-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 1.2rem 0 0.7rem;
}

.social-note {
  font-size: 0.85rem;
  color: var(--color-text-soft);
}

.fb-embed-wrapper {
  background: rgba(3, 11, 26, 0.9);
  padding: 0.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Contacto */

.contacto {
  background: var(--color-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.contact-list li + li {
  margin-top: 0.35rem;
}

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

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

.map-link {
  margin-top: 0.75rem;
}

.contact-form {
  background: rgba(6, 19, 38, 0.96);
  padding: 1.4rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-soft);
}

.form-group {
  margin-bottom: 0.9rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(3, 11, 26, 0.95);
  color: var(--color-text);
  font-size: 0.9rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

/* WhatsApp floating */

.whatsapp-float {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00b67a, #00e095);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  z-index: 90;
}

.wa-icon {
  font-size: 1.5rem;
}

/* Footer */

.site-footer {
  background: #020712;
  padding: 1.6rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
  text-align: center;
  font-size: 0.82rem;
  color: var(--color-text-soft);
}

.footer-inner a {
  color: var(--color-primary);
  text-decoration: none;
}

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

/* Generic */

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