body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #0b1220;
  color: white;
}

a {
  color: inherit;
  text-decoration: none;}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 20px;
}

.nav {
  background: rgba(11, 18, 32, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(110, 231, 255, 0.1);
  border-bottom: 1px solid rgba(110, 231, 255, 0.1);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.brand {
  transition: transform 0.3s ease;
}

.brand:hover {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  gap: 5px;
  align-items: center;
}

.nav-link {
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 500;
  position: relative;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, #6ee7ff, #7c3aed);
  transition: transform 0.3s ease;
}

.nav-link:hover {
  background: rgba(110, 231, 255, 0.1);
  color: #6ee7ff;
}

.nav-link:hover::before {
  transform: translateX(-50%) scaleX(1);
}



.logo {
  width: 120px;
  height: 50px;
  background-image: url("./images/logo/logo-blanco.png");
  background-size: cover;
  border-radius: 10px;
}

.hero {
  height: 80vh;
  background: url("https://images.unsplash.com/photo-1522202176988-66273c2fd55f") center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-hero {
    width: 200px;
    height: 80px;
    background-size: cover;
    margin-bottom: 20px;
}

.hero-content {
  background: rgba(0,0,0,.6);
  padding: 40px;
  border-radius: 20px;
  text-align: center;
}

.btn-primary {
  background: #7c3aed;
  padding: 12px 25px;
  border-radius: 25px;
  display: inline-block;
  margin-top: 15px;
}

.section h2 {
  text-align: center;
  margin-bottom: 30px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
}

.card {
  background: #111b31;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
}

.card h3 {
  margin-top: 0;
}

.card button {
  margin-top: 10px;
  padding: 10px 15px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
}

.course-image {
  width: 100%;
  border-radius: 10px;
  margin-top: 15px;
}

.btn-detail {
  background: #6ee7ff;
}

.btn-whatsapp {
  background: #22c55e;
  padding: 12px 25px;
  border-radius: 25px;
  color: white;
  display: inline-block;
  margin-top: 15px;
}

.contact {
  background: #0f1a2e;
  text-align: center;
  padding: 60px 20px;
}

/* MODAL */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: #111b31;
  padding: 30px;
  border-radius: 20px;
  max-width: 500px;
  width: 90%;
}

.close {
  float: right;
  font-size: 25px;
  cursor: pointer;
}

/* MODAL IMAGEN */
.image-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  cursor: pointer;
}

.image-modal.hidden {
  display: none;
}

.modal-image-content {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(110, 231, 255, 0.5);
  animation: zoomIn 0.3s ease;
}

.close-image {
  position: absolute;
  top: 30px;
  right: 50px;
  font-size: 50px;
  color: white;
  cursor: pointer;
  transition: color 0.3s;
}

.close-image:hover {
  color: #6ee7ff;
}

@keyframes zoomIn {
  from {
    transform: scale(0.7);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.course-image {
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-image:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(110, 231, 255, 0.4);
}

/* RESPONSIVIDAD */

/* Tablets y pantallas medianas */
@media (max-width: 768px) {
  .container {
    padding: 15px;
  }

  .nav-inner {
    padding: 12px 0;
  }

  .nav-links {
    gap: 3px;
  }

  .nav-link {
    font-size: 0.9rem;
    padding: 8px 12px;
  }

  .logo {
    width: 100px;
    height: 40px;
  }

  .hero {
    height: 60vh;
  }

  .hero-content {
    padding: 30px 20px;
  }

  .logo-hero {
    width: 280px;
    height: 120px;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
  }

  .card {
    padding: 15px;
  }

  .card h3 {
    font-size: 1.1rem;
  }

  .modal-content {
    padding: 20px;
    max-width: 90%;
  }

  .close-image {
    top: 20px;
    right: 20px;
    font-size: 40px;
  }

  .contact {
    padding: 40px 15px;
  }

  .contact h2 {
    font-size: 1.5rem;
  }
}

/* Móviles */
@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .container {
    padding: 10px;
  }

  .nav-inner {
    padding: 8px 0;
  }

  .nav-links {
    gap: 10px;
  }

  .nav a {
    font-size: 14px;
  }

  .logo {
    width: 80px;
    height: 35px;
  }

  .hero {
    height: 50vh;
  }

  .hero-content {
    padding: 20px 15px;
  }

  .logo-hero {
    width: 250px;
    height: 100px;
  }

  .hero-content h1 {
    font-size: 1.5rem;
    margin: 10px 0;
  }

  .hero-content p {
    font-size: 0.9rem;
    margin: 10px 0;
  }

  .btn-primary {
    padding: 10px 20px;
    font-size: 14px;
  }

  .section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .card {
    padding: 15px;
  }

  .card h3 {
    font-size: 1rem;
  }

  .card p {
    font-size: 0.9rem;
  }

  .card button {
    padding: 8px 12px;
    font-size: 13px;
  }

  .btn-whatsapp {
    padding: 10px 20px;
    font-size: 13px;
    display: block;
    text-align: center;
  }

  .btn-detail {
    width: 100%;
    margin-bottom: 5px;
  }

  .modal-content {
    padding: 15px;
    max-width: 95%;
  }

  .modal-content h3 {
    font-size: 1.2rem;
  }

  .modal-content p,
  .modal-content ul {
    font-size: 0.9rem;
  }

  .close {
    font-size: 30px;
  }

  .close-image {
    top: 15px;
    right: 15px;
    font-size: 35px;
  }

  .modal-image-content {
    max-width: 95%;
    max-height: 85vh;
  }

  .contact {
    padding: 30px 10px;
  }

  .contact h2 {
    font-size: 1.3rem;
  }

  .contact p {
    font-size: 0.9rem;
  }
}

/* Pantallas muy pequeñas */
@media (max-width: 360px) {
  .grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero-content {
    padding: 15px 10px;
  }

  .logo-hero {
    width: 200px;
    height: 80px;
  }

  .card {
    padding: 12px;
  }

  .btn-whatsapp,
  .btn-primary {
    font-size: 12px;
    padding: 8px 15px;
  }
}
