/* =========================================
   1. VARIABLES DE COLOR Y CONFIGURACIÓN
   ========================================= */
:root {
    --rosa-principal: #e15eb1; /* El rosa de tus burbujas y puntos */
    --rosa-fondo: #fdf0f6;    /* Un rosa mucho más suave para que el texto se lea bien */
    --negro-borde: #333333;
    --blanco: #ffffff;
}

* {
    box-sizing: border-box;
}

/* =========================================
   2. ESTILOS DE CUERPO (MODIFICADO)
   ========================================= */
body {
    margin: 0;
    padding: 0;
    font-family: 'Coming Soon', cursive;
    background-color: var(--rosa-fondo);
    /* Imagen de fondo mágica que pediste para toda la web */
    background-image: url('images/fondo-magico-texturizado.jpg'); 
    background-attachment: fixed; 
    background-size: cover;
    background-position: center;
    overflow-x: hidden;
    color: var(--negro-borde);
}

/* =========================================
   3. HEADER Y REDES SOCIALES
   ========================================= */
.social-container {
    display: flex;
    justify-content: flex-end;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-right: 50px;
    padding-left: 50px;
}

.social-icons {
    display: flex;
    align-items: center;
}

.social-icons img {
    width: 38px;
    height: 38px;
    margin-left: 12px;
}

/* =========================================
   4. BANNER GASTOS DE ENVÍO (TEXTURA ACUARELA)
   ========================================= */
.promo-banner {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.acuarela-btn-banner {
    display: inline-flex;
    padding: 5px; /* Marco un poco más grueso para que luzca la textura */
    /* Recreación de la mancha de acuarela con múltiples capas de color */
    background: conic-gradient(
        from 180deg at 50% 50%,
        #e15eb1 0deg,
        #f5a3d4 90deg,
        #c04095 180deg,
        #e15eb1 270deg,
        #f5a3d4 360deg
    );
    border: 1px solid #000;
    border-radius: 35px;
    /* Sombra difuminada para que parezca que la pintura se sale un poco */
    box-shadow: inset 0 0 8px rgba(255,255,255,0.5), 0px 4px 10px rgba(225, 94, 177, 0.4);
}

.acuarela-inner-banner {
    background-color: #fff;
    padding: 12px 40px;
    border-radius: 30px;
    color: #444;
    font-family: 'Coming Soon', cursive;
    font-weight: bold;
}

/* =========================================
   5. LOGO, BUSCADOR Y ACCIONES (TEXTURA ACUARELA)
   ========================================= */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    height: 140px;
}

.logo-area { width: 250px; }
.main-logo { height: 110px; width: auto; }

.search-section {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

/* BUSCADOR: RECREANDO EL FONDO DEL ICONO */
.search-bar-artistic {
    display: flex;
    padding: 5px; 
    background: conic-gradient(
        from 0deg at 50% 50%,
        #c04095 0deg,
        #e15eb1 120deg,
        #f5a3d4 240deg,
        #c04095 360deg
    );
    border: 1px solid #000;
    border-radius: 35px;
    width: 500px;
    height: 55px;
    overflow: hidden;
    align-items: center;
}

.search-bar-artistic input {
    background-color: #fff;
    border: none;
    border-radius: 30px 0 0 30px;
    height: 100%;
    flex-grow: 1;
    padding: 0 20px;
    outline: none;
    font-family: 'Coming Soon', cursive;
}

.search-btn {
    background: transparent; 
    border: none;
    height: 100%;
    width: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: white; /* La lupa blanca resalta sobre el "pincelazo" rosa */
}

.action-icons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    width: 250px;
}

.action-img {
    width: 55px;
    height: 55px;
}

/* =========================================
   6. NAVEGACIÓN PRINCIPAL - ESTILO BOTÓN
   ========================================= */
.nav-menu-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 20px 0;
    position: relative;
    z-index: 9999;
}

.nav-item { 
    position: relative; 
    padding-bottom: 15px; /* Espacio para que el ratón baje sin salirse */
    margin-bottom: -15px;
}

.acuarela-btn {
    display: inline-flex;
    padding: 4px;
    background-color: #e15eb1;
    border: 1px solid #000;
    border-radius: 20px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s;
}

.acuarela-inner {
    background-color: #fff;
    padding: 8px 18px;
    border-radius: 16px;
    color: #444;
    font-family: 'Just Another Hand', sans-serif;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- DESPLEGABLES (DROPDOWNS) --- */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%; /* Aparece justo donde termina el padding del nav-item */
    left: 50%;
    transform: translateX(-50%);
    background-color: #e15eb1; /* Marco Rosa */
    border: 2px solid #000;
    border-radius: 15px;
    padding: 5px;
    list-style: none;
    min-width: 220px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* PUENTE INVISIBLE: Evita que el menú desaparezca al mover el ratón hacia abajo */
.nav-item::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 20px;
    display: block;
}

/* --- SUBMENÚS (NIETOS) --- */
.has-submenu {
    position: relative;
}

.sub-menu {
    display: none;
    position: absolute;
    top: 0;
    left: 95%; /* Un poco solapado para que no haya hueco lateral */
    background-color: #e15eb1;
    border: 2px solid #000;
    border-radius: 15px;
    padding: 5px;
    min-width: 200px;
}

/* --- LOGICA DE VISIBILIDAD (HOVER) --- */
.nav-item:hover > .dropdown-content {
    display: block !important;
}

.has-submenu:hover > .sub-menu {
    display: block !important;
}

/* --- ESTILO DE LOS LINKS INTERNOS --- */
.dropdown-content li, .sub-menu li {
    background-color: #fff;
    margin: 3px;
    border-radius: 10px;
    border: 1px solid transparent;
    list-style: none;
}

.dropdown-content li:hover, .sub-menu li:hover {
    border: 1px solid #000;
}

.dropdown-content a, .sub-menu a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    color: #e15eb1;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
}

/* --- ELEMENTOS ADICIONALES --- */
.select-arrow, .sub-arrow {
    font-size: 12px;
}

.dot-separator {
    width: 4px;
    height: 4px;
    background-color: #e15eb1;
    border-radius: 50%;
}
/* =========================================
   7. CLASE PARA TÍTULOS CON MANCHA ACUARELA
   ========================================= */
.titulo-acuarela-real {
    position: relative;
    display: inline-block;
    padding: 30px 80px; /* Ajusta esto según el tamaño de tu mancha */
    font-family: 'Coming Soon', cursive;
    color: #000;
    text-align: center;
    z-index: 1;
}

.titulo-acuarela-real::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    /* Aquí es donde usaremos tu imagen subida a IONOS */
    background-image: url('images/fondo-titulo-acuarela.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    
    /* Ajusta el ancho y alto para que cubra el texto como en la foto */
    width: 120%; 
    height: 120%;
    
    z-index: -1; /* Para que la mancha quede detrás del texto */
}

/* =========================================
   8. SECCIÓN LIBRERÍA (ESTILO MÁGICO)
   ========================================= */

.seccion-libreria-destacados {
    padding: 50px 0;
    text-align: center;
    background-color: #fff;
}

.cabecera-magica {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.titulo-seccion-negro {
    font-family: 'Just Another Hand', cursive;
    font-size: 3.5rem;
    color: #e15eb1;
    font-weight: normal;
}

.adorno-libro {
    width: 40px;
    height: auto;
}

/* Contenedor del Carrusel */
.carrusel-pantalla {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
}

.carrusel-track {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: hidden;
    gap: 15px;
    padding: 20px 10px;
    width: 90%;
    scroll-behavior: smooth;
}

.tarjeta-libro-cuadro {
    flex: 0 0 calc(20% - 12px);
    min-width: 200px;
}

/* Marco Rosa Redondeado */
.borde-rosa-fino {
    background-color: #e15eb1;
    border: 1px solid #000;
    padding: 4px;
    border-radius: 35px;
}

.interior-blanco-ajustado {
    background-color: #fff;
    border-radius: 30px;
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.img-libro-carrusel {
    width: 100%;
    height: 180px;
    object-fit: contain;
}

.nombre-libro-negro {
    font-family: 'Coming Soon', cursive;
    color: #000;
    font-weight: normal;
    font-size: 1.1rem;
    margin: 0;
}

.precio-negro-fino {
    font-family: 'Just Another Hand', cursive;
    color: #000;
    font-size: 1.8rem;
    margin: 0;
}

/* Botón Añadir */
.boton-add-acuarela {
    background-color: #e15eb1;
    border: 1px solid #000;
    padding: 2px;
    border-radius: 20px;
    cursor: pointer;
}

.btn-inner-white {
    background-color: #fff;
    display: block;
    padding: 4px 18px;
    border-radius: 18px;
    color: #000;
    font-family: 'Just Another Hand', cursive;
    font-size: 1.2rem;
}

/* Flechas de Navegación */
.flecha-magica {
    background: none;
    border: none;
    font-size: 2.5rem;
    color: #e15eb1;
    cursor: pointer;
    transition: transform 0.2s;
}

.flecha-magica:hover {
    transform: scale(1.2);
}

.puntos-indicadores {
    margin-top: 30px;
}

.punto-rosa {
    display: inline-block;
    width: 14px;
    height: 14px;
    background-color: #e15eb1;
    border-radius: 50%;
    margin: 0 6px;
    opacity: 0.4;
}

.punto-rosa.activo {
    opacity: 1;
}
/* ============================================================
   9. SEPARADORES DE SECCIÓN
   ============================================================ */
.separador-seccion {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
    margin-bottom: 40px;
}

.linea-rosa {
    width: 150px;
    height: 3px;
    background-color: var(--rosa-principal);
}

.punto-rosa {
    width: 22px;
    height: 22px;
    background-color: var(--rosa-principal);
    border-radius: 50%;
    margin-left: 15px;
    margin-right: 15px;
}

/* =========================================
   10. LIBRERÍA: CARRUSEL Y SECCIONES
   ========================================= */

.flecha-viana {
    background: none;
    border: none;
    font-size: 2rem;
    color: #e15eb1;
    cursor: pointer;
    padding: 10px;
    z-index: 10;
    transition: transform 0.2s;
}

.flecha-viana:hover {
    transform: scale(1.2);
}

.carrusel-contenedor {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto 50px auto;
}

/* Estilo de Burbuja Novedades/Reservas */
.seccion-burbuja {
    margin-left: 50px;
    margin-bottom: 20px;
}

.burbuja-acuarela {
    display: inline-block;
    background: linear-gradient(to bottom, #f78cd4, #e15eb1);
    border: 1px solid #000;
    padding: 6px 25px;
    border-radius: 20px;
    font-family: 'Just Another Hand', cursive;
    font-size: 2rem;
    color: #000;
}

/* Tarjetas del Catálogo */
.tarjeta-viana {
    flex: 0 0 250px;
}

.marco-acuarela-rosa {
    background-color: #e15eb1;
    border: 1px solid #000;
    padding: 4px;
    border-radius: 25px;
}

.interior-blanco {
    background-color: #fff;
    border-radius: 22px;
    padding: 15px;
    text-align: center;
}

.portada-real {
    width: 100%;
    height: 200px;
    object-fit: contain;
}

.precio-carrito-fila {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.btn-carrito-acuarela {
    background: #e15eb1;
    color: white;
    padding: 5px;
    border-radius: 50%;
    cursor: pointer;
}

/* Líneas Divisoras */
.separador-seccion {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
}

.linea-rosa {
    height: 2px;
    background: #e15eb1;
    width: 100px;
}
/* ============================================================
   11. FOOTER SEGÚN MODELO APROBADO
   ============================================================ */
.footer-estilo-final {
    background-color: var(--blanco-puro);
    border-top: 4px dashed var(--rosa-principal);
    padding-top: 80px;
    padding-bottom: 40px;
    padding-left: 60px;
    padding-right: 60px;
    margin-top: 100px;
    width: 100%;
}

.footer-principal-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.5fr;
    gap: 60px;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
}

.columna-footer-marca {
    text-align: left;
}

.logo-footer-grande {
    width: 120px;
    height: auto;
    margin-bottom: 20px;
}

.nombre-marca-footer {
    font-family: 'Just Another Hand', cursive;
    font-size: 3.2rem;
    color: var(--rosa-principal);
    margin-bottom: 10px;
}

.tagline-footer {
    font-size: 1.2rem;
    color: #444;
}

.titulo-columna-footer {
    font-family: 'Just Another Hand', cursive;
    font-size: 3.2rem;
    color: var(--rosa-principal);
    margin-bottom: 30px;
}

.lista-footer-iconos {
    list-style: none;
}

.lista-footer-iconos li {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.4rem;
    margin-bottom: 20px;
    font-weight: bold;
    color: #000;
}

.punto-rosa-footer {
    width: 22px;
    height: 22px;
    background-color: var(--rosa-principal);
    border-radius: 50%;
    flex-shrink: 0;
}

/* Métodos de Pago en Footer */
.contenedor-iconos-pago {
    margin-top: 20px;
}

.fila-pagos-acuarela {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.circulo-pago-item {
    width: 60px;
    height: 60px;
    border: 3px solid var(--rosa-principal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--rosa-claro);
    padding: 10px;
}

.circulo-pago-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.punto-rosa-pago {
    width: 14px;
    height: 14px;
    background-color: var(--rosa-principal);
    border-radius: 50%;
}

/* Barra Legal Inferior */
.barra-footer-legal {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    margin-top: 80px;
    border-top: 1px solid #eee;
    padding-top: 40px;
}

.enlace-legal-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.enlace-legal-item a {
    text-decoration: none;
    color: #000;
    font-size: 1.15rem;
    font-weight: bold;
}

.enlace-legal-item a:hover {
    color: var(--rosa-principal);
}

/* Clases Auxiliares de Margen */
.mt-footer-seccion {
    margin-top: 40px;
}

.mt-10px {
    margin-top: 15px;
}

/* ============================================================
   12. RESPONSIVE BÁSICO (COMODIDAD)
   ============================================================ */
@media (max-width: 1024px) {
    .main-header { padding: 20px; }
    .search-bar-artistic { width: 350px; }
    .servicios-banner-seccion { gap: 30px; }
    .footer-principal-grid { grid-template-columns: 1fr; text-align: center; }
    .columna-footer-marca, .columna-footer-enlaces, .columna-footer-servicios {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}