:root {
  /* Variables de fuentes que se sobrescribirán con los del config.json */
  --primary-font: "Space Grotesk", sans-serif, Tahoma, Geneva, Verdana, sans-serif;
  --secondary-font: "Fira Code", monospace;
  --heading-font-weight: 700;
  --body-font-weight: 300;
  --bold-font-weight: 700;
  
  /* Colores predeterminados que se sobrescribirán con los del config.json */
  --blue-dark: #1a1464;
  --blue-medium: #3a3ac2;
  --neon-yellow: #e5ff00;
  --white: #ffffff;
  --shadow: rgba(0, 0, 0, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--primary-font);
}

body {
  background-color: var(--blue-dark);
  color: var(--white);
  overflow-x: hidden;
  background-image: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-medium) 100%);
  font-weight: var(--body-font-weight);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--heading-font-weight);
}

strong, b, .bold {
  font-weight: var(--bold-font-weight);
}

.decoration-el {
  font-family: var(--secondary-font);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* HEADER */
header {
  padding: 20px 0;
  position: fixed;
  width: 100%;
  z-index: 100;
  background-color: rgba(26, 20, 100, 0.9);
  transition: background-color 0.3s ease;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

header:hover {
  background-color: rgba(26, 20, 100, 1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 28px;
  font-weight: var(--bold-font-weight);
  color: var(--white);
}

.logo span {
  color: var(--neon-yellow);
}

.logo img {
  max-width: 80px;
}

/* BOTONES */
.cta-button, .submit-button, .dossier-button, .dossier-button-minimal {
  background-color: var(--neon-yellow);
  color: var(--blue-dark);
  padding: 12px 24px;
  border: none;
  border-radius: 30px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 10px rgba(229, 255, 0, 0.3);
  text-align: center;
}

.cta-button:hover, .submit-button:hover, .dossier-button:hover, .dossier-button-minimal:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(229, 255, 0, 0.5);
}

.cta-button:active, .submit-button:active, .dossier-button:active, .dossier-button-minimal:active {
  transform: translateY(0);
  box-shadow: 0 2px 5px rgba(229, 255, 0, 0.3);
}

.cta-big {
  padding: 15px 40px;
  font-size: 20px;
}

/* HERO */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(26, 20, 100, 0.8), rgba(58, 58, 194, 0.7));
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../img/hero-bg.webp");
  opacity: 0.15;
  z-index: 0;
}

.hero-content {
  max-width: 650px;
  z-index: 1;
  animation: slideIn 1s ease-out;
}

.hero h1 {
  font-size: 56px;
  line-height: 1.1;
  margin-bottom: 20px;
  font-weight: 900;
}

.yellow-text {
  color: var(--neon-yellow);
  font-weight: 900;
}

.hero p {
  font-size: 20px;
  margin-bottom: 30px;
  line-height: 1.5;
}

.code-bg {
  position: absolute;
  right: -200px;
  top: 0;
  width: 60%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 400 400'%3E%3Cdefs%3E%3Cstyle%3E.a%7Bfill:%23e5ff00;opacity:0.1;%7D%3C/style%3E%3C/defs%3E%3Cpath class='a' d='M187,54.5l-16.8,9.7L153.3,74l-16.9,9.7L119.5,93.5l-16.8,9.7L85.8,113l-16.9,9.7L52.1,132.5l-16.8,9.7L18.4,152l-16.9,9.7'/%3E%3Cpath class='a' d='M187,74.5l-16.8,9.7L153.3,94l-16.9,9.7L119.5,113.5l-16.8,9.7L85.8,133l-16.9,9.7L52.1,152.5l-16.8,9.7L18.4,172l-16.9,9.7'/%3E%3Cpath class='a' d='M187,94.5l-16.8,9.7L153.3,114l-16.9,9.7L119.5,133.5l-16.8,9.7L85.8,153l-16.9,9.7L52.1,172.5l-16.8,9.7L18.4,192l-16.9,9.7'/%3E%3C/svg%3E");
  opacity: 0.5;
  z-index: 0;
}

/* DECORACIONES */
.decoration-el {
  position: absolute;
  opacity: 0.15;
  z-index: 0;
  animation: float 6s ease-in-out infinite;
}

.dec-1 {
  top: 20%;
  left: 10%;
  font-size: 120px;
  transform: rotate(-15deg);
  color: var(--neon-yellow);
}

.dec-2 {
  bottom: 15%;
  right: 5%;
  font-size: 100px;
  transform: rotate(25deg);
  color: var(--neon-yellow);
}

/* SECCIONES COMUNES */
.section-title {
  font-size: 42px;
  text-align: center;
  margin-bottom: 60px;
  font-weight: 800;
}

/* Estilo común para todas las secciones */
section {
  position: relative;
  overflow: hidden;
  padding: 100px 0;
}

section::before,
section::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 150px;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  z-index: 1;
}

/* FEATURES */
.features {
  background: linear-gradient(135deg, var(--blue-medium) 0%, var(--blue-dark) 100%);
  position: relative;
  padding: 120px 0 150px;
}

.features::after {
  content: "";
  position: absolute;
  bottom: -50px;
  left: 0;
  width: 100%;
  height: 100px;
  background-color: var(--blue-medium);
  transform: skewY(-3deg);
  z-index: 1;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  align-items: stretch;
  position: relative;
  z-index: 2;
}

.feature-card {
  display: flex;
  flex-direction: column;
  text-align: center;
  background: rgba(26, 20, 100, 0.7);
  border-radius: 15px;
  padding: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(229, 255, 0, 0.1);
  backdrop-filter: blur(5px);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
  border-color: rgba(229, 255, 0, 0.3);
}

.feature-card img {
  display: block;
  margin: 0 auto 20px;
  height: 120px;
  width: auto;
  object-fit: contain;
}

.feature-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background-color: var(--neon-yellow);
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.feature-card:hover::after {
  opacity: 1;
}

.feature-card h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: var(--neon-yellow);
}

.feature-card p {
  font-size: 16px;
  line-height: 1.6;
}

.incentive {
  font-size: 40px;
  font-weight: 700;
  margin-top: 15px;
  color: var(--neon-yellow);
  text-align: center;
}

/* PROGRAMAS */
.programs {
  position: relative;
  z-index: 2;
  padding: 150px 0;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-medium) 50%, var(--blue-dark) 100%);
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.program-card {
  background: linear-gradient(145deg, rgba(58, 58, 194, 0.2), rgba(26, 20, 100, 0.4));
  border-radius: 15px;
  padding: 30px;
  border: 1px solid rgba(229, 255, 0, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(5px);
  display: flex;
  flex-direction: column;
}

.program-card:hover {
  transform: translateY(-5px);
  border-color: var(--neon-yellow);
  box-shadow: 0 10px 30px rgba(58, 58, 194, 0.3);
}

.program-card h3 {
  font-size: 24px;
  color: var(--neon-yellow);
  margin-bottom: 15px;
}

.program-card p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.program-image {
  width: 100%;
  height: 120px;
  object-fit: contain;
  margin-bottom: 15px;
}

.promo-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--neon-yellow);
  color: var(--blue-dark);
  font-size: 14px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.program-duration {
  font-size: 14px;
  color: var(--neon-yellow);
  display: inline-block;
  padding: 5px 10px;
  background-color: rgba(229, 255, 0, 0.1);
  border-radius: 20px;
  margin-top: auto;
}

/* REQUISITOS */
.requirements {
  background: linear-gradient(135deg, var(--blue-medium) 0%, var(--blue-dark) 100%);
  position: relative;
  padding: 150px 0 100px;
}

.requirements::before {
  content: "";
  position: absolute;
  top: -50px;
  left: 0;
  width: 100%;
  height: 100px;
  background-color: var(--blue-medium);
  transform: skewY(-3deg);
  z-index: 1;
}

.requirements-container {
  position: relative;
  z-index: 2;
}

.requirements-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.requirement-item {
  display: flex;
  align-items: flex-start;
  background: rgba(26, 20, 100, 0.5);
  padding: 30px;
  border-radius: 15px;
  width: 100%;
  max-width: 700px;
  text-align: left;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(229, 255, 0, 0.1);
  transition: all 0.3s ease;
}

.requirement-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
  border-color: rgba(229, 255, 0, 0.3);
}

.requirement-number {
  background-color: var(--neon-yellow);
  color: var(--blue-dark);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  font-weight: 700;
  margin-right: 20px;
  flex-shrink: 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.requirement-content h3 {
  font-size: 22px;
  margin-bottom: 10px;
  color: var(--neon-yellow);
}

.requirement-content p {
  font-size: 16px;
  line-height: 1.5;
}

.note {
  font-size: 14px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 8px;
  padding-left: 10px;
  border-left: 2px solid var(--neon-yellow);
}

.arrow-down {
  font-size: 40px;
  color: var(--neon-yellow);
  margin-bottom: 10px;
  animation: bounce 2s infinite;
}

/* SOBRE NOSOTROS */
.about {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-medium) 70%, var(--blue-dark) 100%);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 {
  font-size: 42px;
  margin-bottom: 30px;
}

.about-text p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.about-image {
  overflow: hidden;
  position: relative;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.about-image img {
  transition: transform 0.5s ease;
}

.about-image:hover img {
  transform: scale(1.05);
}

/* SECCIÓN DOSSIER */
.dossier {
  padding: 150px 0;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-medium) 50%, var(--blue-dark) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.dossier p {
  font-size: 18px;
  margin: 20px auto;
  max-width: 600px;
}

.dossier-cta-container {
  position: relative;
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.dossier-button-minimal {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  font-weight: 700;
  font-size: 18px;
  border-radius: 30px;
  position: relative;
  overflow: hidden;
}

.download-icon {
  font-size: 22px;
  transition: transform 0.3s ease;
  display: inline-block;
}

.dossier-button-minimal:hover .download-icon {
  transform: translateY(3px);
}

.button-text {
  font-size: 18px;
}

/* CTA */
.cta {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--blue-medium) 0%, var(--blue-dark) 100%);
  text-align: center;
  position: relative;
}

.cta::before {
  content: "";
  position: absolute;
  top: -50px;
  left: 0;
  width: 100%;
  height: 100px;
  background-color: var(--blue-medium);
  transform: skewY(-3deg);
}

.cta h2 {
  font-size: 48px;
  margin-bottom: 30px;
}

.cta p {
  font-size: 20px;
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

/* Formulario inline en la sección CTA */
.inline-form-container {
  background: rgba(26, 20, 100, 0.6);
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(229, 255, 0, 0.3);
  margin-top: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.inline-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.inline-form .form-row {
  display: flex;
  gap: 15px;
  width: 100%;
}

.inline-form .form-group {
  flex: 1;
  margin-bottom: 0;
}

.inline-form input[type="text"],
.inline-form input[type="email"],
.inline-form input[type="tel"],
.inline-form select {
  width: 100%;
  padding: 14px 15px;
  border-radius: 10px;
  border: 1px solid rgba(229, 255, 0, 0.2);
  background-color: rgba(26, 20, 100, 0.5);
  color: var(--white);
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) inset;
}

.inline-form input::placeholder,
.inline-form select {
  color: rgba(255, 255, 255, 0.7);
}

.inline-form input:focus,
.inline-form select:focus {
  outline: none;
  border-color: var(--neon-yellow);
  background-color: rgba(26, 20, 100, 0.7);
  box-shadow: 0 0 12px rgba(229, 255, 0, 0.3);
}

.inline-form input.error,
.inline-form select.error {
  border-color: #ff4d4d;
  box-shadow: 0 0 8px rgba(255, 77, 77, 0.5);
}

.inline-form select option {
  background-color: var(--blue-dark);
  color: var(--white);
}

.inline-form .checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.inline-form .checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  accent-color: var(--neon-yellow);
}

.inline-form .checkbox-group label {
  font-size: 14px;
  line-height: 1.4;
  color: var(--white);
}

.inline-form .checkbox-group a {
  color: var(--neon-yellow);
  text-decoration: none;
  transition: all 0.3s ease;
}

.inline-form .checkbox-group a:hover {
  text-decoration: underline;
}

.inline-form .submit-button {
  width: 100%;
  padding: 15px;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 10px;
}

.highlight-field {
  animation: highlightField 1.5s ease;
}

@keyframes highlightField {
  0%, 100% { border-color: rgba(229, 255, 0, 0.2); box-shadow: none; }
  50% { border-color: var(--neon-yellow); box-shadow: 0 0 15px rgba(229, 255, 0, 0.5); }
}

/* FOOTER */
footer {
  background-color: var(--blue-dark);
  padding: 60px 0 40px;
  text-align: center;
  position: relative;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--neon-yellow);
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  color: var(--white);
  text-decoration: none;
  font-size: 20px;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: var(--neon-yellow);
}

.footer-bottom {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.logo-item {
  max-width: 100%;
  height: 60px;
  opacity: 0.7;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.logo-item:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* Efecto de luz para secciones */
.glow-container {
  position: relative;
  overflow: hidden;
}

.glow-effect-section {
  position: absolute;
  width: 150%;
  height: 150%;
  top: -25%;
  left: -25%;
  opacity: 0;
  z-index: 0;
  transition: opacity 1.5s ease;
  pointer-events: none;
}

.glow-active {
  opacity: 1;
}

.highlight-text {
  position: relative;
  display: inline-block;
}

.highlight-text::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--neon-yellow);
  transition: width 1s ease;
}

.highlight-active::after {
  width: 100%;
}

/* Efecto de partículas para CTA */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.particle {
  position: absolute;
  display: block;
  background-color: var(--neon-yellow);
  opacity: 0.6;
  border-radius: 50%;
  pointer-events: none;
}

.intro {
  background: linear-gradient(135deg, var(--blue-medium) 0%, var(--blue-dark) 100%);
  padding: 120px 0;
  text-align: center;
  position: relative;
  z-index: 2;
}

.intro .container {
  max-width: 900px;
  margin: 0 auto;
}

.intro h2.section-title {
  font-size: 42px;
  font-weight: var(--bold-font-weight);
  margin-bottom: 40px;
}

.intro p {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--white);
}

.intro .cta-button {
  margin-top: 40px;
}

.intro img {
  margin-top: 50px;
  max-width: 100%;
  height: auto;
}

.duration-location-section {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-medium) 100%);
  padding: 100px 0;
  text-align: center;
  position: relative;
}

.duration-location-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 50px;
  align-items: center;
}

.duration-box, .location-box {
  background: rgba(255, 255, 255, 0.05);
  border: 2px dashed var(--neon-yellow);
  border-radius: 20px;
  padding: 40px 30px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 0 20px rgba(229, 255, 0, 0.1);
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
  height: 416px;
}

.duration-box:hover, .location-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 30px rgba(229, 255, 0, 0.3);
}

.duration-box img {
  max-width: 150px;
  margin-bottom: 20px;
}

.highlighted-label {
  font-size: 20px;
  font-weight: 800;
  color: var(--neon-yellow);
  margin-bottom: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.highlighted-main {
  font-size: 48px;
  font-weight: 900;
  color: var(--white);
  line-height: 1.2;
  max-height: 300px;
}