/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Logo solo en el menú */
.logo-menu {
  width: 50px;   /* Ajusta el tamaño */
  height: auto;   /* Mantiene proporciones */
}


body {
    font-family: Garet, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
}

/* ---- HEADER & NAVBAR ---- */
header {
    background-color: #FFFFFF;
    padding: 10px 20px;
    color: white;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

nav .logo {
    display: flex;
    align-items: center;
}

nav .logo img {
    max-height: 50px;
    width: auto;
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin: 0;
    padding: 0;
}

nav ul li a {
    color: #800080;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #5e2d91;
}

/* Botón hamburguesa */
.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.8rem;
    color: #800080;
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 2000;
}

/* ---- HERO ANIMADO ---- */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
    color: white;
    margin-top: 60px;
    position: relative;
    background: linear-gradient(270deg, #2e266d, #800080, #2e266d);
    background-size: 400% 400%;
    animation: gradientMove 20s ease infinite;
    overflow: hidden;
}

.hero h1 {
    font-size: clamp(1.5rem, 5vw, 3rem);
    font-weight: bold;
    line-height: 1.3;
    position: relative;
    z-index: 10;
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Estrellas animadas */
.x {
  position: absolute;
  opacity: 0.3;
  pointer-events: none;
  transform-origin: center;
}

/* ---- CLASS INFO ---- */
.class-info {
    padding: 50px 20px;
    background-color: white;
    text-align: center;
}

.class-info h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #800080;
}

.class-details {
    margin-top: 20px;
    font-size: 1.2rem;
}

.class-banner {
    max-width: 450px;
    width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
      nav ul {
        flex-direction: column;
        gap: 10px;
      }
    }

.btn-join {
    display: inline-block;
      background: #2e266d;
      color: #fff;
      padding: 12px 20px;
      border-radius: 6px;
      text-decoration: none;
      font-size: 1.1em;
      margin-top: 15px;
}

.btn-join:hover {
    background-color: #5e2d91;
}

/* ---- FOOTER ---- */
.footer {
    background-color: #003366;
    color: white;
    text-align: center;
    padding: 20px;
}

/* ---- BOTÓN WHATSAPP ---- */
.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    text-decoration: none;
    font-size: 28px;
    z-index: 1000;
    transition: transform 0.3s;
}

.whatsapp-button:hover {
    background-color: #1EBE5D;
    transform: scale(1.1);
}

/* ---- SECCIONES YA EXISTENTES (convenios, contacto, etc.) ---- */
.convenios-container {
    width: 90%;
    max-width: 1200px;
    margin: 100px auto 50px;
    padding: 20px;
    background-color: #e2e2e2;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.convenios-container h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
    color: #000000;
}

.convenios {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.convenio-card {
    background-color: #f8f8f8;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.convenio-card img {
    max-width: 100%;
    border-radius: 8px;
}

.convenio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.convenio-card h3 {
    font-size: 1.2rem;
    color: #333;
    margin-top: 10px;
}

.convenio-card p {
    font-size: 1rem;
    color: hwb(0 33% 67%);
}

/* ---- CONTACTO ---- */
.contacto-container {
    padding: 20px;
    text-align: center;
}

.contacto-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-bottom: 20px;
}

.administrativos, .mapa {
    background-color: #eeeeee;
    padding: 20px;
    border-radius: 10px;
    width: 45%;
    min-width: 300px;
}

.administrativos ul {
    list-style: none;
    padding: 0;
}

.administrativos li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    background-color: #ffffff;
    padding: 10px;
    border-radius: 5px;
}

.administrativos img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 10px;
}

iframe {
    width: 100%;
    height: 250px;
    border-radius: 10px;
}

.formulario {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    width: 60%;
    margin: auto;
    min-width: 300px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.formulario h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 20px;
}

.formulario label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.formulario input, .formulario textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.formulario button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
}

.formulario button:hover {
    background-color: #45a049;
}

/* ---- TARJETAS DOCENTES ---- */
.glow-card {
    background: white;
    border: 2px solid #80008033;
    box-shadow: 0 0 15px #80008033;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
  
.glow-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px #80008088;
}
  
.docente-img {
    box-shadow: 0 0 12px #80008055;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  nav ul {
    position: absolute;
    top: 70px;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    width: 200px;
    display: none;
    padding: 15px;
  }

  nav ul.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .contacto-grid {
    flex-direction: column;
    align-items: center;
  }

  .administrativos, .mapa {
    width: 100%;
    margin-bottom: 20px;
  }
}
