:root {
  --bg: #f4f8ff;
  --surface: #ffffff;
  --primary: #1363df;
  --primary-dark: #0c4da0;
  --accent: #ffcf4b;
  --text: #14233a;
  --muted: #5f6e85;
  --border: #dfe8f5;
  --shadow: 0 18px 45px rgba(20, 35, 58, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f7fbff 0%, var(--bg) 100%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(19, 99, 223, 0.08), transparent 28%);
  pointer-events: none;
  z-index: -1;
}

img {
  max-width: 100%;
}

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

.container {
  width: min(1150px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  background: linear-gradient(135deg, #0f6fff 0%, #0a3f7f 100%);
  color: white;
  padding-bottom: 4rem;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 82% 12%, rgba(255,255,255,0.16), transparent 24%),
    linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.09) 100%);
  pointer-events: none;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 0;
  position: relative;
  z-index: 1;
}

.brand {
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.92);
}

.nav-links a {
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.hero-content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  justify-items: center;
  padding: 3rem 0 2rem;
  position: relative;
  z-index: 1;
  flex: 1;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.6rem);
  line-height: 1.05;
  margin: 0 0 1rem;
  max-width: 720px;
}

.lead {
  font-size: 1.04rem;
  color: rgba(255, 255, 255, 0.92);
  max-width: 650px;
  margin: 0;
}

.hero-actions,
.contact-actions,
.hero-meta {
  display: flex;
  gap: 0.95rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  justify-content: center;
   align-items: center;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  margin-top: 1.5rem;
}

.contact-actions {
  margin-top: 0.8rem;
  justify-content: flex-start;
  flex-wrap: nowrap;
  width: auto;
  margin-left: 0;
  margin-right: 0;
}

.social-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-icon-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 20px rgba(0, 0, 0, 0.2);
}

.social-icon-btn img,
.contact-link img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.social-icon-phone img,
.social-icon-instagram img {
  width: 40px;
  height: 40px;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 999px;
  padding: 0.9rem 1.2rem;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: #15304d;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: white;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary-dark);
  border-color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 700px) {
  .contact-actions {
    justify-content: center;
  }
}

.hero-meta {
  gap: 0.75rem;
  margin-top: 1.3rem;
}

.hero-meta span,
.hero-meta-item {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.6rem 0.8rem;
  border-radius: 999px;
  font-size: 0.95rem;
}

.hero-card,
.form-card,
.card,
.step,
.highlight-card,
.benefit-card {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 1.5rem;
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 420px;
}

.hero-card-enhanced {
  background: linear-gradient(135deg, #ffffff 0%, #f5f9ff 100%);
  border: 1px solid rgba(19, 99, 223, 0.14);
  gap: 0.8rem;
}

.hero-card-badge {
  display: inline-flex;
  align-self: center;
  background: rgba(19, 99, 223, 0.1);
  color: var(--primary-dark);
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-card h3 {
  margin: 0;
}

.hero-card-points {
  display: grid;
  gap: 0.5rem;
  color: var(--muted);
  font-weight: 600;
  width: 100%;
}

.hero-card-point {
  padding: 0.55rem 0.7rem;
  border-radius: 999px;
  background: rgba(19, 99, 223, 0.06);
}

.card-note {
  font-weight: 700;
  color: var(--primary-dark);
  margin: 0;
}

.section {
  padding: 4.2rem 0;
}

.alt-section {
  background: linear-gradient(180deg, #f8fbff 0%, #f3f8ff 100%);
}

.section-heading {
  margin-bottom: 1.5rem;
}

.section h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.3vw, 2.1rem);
}

.intro-text {
  color: var(--muted);
  max-width: 620px;
  margin-top: 0.6rem;
}

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

.highlight-card {
  padding: 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.highlight-card .tag {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
  color: var(--primary);
}

.highlight-card strong {
  font-size: 1.05rem;
}

.highlight-card p {
  margin: 0;
  color: var(--muted);
}

.location-grid,
.two-columns {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2rem;
  align-items: start;
}

.location-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
}

.location-points {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
  color: var(--muted);
  justify-items: center;
  width: 100%;
}

.location-pill {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: fit-content;
  min-width: 220px;
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
  background: rgba(19, 99, 223, 0.08);
  border: 1px solid rgba(19, 99, 223, 0.12);
  font-weight: 600;
}

.map-card {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: white;
  margin: 1rem 0;
}

.map-card iframe {
  width: 100%;
  min-height: 330px;
  border: 0;
  display: block;
}

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

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

.info-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1.3rem;
  box-shadow: var(--shadow);
}

.gallery-intro {
  max-width: 760px;
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1rem;
}

.gallery-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.gallery-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.gallery-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #000;
}

.gallery-media img,
.gallery-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-caption {
  display: none;
}

.gallery-empty {
  grid-column: 1 / -1;
  padding: 2rem;
  border: 1px dashed var(--border);
  border-radius: 24px;
  background: rgba(19, 99, 223, 0.06);
  color: var(--primary-dark);
  text-align: center;
}

.info-card h3 {
  margin-top: 0;
  margin-bottom: 0.65rem;
}

.info-list {
  padding-left: 1rem;
  margin: 0;
  color: var(--muted);
  display: grid;
  gap: 0.45rem;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.8rem;
  font-size: 0.95rem;
}

.schedule-table th,
.schedule-table td {
  padding: 0.6rem 0.55rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.schedule-table th {
  color: var(--primary-dark);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.info-card p {
  margin: 0.35rem 0;
  color: var(--muted);
}

.info-card a {
  color: var(--primary);
  font-weight: 600;
}

.card {
  padding: 1.35rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover,
.benefit-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 45px rgba(21, 48, 77, 0.12);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

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

.benefit-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 1.35rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.benefit-card h3 {
  margin-top: 0;
  margin-bottom: 0.45rem;
}

.benefit-card p {
  margin: 0;
  color: var(--muted);
}

.steps {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.2rem;
}

.step {
  padding: 1rem 1.1rem;
}

.step strong {
  display: block;
  margin-bottom: 0.25rem;
}

.step p {
  margin: 0;
  color: var(--muted);
}

.form-card {
  padding: 1.4rem;
}

form label {
  display: block;
  margin-bottom: 0.95rem;
  font-weight: 600;
  font-size: 0.95rem;
}

input,
select,
textarea {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  font: inherit;
  background: #fbfdff;
  color: var(--text);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(19, 99, 223, 0.14);
}

textarea {
  resize: vertical;
}

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

.form-message {
  min-height: 1.4rem;
  margin-top: 0.8rem;
  color: var(--primary-dark);
  font-weight: 600;
}

/* Estilos para secciones del formulario */
.form-section {
  border: none;
  padding: 0 0 1.2rem 0;
  margin: 0 0 1.2rem 0;
  border-bottom: 2px solid var(--border);
}

.form-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.form-section legend {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary-dark);
  margin-bottom: 0.8rem;
  padding-left: 0;
  width: 100%;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.form-subgroup {
  border: none;
  padding: 0;
  margin: 0.95rem 0;
}

.form-sublegend {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  display: block;
  margin-bottom: 0.6rem;
}

.radio-group,
.checkbox-group {
  display: grid;
  gap: 0.6rem;
}

.radio-group label,
.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
}

.radio-group input[type="radio"],
.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-top: 0;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.footer {
  padding: 2rem 0 3rem;
  background: #0d2742;
  color: white;
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.06), transparent);
  pointer-events: none;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.footer-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: white;
  font-weight: 700;
}

.contact-link img {
  width: 24px;
  height: 24px;
}

.footer h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.footer p {
  margin: 0.2rem 0;
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 900px) {
  .hero-content,
  .location-grid,
  .two-columns {
    grid-template-columns: 1fr;
  }

  .highlight-grid,
  .cards-grid,
  .benefits-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .nav {
    flex-direction: column;
    gap: 0.7rem;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-content,
  .location-grid,
  .two-columns {
    text-align: center;
  }

  .hero-text,
  .hero-card,
  .location-copy {
    max-width: 100%;
  }

  .hero-text,
  .hero-card,
  .location-grid > div,
  .two-columns > div,
  .form-card,
  .highlight-card,
  .card,
  .benefit-card {
    text-align: center;
  }

  .location-pill {
    margin: 0 auto;
  }

  .hero-actions,
  .contact-actions {
    justify-content: center;
    align-items: center;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-actions {
    align-items: center;
  }

  .hero-card {
    padding: 1.25rem;
  }

  .map-card {
    margin: 1.2rem 0;
  }
}
