/* ===================== OPTIMIZACIONES GENERALES ===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --blanco: #ffffff;
  --negro: #000000;
  --celeste: #8cc9e7;
  --celeste-suave: #89d6ff;
  --gris: #cccccc;
  --gris-claro: #f8f9fa;
  --gris-oscuro: #1a1a1a;

  /* FUENTES */
  --fuente-titulos: 'Montserrat', sans-serif;
  --fuente-cuerpo: 'Poppins', sans-serif;
}

body {
  background: #ffffff;
  color: #1a1a1a;
  overflow-x: hidden;
  font-family: var(--fuente-cuerpo);
  /* Poppins */
  font-weight: 800;
  /* AGREGADO: Grosor 800 para todos los textos no títulos */
  font-size: 1rem;
  line-height: 1.6;
}

html {
  scroll-behavior: smooth;
}

/* ===== HEADER & NAVBAR ===== */
header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  background: var(--negro) !important;
  transition: background 0.4s ease, box-shadow 0.3s ease;
  font-family: var(--fuente-cuerpo);
}

header.scrolled {
  background: var(--negro) !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding: 0 2rem;
  position: relative;
  background: var(--negro);
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
  color: var(--celeste) !important;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 1100;
  transition: all 0.3s ease;
  user-select: none;
  margin-right: auto;
  padding: 0.5rem 1rem;
  text-transform: uppercase;
  font-family: var(--fuente-titulos);
  font-weight: 900;
  letter-spacing: -0.5px;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none !important;
  border: none !important;
}

.logo-text,
.logo-text:link,
.logo-text:visited,
.logo-text:hover,
.logo-text:active,
.logo-text:focus {
  color: var(--celeste);
  text-decoration: none !important;
  border-bottom: none !important;
  outline: none !important;
}

.logo:hover .logo-text {
  color: var(--celeste-suave) !important;
}

.logo i {
  display: inline-block !important;
  margin-right: 12px;
  font-size: 2rem;
  transition: all 0.4s ease;
  cursor: pointer;
  color: var(--celeste);
}

.logo:hover i {
  color: var(--celeste-suave);
  transform: rotate(90deg);
}

/* ENLACES NAV */
.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: left 0.4s ease;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  text-decoration: none;
  color: var(--blanco);
  font-size: 1.1rem;
  display: block;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-family: var(--fuente-titulos);
  font-weight: 800;
  letter-spacing: 0.5px;
}

.nav-link:hover {
  color: var(--celeste);
  transform: translateY(-2px);
}

/* ANIMACIONES DEL MENÚ MÓVIL */
.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 998;
  backdrop-filter: blur(2px);
}

.menu-overlay.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

body.menu-open {
  overflow: hidden;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* --- RESPONSIVE HEADER & NAVBAR --- */
@media (max-width: 992px) {
  .navbar {
    height: 70px;
    padding: 0 1rem;
  }

  .logo {
    order: 1;
    font-size: 1.7rem !important;
  }

  .logo i {
    font-size: 1.9rem !important;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: -100%;
    width: 70%;
    height: 100vh;
    background: var(--negro);
    flex-direction: column;
    align-items: flex-start;
    padding: 6rem 2rem;
    gap: 2rem;
    transform: none;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    order: 2;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.3);
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links.active .nav-item {
    animation: slideInRight 0.4s ease forwards;
    opacity: 0;
    transform: translateX(-20px);
  }

  .nav-links.active .nav-item:nth-child(1) {
    animation-delay: 0.1s;
  }

  .nav-links.active .nav-item:nth-child(2) {
    animation-delay: 0.2s;
  }

  .nav-links.active .nav-item:nth-child(3) {
    animation-delay: 0.3s;
  }

  .nav-links.active .nav-item:nth-child(4) {
    animation-delay: 0.4s;
  }

  .nav-links.active~.navbar .logo i,
  body.menu-open .logo i {
    transform: rotate(90deg);
    color: var(--celeste-suave);
  }

  .nav-link {
    font-size: 1.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    padding: 1rem 0;
  }
}

@media (max-width: 768px) {
  .navbar {
    height: 70px;
    padding: 0 1rem;
  }

  .logo {
    font-size: 1.6rem !important;
  }
}

@media (max-width: 576px) {
  .nav-links {
    width: 85%;
    padding: 6rem 1.5rem;
  }
}

/* ===================== HERO CURSOS ===================== */
.hero-cursos {
  position: relative;
  min-height: 600px;
  padding-top: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.9) 10%, rgba(0, 0, 0, 0) 100%),
    url('/images/maquillaje-hero-cursos.webp') center/cover;
  color: #ffffff;
  overflow: hidden;
}

.hero-cursos::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(0, 0, 0, 0.9), rgba(50, 50, 50, 0.8));
  z-index: 1;
}

.hero-cursos .container {
  position: relative;
  z-index: 2;
}

.hero-cursos h1 {
  font-family: var(--fuente-titulos);
  font-weight: 900;
  /* Extra Grueso */
  /* Responsive */
  font-size: clamp(3rem, 6vw, 4.5rem);
  letter-spacing: 3px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

/* ===================== BOTONES ===================== */
.btn-primary {
  background: #ffffff !important;
  color: #000000 !important;
  padding: 12px 30px;
  border: 2px solid #ffffff !important;
  border-radius: 8px;
  font-weight: 600;
}

.btn-primary:hover {
  background: #e0e0e0 !important;
  transform: translateY(-2px);
}

/* ===================== BLOQUE SUPERIOR ===================== */
.cursos-banner {
  position: relative;
  width: 100%;
  height: 380px;
  background: url("/images/Motivacion.jpg") center/cover no-repeat fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 60px 20px;
  margin: 0 auto 70px auto;
  z-index: 1;
}

.cursos-overlay {
  background: rgba(0, 0, 0, 0.6);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro-frase {
  position: relative;
  font-family: var(--fuente-titulos);
  font-weight: 900;
  /* Extra Grueso */
  color: var(--blanco);
  font-size: clamp(2rem, 5vw, 3.5rem);
  /* Responsive */
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.2;
  text-align: center;
  text-shadow: 0 5px 20px rgba(0, 0, 0, 0.9);
  opacity: 0;
  transform: translateY(40px);
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

/* ===================== BLOQUE SUPERIOR CON IMAGEN (CORREGIDO) ===================== */
.cursos-banner {
  position: relative;
  width: 100%;
  /* Cambiamos height fijo por min-height para evitar cortes si el texto es largo */
  min-height: 380px;
  background: url("/images/Motivacion.jpg") center/cover no-repeat fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 60px 20px;
  margin: 0 auto 70px auto;
  z-index: 1;
}

.cursos-overlay {
  background: rgba(0, 0, 0, 0.6);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro-frase {
  position: relative;
  font-family: var(--fuente-titulos);
  /* Impact / Montserrat 900 */
  color: var(--blanco);
  /* AQUÍ ESTÁ LA MAGIA: clamp(mínimo, ideal, máximo) */
  /* Esto asegura que nunca sea menor a 1.5rem ni mayor a 3.5rem, ajustándose solo */
  font-size: clamp(1.6rem, 5vw, 3.5rem);
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.2;
  text-align: center;
  text-shadow: 0 5px 20px rgba(0, 0, 0, 0.9);
  opacity: 0;
  transform: translateY(40px);
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 15px;
  /* Margen interno para que no toque los bordes en celular */
}

/* Ajustes específicos para móviles muy pequeños */
@media (max-width: 576px) {
  .cursos-banner {
    min-height: 250px;
    /* Reducimos la altura del contenedor */
    padding: 40px 15px;
    background-attachment: scroll;
    /* Mejor rendimiento en móviles */
  }

  .intro-frase {
    letter-spacing: 1px;
    /* Reducimos espacio entre letras para que quepa más texto */
    line-height: 1.3;
  }
}

@media (max-width: 1200px) {
  .cursos-banner {
    height: 340px;
    margin-bottom: 60px;
  }
}

@media (max-width: 992px) {
  .cursos-banner {
    height: 300px;
    background-attachment: scroll;
    margin-bottom: 50px;
  }
}

@media (max-width: 768px) {
  .cursos-banner {
    height: 260px;
    padding: 40px 15px;
    margin-bottom: 45px;
  }
}

@media (max-width: 576px) {
  .cursos-banner {
    height: 220px;
    margin-bottom: 40px;
    padding: 30px 10px;
  }
}

@media (max-width: 400px) {
  .cursos-banner {
    height: 200px;
    margin-bottom: 35px;
  }
}

/* ===================== SECCIÓN CURSOS ===================== */
.cursos-section {
  background-color: var(--negro);
  color: var(--blanco);
  padding: 60px 0 80px;
  position: relative;
  z-index: 1;
}

.cursos-section h2 {
  font-family: var(--fuente-titulos);
  font-weight: 900;
  /* Extra Grueso */
  font-size: clamp(2rem, 5vw, 3.2rem);
  /* Responsive */
  text-align: center;
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.cursos-section .lead {
  font-size: 1.2rem;
  color: var(--gris);
  max-width: 700px;
  margin: 0 auto 60px;
  text-align: center;
  line-height: 1.6;
}

.curso {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #111;
  border-radius: 25px;
  padding: 35px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  margin-bottom: 40px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.curso:nth-child(even) {
  flex-direction: row-reverse;
}

.curso:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

.curso-video {
  flex: 1;
  max-width: 48%;
  height: 320px;
  border-radius: 18px;
  overflow: hidden;
}

.curso-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
}

.curso-info {
  flex: 1;
  padding: 20px 35px;
  text-align: left;
}

.curso-info h3 {
  font-family: var(--fuente-titulos);
  font-weight: 800;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--blanco);
}

.curso-info p {
  color: var(--gris);
  margin-bottom: 0.8rem;
  font-family: var(--fuente-cuerpo);
  line-height: 1.6;
}

.curso-boton {
  background: var(--celeste);
  color: var(--blanco);
  text-decoration: none;
  padding: 0.9rem 2.2rem;
  border-radius: 40px;
  font-weight: bold;
  font-family: var(--fuente-titulos);
  display: block;
  width: fit-content;
  margin: 25px auto 0;
  transition: background 0.3s ease, transform 0.2s ease;
}

.curso-boton:hover {
  background: var(--celeste-suave);
  transform: scale(1.05);
}

@media (max-width: 1200px) {
  .curso-info h3 {
    font-size: 1.8rem;
  }

  .curso-video {
    height: 280px;
  }
}

@media (max-width: 991px) {
  .curso {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
  }

  .curso:nth-child(even) {
    flex-direction: column;
  }

  .curso-video {
    max-width: 100%;
    height: 260px;
    margin-bottom: 20px;
  }

  .curso-info {
    padding: 0 15px;
    text-align: center;
  }

  .curso-info h3 {
    font-size: 1.6rem;
  }

  .curso-info p {
    font-size: 1rem;
  }

  .curso-boton {
    margin: 20px auto 0;
  }
}

@media (max-width: 767px) {
  .cursos-section .lead {
    font-size: 1rem;
    margin-bottom: 50px;
  }

  .curso-video {
    height: 220px;
  }

  .curso-info h3 {
    font-size: 1.4rem;
  }

  .curso-info p {
    font-size: 0.95rem;
  }
}

@media (max-width: 575px) {
  .cursos-section {
    padding: 50px 0 60px;
  }

  .curso {
    padding: 20px;
    gap: 15px;
  }

  .curso-video {
    height: 200px;
  }

  .curso-info h3 {
    font-size: 1.3rem;
  }

  .curso-info p {
    font-size: 0.9rem;
  }

  .curso-boton {
    font-size: 0.9rem;
    padding: 0.8rem 1.8rem;
  }
}

.curso,
.curso-video,
.curso-info {
  will-change: transform, opacity;
}



.curso {
  transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
}

.curso:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* ===================== INFO CURSOS (Títulos Gruesos y Responsive) ===================== */
.info-cursos {
  background: var(--blanco);
  padding: 70px 0;
  text-align: center;
}

.info-cursos h2 {
  font-family: var(--fuente-titulos);
  font-weight: 900;
  /* Extra Grueso */
  font-size: clamp(2rem, 5vw, 3.2rem);
  /* Responsive */
  color: var(--negro);
  margin-bottom: 1rem;
}

.info-cursos .lead {
  font-size: 1.2rem;
  color: #555;
  max-width: 700px;
  margin: 0 auto 50px;
  line-height: 1.6;
}

.beneficios {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 80px;
  flex-wrap: wrap;
}

.beneficio {
  max-width: 320px;
  flex: 1 1 280px;
  text-align: center;
  transition: all 0.3s ease;
}

.icono-beneficio {
  font-size: 3.5rem;
  color: var(--celeste);
  transition: transform 0.3s ease;
}

.beneficio:hover .icono-beneficio {
  transform: scale(1.2);
  color: var(--celeste-suave);
}

.beneficio h4 {
  font-family: var(--fuente-titulos);
  font-weight: 900;
  /* Extra Grueso */
  font-size: 1.5rem;
  color: var(--negro);
  margin: 15px 0 10px;
  text-transform: uppercase;
}

.beneficio p {
  font-size: 1rem;
  color: #555;
}

/* ===================== GALERÍA (Títulos Gruesos y Responsive) ===================== */
.galeria-trabajos {
  background: #ffffff;
  padding: 90px 0;
  text-align: center;
  color: #000;
  contain: layout paint;
}

.galeria-trabajos h2 {
  font-family: var(--fuente-titulos);
  font-weight: 900;
  /* Extra Grueso */
  font-size: clamp(2rem, 5vw, 3.4rem);
  /* Responsive */
  margin-bottom: 1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #000;
  position: relative;
  display: inline-block;
}

.galeria-trabajos h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--celeste);
  border-radius: 2px;
}

.galeria-trabajos .lead {
  font-size: 1.1rem;
  color: #555;
  font-family: var(--fuente-cuerpo);
  max-width: 700px;
  margin: 0 auto 55px;
  line-height: 1.6;
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  justify-content: center;
  align-items: center;
  width: 90%;
  margin: 0 auto;
}

.galeria-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  cursor: pointer;
  transition: transform 0.25s ease-out;
  will-change: transform;
}

.galeria-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  transition: transform 0.3s ease-out;
  will-change: transform;
  filter: brightness(0.98);
}

.galeria-item:hover {
  transform: translateY(-3px);
}

.galeria-item:hover img {
  transform: scale(1.03);
  filter: brightness(1.05);
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease-out;
  border-radius: 16px;
}

.overlay i {
  color: var(--celeste);
  font-size: 1.8rem;
  padding: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

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

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(3px);
  transition: opacity 0.3s ease;
}

.lightbox.activo {
  display: flex;
  opacity: 1;
}

.lightbox-img {
  max-width: 88%;
  max-height: 80%;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
  transition: transform 0.35s ease;
}

.cerrar {
  position: absolute;
  top: 25px;
  right: 35px;
  color: var(--celeste);
  font-size: 2.3rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.cerrar:hover {
  transform: scale(1.15);
  color: var(--celeste-suave);
}

@media (max-width: 768px) {
  .galeria-item img {
    height: 240px;
  }
}

@media (max-width: 480px) {
  .galeria-item img {
    height: 200px;
  }

  .overlay i {
    font-size: 1.5rem;
  }
}

/* ===================== MATRÍCULA ===================== */
.matricula-cursos {
  background: linear-gradient(135deg, #000000, #1a1a1a);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.matricula-cursos h2 {
  font-family: var(--fuente-titulos);
  /* Montserrat */
  letter-spacing: 3px;
  color: #fff;
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.matricula-cursos .lead {
  font-size: 1.3rem;
  color: #e0e0e0;
}

/* ===================== FOOTER ===================== */
.footer {
  background: #1a1a1a;
  padding: 60px 0 20px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-bottom: 40px;
}

.footer-section {
  padding: 0 25px;
  position: relative;
}

.footer-section:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.footer-section h3 {
  font-size: 1.1rem;
  color: var(--blanco);
  margin-bottom: 25px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--celeste);
  font-family: var(--fuente-titulos);
  font-weight: 800;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.footer-section ul li a {
  color: #cccccc;
  text-decoration: none;
  transition: color 0.3s ease;
  width: 100%;
  padding: 4px 0;
  font-size: 0.95rem;
  font-family: var(--fuente-cuerpo);
  font-weight: 800;
}

.footer-section ul li a:hover {
  color: var(--celeste);
}

.contact-info,
.hours-list {
  color: #cccccc;
  font-weight: 800;
}

.contact-info li {
  margin-bottom: 12px;
  line-height: 1.4;
  font-size: 0.95rem;
}

.contact-info i {
  margin-right: 12px;
  width: 16px;
  color: var(--celeste);
  font-size: 0.9rem;
}

.promo-box {
  background: rgba(140, 201, 231, 0.08);
  padding: 20px;
  border-radius: 4px;
  border-left: 2px solid var(--celeste);
  margin-bottom: 15px;
}

.promo-box p {
  color: #ffffff;
  line-height: 1.5;
  text-align: center;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  justify-content: center;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #cccccc;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 0.9rem;
}

.social-links a:hover {
  color: #ffffff;
  background-color: var(--celeste);
  border-color: var(--celeste);
}

.footer-bottom {
  text-align: center;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #999999;
  font-size: 0.85rem;
  font-weight: 800;
}

@media (max-width: 768px) {

    .hero-cursos{
        min-height: 63.5vh !important;
    }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-section {
    text-align: center;
    padding: 0 20px;
  }

  .footer-section:not(:last-child)::after {
    display: none;
  }

  .footer-section:not(:last-child)::before {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 20%;
    width: 60%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
  }

    .page-wrapper {
    margin: 22px;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.252);
  }
}

/* =========================================
   FIX RESPONSIVE: MENÚ LATERAL (HAMBURGUESA)
   ========================================= */
@media (max-width: 992px) {
    /* 1. Ajuste de la barra superior */
    .navbar {
        height: 70px;
        padding: 0 1rem;
    }

    /* 2. Ajuste del Logo */
    .logo {
        order: 1;
        font-size: 1.7rem !important;
    }

    .logo i {
        font-size: 1.9rem !important;
    }

    /* 3. MENÚ LATERAL (El contenedor negro) */
    .nav-links {
        position: fixed;
        
        /* ANCLAJE VERTICAL: Obliga a pegar arriba y abajo */
        top: 0;
        bottom: 0; 
        
        /* ALTURA: Usamos 'dvh' que se adapta a las barras del navegador móvil */
        height: 100dvh; 
        
        /* RESPALDO PARA IPHONE: Truco para iOS Safari */
        min-height: -webkit-fill-available;
        
        /* POSICIÓN Y ANCHO */
        left: -100%;
        width: 70%;
        max-width: 320px; /* Evita que sea muy ancho en tablets */
        
        /* ESTILOS VISUALES */
        background: var(--negro);
        display: flex;
        flex-direction: column;
        align-items: flex-start; /* Alineado a la izquierda */
        padding: 6rem 2rem;
        gap: 2rem;
        
        /* TRANSICIÓN */
        transform: none;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        order: 2;
        box-shadow: 5px 0 50px rgba(0, 0, 0, 0.5);
        
        /* SCROLL: Si el menú tiene muchas opciones, permite bajar */
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Estado Activo (Cuando se abre) */
    .nav-links.active {
        left: 0;
    }

    /* Animación de entrada de los textos */
    .nav-links.active .nav-item {
        animation: slideInRight 0.4s ease forwards;
        opacity: 0;
        transform: translateX(-20px);
    }

    /* Retrasos en cascada para los items */
    .nav-links.active .nav-item:nth-child(1) { animation-delay: 0.1s; }
    .nav-links.active .nav-item:nth-child(2) { animation-delay: 0.2s; }
    .nav-links.active .nav-item:nth-child(3) { animation-delay: 0.3s; }
    .nav-links.active .nav-item:nth-child(4) { animation-delay: 0.4s; }

    /* Efecto en el icono de hamburguesa/tijeras */
    .nav-links.active ~ .navbar .logo i,
    body.menu-open .logo i {
        transform: rotate(90deg);
        color: var(--celeste-suave);
    }

    /* Estilo de los enlaces dentro del menú móvil */
    .nav-link {
        font-size: 1.4rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
        padding: 1rem 0;
    }
}

