:root {
    --Happy-color: #3E2723;
    --emotional-color: #6F4E37;
    --sad-color: #161515;
    --laugh-color: #F5F5DC;
    --logo-gold: #D4AF37;
    --text-dark: #2c2416;
    --text-light: #f3f3f3;
    --text-logo: #FFB800;
    --text-suave: #D2B48C;
    --text-pink: #F2D5C4;
    --textr-pink-light: #DCA7A7;
    --text-rosa: #F8E1E7;
    --logo: #4B2C5E;
    --second-part: #2D2D2D;
    --card-purple: #d8cff7;
    --title-vino: #641E16;
    --mobiliario: #C19A6B;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--laugh-color);
    color: var(--text-light);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}


/*header & navigation */

header {
    background: var(--text-pink);
    position: fixed;
    width: 100%;
    top: 0%;
    z-index: 1000;
    padding: 10px 0;
    transform: all 0.4s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    color: var(--logo);
    font-size: 28px;
}

.logo-text {
    color: var(--text-logo);
    font-size: 28px;
    font-weight: 900;
}

.logo-text span {
    color: var(--second-part);
}

nav {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 35px;
}

nav a {
    text-decoration: none;
    color: var(--second-part);
    font-weight: 600;
    font-size: 20px;
    position: relative;
    padding: 5px 0;
    transition: all 0.3s ease;
}

nav a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 10px;
    background: var(--logo);
    left: 0;
    bottom: 0px;
    transition: all 0.3s ease;
}

nav a:hover:after {
    width: 100%;
}

.nav-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 16px;
}

.btn-primary {
    background: var(--logo);
    color: white;
}

.btn-primary:hover {
    background: var(--card-purple);
    transform: translateY(-2px);
}


/* Hero Section */

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--laugh-color);
    z-index: -1;
}

.hero-content {
    width: 600px;
    COLOR: var(--text-dark);
    animation: fadeInUp 1s ease-out;
}

.hero .container {
    display: flex;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-dark);
    margin-top: 20px;
    margin-bottom: 60px;
    display: flex;
    align-items: center;
    gap: 10px
}

.hero-subtitle::before {
    content: '';
    width: 50px;
    height: 2px;
    background: var(--text-logo);
}

.hero-title {
    font-size: 58px;
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
    color: var(--text-dark);
}

.hero-title span {
    color: var(--text-logo);
    position: relative;
}

.hero-text {
    font-size: 16px;
    margin-bottom: 50px;
    max-width: 700px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}


/* products section */

.products {
    padding: 80px 0;
    background-color: var(--text-pink);
    /* El color rosa que quieres */
    position: relative;
    border-top: 4px solid var(--text-logo);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 70px;
}

.section-subtitle {
    font-size: 20px;
    color: var(--sad-color);
    margin-bottom: 15px;
}

.section-title {
    font-size: 42px;
    color: var(--text-dark);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--sad-color);
}

.section-desc {
    font-size: 18px;
    color: var(--sad-color);
}


/* Category Divider mobiliario y baby sets */

.category-divider {
    margin: 80px 0 40px;
    /* Un poco más de espacio arriba para que no respire mejor */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}


/* Título de la categoría con icono decorativo */

.category-title {
    font-size: 2rem;
    color: var(--mobiliario);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Centra el icono y el texto horizontalmente */
    gap: 15px;
    /* Espacio entre el icono y el texto */
}


/* Icono decorativo para el título de la categoría */

.category-title i {
    color: var(--mobiliario);
    font-size: 1.8rem;
}

.category-divider hr {
    border: none;
    height: 4px;
    /* Usamos el dorado del logo y el café del mobiliario para que combine */
    background: linear-gradient(to right, var(--text-logo), var(--mobiliario));
    width: 80px;
    margin-top: 10px;
    /* Separación entre el texto y la línea */
    border-radius: 10px;
}


/* end of category divider */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    align-items: start; /* Evita que las tarjetas se estiren creando espacios vacíos */
}

.product-card {
    background: var(--card-purple);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
    top: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-15px);
    border: 2px solid var(--logo);
}

.product-img {
    height: 300px;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}

.product-info {
    padding: 25px;
    position: relative;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-tag {
    position: absolute;
    top: -20px;
    right: 20px;
    background: var(--text-logo);
    color: #161515;
    /* Texto oscuro para que resalte sobre el dorado */
    padding: 8px 18px;
    border-radius: 40px;
    font-weight: 290;
    font-size: 14px;
    z-index: 10;
    /* Asegura que esté por encima de todo */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}


/* color del titutlo de las cartas de productos */

.product-title {
    font-size: 24px;
    color: var(--text-logo);
    margin-bottom: 10px;
}

.product-desc {
    font-size: 16px;
    color: var(--sad-color);
    margin-bottom: 20px;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 24px;
    color: var(--sad-color);
    font-weight: 700;
}

.rating {
    color: var(--logo-gold);
    font-size: 16px;
}

h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: 0.5px;
}

footer {
    background: var(--text-rosa);
    color: var(--sad-color);
    padding: 70px 0 30px;
    border-top: 4px solid var(--text-logo);
}

.footer-content {
    display: grid;
    /* Forzamos 3 columnas de igual tamaño */
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.footer-column h3 {
    font-size: 22px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
    color: var(--text-dark);
    /* Color resaltado para títulos */
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--text-dark);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--sad-color);
}

.footer-links a {
    text-decoration: none;
    color: var(--sad-color);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--card-purple);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-dark);
    font-size: 28px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--card-purple);
    transform: translateY(-3px);
}


/* --- RESPONSIVE DESIGN OF MOBILE VIEW --- */

@media (max-width: 768px) {
    /* Ajuste del Header */
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    nav ul {
        gap: 15px;
    }
    /* Ajuste del Hero (Bienvenida) */
    .hero {
        height: auto;
        /* Quitamos el 100vh para que no se encime el texto */
        padding: 120px 0 50px;
    }
    .hero .container {
        flex-direction: column;
        /* Texto arriba, imagen abajo */
        text-align: center;
    }
    .hero-content {
        width: 100%;
        /* Ocupa todo el ancho */
    }
    .hero-title {
        font-size: 32px;
        /* Texto más pequeño para que no se corte */
    }
    .hero-subtitle {
        justify-content: center;
        margin-bottom: 30px;
    }
    .hero img {
        width: 100%;
        /* La imagen se ajusta al ancho del cel */
        height: auto;
        margin-top: 30px;
    }
    /* Ajuste de la cuadrícula de productos */
    .product-grid {
        grid-template-columns: 1fr;
        /* Una sola columna en celulares */
        padding: 0 10px;
    }
    /* Ajuste del Footer */
    .footer-content {
        grid-template-columns: 1fr;
        /* Una columna en lugar de tres */
        text-align: center;
    }
    .footer-column h3::after {
        left: 50%;
        transform: translateX(-50%);
        /* Centrar la línea decorativa */
    }
    .footer-links li {
        justify-content: center;
    }
    .social-links {
        justify-content: center;
    }
}


/* Estilo base corregido para el botón de Seleccionar */

.btn-select {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    margin-top: 20px; /* Separación con el precio */
    background-color: #ffffff !important;
    border: 2px solid #6c5ce7 !important;
    color: #6c5ce7 !important;
    font-weight: bold;
    font-size: 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
}


/* Efecto Hover */

.btn-select:hover {
    background-color: #6c5ce7 !important;
    color: white !important;
}


/* Clase aplicada con JavaScript cuando está seleccionado */

.btn-select.selected {
    background-color: #6c5ce7 !important;
    /* Se vuelve completamente morado */
    color: white !important;
    /* El texto pasa a blanco para contrastar */
    border-color: #5b4cc4 !important;
}


/* Animación de entrada botando para el carrito flotante */

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}


/* Efecto hover interactivo para el carrito flotante */

#cart-floating-btn:hover {
    transform: scale(1.1);
    background-color: #1ebd59 !important;
    transition: all 0.2s ease;
}


/* Animations */

@keyframes fadeInUp {
}

/* =========================================================================
   ESTILOS DEL CALENDARIO DE RESERVAS
   ========================================================================= */

.calendar-section {
    padding: 40px 20px;
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-top: 40px;
    margin-bottom: 40px;
    color: var(--text-dark);
}

.calendar-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--logo);
    font-family: 'Playfair Display', serif;
}

.calendar-months {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.month-container {
    width: 300px;
    background: var(--laugh-color);
    padding: 15px;
    border-radius: 10px;
    border: 2px solid var(--card-purple);
}

.month-name {
    text-align: center;
    font-weight: bold;
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    text-align: center;
}

.calendar-day-header {
    font-weight: bold;
    color: var(--mobiliario);
    font-size: 14px;
}

.calendar-day {
    background: white;
    border: 1px solid #ccc;
    padding: 10px 5px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: default;
    transition: all 0.2s ease;
    user-select: none;
}

/* Colores de estado */
.day-disponible {
    background-color: #ffffff;
    color: var(--text-dark);
}

.day-proceso {
    background-color: #87CEFA; /* Azul claro */
    color: #000;
    border-color: #5bbdf5;
}

.day-pagado {
    background-color: #ff4d4d; /* Rojo */
    color: white;
    border-color: #cc0000;
}

/* Leyenda del calendario */
.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: bold;
}

.legend-box {
    width: 25px;
    height: 25px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.legend-box.blanco { background-color: #ffffff; }
.legend-box.azul { background-color: #87CEFA; border-color: #5bbdf5; }
.legend-box.rojo { background-color: #ff4d4d; border-color: #cc0000; }

/* Modal del Calendario (para el cliente) */
#calendar-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
    z-index: 10000;
    overflow-y: auto;
    padding: 20px;
}

.calendar-modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.btn-close-calendar {
    position: absolute;
    top: 15px;
    right: 20px;
    background: #ff4d4d;
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    font-size: 18px;
    cursor: pointer;
    font-weight: bold;
}

/* Selección interactiva en modal de WhatsApp */
.date-selector-container {
    margin-top: 15px;
    margin-bottom: 25px;
    text-align: left;
    background: #f0f0f0;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--logo);
}

.date-selector-container label {
    font-weight: bold;
    color: var(--text-dark);
    display: block;
    margin-bottom: 5px;
}

.date-selector-container input[type="date"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
}

/* Estilos extra para pantallas pequeñas */
@media (max-width: 768px) {
    .calendar-months {
        flex-direction: column;
        align-items: center;
    }
    .month-container {
        width: 100%;
        max-width: 350px;
    }
    .calendar-legend {
        flex-direction: column;
        align-items: center;
    }
}