﻿/* =========================================
   MUNDO ROSA — site.css
   Solo estilos custom. Bootstrap maneja el layout.
========================================= */

/* ========== VARIABLES ========== */
:root {
    --rosa: #d88494;
    --rosa-hover: #c4707f;
    --rosa-pastel: #fce4ec;
    --rosa-suave: #f8d7e2;
    --texto: #333;
    --sombra: rgba(216, 132, 148, 0.15);
}

/* ========== RESET BÁSICO ========== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #fdf6f8;
    color: var(--texto);
}

button, a {
    touch-action: manipulation;
}

/* ========== TOP BANNER ========== */
.top-banner {
    background-color: var(--rosa-pastel);
    padding: 10px 20px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
    color: #d63384;
    border-bottom: 1px solid var(--rosa-suave);
}

/* ========== HEADER / NAVBAR ========== */
/* Bootstrap maneja el layout; aquí solo colores y logo */
.navbar {
    background-color: #fff !important;
    border-bottom: 2px solid var(--rosa-suave);
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--rosa);
    text-align: center;
    flex-grow: 1;
}

.menu-toggle {
    font-size: 1.4rem;
    background: none;
    border: none;
    color: var(--rosa);
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

/* Ocultar toggle en desktop — Bootstrap d-lg-none lo hace,
   pero lo reforzamos para seguridad */
@media (min-width: 992px) {
    .menu-toggle {
        display: none !important;
    }
}

/* ========== SIDE MENU ========== */
.side-menu {
    position: fixed;
    top: 0;
    left: -290px;
    width: 270px;
    height: 100%;
    background: #fff;
    box-shadow: 3px 0 15px rgba(0,0,0,0.08);
    transition: left 0.3s ease;
    z-index: 1050;
    padding: 70px 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow-y: auto;
}

    .side-menu.active {
        left: 0;
    }

    .side-menu a {
        display: block;
        text-decoration: none;
        color: #555;
        padding: 0.55rem 1rem;
        border-radius: 50px;
        font-size: 0.88rem;
        font-weight: 500;
        background: #f5f5f5;
        transition: background 0.2s, color 0.2s;
    }

        .side-menu a:hover {
            background: var(--rosa);
            color: #fff;
        }

/* ========== HERO SLIDESHOW ========== */
.hero {
    width: 100%;
    overflow: hidden;
}

.hero-slides {
    position: relative;
    width: 100%;
    /* Responsive con aspect-ratio en lugar de height fijo */
    aspect-ratio: 16 / 6;
    min-height: 200px;
    max-height: 480px;
}

    .hero-slides img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0;
        transition: opacity 0.6s ease-in-out;
    }

        .hero-slides img.active {
            opacity: 1;
        }

/* ========== SECCIÓN DESCRIPTIVA ========== */
.hero-description {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--rosa-pastel);
}

    .hero-description h2 {
        font-size: clamp(1.3rem, 4vw, 2rem);
        font-weight: 600;
        color: var(--rosa);
        margin-bottom: 0.4rem;
    }

    .hero-description p {
        font-size: 0.95rem;
        color: #6c757d;
        margin: 0;
    }



/* ========== SECCIÓN TÍTULOS ========== */
.section-title {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    font-weight: 600;
    color: var(--rosa);
}

.text-rosa {
    color: var(--rosa) !important;
}

/* ========== CARDS DE PRODUCTO ========== */
/* Bootstrap maneja el grid; aquí solo detalles visuales */
.card {
    border: none !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 14px var(--sombra) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    .card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 24px var(--sombra) !important;
    }

    .card img {
        border-radius: 12px 12px 0 0;
        object-fit: cover;
    }

.card-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--texto);
    /* Truncar texto largo */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========== BOTÓN ROSA ========== */
.btn-rosa {
    background-color: var(--rosa);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 0.45rem 1.1rem;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    display: inline-block;
}

    .btn-rosa:hover {
        background-color: var(--rosa-hover);
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 6px 14px rgba(216, 132, 148, 0.35);
    }

/* ========== WHATSAPP FLOTANTE ========== */
.whatsapp-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.whatsapp-message {
    background: #fff;
    color: #555;
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    margin-bottom: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid #f0f0f0;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(16px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

    .whatsapp-message.show {
        opacity: 1;
        transform: translateX(0);
    }

.whatsapp {
    background: #25d366;
    color: #fff;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 26px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}

    .whatsapp:hover {
        transform: scale(1.08);
        color: #fff;
    }

/* ========== FOOTER ========== */
footer {
    text-align: center;
    padding: 1.4rem 1rem;
    background: #ead6dc;
    margin-top: auto;
}

    footer a {
        text-decoration: none;
        color: #666;
        font-size: 0.75rem;
    }

        footer a:hover {
            color: var(--rosa);
        }

/* ========== OVERLAY menú lateral en móvil ========== */
.menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: 1040;
}

    .menu-overlay.active {
        display: block;
    }
