/* -------------------------
   RESET + BASE
-------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    background: #F7C9D4; /* rosa pastel del logo */
    color: #4B2E0F; /* marrón oscuro */
    overflow-x: hidden;
}

h1, h2 {
    font-weight: 700;
}

section {
    padding: 80px 20px;
}

img {
    max-width: 100%;
    display: block;
}

/* -------------------------
   NAVBAR
-------------------------- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(247, 201, 212, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #D48A9A;
    z-index: 1000;
}

.nav-container {
    max-width: 1100px;
    margin: auto;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 55px;
}

nav ul {
    display: flex;
    gap: 25px;
    list-style: none;
}

nav a {
    text-decoration: none;
    color: #4B2E0F;
    font-weight: 600;
    transition: 0.3s;
}

nav a:hover {
    color: #C72E47; /* rosa/rojo fuerte del texto */
}

/* -------------------------
   HERO
-------------------------- */
.hero {
    height: 100vh;
    background: url('assets/bg-texture.png'), #F7C9D4;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    text-align: center;
}

.hero-content {
    max-width: 700px;
    animation: fadeUp 1.1s ease;
    text-align: center;
}

.hero-logo {
    width: 150px;
    height: auto;
    margin: 0 auto 20px auto; /* centrado horizontal */
    display: block; /* para que margin auto funcione */
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.85;
    margin-bottom: 35px;
}

/* -------------------------
   BOTONES
-------------------------- */
.btn-primary {
    padding: 12px 28px;
    background: #C72E47;
    border: none;
    color: #fff;
    font-size: 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-primary:hover {
    transform: scale(1.05);
    background: #E05A73;
}

.btn-secondary {
    padding: 12px 24px;
    border: 2px solid #4B2E0F;
    color: #4B2E0F;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    gap: 10px;
    align-items: center;
    transition: 0.3s;
}

.btn-secondary:hover {
    background: #4B2E0F;
    color: #fff;
}

.btn-whatsapp {
    padding: 12px 24px;
    background: #25D366;
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    gap: 10px;
    align-items: center;
    transition: 0.3s;
}

.btn-whatsapp:hover {
    transform: scale(1.05);
}

/* -------------------------
   MENÚ
-------------------------- */
.menu-section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.4rem;
}

.filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    background: #E4D1B7;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
    background: #C72E47;
    color: #fff;
}

.menu-grid {
    display: grid;
    max-width: 1100px;
    margin: auto;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}

/* CARD */
.card {
    background: #fff;
    border-radius: 14px;
    padding: 15px;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.1);
    transition: 0.3s ease;
    cursor: pointer;
    position: relative;
    opacity: 0;
    transform: translateY(40px);
}

.card.visible {
    opacity: 1;
    transform: translateY(0);
}

.card:hover {
    transform: scale(1.03);
    box-shadow: 0px 6px 20px rgba(0,0,0,0.15);
}

.card img {
    border-radius: 10px;
    margin-bottom: 10px;
    height: 160px;
    width: 100%;
    object-fit: cover;
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.card p {
    opacity: 0.75;
    margin-bottom: 10px;
}

.card .price {
    font-weight: 700;
}

/* Destacado */
.badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #C72E47;
    padding: 5px 10px;
    color: #fff;
    font-size: 0.8rem;
    border-radius: 8px;
}

/* Loader */
.loader {
    text-align: center;
    padding: 20px;
    font-size: 1.1rem;
}

.hidden {
    display: none;
}

/* -------------------------
   ABOUT
-------------------------- */
.about-section {
    max-width: 900px;
    margin: auto;
    text-align: center;
}

.about-section p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-top: 15px;
}

/* -------------------------
   CONTACTO
-------------------------- */
.contact-section {
    max-width: 900px;
    margin: auto;
    text-align: center;
}

.contact-note {
    font-size: 1rem;
    color: #666;
    margin-bottom: 20px;
    font-style: italic;
}



.contact-ctas {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* -------------------------
   FOOTER
-------------------------- */
footer {
    padding: 25px;
    text-align: center;
    background: #4B2E0F;
    color: #fff;
    margin-top: 50px;
    font-size: 0.9rem;
}

/* -------------------------
   CARRITO
-------------------------- */
.cart-container {
    display: flex;
    align-items: center;
}

.cart-btn {
    background: #C72E47;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: 0.3s;
    color: #fff;
}

.cart-btn:hover {
    transform: scale(1.1);
    background: #E05A73;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #4B2E0F;
    color: #fff;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

/* Botón agregar a las cards */
.btn-add {
    width: 100%;
    padding: 10px;
    background: #C72E47;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
}

.btn-add:hover {
    background: #E05A73;
    transform: translateY(-2px);
}

/* -------------------------
   MODALES
-------------------------- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
    backdrop-filter: blur(2px);
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: #fff;
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.cart-modal-content {
    max-width: 500px;
}

.info-modal-content {
    max-width: 600px;
}

.info-content {
    line-height: 1.6;
}

.info-content p {
    margin-bottom: 15px;
    font-size: 1rem;
}

.info-content strong {
    color: #C72E47;
}

.date-modal-content {
    max-width: 500px;
}

.date-selector-info {
    margin-bottom: 20px;
}

.date-selector-info ul {
    margin: 10px 0;
    padding-left: 20px;
}

.date-selector-info li {
    margin-bottom: 5px;
    color: #666;
}

.date-input-container {
    text-align: center;
}

.date-input-container label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #4B2E0F;
}

.date-input {
    width: 100%;
    max-width: 250px;
    padding: 12px;
    border: 2px solid #E4D1B7;
    border-radius: 8px;
    font-size: 16px;
    background: #fff;
    color: #4B2E0F;
}

.date-input:focus {
    outline: none;
    border-color: #C72E47;
    box-shadow: 0 0 0 3px rgba(199, 46, 71, 0.1);
}

.date-note {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #E4D1B7;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.4rem;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 5px;
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #E4D1B7;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

/* Opciones de personalización */
.customization-section {
    margin-bottom: 25px;
}

.customization-section h4 {
    margin-bottom: 15px;
    color: #4B2E0F;
    font-size: 1.1rem;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.option-item {
    border: 2px solid #E4D1B7;
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    transition: 0.3s;
    background: #fff;
}

.option-item:hover {
    border-color: #C72E47;
    background: #fdf9f5;
}

.option-item.selected {
    border-color: #C72E47 !important;
    background: #fef7f2 !important;
    box-shadow: 0 2px 8px rgba(199, 46, 71, 0.2) !important;
}

.option-item.force-selected {
    border-color: #C72E47 !important;
    background: #fef7f2 !important;
    box-shadow: 0 2px 8px rgba(199, 46, 71, 0.2) !important;
}

.option-item.force-deselected {
    border-color: #E4D1B7 !important;
    background: #fff !important;
    box-shadow: none !important;
}

.option-item h5 {
    margin-bottom: 5px;
    font-size: 1rem;
    color: #4B2E0F;
}

.option-item p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* Carrito items */
.cart-items {
    max-height: 400px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #E4D1B7;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-info h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
    color: #4B2E0F;
}

.cart-item-info p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.btn-remove {
    background: #ff6b6b;
    border: none;
    border-radius: 6px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    color: #fff;
}

.btn-remove:hover {
    background: #ff5252;
    transform: scale(1.1);
}

/* Carrito vacío */
.cart-empty {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.cart-empty p {
    margin-bottom: 10px;
}

/* -------------------------
   TOAST NOTIFICACIONES
-------------------------- */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #4B2E0F;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    z-index: 3000;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}



/* -------------------------
   ANIMACIONES
-------------------------- */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
