/* ==========================================================================
   1. RESET Y FUENTES (Original)
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Los atributos width/height del <img> son solo hints de aspect-ratio;
   dejamos que el CSS controle el tamaño real. Sin esto, height=1024 del HTML
   ganaría cuando el CSS solo fija width. */
img {
  max-width: 100%;
  height: auto;
}

/* Contenido solo para lectores de pantalla y buscadores (accesibilidad/SEO) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Honeypot anti-spam: campo trampa oculto para humanos, visible para bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  tab-index: -1;
}

/* Reset visual para <button> usados como cerrar de modales y hamburguesa
   (mantiene la accesibilidad sin cambiar el diseño heredado de <span>/<div>) */
button.cerrar,
button.cerrarClases,
button.cerrar-servicio,
button.cerrar-servicio-ilustracion,
button.hamburger {
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  line-height: 1;
  cursor: pointer;
}
button.cerrar:focus-visible,
button.cerrarClases:focus-visible,
button.cerrar-servicio:focus-visible,
button.cerrar-servicio-ilustracion:focus-visible,
button.hamburger:focus-visible {
  outline: 2px solid #8fc2d5;
  outline-offset: 2px;
}

@font-face {
  font-family: 'LTBrewery Regular';
  src: url('fonts/LTBREWRG.TTF') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'LTBrewery Heavy';
  src: url('fonts/LTBREWH.TTF') format('truetype');
  font-weight: bold;
  font-style: normal;
}

body {
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  padding: 0;
  color: #333;
  padding-top: 90px;
}

/* ==========================================================================
   2. NAVBAR Y FOOTER (Compartido)
   ========================================================================== */

/* Navbar */
.barra_navegacion {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  padding-bottom: 3px;
  padding-left: 80px;
  padding-right: 80px;
  background-color: white;
  color: #8fc2d5;
  
  /* Cambios para fijarla */
  position: fixed;   /* La anclamos a la pantalla */
  top: 0;            /* Arriba del todo */
  left: 0;           /* Desde la izquierda */
  z-index: 2000;     /* Aseguramos que esté por encima de todo el contenido */
  width: 100%;       /* Ocupa todo el ancho */
  
  border-bottom: 2px solid #8fc2d5;
  font-family: 'LTBrewery Heavy', sans-serif;
}

.logo img {
  width: 80px;
  align-items: center;
}

.logo a {
  text-decoration: none;
  color: #8fc2d5;
  font-size: 14px;
  font-weight: bold;
}

.links_barra_navegacion {
  font-size: 24px;
  list-style: none;
  display: flex;
  gap: 30px;
}

.links_barra_navegacion li a {
  text-decoration: none;
  color: #8fc2d5;
  font-weight: 500;
  transition: color 0.3s;
}

.links_barra_navegacion li a:hover {
  color: #1f74be;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #1f74be;
  border-radius: 2px;
}

/* Footer */
.footer {
  background-color: #111;
  color: #fff;
  padding: 30px 20px;
  text-align: center;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer .nombre-rafa {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
}

.footer .copy {
  font-size: 14px;
  color: #aaa;
  margin-bottom: 20px;
}

.footer .redes {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer .redes a {
  color: #fff;
  font-size: 24px;
  transition: color 0.3s;
}

.footer .redes a:hover {
  color: #007aff;
}

/* Banners (Usados en varias páginas) */
.banner-sobre-mi {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'LTBrewery Heavy', sans-serif;
}

.banner-portfolio { background-image: var(--banner-portfolio, url('Imagenes/Portfolio/banner-portfolio.webp')); }
.banner-aboutme   { background-image: var(--banner-aboutme,   url('Imagenes/Aboutme/banner-sobremi.webp')); }
.banner-contacto  { background-image: var(--banner-contacto,  url('Imagenes/Contacto/banner-contacto.webp')); }
.banner-servicios { background-image: var(--banner-servicios, url('Imagenes/Servicios/banner-servicios.webp')); }
.banner-clases    { background-image: var(--banner-clases,    url('Imagenes/Clases/banner-clases.webp')); }

.banner-sobre-mi h1 {
  color: white;
  font-size: 48px;
  font-weight: bold;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.9);
  margin: 0;
}

/* ==========================================================================
   3. HOME (Index)
   ========================================================================== */

.contenedor-logo-redondo {
  text-align: center;
}

.contenedor-logo-redondo img {
  padding-top: 50px;
  padding-bottom: 50px;
  width: 350px;
}

/* Carrusel Principal (Original e Intacto) */
.carrusel-centrado {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 0;
}

.carrusel-container {
  display: flex;
  transition: transform 0.5s linear;
}

.carrusel-item {
  flex: 0 0 auto;
  width: 20%;
}

.carrusel-item-inner {
  width: 100%;
  padding: 0;
}

.carrusel-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.flecha { 
  display: none; 
}

/* Contenedor General de Secciones */
.contenedor-home {
  padding-top: 100px;
  padding-bottom: 100px;
  width: 70%;
  margin: 0 auto;
}

.seccion-home {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
  padding: 20px;
}

.seccion-home img {
  width: 20%;
  height: auto;
  object-fit: cover;
}

.contenido-home {
  width: 70%;
  padding-left: 20px;
}

/* Títulos: Tamaño grande, Azul y Fuente Corporativa */
.contenido-home h2 {
  margin: 0 0 10px;
  font-size: 2.2rem; 
  color: #8fc2d5; 
  font-family: 'LTBrewery Heavy', sans-serif;
}

/* Texto: Tamaño unificado 18px */
.contenido-home p {
  margin: 0;
  color: #555;
  line-height: 1.6;
  font-size: 18px; 
}

/* Estilo específico para la frase de Clases */
.frase-destacada {
  font-style: italic;         /* Cursiva */
  font-weight: bold;          /* Negrita */
  color: #8fc2d5;             /* Color corporativo */
  font-size: 22px; 

}

.enlace-seccion {
  text-decoration: none;
  color: inherit;
  display: block;
}
   
/* ==========================================================================
   4. ABOUT ME
   ========================================================================== */

/* --- SECCIÓN SOBRE MÍ --- */
.imagen-texto-aboutme {
  display: flex;
  gap: 20px;
  max-width: 100%;
  margin: 0 auto;
  padding: 2% 10%;
}

.imagen-aboutme img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 8px;
}

.texto-aboutme {
  flex: 1;
  text-align: justify;
  font-size: 16px;
  align-items: center;
}

.frase-maestra-sobremi {
  display: flex;
  align-items: center;
  gap: 15px;
}

.frase-maestra-sobremi span {
  font-family: 'LTBrewery Heavy', sans-serif;
  font-size: 30px;
  color: #8fc2d5;
  font-style: italic;
}

.frase-maestra-sobremi img {
  width: 80px;
  height: auto;
}

.texto-aboutme p {
  font-size: 18px;
  line-height: 1.6;
  color: #555;
}

.contenedor-firma {
  text-align: center;
  width: 100%;
  margin-top: 20px;
}

.firma-aboutme {
  max-width: 300px;
}

/* --- FILTROS ABOUT ME (Ajustado el tamaño del botón) --- */
.galeria-aboutme {
  max-width: 1200px;
  margin: auto;
  padding: 20px; /* Menos espacio entre secciones */
}

.filtros-aboutme {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 30px;
}

.filtro-aboutme {
  background: none;
  border: 2px solid #8fc2d5;
  width: 260px; /* Reducido de 350px para ajustar a lápices pequeños */
  height: 200px; /* Reducido de 300px */
  border-radius: 20px;
  color: #8fc2d5;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.filtro-aboutme img {
  width: 100px; /* Mitad de tamaño como pediste */
  height: 100px;
  object-fit: contain;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}

.filtro-aboutme p {
  margin: 0;
  font-family: 'LTBrewery Heavy', sans-serif; /* Fuente de títulos */
  font-weight: 600;
  font-size: 18px;
}

.filtro-aboutme:hover,
.filtro-aboutme.activo {
  background: #8fc2d5;
  color: white;
}

.contenedor-filtro-aboutme {
  display: none;
  flex-direction: column;
  gap: 30px;
}

.contenedor-filtro-aboutme.active {
  display: flex;
}

.info-filtro-aboutme {
  color: #333;
  text-align: justify;
  padding: 20px 40px;
  line-height: 1.6;
  font-size: 18px; /* Mismo tamaño que descripción */
}

/* --- MEDALLAS FINALES --- */
.contenedor-medallas-aboutme {
  padding-top: 20px;    /* Reducido para que pegue más a la sección de arriba */
  padding-bottom: 0px;  /* Lo ponemos a cero para que no empuje a los logos hacia abajo */
  width: 70%;
  margin: 0 auto;
}

.seccion-medalla {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  padding: 10px 20px;
}

.seccion-medalla img {
  width: 20%;
  height: auto;
  object-fit: cover;
  }

.contenido-medalla {
  width: 70%;
  padding-left: 20px;
}

.contenido-medalla h2 {
  margin: 0 0 10px;
  font-size: 2.2rem;
  color: #8fc2d5;
  font-family: 'LTBrewery Heavy', sans-serif;
}

.contenido-medalla p {
  margin: 0;
  color: #555;
  line-height: 1.6;
  font-size: 18px;
}

/* --- LOGOS CLIENTES (SECCIÓN FINAL) --- */
.grid-logos {
    display: grid;
    gap: 50px;
    align-items: center;
    justify-items: center;
    padding: 20px 0;
    margin: 0 auto;
    max-width: 1000px;
}

.grid-8-cols { grid-template-columns: repeat(4, 1fr); }
.grid-5-cols { grid-template-columns: repeat(5, 1fr); }

.logo-item {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 250px;
}

.logo-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

@media (max-width: 900px) {
    .grid-8-cols, .grid-5-cols { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
    .grid-8-cols, .grid-5-cols { grid-template-columns: repeat(2, 1fr); }
    .logo-item { height: 60px; }
}

/* ==========================================================================
   5. PORTFOLIO
   ========================================================================== */

/* ====================== */
/* CONTENEDOR PORTFOLIO */
/* ====================== */

.contenedor-portfolio {
  width: 100%;
  height: auto;
  text-align: center;
  padding: 50px 100px;
}

.texto-portfolio {
  color: black;
  font-size: 18px;
  line-height: 1.6;
}

.enlace-portfolio {
  color: #1f74be;
  text-decoration: underline;
}

/* ====================== */
/* GRID IMAGENES */
/* ====================== */

.galeria-ilustraciones {
  max-width: 1200px;
  margin: auto;
  padding: 40px 20px;
}

.filtros {
  text-align: center;
  margin-bottom: 30px;
}

.filtro {
  background: none;
  border: 2px solid #8fc2d5;
  padding: 10px 20px;
  margin: 0 5px;
  font-size: 17px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 25px;
  color: #8fc2d5;
  font-family: 'LTBrewery Heavy', sans-serif;
}

.filtro:hover,
.filtro.activo {
  background: #8fc2d5;
  color: white;
}

.grid-galeria {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.item {
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.item img {
  width: 100%;
  display: block;
  transition: transform 0.3s ease;
}

.item:hover img {
  transform: scale(1.1);
}

/* MODAL CORREGIDO: z-index muy alto para que no lo tape el menú */
.modal {
  display: none;
  position: fixed;
  z-index: 9999; /* Valor superior al menú */
  left: 0; 
  top: 0;
  width: 100%; 
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  object-fit: contain;
}

#caption {
    color: white;
    text-align: center;
    font-family: 'Montserrat', sans-serif; /* Usando tu fuente del proyecto */
    font-weight: 600;
    font-size: 18px;
    margin-top: 15px;
    padding: 0 20px;
    max-width: 80%; /* Para que el texto no toque los bordes del modal */
}

.cerrar {
  position: absolute;
  top: 30px; 
  right: 40px;
  font-size: 50px;
  font-weight: bold;
  color: white;
  cursor: pointer;
  z-index: 10000;
}

/* Responsive */
@media screen and (max-width: 992px) {
  .grid-galeria {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media screen and (max-width: 600px) {
  .grid-galeria {
    grid-template-columns: 1fr;
    padding: 0 50px;
  }
}

/* ==========================================================================
   6. SERVICIOS E ILUSTRACIÓN
   ========================================================================== */

/* ==========================================================================
   6. SERVICIOS E ILUSTRACIÓN
   ========================================================================== */

/* ====================== */
/* CONTENEDOR SERVICIOS */
/* ====================== */

.contenedor-texto-servicios {
 width: 100%;
 height: auto;
 text-align: center;
 padding: 50px 10%; /* Ajustado margen lateral al 10% como el index */
}

/* Tamaño de texto y espaciado unificado con Index */
.texto-inicio-servicios {
 color: black;
 font-size: 18px; 
 line-height: 1.6;
}

/* Título de página unificado */
.titulo-pagina {
 color: #8fc2d5;
 font-family: 'LTBrewery Heavy', sans-serif; 
 font-size: 50px;
 text-align: center;
}

/* ====================== */
/* GRID PRINCIPAL DE SERVICIOS */
/* ====================== */

.galeria-servicios {
 max-width: 1500px;
 margin: auto;
}

.filtros-servicios {
 text-align: center;
 padding-bottom: 40px;
}

/* Filtros con fuente corporativa */
.filtro-servicio {
 background: none;
 border: 2px solid #8fc2d5;
 padding: 10px 20px;
 margin: 0 5px;
 font-size: 17px;
 cursor: pointer;
 border-radius: 25px;
 color: #8fc2d5;
 transition: all 0.3s ease;
 font-family: 'LTBrewery Heavy', sans-serif;
}

.filtro-servicio:hover,
.filtro-servicio.activo {
 background: #8fc2d5;
 color: #fff;
}

.contenedor-filtro-servicio {
 display: none;
 flex-direction: column;
 gap: 40px;
}

.contenedor-filtro-servicio.active {
 display: flex;
}

/* Texto de descripción de cada filtro */
.info-filtro {
 color: black;
 text-align: center;
 padding: 20px 10%;
 font-size: 18px;
 line-height: 1.6;
}

/* Subtítulos dentro de servicios */
.seccion-servicio h3 {
 font-size: 2.2rem; /* Tamaño de títulos del index */
 margin-bottom: 15px;
 color: #8fc2d5;
 font-family: 'LTBrewery Heavy', sans-serif;
 text-align: center;
}

/* ========================================= */
/* --- SERVICIOS ILUSTRACION (FILTROS NIVEL 2) */
/* ========================================= */

.galeria-servicios-ilustracion {
 margin: auto;
 padding: 0px 20px;
 margin-bottom: 20px;
}

.filtros-servicios-ilustracion {
 text-align: center;
 padding-bottom: 40px;
}

/* Filtros secundarios con fuente corporativa */
.filtro-servicio-ilustracion {
 background: none;
 border: 2px solid #8fc2d5;
 padding: 10px 20px;
 margin: 0 5px;
 font-size: 16px;
 cursor: pointer;
 border-radius: 25px;
 color: #8fc2d5;
 transition: all 0.3s ease;
 font-family: 'LTBrewery Heavy', sans-serif;
}

.filtro-servicio-ilustracion:hover,
.filtro-servicio-ilustracion.activo {
 background: #8fc2d5;
 color: #fff;
}

.contenedor-filtro-servicio-ilustracion {
 display: none;
 flex-direction: column;
 gap: 40px;
}

.contenedor-filtro-servicio-ilustracion.active {
 display: flex;
}

/* Texto informativo filtros ilustración */
.info-filtro-ilustracion {
 font-size: 18px;
 line-height: 1.6;
 margin-bottom: 20px;
 text-align: center;
}

/* ====================== */
/* GRID GALERÍAS Y EVENTOS */
/* ====================== */

.grid-galeria-ilustracion {
 display: grid;
 grid-template-columns: repeat(3, 1fr);
 gap: 20px;
}

.grid-eventos {
 display: grid; 
 grid-template-columns: repeat(3, 1fr);
 gap: 20px;
 margin-bottom: 20px;
}

.item-ilustracion, .trabajo {
 min-height: 250px; 
 display: flex; 
 align-items: center; 
 justify-content: center; 
 overflow: hidden;
 border-radius: 12px;
 transition: transform 0.3s ease;
 cursor: pointer;
}

.item-ilustracion img, .trabajo img {
 width: 100%;
 display: block; 
 height: auto;
 object-fit: cover;
 transition: transform 0.3s ease;
}

/* Títulos de eventos específicos */
.titulo-evento {
 font-size: 1.8rem;
 color: #8fc2d5; 
 margin-bottom: 20px;
 text-align: center;
 font-family: 'LTBrewery Heavy', sans-serif;
}

/* ====================== */
/* MODAL DE SERVICIOS */
/* ====================== */
/* ESTILO PARA EL TÍTULO DEL MODAL */
#modal-caption-servicio {
    color: #ffffff;           /* Blanco puro */
    text-align: center;       /* Centrado */
    margin-top: 15px;         /* Espacio respecto a la imagen */
    font-size: 1.1rem;        /* Tamaño de letra equilibrado */
    max-width: 80%;           /* Para que no toque los bordes del modal */
    font-family: sans-serif;  /* O la fuente que uses en tu web */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8); /* Sombra para legibilidad */
    line-height: 1.4;         /* Espaciado entre líneas para títulos largos */
}

/* Ajuste opcional para el contenedor del contenido dentro del modal */
.modal-content-container {
    display: flex;
    flex-direction: column;   /* Alinea imagen y luego texto abajo */
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 900px;         /* Limita el ancho máximo */
}

/* Asegura que la imagen no se deforme */
#modal-img-servicio {
    max-width: 100%;
    max-height: 80vh;         /* Evita que la imagen sea más alta que la pantalla */
    object-fit: contain;
}

.modal-servicio {
 display: none;
 position: fixed;
 z-index: 9999; /* Elevado para estar sobre el menu */
 left: 0; top: 0;
 width: 100%; height: 100%;
 background-color: rgba(0,0,0,0.9);
 justify-content: center;
 align-items: center;
}

.modal-img-servicio {
 max-width: 90%;
 max-height: 90%;
 border-radius: 10px;
 object-fit: contain;
}

.cerrar-servicio {
 position: absolute;
 top: 20px; right: 30px;
 font-size: 50px;
 font-weight: bold;
 color: white;
 cursor: pointer;
 z-index: 10000;
}

/* ====================== */
/* RESPONSIVE */
/* ====================== */

@media screen and (max-width: 992px) {
 .grid-galeria-ilustracion, .grid-eventos {
 grid-template-columns: repeat(2, 1fr);
 }
}

@media screen and (max-width: 600px) {
 .contenedor-texto-servicios { padding: 50px 20px; }
 .grid-galeria-ilustracion, .grid-eventos {
 grid-template-columns: 1fr;
 }
 .titulo-pagina { font-size: 35px; }
}


/* ==========================================================================
   7. CLASES
   ========================================================================== */

/* ============================================================
   7. SECCIÓN CLASES - CORRECCIÓN TARIFAS Y ANCHO FORMULARIO
   ============================================================ */

.contenedor-clases {
    margin: 0 auto;
    padding: 40px 10% 0px 10%;
}

.titulo-seccion-clases {
    text-align: center;
    font-family: 'LTBrewery Heavy', sans-serif;
    font-size: 50px;
    color: #333; 
    margin-bottom: 20px;
}

.texto-inicio-clases,
.texto-introductorio-clases,
.grid-cursos .card,
.tarifa p,
.tarifa h4,
.reseña p,
.nombre-alumno-carrusel {
    font-size: 18px;
    line-height: 1.6;
}

.texto-inicio-clases {
    max-width: 1500px;
    margin: 0 auto 30px;
    text-align: center;
    color: #555;
}

.bloque {
    margin-bottom: 80px;
}

.subtitulo {
    font-family: 'LTBrewery Heavy', sans-serif;
    font-size: 40px;
    color: #8fc2d5;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
}
@media (max-width: 768px) {
    .subtitulo { font-size: 30px; }
}

.texto-introductorio-clases {
    max-width: 1500px;
    margin: 0 auto 30px;
    text-align: justify;
    color: #333;
}

.texto-introductorio-clases em {
    font-weight: 600;
    color: #8fc2d5;
    font-style: normal;
}

.frase-destacada-clases {
    font-family: 'LTBrewery Heavy', sans-serif;
    font-size: 24px;
    color: #8fc2d5;
    font-style: italic !important;
    display: block;
    text-align: center;
    margin: 20px 0;
    margin-bottom: 0px;
}

/* 📘 GRID CURSOS */
.grid-cursos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 15px;
    max-width: 1100px; 
    margin: 20px auto 50px;
}

.grid-cursos .card {
    background-color: #f4f4f4;
    border: 2px solid #8fc2d5; 
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.grid-cursos .card:hover {
    background-color: #8fc2d5;
    color: white;
}

/* 🎠 CARRUSELES DE TRABAJOS - FIX IMÁGENES NO CORTADAS */
.contenedor-alumno-carrusel {
    margin-bottom: 40px;
    width: 100%;
}

.nombre-alumno-carrusel {
    font-family: 'LTBrewery Heavy', sans-serif;
    color: #8fc2d5;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.carrusel-alumno {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 15px;
    scrollbar-width: thin;
    scrollbar-color: #8fc2d5 #f0f0f0;
}

.carrusel-track {
    display: flex;
    gap: 15px;
    width: max-content;
}

.trabajo-carrusel {
    width: 280px;
    height: 200px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    background-color: #f0f0f0; /* Fondo para cuando la imagen no llena el hueco */
    display: flex;
    align-items: center;
    justify-content: center;
}

.trabajo-carrusel img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* CAMBIO CLAVE: Muestra la imagen entera sin cortar */
    transition: transform 0.3s ease;
}

.trabajo-carrusel:hover img { transform: scale(1.05); }

/* 🖼️ Modal Fix */
.modal-clases {
    display: none; 
    position: fixed;
    z-index: 9999; 
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;    
}

.modal-content-simple {
    max-width: 90%;
    max-height: 80%;
    text-align: center;
}

.modal-img {
    max-width: 100%;
    max-height: 80vh;
    border: 3px solid white;
    border-radius: 5px;
}

#captionClases {
    color: white;
    margin-top: 15px;
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
}

.cerrarClases {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* 💵 CAJAS GRANDES (Reseñas y Tarifas) */



.card.grande {
    max-width: 1100px;
    width: 100%;
    margin: 20px auto;
    padding: 30px;
    border: 2px solid #8fc2d5; 
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    background-color: white;
    overflow: hidden;
    box-sizing: border-box;
}



/* Reseñas: mismo aspecto en "Reseñas de Alumnos" y en "Opiniones de Centros".
   Sin acotar a .carrusel-horizontal, para que los dos bloques se vean igual. */
.contenedor-flexible-resenas {
    display: flex;
    overflow-x: auto;
    gap: 30px;
    padding: 10px;
    scrollbar-width: thin;
    scrollbar-color: #8fc2d5 #f0f0f0;
}

.columna-resenas {
    flex: 0 0 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.reseña {
    background: #f9f9f9;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.reseña-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.reseña-header .nombre {
    font-weight: 700;
    color: #333;
}

.reseña-header .fecha {
    color: #888;
    font-size: 14px;
}

.estrellas {
    color: #ffcc00;
    margin-left: auto;
}

/* Etiqueta del tipo de reseña (Centro / Empresa) */
.reseña .tag-tipo {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    background-color: #8fc2d5;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

/* Cargo / Centro en reseñas de centros y empresas */
.reseña .detalles-reseña {
    font-size: 14px;
    color: #777;
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eaeaea;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.reseña .detalles-reseña strong {
    color: #555;
    font-weight: 600;
}

/* 💰 TARIFAS */
.tarifas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.tarifa {
    text-align: center;
    padding: 25px 15px;
    border: 1px solid #eee;
    border-radius: 10px;
    background-color: #fcfcfc;
}

.tarifa h4 { 
    color: #8fc2d5; 
    margin-bottom: 10px;
    font-family: 'LTBrewery Heavy', sans-serif;
    font-size: 20px;
}

/* 📝 FORMULARIO */
.formulario-reseñas {
    max-width: 1100px; 
    width: 100%;
    margin: 120px auto 50px auto; 
    padding: 40px;
    background-color: #f9f9f9;
    border-radius: 15px;
    border: 2px solid #8fc2d5; 
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}

.campo { margin-bottom: 20px; }
.campo label { display: block; font-weight: 600; margin-bottom: 8px; color: #555; }
.campo input, .campo select, .campo textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    box-sizing: border-box; 
}

.formulario-reseñas button[type="submit"] {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #8fc2d5;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'LTBrewery Heavy', sans-serif;
    font-size: 18px;
    transition: 0.3s;
}

.formulario-reseñas button[type="submit"]:hover {
    background-color: #7ab3c4;
}

/* 📱 Responsive */
@media (max-width: 600px) {
    .grid-cursos { grid-template-columns: 1fr; }
    .columna-resenas { flex: 0 0 95%; }
    .tarifas-grid { grid-template-columns: 1fr; }
}

.img-presenciales, 
.img-particulares {
    display: block;       /* Convierte la imagen en bloque para poder usar márgenes */
    margin: 0px auto;    /* 20px de espacio arriba/abajo y auto a los lados para centrar */
    padding-bottom: 40px;
    max-width: 100%;      /* Evita que la imagen se salga del contenedor en móviles */
    height: auto;         /* Mantiene la proporción */
}

.video-presentacion {
    display: block;
    width: 100%;          /* Ocupa el ancho del contenedor */
    max-width: 800px;     /* Pero no más de 800px */
    margin: 20px auto;    /* Centrado horizontal */
    border-radius: 10px;  /* Para que combine con tus imágenes */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin-top: 40px;
}

/* ====================== */
/* 🎊 ESTILOS ESPECÍFICOS DE EVENTOS */
/* ====================== */

.bloque-eventos {
    margin-top: 40px;
    margin-bottom: 20px;
    padding: 0 10px;
    max-width: 1200px; /* Asegura que no se desborde */
    margin-left: auto;
    margin-right: auto;
}

.titulo-evento {
    font-size: 1.5rem;
    color: #8fc2d5; 
    margin-bottom: 20px;
    display: inline-block;
    padding-bottom: 5px;
}

/* Configuramos el GRID para eventos (3 columnas en escritorio) */
.grid-eventos {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 15px;
    max-width: 100%;
}

/* RESPONSIVE para que se vea bien en móvil/tableta */
@media (max-width: 900px) {
    .grid-eventos {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .grid-eventos {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   ESTILO PARA RESEÑAS DE CENTROS
   ========================================= */
.reseña-centro {
    background: #fdfdfd;
    border-left: 5px solid #8fc2d5; /* Borde más oscuro para Centros */
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 0 12px 12px 0;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.03);
}

.header-centro {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.usuario-centro {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nombre-centro {
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.tag-centro {
    font-size: 12px;
    text-transform: uppercase;
    background-color: #8fc2d5; /* Etiqueta oscura */
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.detalles-centro {
    font-size: 14px;
    color: #777;
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.texto-centro p {
    font-size: 16px;
    line-height: 1.7;
    color: #444;
    text-align: justify;
    margin-bottom: 10px;
}

/* =========================================
   ESTILO PARA RESEÑAS DE ALUMNOS
   ========================================= */
.reseña-alumno {
    background: #fdfdfd;
    border-left: 5px solid #8fc2d5; /* Tu azul original para Alumnos */
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 0 12px 12px 0;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.03);
}

.header-alumno {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.usuario-alumno {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nombre-alumno {
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.tag-alumno {
    font-size: 12px;
    text-transform: uppercase;
    background-color: #8fc2d5; /* Tu azul original */
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.detalles-alumno {
    font-size: 14px;
    color: #777;
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.texto-alumno p {
    font-size: 16px;
    line-height: 1.7;
    color: #444;
    text-align: justify;
    margin-bottom: 10px;
}

.estrellas-alumno, .estrellas-centro {
    font-size: 16px;
}

/* BOTON ARRIBA */

/* Botón Volver Arriba */
#btnIrArriba {
    display: none; /* Oculto por defecto */
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: #8fc2d5;
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%; /* Botón circular */
    font-size: 20px;
    width: 55px;
    height: 55px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: background-color 0.3s, transform 0.3s;
}

#btnIrArriba:hover {
    background-color: #7ab3c4; /* Un tono más oscuro al pasar el ratón */
    transform: scale(1.1);
}

/* Efecto suave de scroll (opcional, si no lo tienes ya) */
html {
    scroll-behavior: smooth;
}

/* ==========================================================================
   8. ENCARGOS Y OTROS
   ========================================================================== */

.contenedor-encargos {
  width: 100%;
  height: auto;
  padding: 50px 100px;
}

.contenedor-encargos-azul {
  width: 100%;
  height: auto;
  padding: 50px 100px;
  background-color: #1f74be;
  color: white;
}

.titulo_encargos { text-align: center; }

.texto-inicio-encargos {
  color: black;
  line-height: 25px;
  text-align: justify;
}

.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px;
}

.btn-container-ilustracion {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.btn-ilustracion {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem 3rem;
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #007aff, #1f74be);
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 8px 30px rgba(14, 118, 255, 0.6);
  position: relative;
  overflow: hidden;
  width: 45%;
  height: 385px;
  text-align: center;
}

.btn-ilustracion:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 30px rgba(14, 118, 255, 0.6);
}

.btn-ilustracion:hover::after { transform: scale(1); opacity: 1; }

/* ==========================================================================
   9. CONTACTO
   ========================================================================== */

.contenedor-contacto {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0px auto;
    gap: 0;
    flex-wrap: nowrap;
    margin-bottom: 100px;
}

.contacto-izquierda {
    flex: 0 0 50%;
    display: flex;
    justify-content: center;
    align-items: center; /* Centramos el logo redondo */
}

.contacto-izquierda img {
    width: 80%; /* Ajustamos el logo redondo para que no pegue a los bordes */
    height: auto;
    object-fit: contain;
}

.contacto-derecha {
    flex: 0 0 50%;
    display: flex;
    justify-content: center;
    align-items: stretch;
}

.formulario-contacto {
    width: 100%;
    font-family: 'Montserrat', sans-serif;
    background: #fff;
    padding: 50px;
    border-radius: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* CAMBIO: Título en azul corporativo y fuente títulos (Igual al index) */
.formulario-contacto h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.8rem; /* Un poco más pequeño que el h1 pero con fuente pesada */
    color: #8fc2d5;
    font-family: 'LTBrewery Heavy', sans-serif;
    background: none; /* Quitamos el degradado anterior para uniformidad */
    -webkit-text-fill-color: initial;
}

.input-group {
    position: relative;
    margin-bottom: 30px;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #8fc2d5;
    font-size: 1.2rem;
    transition: 0.3s ease all;
}

/* CAMBIO: Textos de inputs unificados a 18px */
.input-group input,
.input-group textarea {
    width: 100%;
    padding: 15px 20px 15px 45px;
    border: 2px solid #ccc;
    border-radius: 12px;
    outline: none;
    font-size: 18px; 
    font-family: 'Montserrat', sans-serif;
    background: #f9f9f9;
    transition: all 0.3s ease;
}

.input-group input:focus,
.input-group textarea:focus {
    border: 2px solid #8fc2d5;
    box-shadow: 0 0 15px rgba(31,116,190,0.3);
}

.input-group label {
    position: absolute;
    left: 45px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 18px; 
    pointer-events: none;
    transition: 0.3s ease all;
}

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label,
.input-group textarea:focus + label,
.input-group textarea:not(:placeholder-shown) + label {
    top: -10px;
    font-size: 14px; /* Tamaño del label cuando flota */
    color: #8fc2d5;
    background: #fff;
    padding: 0 5px;
}

button[type="submit"] {
    width: 100%;
    padding: 18px;
    font-size: 1.1rem;
    color: #fff;
    font-weight: 700;
    border: none;
    border-radius: 15px;
    background: linear-gradient(135deg, #8fc2d5, #61b3d1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

button[type="submit"]:hover {
    transform: translateY(-3px) scale(1.02);
}

#respuesta {
    margin-top: 20px;
    text-align: center;
    font-weight: 600;
    color: #8fc2d5;
    font-size: 18px;
}

/* ==========================================================================
   10. MEDIA QUERIES (Original)
   ========================================================================== */

@media screen and (max-width: 991px) {
  .carrusel-item { width: 33.33%; }
}

@media screen and (max-width: 992px) {
  .grid-galeria, .grid-galeria-ilustracion { grid-template-columns: repeat(2, 1fr); }
  .carrusel-servicio, .carrusel-servicio-ilustracion { gap: 10px; }
  .item-carrusel, .item-carrusel-ilustracion { min-width: 200px; }
  .contenedor-contacto { flex-direction: column; }
  .contacto-izquierda, .contacto-derecha { flex: 0 0 100%; }
  .contacto-izquierda img { max-width: 100%; height: auto; }
  .formulario-contacto { padding: 30px 20px; border-radius: 0; }
}

@media screen and (max-width: 1200px) {
  .texto-aboutme { margin-top: 15px; font-size: 13px; }
}

@media screen and (max-width: 900px) {
  .imagen-texto-aboutme { padding-top: 20px; flex-direction: column; text-align: center; }
  .imagen-aboutme img { max-width: 80%; }
  .texto-aboutme { margin-top: 15px; font-size: 15px; }
  .grid-trabajos { grid-template-columns: repeat(2, 1fr); }
}

@media screen and (max-width: 768px) {
  .links_barra_navegacion {
    position: absolute;
    top: 108px;
    right: 0;
    width: 100%;
    background-color: #333;
    flex-direction: column;
    display: none;
    text-align: center;
    padding: 20px 0;
    z-index: 1000;
  }
  .links_barra_navegacion li { margin: 15px 0; }
  .hamburger { display: flex; }
  .links_barra_navegacion.active { display: flex; }

  .seccion-home, .seccion-medalla, .contenedor-servicios .servicio {
    flex-direction: column;
    text-align: center;
  }
  .seccion-home img, .seccion-medalla img { width: 100%; margin-bottom: 15px; }
  .contenido-home, .contenido-medalla { width: 100%; padding-left: 0; }
  
  .filtro-aboutme { width: 140px; height: 130px; font-size: 14px; }
  .filtro-aboutme img { width: 50px; height: 50px; }
  .info-filtro-aboutme { padding: 15px 25px; font-size: 0.95rem; }

  .fotofondo-servicios, .texto-servicios { width: 100%; max-width: none; }
  .texto-servicios::before {
    left: 50%; top: -10px; transform: translateX(-50%);
    width: 70%; height: 4px; background: linear-gradient(90deg, #1f74be, #17558b);
  }
}

@media screen and (max-width: 767px) {
  .carrusel-item { width: 100%; }
  .btn { padding: 0px; width: 100%; }
}

@media screen and (max-width: 600px) {
  .footer .nombre { font-size: 16px; }
  .footer .copy { font-size: 12px; }
  .footer .redes a { font-size: 22px; }
  .grid-galeria, .grid-galeria-ilustracion, .grid-trabajos { grid-template-columns: 1fr; }
  .carrusel-servicio, .carrusel-servicio-ilustracion { gap: 8px; }
  .item-carrusel, .item-carrusel-ilustracion { min-width: 150px; }
  .tarifas-grid { flex-direction: column; }
}