/* =========================================
   estilos de Mis Pequeños Bodoques
   un solo archivo para todas las paginas
   ========================================= */

/* fuentes guardadas en la carpeta fonts (funcionan sin internet) */
@font-face {
    font-family: 'Nunito';
    src: url('../fonts/nunito.woff2') format('woff2');
    font-weight: 400 800;
}

@font-face {
    font-family: 'Baloo 2';
    src: url('../fonts/baloo2.woff2') format('woff2');
    font-weight: 600 800;
}

/* quitamos los margenes que trae el navegador */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', Arial, sans-serif;
    background-color: #FFFDF9;
    color: #4A4E69;
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Baloo 2', 'Nunito', sans-serif;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* colores de fondo que usamos en muchas partes */
.rosa { background-color: #FFD6E0; }
.azul { background-color: #D0E8FF; }
.amarillo { background-color: #FFF4BD; }
.verde { background-color: #D5F5E3; }
.lila { background-color: #E8DAEF; }

/* caja que centra el contenido */
.contenedor {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* si una seccion va justo despues de otra le quitamos el espacio de arriba */
.contenedor + .contenedor {
    padding-top: 0;
}

.titulo-seccion {
    text-align: center;
    margin-bottom: 40px;
}

.titulo-seccion h2 {
    font-size: 38px;
}

.titulo-seccion p {
    color: #6D728E;
    font-size: 18px;
}

/* circulo donde va un icono */
.circulo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.circulo img {
    width: 28px;
    height: 28px;
}

.icono-chico {
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
}


/* ---------- menu de arriba ---------- */
header {
    background-color: white;
    border-bottom: 3px solid #FFD6E0;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(74, 78, 105, 0.08);
}

.barra {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Baloo 2', sans-serif;
    font-size: 22px;
    font-weight: 800;
}

.logo-circulo {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFD6E0, #FFF4BD, #D0E8FF);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.logo-circulo img {
    width: 24px;
}

.logo:hover .logo-circulo {
    transform: rotate(20deg) scale(1.1);
}

nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

nav a {
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 12px;
    transition: background-color 0.3s, color 0.3s;
}

nav a:hover {
    background-color: #FFD6E0;
}

/* la pagina donde estamos se marca con la clase activo */
nav a.activo {
    background-color: #F497B0;
    color: white;
}

#boton-hamburguesa {
    display: none;
    background-color: #FFD6E0;
    border: none;
    border-radius: 12px;
    width: 46px;
    height: 46px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

#boton-hamburguesa img {
    width: 26px;
}


/* ---------- botones ---------- */
.boton {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    border-radius: 15px;
    padding: 13px 24px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 800;
    color: #4A4E69;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.boton img {
    width: 20px;
}

.boton:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(74, 78, 105, 0.18);
}

.boton-rosa { background-color: #F497B0; }
.boton-verde { background-color: #82E0AA; }
.boton-azul { background-color: #7FB3D5; }

.boton-blanco {
    background-color: white;
    border: 2px solid #D0E8FF;
}

.boton-volver {
    background-color: white;
    border: 2px solid #4A4E69;
    padding: 10px 20px;
}


/* ---------- banner de la pagina de inicio ---------- */
.banner {
    background: linear-gradient(135deg, #FFD6E0, #FFF4BD, #D0E8FF);
    padding: 70px 20px;
    position: relative;
    overflow: hidden;
}

.banner-contenido {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    position: relative;
}

.banner-texto {
    flex: 1;
    min-width: 300px;
}

.etiqueta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: white;
    border-radius: 30px;
    padding: 6px 16px;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 15px;
}

.punto {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #82E0AA;
}

.banner h1 {
    font-size: 62px;
    margin-bottom: 15px;
}

.banner-texto p {
    font-size: 20px;
    color: #6D728E;
    margin-bottom: 20px;
}

.dias {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: white;
    border: 2px solid #82E0AA;
    border-radius: 30px;
    padding: 6px 16px;
    font-weight: 700;
    margin-bottom: 25px;
}

.botones-banner {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.banner-foto {
    background-color: white;
    border: 5px solid #FFF4BD;
    border-radius: 30px;
    padding: 14px;
    width: 420px;
    max-width: 100%;
    box-shadow: 0 15px 30px rgba(74, 78, 105, 0.15);
    transform: rotate(2deg);
    transition: transform 0.4s;
}

.banner-foto:hover {
    transform: rotate(0deg);
}

.banner-foto img {
    width: 100%;
    border-radius: 20px;
}

.frase {
    margin-top: 12px;
    text-align: center;
    font-weight: 800;
    font-size: 17px;
}

/* estrellas que flotan en el banner */
.adorno {
    position: absolute;
    width: 40px;
    animation: flotar 6s ease-in-out infinite;
}

.adorno-1 { top: 30px; left: 4%; }
.adorno-2 { bottom: 40px; left: 45%; width: 28px; animation-delay: 1s; }
.adorno-3 { top: 40px; right: 5%; width: 32px; animation-delay: 2s; }

@keyframes flotar {
    0% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0); }
}


/* ---------- franja de colores con palabras ---------- */
.franja {
    background-color: #F497B0;
    color: white;
    padding: 14px 0;
    overflow: hidden;
    white-space: nowrap;
}

.franja-palabras {
    display: inline-flex;
    align-items: center;
    gap: 25px;
    font-family: 'Baloo 2', sans-serif;
    font-size: 26px;
    font-weight: 800;
    animation: deslizar 25s linear infinite;
}

.franja-palabras img {
    width: 18px;
}

@keyframes deslizar {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}


/* ---------- portada de las otras paginas ---------- */
.portada {
    padding: 50px 20px;
    border-bottom: 3px solid white;
}

.portada-contenido {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.portada h1 {
    font-size: 46px;
}

.portada p {
    font-size: 18px;
    color: #6D728E;
}

.ruta {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 5px;
}

.ruta a {
    text-decoration: underline;
}


/* ---------- descripcion / bienvenida ---------- */
.descripcion {
    background-color: white;
    border: 2px solid #E8DAEF;
    border-radius: 30px;
    padding: 45px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(74, 78, 105, 0.06);
}

.descripcion .circulo {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px auto;
}

.descripcion h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.descripcion p {
    color: #6D728E;
    font-size: 18px;
    margin-bottom: 15px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cajitas {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 30px;
}

.cajita {
    flex: 1;
    min-width: 200px;
    border-radius: 20px;
    padding: 22px;
    text-align: center;
    transition: transform 0.3s;
}

.cajita:hover {
    transform: translateY(-6px);
}

.cajita .circulo {
    background-color: white;
    margin: 0 auto 10px auto;
}

.cajita h3 {
    font-size: 20px;
}

.cajita p {
    font-size: 15px;
    color: #6D728E;
}


/* ---------- tarjetas (cursos de inicio, equipo, perfiles) ---------- */
.tarjetas {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

.tarjeta-inicio {
    flex: 1;
    min-width: 280px;
    background-color: white;
    border: 2px solid;
    border-radius: 25px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.tarjeta-inicio:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(74, 78, 105, 0.15);
}

.tarjeta-inicio > img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.tarjeta-texto {
    padding: 22px;
}

.tarjeta-texto h3 {
    font-size: 24px;
}

.tarjeta-texto p {
    color: #6D728E;
    margin-bottom: 15px;
}

/* tira de colores para llamar a otra pagina */
.llamado {
    border-radius: 30px;
    padding: 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.llamado-texto {
    display: flex;
    align-items: center;
    gap: 18px;
}

.llamado-texto .circulo {
    background-color: white;
}

.llamado h2 {
    font-size: 30px;
}

.llamado p {
    color: #6D728E;
}

.llamado-botones {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}


/* ---------- nosotros ---------- */
/* el signo > quiere decir: solo la imagen que esta directamente adentro,
   asi no afecta a los iconos de los botones */
.quienes {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.quienes > img {
    flex: 1;
    min-width: 280px;
    border-radius: 30px;
    border: 5px solid #D5F5E3;
    height: 380px;
    object-fit: cover;
}

.quienes-texto {
    flex: 1;
    min-width: 280px;
}

.quienes-texto h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.quienes-texto p {
    color: #6D728E;
    font-size: 17px;
    margin-bottom: 15px;
}

.dos-cajas {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

.caja-grande {
    flex: 1;
    min-width: 280px;
    border-radius: 25px;
    padding: 30px;
}

.caja-grande .circulo {
    background-color: white;
    margin-bottom: 15px;
}

.caja-grande h3 {
    font-size: 26px;
    margin-bottom: 8px;
}

.caja-grande p {
    color: #6D728E;
    font-size: 17px;
}


/* ---------- equipo ---------- */
.tarjeta-equipo {
    flex: 1;
    min-width: 200px;
    background-color: white;
    border: 2px solid;
    border-radius: 25px;
    padding: 28px 22px;
    text-align: center;
    transition: transform 0.3s;
}

.tarjeta-equipo:hover {
    transform: translateY(-6px);
}

.tarjeta-equipo > img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 14px auto;
    border: 5px solid #FFFDF9;
    box-shadow: 0 0 0 3px #E8DAEF;
}

.tarjeta-equipo h3 {
    font-size: 21px;
}

.cargo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 30px;
    padding: 4px 12px;
    font-size: 13px;
    font-weight: 800;
    margin: 6px 0 12px 0;
}

.cargo img {
    width: 16px;
}

.tarjeta-equipo p {
    font-size: 15px;
    color: #6D728E;
}


/* ---------- cursos ---------- */
.curso {
    flex: 1;
    min-width: 300px;
    background-color: white;
    border: 2px solid;
    border-radius: 25px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.curso-foto {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.edad {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 800;
}

.curso-texto {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.curso-titulo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.curso h3 {
    font-size: 26px;
}

.curso-texto > p {
    color: #6D728E;
    margin-bottom: 20px;
}

.precio {
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 20px;
}

.precio strong {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 22px;
}

.precio span {
    font-size: 14px;
    font-weight: 700;
    color: #6D728E;
}

.curso ul {
    list-style: none;
    margin-bottom: 25px;
    flex: 1;
}

.curso li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.curso li img {
    width: 20px;
    margin-top: 3px;
}

.curso .boton {
    justify-content: center;
    width: 100%;
}


/* ---------- horarios ---------- */
.cuadros {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

.cuadro {
    flex: 1;
    min-width: 300px;
    background-color: white;
    border: 2px solid;
    border-radius: 25px;
    padding: 28px;
}

.titulo-cuadro {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
}

.titulo-cuadro h2 {
    font-size: 26px;
}

/* etiqueta de abierto o cerrado (la cambia el javascript) */
#etiqueta-abierto {
    margin-left: auto;
    font-size: 13px;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 20px;
}

.turno {
    background-color: #FFFDF9;
    border: 2px solid;
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.turno-izq {
    display: flex;
    align-items: center;
    gap: 12px;
}

.turno-izq img {
    width: 30px;
}

.turno small {
    display: block;
    color: #6D728E;
}

.hora {
    border-radius: 12px;
    padding: 6px 14px;
    font-weight: 800;
}

.nota {
    margin-top: 18px;
    padding-top: 15px;
    border-top: 2px dashed #E8DAEF;
    color: #6D728E;
    display: flex;
    align-items: center;
    gap: 8px;
}

.foto-lateral {
    border-radius: 25px;
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
}


/* ---------- contacto ---------- */
.direccion {
    color: #6D728E;
    font-size: 17px;
    margin-bottom: 15px;
}

.botones-mapa {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

iframe {
    width: 100%;
    height: 340px;
    border: 0;
    border-radius: 18px;
}

.contacto {
    display: flex;
    align-items: center;
    gap: 14px;
    border-radius: 18px;
    padding: 14px;
    margin-bottom: 14px;
    word-break: break-word;
    transition: transform 0.2s;
}

a.contacto:hover {
    transform: translateX(6px);
}

.contacto .circulo {
    background-color: white;
    width: 48px;
    height: 48px;
}

.contacto .circulo img {
    width: 24px;
}

.contacto small {
    display: block;
    color: #6D728E;
    font-weight: 800;
}

.contacto strong {
    font-size: 17px;
}


/* ---------- galeria ---------- */
.foto {
    width: calc(33.33% - 17px);
    min-width: 260px;
    flex-grow: 1;
    background-color: white;
    border: 2px solid;
    border-radius: 25px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.foto:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(74, 78, 105, 0.15);
}

.foto-marco {
    height: 260px;
    overflow: hidden;
    position: relative;
}

.foto-marco img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.foto:hover .foto-marco img {
    transform: scale(1.08);
}

/* se escribe .foto-marco .lupa para que gane sobre .foto-marco img */
.foto-marco .lupa {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background-color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    padding: 9px;
}

.foto-texto {
    padding: 18px;
}

.foto-texto h3 {
    font-size: 20px;
}

.foto-texto p {
    font-size: 15px;
    color: #6D728E;
}


/* ---------- perfiles ---------- */
.tarjeta-perfil {
    flex: 1;
    min-width: 260px;
    background-color: white;
    border: 2px solid;
    border-radius: 25px;
    padding: 28px;
    text-align: center;
}

.tarjeta-perfil > img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto;
}

.tarjeta-perfil h2 {
    font-size: 24px;
    margin: 10px 0;
}

.tarjeta-perfil p {
    font-size: 15px;
    color: #6D728E;
    margin-bottom: 14px;
}

.datos {
    background-color: #FFFDF9;
    border-radius: 15px;
    padding: 14px;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
}

.datos div {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    overflow-wrap: anywhere;
}

.datos img {
    width: 18px;
    height: 18px;
    border-radius: 0;
    margin: 0;
}

.universidad {
    margin-top: 35px;
    background-color: white;
    border: 2px solid #E8DAEF;
    border-radius: 25px;
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    text-align: center;
    font-family: 'Baloo 2', sans-serif;
    font-size: 22px;
    font-weight: 800;
}

.universidad img {
    width: 150px;
    border-radius: 15px;
    border: 2px solid #BB8FCE;
}

.manual {
    text-align: center;
    margin-top: 35px;
}


/* ---------- ventanas emergentes ---------- */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(74, 78, 105, 0.6);
    align-items: center;
    justify-content: center;
    padding: 15px;
    z-index: 20;
}

.modal-caja {
    background-color: white;
    border: 5px solid #D5F5E3;
    border-radius: 25px;
    padding: 30px;
    max-width: 460px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    text-align: center;
    animation: aparecer 0.3s ease-out;
}

/* solo el circulo de arriba de la ventana va centrado */
.modal-caja > .circulo {
    margin: 0 auto 12px auto;
}

.modal-caja h2 {
    margin-bottom: 20px;
}

.modal-caja .contacto {
    text-align: left;
}

.boton-cerrar {
    margin-top: 10px;
    background-color: #4A4E69;
    color: white;
}

/* ventana para ver la foto grande */
.modal-foto {
    max-width: 800px;
    padding: 15px;
    border-color: #E8DAEF;
}

.modal-foto img {
    width: 100%;
    max-height: 65vh;
    object-fit: contain;
    border-radius: 15px;
}

.modal-foto h3 {
    margin-top: 12px;
    font-size: 22px;
}

@keyframes aparecer {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}


/* ---------- boton para subir ---------- */
#boton-subir {
    display: none;
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background-color: #F497B0;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(74, 78, 105, 0.25);
    align-items: center;
    justify-content: center;
    z-index: 15;
}

#boton-subir img {
    width: 24px;
}


/* ---------- pie de pagina ---------- */
footer {
    background-color: white;
    border-top: 4px solid #FFD6E0;
    margin-top: 40px;
}

.pie-contenido {
    max-width: 1100px;
    margin: 0 auto;
    padding: 35px 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.pie-columna {
    min-width: 200px;
}

.pie-columna h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.pie-columna p, .pie-columna a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6D728E;
    margin-bottom: 6px;
}

.pie-columna a:hover {
    color: #F497B0;
}

.pie-final {
    text-align: center;
    background-color: #FFD6E0;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 700;
}


/* ---------- para tablets y celulares ---------- */
@media (max-width: 1000px) {
    #boton-hamburguesa {
        display: flex;
    }

    /* el menu se esconde y se muestra con el boton */
    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        align-items: stretch;
        padding: 10px 20px 20px 20px;
        border-bottom: 3px solid #FFD6E0;
    }

    nav.abierto {
        display: flex;
    }

    nav a {
        padding: 12px;
    }

    /* el equipo queda de 2 en 2 */
    .tarjeta-equipo {
        min-width: 40%;
    }
}

@media (max-width: 600px) {
    .logo {
        font-size: 18px;
    }

    .banner {
        padding: 40px 20px;
    }

    .banner h1 {
        font-size: 40px;
    }

    .banner-foto {
        transform: none;
    }

    .portada h1 {
        font-size: 34px;
    }

    .descripcion {
        padding: 28px 18px;
    }

    .titulo-seccion h2, .descripcion h2, .quienes-texto h2 {
        font-size: 28px;
    }

    .llamado {
        padding: 25px;
    }

    .contenedor {
        padding: 40px 16px;
    }
}
