/* Fuente personalizada para el h1 */
@font-face {
  font-family: 'texto-academia';
  src: url('../img/SketchBlockBold.ttf');
}

/* Variables globales: colores, tipografías y tamaños de fuente responsive */
:root {
  --color-primario: #b588bd;
  --color-bg: #faf8ff;
  --color-texto: #4a3a44;
  --color-neutral: #ffeedd;
  --rosa-oscuro: #9f65ad;
  --rosa-claro: #fee6ff;
  --ciruela: #3d2233;
  --ciruela-suave: #6b4a5d;
  --crema: #fffbf6;
  --papel: #f5efe8;
  --gold: #f6f2ec;
  --gold-fuerte: #ffeacd;
  --dorado-oscuro: #c98a3d;
  --dorado: #dfa661;
  --gris-borde: #f2decb;
  --violeta: #975aa8;
  --gris-tarjetas: rgb(250, 250, 250);
  --gris-tarjetas-hover: rgb(240, 240, 240);
  --gris-texto: rgb(169, 138, 173);
  --linea: rgba(61, 34, 51, 0.08);
  --color-cuadricula: rgba(255, 171, 210, 0.13);
  --background-hero: rgb(255, 249, 249);

  --h1-texto: texto-academia;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --fs-h1: clamp(2.75rem, 5vw + 1rem, 4rem);
  --fs-h2: clamp(1.5rem, 2.5vw + 0.5rem, 2.25rem);
  --fs-h3: clamp(1.25rem, 1.5vw + 0.5rem, 1.10rem);
  --fs-p: clamp(0.75rem, 0.2vw + 0.75rem, 1.15rem);
  --fs-psmall: clamp(0.2rem, 0.08vw + 0.55rem, 1rem);
}

/* Reset básico */
* {
  box-sizing: border-box;
  padding: 0%;
  margin: 0;
}

/* Scroll suave al usar anclas (#) */
html {
  scroll-behavior: smooth;
}

/* Botón flotante "subir arriba" */
.boton-arriba {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--dorado);
  color: var(--crema);
  padding: 10px 15px;
  text-decoration: none;
  border-radius: 5%;
  font-size: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 999;
}

/* Estado visible del botón (activado por JS con scroll) */
.boton-arriba.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Icono hamburguesa */
.menu-hamburguesa {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;

}

button {
  cursor: pointer;

}

/* Tamaños de fuente por elemento*/
h1 {
  font-size: var(--fs-h1);
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: var(--fs-h3);
}

p {
  font-size: var(--fs-p);
}

h1 {
  color: var(--color-primario);
  word-spacing: 0.2em;
  font-weight: 100;

}

h2,
h3,
p {
  color: var(--color-bg);

}


/* Tipografía de encabezados */
h1,
h2,
h3,
.navbar-brand {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

h1 {
  font-family: var(--h1-texto);
}

/* Logo de la cabecera */
.logo img {
  height: 90px;
}

.logo {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  font-family: var(--h1-texto);
}

.logo p {
  color: var(--crema);
  font-size: var(--fs-h2);
}

/* Estilo base de todos los botones */
button {
  background-color: var(--color-primario);
  color: white;
  border: none;
  padding: 10px 20px;
}

/* Cabecera fija sticky */
header {
  position: sticky;
  top: 0px;
  display: flex;
  justify-content: space-around;
  align-content: center;
  align-items: center;
  height: 120px;
  background-color: var(--violeta);
  z-index: 2000;
}


/* Lista del menú de navegación */
nav ul {
  display: flex;
  gap: 20px;
  list-style: none;



}

/* Estilo base del body */
body {
  background-color: var(--gold);
  font-family: var(--font-body);
  line-height: 1.6;
}

/* Estilo base de los enlaces */
a {
  text-decoration: none;
  color: var(--color-bg);
  font-size: clamp(1rem, 0.65vw, 1.5rem);
  font-family: var(--font-body);
}

/* Botón destacado del nav "Solicitar Matrícula" */
.acento a {
  background-color: var(--color-bg);
  color: var(--dorado-oscuro);
  border-radius: 10px;
  padding: 8px 15px;
  font-weight: 700;
}

.menu-hamburguesa {
  display: none;
}

/* FOOTER */
footer {
  background-color: var(--violeta);
  padding-top: 2rem;
}

footer p,
footer a {
  color: var(--crema);
}

.tituloFooter {
  color: var(--gold-fuerte);
  font-size: clamp(1.25rem, 0.75vw, 3.5rem);
  margin-bottom: 1rem;
  line-height: 30px;
}

/* Columnas del footer */
.contenidoFooter {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 250px;
}

.contenidoFooter>div {
  padding: 1rem;
  height: auto;
}


.contenidoFooter img {
  width: 50%;
}

.contenidoFooter>div:first-child {
  display: flex;
  flex-direction: column;
  height: 200px;
  align-items: center;
  justify-content: center;
}

/* .contenidoFooter>div:first-child p{
.contenidoFooter>div:first-child p {
  max-width: 300px;
  text-align: center;
} */

/* Segunda columna footer */

.contenidoFooter div ul {
  list-style: none;
}

.contenidoFooter div ul li {
  padding: 0px;
  line-height: 30px;
}

.divEnlaces {
  width: 50%;
  display: block;
  margin: 0px auto;
}

/* Tercera columna footer */

.contenidoFooter div address {
  font-style: normal;
}

.contenidoFooter div address p {
  line-height: 30px;
}

/* COPY FOOTER */

/* Iconos de redes sociales */
.redes img {
  height: 50px;
  width: 50px;
}

.redes ul {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

/* Línea de copyright al final del footer */
.footerCopy p {
  text-align: center;
  letter-spacing: 1px;
  font-weight: 500;
  color: var(--rosa-claro);
  margin-top: 1rem;
  border-top: var(--rosa-claro) solid 1px;
  padding: 1rem;
}

/* Fondo de rejilla decorativa (hero) */
.cuadricula {
  background-image:
    linear-gradient(var(--color-cuadricula) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-cuadricula) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Sección hero */
.hero {
  display: flex;
  align-items: center;
  flex-direction: column;
  height: 400px;
  gap: 40px;
  justify-content: center;
  padding: 30px 80px;
  background-color: var(--background-hero);
}

/* Nav móvil abierto */
header nav #nav-links.abierto {
  max-height: 900px ;
  opacity: 1 ;
}

/* Animación del icono hamburguesa al abrir (forma de X) */
.menu-hamburguesa.animacion .linea:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
  background-color: var(--crema);
}

.menu-hamburguesa.animacion .linea:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.menu-hamburguesa.animacion .linea:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
  background-color: var(--crema);
}

.menu-hamburguesa .linea {
  width: 100%;
  height: 2px;
  background-color: var(--bg-cream);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Botón que abre el modal */
.btn-abrir {
  background-color: var(--dorado);
  color: white;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
}

.btn-abrir:hover {
  background-color: var(--dorado-oscuro);
}

/* Fondo grisaceo del modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  justify-content: center;
  align-items: center;
  align-content: center;

  z-index: 1000;
}

/* Caja blanca del modal */
.modal-content {
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  width: 80%;
  height: 730px;
  display: flex;
  flex-direction: column;
  justify-content: left;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  position: relative;
  text-align: left;
}

.modal-content h2 {

  font-size: var(--fs-h3);
  margin-bottom: 15px;
  color: var(--color-primario);
}

/* Columna de datos personales del formulario */
.grupo-completo {
  display: flex;
  gap: 20px;
  flex-direction: column;
  width: 500px;
  margin-right: 200px;
}

.modal-content h3 {
  color: var(--ciruela-suave);
}


.form-container {
  background-color: #ffffff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  width: 100%;

  box-sizing: border-box;
}

h2.form-title {
  color: #4A3B5C;
  font-size: 26px;
  margin-top: 0;
  margin-bottom: 5px;
}

.form-divider {
  height: 2px;
  background-color: #bfa1cb;
  margin-bottom: 30px;
  border: none;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

/* Columnas del formulario de matrícula */
.form-column {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.form-full {
  grid-column: span 2;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 12px;
  font-weight: bold;
  color: var(--ciruela-suave);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

/* Inputs y textarea del formulario */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  padding: 12px 15px;
  border: 1px solid #e0d6e6;
  border-radius: 8px;
  font-size: 14px;
  color: #333;
  background-color: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #9A7AA8;
  box-shadow: 0 0 0 3px rgba(154, 122, 168, 0.15);
}

/* Secciones de Asignaturas */
.asignaturas-section h3 {
  font-size: 15px;
  color: #4A3B5C;
  margin: 0 0 12px 0;
  border-bottom: 1px solid #e0d6e6;
  padding-bottom: 6px;
}

/* Checkboxes de asignaturas */
.checkbox-group {
  display: flex;
  gap: 10px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #4A3B5C;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  margin-right: 10px;
  accent-color: #9A7AA8;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* Botones Enviar/Cerrar del formulario */
.botones-form {
  display: flex;
}

.modal-content h2 {
  margin-top: 0;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.form-group input {
  width: 100%;
  padding: 8px;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.btn-enviar {
  background-color: var(--violeta);
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  width: 120px;
  height: 60px;
  font-weight: 900;
  border-radius: 4px;
}

.btn-enviar:hover {
  background-color: #218838;
}

.btn-cerrar {
  background-color: var(--violeta);
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 4px;
  width: 120px;
  margin-left: 10px;
}

.btn-cerrar:hover {
  background-color: #c82333;
}

/* Distribución en fila de los grupos de checkboxes */
.grupo1-asig {
  display: flex;
  gap: 30px;

}

.grupo2-asig {
  display: flex;
  gap: 30px;
}

/*  MÓVIL (hasta 425px)  */
@media (max-width: 425px) {
  .modal-content {
    width: 400px;
    height: 850px;
  }

  .form-group {
    width: 300px;
  }




  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-full {
    grid-column: span 1;
    margin-right: 50px;
  }


  label p {
    font-size: var(--fs-p);
  }

  .checkbox-label {
    width: 160px;
  }

  .checkbox-group {
    display: flex;
    margin: 10px 0px;
  }

  .grupo1-asig {
    flex-direction: column;
    gap: 10px;
  }

  .grupo2-asig {
    flex-direction: column;
    gap: 10px;
  }

  .checkbox-group label {
    font-size: 11px;
  }


  body {
    width: 100%;
  }

  .logo img {
    height: 50px;


  }

  .logo {
    flex-direction: column;
    gap: 0;
    padding-left: 60px;
  }

  .desc {
    overflow: hidden;

  }

  header {
    display: flex;
    justify-content: space-between;
  }


  .hero {
    text-align: center;
  }

  /* Cabecera y menú hamburguesa en móvil */
  header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: relative;
  }

  header .menu-hamburguesa {
    display: flex;

    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1000;
    transform-origin: left center;
  }


  .inicio {

    background-color: var(--bg-primary);
    border: solid 0.5px var(--bg-cream);
  }

  .menu-hamburguesa .linea {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #f6fcfa;
    border-radius: 4px;
    transition: all 0.3s ease;
  }

  /* Menú desplegable oculto por defecto */
  header nav #nav-links {
    display: flex;
    flex-direction: column;
    padding: 0;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    z-index: 999;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s, opacity 0.3s ease;
  }

  /* Menú desplegado (clase añadida por JS) */
  header nav #nav-links.abierto {
    max-height: 900px;
    opacity: 1;
    gap: 0px;

  }

  header nav #nav-links li {
    width: 100%;
    border-bottom: solid 0.5px var(--color-primario);
    padding: 20px 0px;
  }

  .acento a {
    background-color: var(--crema);
  }


  header nav ul li a {
    color: var(--violeta);

  }

  header nav #nav-links {
    left: 0;
    transform: none;
    width: 100%;
    background-color: var(--crema);
    padding: 0;
    text-align: center;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease-in-out, opacity 0.2s ease;

  }

  /* Redes sociales en fila y centradas */
  .redes {
    justify-content: center;
  }

  .redes ul {
    flex-direction: row;
  }

  /* Footer apilado en móvil */
  footer {
    font-size: 20px;
    gap: 20px;
    height: 790px;
    text-align: center;
    display: flex;
    flex-direction: column;
  }

  .contenidoFooter {
    display: flex;
    flex-direction: column;
  }

  .footerCopy {
    margin-top: 25rem;
  }

  .menu-footer {
    display: flex;
    flex-direction: column;

    font-size: 10px;
    padding: 10px;
  }



  .animacion .linea:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
  }

  .animacion .linea:nth-child(2) {
    opacity: 0;
  }

  .animacion .linea:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
  }

  .sticky {
    position: sticky;
    z-index: 900;
    top: 0;
  }


}

/*  TABLET pequeña (426px - 800px)  */
@media (min-width: 426px) and (max-width:800px) {
  .contenidoFooter {
    height: fit-content;
  }

  .redes ul {
    flex-direction: row;
    justify-content: center;
  }

  .contenidoFooter>div:first-child {
    height: fit-content;
  }

  footer {
    height: fit-content;
  }

  body {
    width: 100%;
  }

  .logo img {
    height: 70px;


  }



  .modal-content {
    width: 700px;
  }



  .asignaturas-section {
    flex-direction: column;
  }

  .checkbox-group {
    gap: 5px;
    display: flex;
  }

  .checkbox-group label {
    font-size: 11px;
  }



  .hero {
    text-align: center;
  }

  header {
    display: flex;
    flex-direction: row;
    align-items: center;
    position: relative;
    display: flex;
    justify-content: space-around;
  }

  header .menu-hamburguesa {
    display: flex;

    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1000;
    transform-origin: left center;
  }


  .inicio {

    background-color: var(--bg-primary);
    border: solid 0.5px var(--bg-cream);
  }

  .menu-hamburguesa .linea {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #f6fcfa;
    border-radius: 4px;
    transition: all 0.3s ease;
  }

  header nav #nav-links {
    display: flex;
    flex-direction: column;
    padding: 0;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    z-index: 999;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s, opacity 0.3s ease;
  }







  header nav #nav-links.abierto {
    max-height: 900px;
    opacity: 1;
    gap: 0px;

  }

  header nav #nav-links li {
    width: 100%;
    border-bottom: solid 0.5px var(--color-primario);
    padding: 20px 0px;
  }

  .acento a {
    background-color: var(--crema);
  }


  header nav ul li a {
    color: var(--violeta);

  }

  header nav #nav-links {
    left: 0;
    transform: none;
    width: 100%;
    background-color: var(--crema);
    padding: 0;
    text-align: center;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease-in-out, opacity 0.2s ease;

  }





  footer {
    font-size: 20px;
    gap: 5px;
    text-align: center;
  }

  .contenidoFooter {
    display: flex;
    flex-direction: column;
  }

  .menu-footer {
    display: flex;
    flex-direction: column;

    font-size: 10px;
    padding: 10px;
  }

  footer img {
    justify-content: center;
  }

  .animacion .linea:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
  }

  .animacion .linea:nth-child(2) {
    opacity: 0;
  }

  .animacion .linea:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
  }




  footer {
    font-size: 30px;
    gap: 5px;
  }

  .menu-footer {
    display: flex;
    flex-direction: column;

    font-size: 10px;
    padding: 10px;
  }


  .sticky {
    position: sticky;
    z-index: 900;
    top: 0;
  }

}

/*  TABLET grande / portátil pequeño (801px - 1050px)  */
@media (min-width:801px) and (max-width: 1050px) {

  nav ul li a {
    font-size: 15px;
  }

  .logo {
    flex-direction: column;
    gap: 0;
  }

  .logo p {
    font-size: 20px;
  }

  .logo img {
    height: 70px;
  }

  .modal-content {
    width: 700px;
  }


  footer {
    height: 400px;

  }

  .footerCopy {
    padding-top: 50px;
  }

  .asignaturas-section {
    flex-direction: column;
  }

  .divEnlaces {
    width: 100%;
  }

  .checkbox-group {
    gap: 5px;
    display: flex;
  }

  .checkbox-group label {
    font-size: 11px;
  }
}