/* =========================================
   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('/libreriaelplacerdeloslibros/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)
   ========================================= */
/* CONTENEDOR */
.nav-menu-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 20px 0;
    background-color: transparent; /* Cambiado de #fff a transparente */
}

/* EL BOTÓN (MARCO EXTERIOR NEGRO + FONDO ROSA) */
.acuarela-btn {
    display: inline-flex;
    padding: 4px;                /* Grosor del marco rosa */
    background-color: #e15eb1;   /* Color Rosa principal */
    border: 1px solid #000;      /* Raya negra fina */
    border-radius: 20px;         /* Forma redondeada */
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s;
}

/* EL INTERIOR (CENTRO BLANCO) */
.acuarela-inner {
    background-color: #fff;      /* Fondo blanco central */
    padding: 8px 18px;
    border-radius: 16px;         /* Un poco menos que el padre */
    color: #444;
    font-family: 'Just Another Hand', sans-serif;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

/* SEPARADORES */
.dot-separator {
    width: 10px;
    height: 10px;
    background-color: #e15eb1;
    border-radius: 50%;
    flex-shrink: 0;
}

/* FLECHITA ROSA */
.select-arrow {
    background-color: #e15eb1;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    margin-left: 5px;
}

/* DROPDOWN (ESTILO ACUARELA) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #e15eb1;   /* Marco del desplegable */
    border: 1px solid #000;
    border-radius: 15px;
    padding: 5px;
    list-style: none;
    z-index: 1000;
}

.dropdown-content li {
    background-color: #fff;      /* Fondo blanco de cada opción */
    margin: 2px;
    border-radius: 10px;
}

.dropdown-content a {
    display: block;
    padding: 10px 15px;
    color: #e15eb1;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
}

/* MOSTRAR DESPLEGABLES */
.custom-dropdown:hover .dropdown-content {
    display: block;
}

.has-submenu:hover > .sub-menu {
    display: block;
    position: absolute;
    left: 100%;
    top: 0;
    background-color: #e15eb1;
    border: 1px solid #000;
    padding: 5px;
    border-radius: 15px;
}
/* =========================================
   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 CARRITO (ESTILO ACUARELA)
   ========================================= */

.pagina-carrito {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
    font-family: 'Coming Soon', cursive;
}

.titulo-carrito {
    font-family: 'Just Another Hand', cursive;
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 30px;
}

.contenedor-tabla-acuarela {
    background-color: #fff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.tabla-carrito {
    width: 100%;
    border-collapse: collapse;
}

.tabla-carrito th {
    color: #e15eb1;
    border-bottom: 2px solid #fceef7;
    padding: 15px;
    text-align: left;
}

.producto-celda {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
}

.producto-celda img {
    width: 60px;
    border-radius: 8px;
}

/* Selector Cantidad */
.selector-cantidad button {
    background: #e15eb1;
    color: white;
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
}

.selector-cantidad input {
    width: 30px;
    text-align: center;
    border: none;
    font-family: 'Coming Soon', cursive;
}

/* Etiquetas dinámicas */
.etiqueta-estado {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
}
.regalo { background: #fceef7; color: #e15eb1; }
.segunda-mano { background: #e3dccb; color: #5d5442; }

/* Pie del carrito con pincelada */
.resumen-carrito-acuarela {
    background: url('../images/pincelada-rosa.png') no-repeat center;
    background-size: contain;
    padding: 60px;
    text-align: center;
    margin-top: 30px;
}

.total-texto { font-size: 2.5rem; }

.btn-ir-pago {
    background: #e15eb1;
    color: white;
    padding: 15px 40px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 1.3rem;
    display: inline-block;
}

/* Diseño vacío */
.carrito-vacio-seccion {
    text-align: center;
    padding: 100px 20px;
    background: url('../images/pincelada-rosa.png') no-repeat center;
    background-size: contain;
}

.icono-vacio-acuarela {
    font-size: 4rem;
    color: #e15eb1;
    opacity: 0.3;
    margin-bottom: 20px;
}
.recomendados-carrito {
    margin-top: 50px;
    padding: 20px;
    border-top: 2px dashed #fceef7;
}

.subtitulo-acuarela {
    font-family: 'Just Another Hand', cursive;
    font-size: 2.5rem;
    text-align: center;
    color: #e15eb1;
    margin-bottom: 30px;
}

.grid-recomendados {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.card-recomendado {
    background: white;
    padding: 15px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.card-recomendado:hover {
    transform: translateY(-5px);
}

.card-recomendado img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
}

.card-recomendado h3 {
    font-size: 1.1rem;
    height: 40px;
    overflow: hidden;
}

.precio-sugerido {
    color: #e15eb1;
    font-weight: bold;
    font-size: 1.2rem;
    margin: 10px 0;
}

.btn-sugerencia {
    background: #fceef7;
    color: #e15eb1;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Coming Soon', cursive;
    font-weight: bold;
}

.btn-sugerencia:hover {
    background: #e15eb1;
    color: white;
}

.etiqueta-sugerencia {
    font-size: 0.7rem;
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    margin-bottom: 5px;
}