:root { /*aca van los colores de todas la marca (se definen con variables) */
  --matte-black: #0f0a1c;
  --charcoal: #1a103c;
  --charcoal-light: #271654;

  --violet: #8b5cf6;
  --violet-hover: #a78bfa;
  --white: #ffffff;
  --text-gray: #b0b0b0;
  --border-light: rgba(255, 255, 255, 0.08);
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Archivo', sans-serif;
  --violet-light: #eaddff;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--matte-black);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 5%;
  background-color: rgba(15, 10, 28, 0.85);
  backdrop-filter: blur(12px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-light);
}

.logo {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: 3px;
  color: var(--white);
}

nav a {
  color: var(--white);
  text-decoration: none;
  margin-left: 2.5rem;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  transition: color 0.3s ease;
  letter-spacing: 1px;
}

nav a:hover {

  color: var(--violet);
}

/* BUTTONS */
.btn-primary {
  display: inline-block;

  background-color: var(--violet);

  color: #000;
  padding: 1.2rem 2.5rem;
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  font-family: var(--font-heading);
  border-radius: 2px;
  letter-spacing: 1px;
  font-size: 0.95rem;
}

.btn-primary:hover {

  background-color: var(--violet-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.25);
}
.btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: var(--white);
  padding: 1rem 2rem;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
  font-size: 0.85rem;
  border-radius: 2px;
  letter-spacing: 1px;
}

.btn-secondary:hover {
  background-color: var(--white);
  color: var(--matte-black);
  border-color: var(--white);
}

.btn-outline {

  border: 1px solid var(--violet);
  padding: 0.6rem 1.2rem;
  color: var(--violet) !important;

  border-radius: 2px;
}

.btn-outline:hover {

  background-color: var(--violet);

  color: #000 !important;
}

.w-full {
  width: 100%;
}

/* HERO SECTION */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  background-image: url('assets/hero.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(180deg, rgba(15,10,28,0.6) 0%, rgba(15,10,28,0.95) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  animation: fadeIn 1.5s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero h1 {
  font-size: 4.5rem;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  color: var(--white);
  font-weight: 900;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-gray);
  margin-bottom: 3rem;
  font-weight: 400;
  max-width: 600px;
  margin-left: auto; margin-right: auto;
}

/* FEATURES SECTION */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 6rem 5%;
  background-color: var(--matte-black);
}

.feature-card {
  background-color: var(--charcoal);
  padding: 3.5rem 2rem;
  text-align: center;
  border: 1px solid var(--border-light);
  transform: translateY(0);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  border-radius: 3px;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);

  border-color: rgba(139, 92, 246, 0.4);
}

.icon-violet {
  color: var(--violet);

  font-size: 2.5rem;
  margin-bottom: 1.8rem;
}

.feature-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--text-gray);
  font-size: 1rem;
  line-height: 1.7;
}

/* COURSES SECTION */
.courses {
  padding: 6rem 5%;
  background-color: var(--charcoal);
}

.courses h2 {
  text-align: center;
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 4rem;
  color: var(--white);
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
}

.course-card {
  background-color: #f7f5ff;
  border: 1px solid #eaddff;
  overflow: hidden;
  transition: all 0.4s ease;
  border-radius: 3px;
  display: flex;
  flex-direction: column;
}

.course-card:hover {

  border-color: rgba(139, 92, 246, 0.5);

  box-shadow: 0 20px 40px rgba(255, 255, 255, 0.6);
  transform: translateY(-5px);
}

.course-img {
  height: 280px;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--violet-light);
  background-color: transparent;
  background-blend-mode: normal;
  filter: opacity(80%) contrast(95%) brightness(105%);
  transition: transform 0.5s ease;
}

.course-info {
  padding: 3rem 2.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.course-info h3 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--violet);
}

.course-details {
  list-style: none;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #ddd6fe;
}

.course-details li {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  color: #000000;
  font-size: 0.95rem;
  font-weight: 600;
}

.course-details i {

  color: var(--violet);

  width: 30px;
  font-size: 1.1rem;
}

.course-info p {
  color: #222222;
  margin-bottom: 2.5rem;
  font-size: 1rem;
  line-height: 1.7;
  flex-grow: 1;
}

.course-info .btn-secondary {
  color: #000000;
  border-color: #000000;
}

.course-info .btn-secondary:hover {
  background-color: var(--violet-hover);
  color: var(--matte-black);
  border-color: var(--violet-hover);
}

/* PHOTO GALLERY SECTION */
.photo-gallery {
  padding: 6rem 5%;
  background-color: var(--charcoal-light);
}

.photo-gallery h2 {
  text-align: center;
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 4rem;
  color: var(--white);
}

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

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
  aspect-ratio: 4 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.6s ease;
  filter: grayscale(40%) contrast(110%);
}

.gallery-item:hover img {
  transform: scale(1.08);
  filter: grayscale(0%) contrast(100%);
}

.gallery-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(15, 10, 28, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay i {
  font-size: 3rem;
  transform: scale(0.5);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover .gallery-overlay i {
  transform: scale(1);
}

/* TESTIMONIALS SECTION */
.testimonials {
  padding: 6rem 5%;
  background-color: var(--matte-black);
}

.testimonials h2 {
  text-align: center;
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 4rem;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.testimonial-card {
  background-color: var(--violet-hover);
  padding: 3.5rem 2.5rem;

  border-left: 4px solid var(--violet-light);

  border-radius: 0 3px 3px 0;
  position: relative;
  transition: background-color 0.3s ease;
}

.testimonial-card:hover {
  background-color: var(--violet);
}

.stars {

  color: var(--violet-light);

  margin-bottom: 1.5rem;
  font-size: 1rem;
  letter-spacing: 2px;
}

.testimonial-card p {
  font-style: italic;
  color: #030000;
  margin-bottom: 2rem;
  line-height: 1.8;
  font-size: 1.05rem;
}

.testimonial-card h4 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
  color: var(--violet-light);
}

.testimonial-card span {
  font-size: 0.85rem;

  color: var(--violet-light);

  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* LEAD CAPTURE SECTION */
.lead-capture {
  padding: 7rem 5%;
  background: linear-gradient(135deg, var(--charcoal) 0%, var(--matte-black) 100%);
  display: flex;
  justify-content: center;
  border-top: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

/* PARTICLES RAIN */
.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  background-image: url('logos/favicon.jpg');
  background-size: cover;
  background-position: center;
  border-radius: 50%;
  opacity: 0.15;
  filter: grayscale(80%) sepia(20%) hue-rotate(250deg);
  animation: fall linear infinite;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
}

@keyframes fall {
  0% {
    transform: translateY(-100px) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.2;
  }
  90% {
    opacity: 0.2;
  }
  100% {
    transform: translateY(120vh) rotate(360deg);
    opacity: 0;
  }
}

.form-container {
  background-color: var(--matte-black);
  padding: 4.5rem;
  border: 3px solid var(--violet);
  max-width: 650px;
  width: 100%;
  text-align: center;
  box-shadow: 0 25px 50px rgba(0,0,0,0.6);
  border-radius: 4px;
  position: relative;
  z-index: 10;
}

.form-container h2 {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
  color: var(--white);
}

.form-container p {
  color: var(--text-gray);
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

.input-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

input, select {
  width: 100%;
  padding: 1.2rem 1.5rem;
  background-color: var(--charcoal);
  border: 1px solid var(--border-light);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.3s ease;
  border-radius: 2px;
}

input:focus, select:focus {
  outline: none;

  border-color: var(--violet);
  box-shadow: 0 0 0 1px var(--violet);

  background-color: var(--charcoal-light);
}

input::placeholder {
  color: #777;
}

select {
  appearance: none;
  cursor: pointer;

  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b5cf6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");

  background-repeat: no-repeat;
  background-position: right 1.5rem center;
  background-size: 1.2rem;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 2.5rem;
  background-color: #0a0514;
  color: var(--text-gray);
  font-size: 0.9rem;
  border-top: 1px solid #1a103c;
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 10, 28, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  box-shadow: 0 0 20px rgba(0,0,0,0.8);
  border: 1px solid var(--border-light);
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 3rem;
  color: var(--white);
  cursor: pointer;
  transition: color 0.3s ease;
}

.lightbox-close:hover {
  color: var(--violet);
}

/* ADMIN LOGIN */
.admin-login-box {
  background-color: var(--charcoal);
  padding: 3rem 2.5rem;
  border-radius: 4px;
  border: 1px solid var(--violet);
  width: 90%;
  max-width: 420px;
  text-align: center;
  position: relative;
  box-shadow: 0 15px 40px rgba(0,0,0,0.5);
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.lightbox.active .admin-login-box {
  transform: translateY(0);
}

.admin-login-box h3 {
  color: var(--white);
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.admin-login-box p {
  color: var(--text-gray);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.admin-close {
  position: absolute;
  top: 15px;
  right: 20px;
  color: var(--text-gray);
  font-size: 1.8rem;
  cursor: pointer;
  transition: color 0.3s;
  line-height: 1;
}

.admin-close:hover {
  color: var(--violet);
}

/* Responsive */
@media (max-width: 900px) {
  .hero h1 { font-size: 3.5rem; }
  .courses h2, .testimonials h2, .form-container h2 { font-size: 2.2rem; }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.8rem;
  }
  .navbar {
    flex-direction: column;
    padding: 1.5rem;
  }
  .navbar nav {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
  }
  .navbar nav a {
    margin-left: 0;
  }
  .form-container {
    padding: 2.5rem 1.5rem;
  }
}