/* =========================================
   1. RESET Y ESTILOS BASE
   ========================================= */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Montserrat', sans-serif; 
}

body { 
    background-color: white; 
    overflow-x: hidden; 
}

/* =========================================
   2. HEADER
   ========================================= */
header {
    background: white;
    width: 100%;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4%;
    position: fixed;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #eee;
}

.logo img { height: 65px; }

nav ul { display: flex; list-style: none; gap: 35px; }
nav a { text-decoration: none; color: #555; font-size: 15px; font-weight: 400; }

.search-actions { display: flex; align-items: center; gap: 15px; }

.search-bar {
    background: #f1f1f1;
    border-radius: 25px;
    padding: 8px 18px;
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
}

.search-bar input { 
    border: none; 
    background: transparent; 
    outline: none; 
    width: 180px; 
    font-size: 13px; 
}

.user-circle {
    background-color: #00acc1;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

/* =========================================
   3. CONTENIDO DEL CATÁLOGO
   ========================================= */
.contenedor-principal {
    padding-top: 150px; 
    text-align: center;
}

.titulo-pagina {
    font-size: clamp(40px, 8vw, 80px);
    font-weight: 900;
    margin-bottom: 50px;
    text-transform: uppercase;
    text-shadow: 
        -1.5px -1.5px 0 #000,   
         1.5px -1.5px 0 #000,
        -1.5px  1.5px 0 #000,
         1.5px  1.5px 0 #000;
}

.titulo-pagina.azul { color: #7FB3D5; }
.titulo-pagina.rosa { color: #F1948A; }

.grid-productos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 0 8% 50px;
}

/* --- ESTILOS DE LAS TARJETAS CON MARCOS --- */
.tarjeta-producto { 
    background: white; 
    text-align: left; 
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.tarjeta-producto:hover {
    transform: translateY(-5px);
}

/* Marco Azul para Niños */
.tarjeta-producto.borde-ninos {
    border: 2px solid #85C1E9 !important;
    box-shadow: 0 4px 12px rgba(133, 193, 233, 0.3);
}

/* Marco Rosa para Niñas */
.tarjeta-producto.borde-ninas {
    border: 2px solid #f8bbd0 !important;
    box-shadow: 0 4px 12px rgba(248, 187, 208, 0.3);
}

/* CONFIGURACIÓN DEL CONTENEDOR DE IMAGEN (CARRUSEL) */
.imagen-contenedor {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1; /* Mantiene el cuadro siempre cuadrado */
    overflow: hidden;
    background: #fdfdfd; 
    border-radius: 12px 12px 0 0;
}

.carousel-inner {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cambia a 'contain' si no quieres que se corte NADA de la foto */
}

/* --- BOTONES DE FLECHAS --- */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.85); 
    border: none;
    width: 32px;
    height: 32px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: 0.3s;
}

.carousel-btn:hover {
    background: white;
    scale: 1.1;
}

.prev { left: 8px; }
.next { right: 8px; }

.info-producto { padding: 20px; }
.nombre { font-size: 15px; color: #333; margin-bottom: 8px; text-transform: uppercase; font-weight: 600; }
.precio { color: #555; font-weight: bold; font-size: 18px; }

/* =========================================
   4. FOOTER
   ========================================= */
footer {
    background-color: #b3e5f2;
    padding: 40px 8%;
    margin-top: 100px;
    text-align: center;
}
