/* Usa Arial como fuente base */
body {
  font-family: 'Arial', sans-serif;
  background-color: #fff;
  color: #333;
}

@font-face {
  font-family: 'Cooper Black';
  src: url('fuentes/CooperBlack.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #fff;
  color: #333;
}

/* Icono WhatsApp flotante fijo */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.whatsapp-float img {
  width: 35px;
  height: 35px;
}

.whatsapp-float:hover {
  background-color: #1ebe57;
}


/* Encabezado */
.encabezado {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background-color: #f4f4f4;
  border-bottom: 1px solid #ddd;
}

.logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700; /* Negrita */
  font-size: 32px;
  color: #222;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0; /* Opcional: ajusta márgenes */
}

.menu {
  list-style: none;
  display: flex;
  gap: 20px;
}

.menu li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.iconos a {
  margin-left: 15px;
}

/* Hero principal */
.hero {
  background: url('https://images.unsplash.com/photo-1511379938547-c1f69419868d') center/cover no-repeat;
  height: 80vh;
  color: white;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 30px 30px 0 30px;
}

.contenido-hero {
  max-width: 560px;
  background-color: rgba(0, 0, 0, 0.8);
  padding: 20px 25px;
  border-radius: 10px;
  margin: 0;
  color: white;
}

.contenido-hero h1 {
  font-size: 28px;
  margin-bottom: 10px;
  text-align: center;
}

.contenido-hero p {
  font-size: 16px;
  line-height: 1.5;
  text-align: justify;
}

/* Sección Ubicación y Imagen */
.ubicacion-imagen {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
  padding: 60px 20px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.ubicacion-imagen iframe,
.ubicacion-imagen img {
  flex: 1 1 500px;
  max-width: 100%;
  height: 400px;
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
  border: none;
  object-fit: cover;
}

@media (max-width: 768px) {
  .ubicacion-imagen {
    flex-direction: column;
    align-items: center;
  }

  .ubicacion-imagen iframe,
  .ubicacion-imagen img {
    height: 300px;
  }
}

/* Usa Arial como fuente base */
body {
  font-family: 'Arial', sans-serif;
  background-color: #fff;
  color: #333;
}


  @font-face {
    font-family: 'Cooper Black';
    src: url('fuentes/CooperBlack.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
  }


  /* Reset básico */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  body {
    font-family: 'Montserrat', sans-serif;
    background-color: #fff;
    color: #333;
  }

  /* Encabezado */
  .encabezado {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: #f4f4f4;
    border-bottom: 1px solid #ddd;
  }

 .logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700; /* Negrita */
  font-size: 32px;
  color: #222;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0; /* Opcional: ajusta márgenes */
}


  .menu {
    list-style: none;
    display: flex;
    gap: 20px;
  }

  .menu li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
  }

  .iconos a {
    margin-left: 15px;
  }

  /* Hero principal */
.hero {
  background: url('https://images.unsplash.com/photo-1511379938547-c1f69419868d') center/cover no-repeat;
  height: 80vh;
  color: white;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 30px 30px 0 30px;
}

.contenido-hero {
  max-width: 560px;
  background-color: rgba(0, 0, 0, 0.55); 
  padding: 20px 25px;
  border-radius: 10px;
  margin: 0;
  color: white;
}

  .contenido-hero h1 {
  font-size: 28px;.contenido-hero {
  max-width: 560px;
  background-color: rgba(0, 0, 0, 0.8); 
  padding: 20px 25px;
  border-radius: 10px;
  margin: 0;
  color: white;
}

  margin-bottom: 10px;
  text-align: center; 
}

.contenido-hero p {
  font-size: 16px;
  line-height: 1.5;
  text-align: justify;
}



  /* Composición con video de fondo */
  .composicion {
    position: relative;
    height: 250px;
    overflow: hidden;
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 30px;
    color: white;
    font-weight: 600;
    z-index: 1;
  }

  .composicion video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    z-index: -1;
  }

  .contenido-composicion {
    max-width: 420px;
    text-align: right;
  }

  .contenido-composicion h2 {
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 24px;
  }

  .contenido-composicion p {
    margin-top: 0;
    margin-bottom: 25px;
    line-height: 1.5;
    white-space: pre-line;
    font-size: 16px;
  }

.boton-composicion {
  background-color: rgba(255, 255, 255, 0.4); /* más transparente */
  color: black;
  padding: 12px 22px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 700;
  display: inline-block;
  margin-top: 10px;
  transition: background-color 0.3s ease;
}


.boton-composicion:hover {
  background-color: rgba(255, 255, 255, 1); /* Totalmente blanco al pasar el mouse */
  cursor: pointer;
}


  /* Modal Login */
  .login-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }

  .login-modal.activo {
    display: flex;
  }

/* Login moderno estilo música */
.login-modern {
  position: relative;
  max-width: 400px;
  width: 90%;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  overflow: visible;
  margin: 0 auto;
}

.login-image-container {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: visible;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0% 100%);
  z-index: 1;
}

.login-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.login-title {
  position: absolute;
  top: 65%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.4); /* fondo negro transparente */
  color: white;
  padding: 14px 36px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 20px;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  /* border eliminado */
  z-index: 5;
}



.login-content {
  padding: 0 30px 30px 30px;
}

.login-modern form {
  display: flex;
  flex-direction: column;
}

.login-modern input {
  margin-bottom: 15px;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 16px;
}

.login-modern button.btn-signin {
  background-color: rgba(0, 0, 0, 0.4); /* negro transparente */
  color: white;
  font-weight: 700;
  border: none;
  padding: 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}




.login-modern button.btn-signin:hover {
  background-color: rgba(0, 0, 0, 0.6); /* más oscuro al pasar el mouse */
}

.signup-text {
  margin-top: 10px;
  font-size: 14px;
  text-align: center;
}

.signup-text a {
  color: black;
  text-decoration: none;
  font-weight: 700;
}

.signup-text a:hover {
  text-decoration: underline;
}

  /* Flip Card Classes */
  .perspective {
    perspective: 1000px;
  }

  .preserve-3d {
    transform-style: preserve-3d;
  }

  .my-rotate-y-180 {
    transform: rotateY(0deg);
    transition: transform 0.7s;
  }

  .group:hover .group-hover\:my-rotate-y-180 {
    transform: rotateY(180deg);
  }

  .backface-hidden {
    backface-visibility: hidden;
  }

  .relative {
    position: relative;
  }

  .absolute {
    position: absolute;
    top: 0;
    left: 0;
  }

  .w-full {
    width: 100%;
  }

  .h-full {
    height: 100%;
  }

  .h-60 {
    height: 15rem;
  }

  .duration-700 {
    transition: transform 0.7s;
  }

  .rounded-xl {
    border-radius: 1rem;
  }

  .shadow-lg {
    box-shadow: 0 10px 15px rgba(0,0,0,0.3);
  }

  .object-cover {
    object-fit: cover;
  }

  .flex {
    display: flex;
  }

  .items-center {
    align-items: center;
  }

  .justify-center {
    justify-content: center;
  }

  .p-4 {
    padding: 1rem;
  }

  .text-white {
    color: white;
  }

  .bg-gray-900 {
    background-color: #1a202c;
  }

  .bg-black {
    background-color: black;
  }

  .bg-opacity-50 {
    background-color: rgba(0, 0, 0, 0.5);
  }

  .text-center {
    text-align: center;
  }

  .py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .font-bold {
    font-weight: bold;
  }

  .rounded-b-xl {
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
  }

.form-pequeño {
  transform: scale(0.85);
  transform-origin: top;
}

.checkbox-container {
  display: flex;
  align-items: center;
  font-size: 13px;
  margin-bottom: 15px;
}

.checkbox-container input[type="checkbox"] {
  margin-right: 8px;
}

.checkbox-container a {
  color: black;
  text-decoration: underline;
  font-weight: 600;
}

.checkbox-container a:hover {
  color: #555;
}

.aviso-modal {
  display: none;
  position: fixed;
  z-index: 1100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}

.aviso-modal.activo {
  display: flex;
}

.aviso-content {
  background-color: white;
  padding: 20px 30px;
  border-radius: 10px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
  position: relative;
}

.close-aviso {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  font-weight: bold;
  color: #555;
  cursor: pointer;
}

.close-aviso:hover {
  color: black;
}

.aviso-titulo {
  text-align: center;
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
}

.aviso-texto {
  text-align: justify;
  font-size: 15px;
  line-height: 1.6;
}


  /* Responsive */
  @media (max-width: 480px) {
    .login-modern .login-content {
      .checkbox-container {
  display: flex;
  align-items: center;
  font-size: 13px;
  margin-bottom: 15px;
}

.checkbox-container input[type="checkbox"] {
  margin-right: 8px;
}

.checkbox-container a {
  color: black;
  text-decoration: underline;
  font-weight: 600;
}

.checkbox-container a:hover {
  color: #555;
}

      padding: 20px;
    }
    .login-title {
      font-size: 16px;
      padding: 10px 20px;
    }
  }

  /* CURSOS GRID */
  .cursos-grid {
    padding: 60px 30px;
    text-align: center;
    background: white;
  }

  .titulo-cursos {
    font-size: 2.5rem;
    font-weight: normal; /* Cooper Black ya es gruesa */
    margin-bottom: 10px;
    font-family: 'Cooper Black', serif;
  }


  .descripcion-cursos {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }

  .grid-cursos {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 🔒 Fuerza 3 columnas */
    gap: 20px;
  }

  .curso {
    position: relative;
    height: 120px; /* antes: 160px */
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    transition: transform 0.3s ease;
  }

  .curso::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease;
  }

  .curso:hover {
    transform: scale(1.02);
  }

  .curso span {
    position: relative;
    z-index: 1;
    color: white;
    font-weight: bold;
    font-size: 14px; /* antes: 16px */
    margin-bottom: 10px; /* ajustado para que quede centrado mejor */
    text-align: center;
  }
  .grid-cursos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 2rem;
    max-width: 1500px; /* Aumentado de 1200px a 1500px */
    margin: 0 auto;
  }

  .card-curso {
    perspective: 1000px;
  }

  .card-inner {
    position: relative;
    width: 100%;
    padding-top: 60%; /* más ancho y bajito */
    transform-style: preserve-3d;
    transition: transform 0.8s;
  }



  .card-curso:hover .card-inner {
    transform: rotateY(180deg);
  }

  .card-front,
  .card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    color: white;
    font-weight: bold;
    text-align: center;
  }

  .card-front {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    font-size: 1.2rem;
  }

  .card-front span {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 0.5rem 1rem;
    border-radius: 10px;
  }

  .card-back {
    background: #111;
    transform: rotateY(180deg);
    font-size: 0.95rem;
  }

  /* Ajustes para que los cuadros sean más chicos y alargados */
  .card-inner {
    height: 120px;          /* altura fija en lugar de cuadrado */
    padding-top: 0;         /* elimina aspecto cuadrado */
  }

  .curso {
    height: 100px;          /* igual altura para coherencia */
    border-radius: 12px;    /* bordes redondeados más suaves */
  }

  .curso span,
  .card-back p {
    font-size: 13px;
    padding: 0 10px;
  }

  .grid-cursos {
    gap: 14px;
    padding: 0 20px;
  }

/* Animación suave de entrada para la sección de presentación */
.presentacion {
  animation: fadeIn 1.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}


/* Hero falso para mantener altura del encabezado */
.hero-falsa {
  height: 80vh;
  background: url('https://images.unsplash.com/photo-1511379938547-c1f69419868d') center/cover no-repeat;
}

.mensaje-bienvenida {
  background-color: #e0f7fa;
  color: #006064;
  padding: 15px 25px;
  margin: 20px auto;
  width: fit-content;
  max-width: 90%;
  border-left: 6px solid #00acc1;
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  animation: fadein 1s ease-in-out;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* Animación de entrada */
@keyframes fadein {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background-color: #1a1a1a;
  color: white;
}

.navbar-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.admin-title {
  font-size: 18px;
  font-weight: 600;
}

.btn-logout {
  background-color: #ff4d4d;
  color: white;
  padding: 6px 14px;
  border: none;
  border-radius: 5px;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-logout:hover {
  background-color: #cc0000;
}

/* ===== RESPONSIVIDAD MEJORADA ===== */
/* Breakpoints claros */
@media (max-width: 1200px) { /* Pantallas grandes */ }

@media (max-width: 992px) { /* Laptops pequeñas */ }

@media (max-width: 768px) { /* Tablets */
  /* Ajustar menú a hamburguesa */
  .menu-toggle {
    display: block !important;
  }
  .menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #f4f4f4;
    padding: 20px;
  }
  .menu.active {
    display: flex;
  }
  
  /* Hero más compacto */
  .hero {
    height: 60vh;
    padding: 20px;
  }
}

@media (max-width: 576px) { /* Móviles grandes */
  .logo {
    font-size: 24px !important;
  }
  .grid-cursos {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 400px) { /* Móviles pequeños */
  .encabezado {
    padding: 10px 15px !important;
  }
  .contenido-hero {
    max-width: 100% !important;
  }
}

/* Botón hamburguesa */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  height: 3px;
  background: #333;
  border-radius: 2px;
  transition: 0.3s ease;
}

/* Estilo del menú móvil */
@media (max-width: 768px) {
  .menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #f4f4f4;
    padding: 20px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    z-index: 1000;
  }

  .menu.active {
    display: flex;
  }

  .menu li {
    margin: 12px 0;
    text-align: center;
  }

  .menu-toggle {
    display: flex;
  }
}

