/* ========================================================================= */
/* === 1. CONFIGURACIÓN GLOBAL Y VARIABLES === */
/* ========================================================================= */
:root {
    --negro: #1C1C1C;
    --dorado: #CBA135;
    --crema: #FAF3E0;
    --burdeos: #7B2D26;
    --burdeos-claro: #A53D34;
    --gris-oscuro: #2a2a2a;
    --x: 0;
    --y: 0;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--negro);
    color: var(--crema);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: var(--dorado);
}

a { color: var(--dorado); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--crema); }

main > section:not(#hero-parallax) { padding: 6rem 2rem; }

.subtitulo-seccion {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 3rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
}
.subtitulo-seccion::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--dorado);
}

.section-divider {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(203, 161, 53, 0), rgba(203, 161, 53, 0.5), rgba(203, 161, 53, 0));
    margin: 4rem 0;
}

/* ========================================================================= */
/* === 2. BARRA DE NAVEGACIÓN === */
/* ========================================================================= */
.navbar {
    background-color: transparent;
    border-bottom: 1px solid transparent;
    padding: 1rem 0;
    transition: background-color 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
}
.navbar.navbar-scrolled {
    background-color: rgba(28, 28, 28, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(203, 161, 53, 0.2);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.navbar-brand img { max-width: 70px; height: auto; }
.navbar-nav .nav-link {
    color: var(--crema);
    opacity: 0.8;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 1rem;
    position: relative;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
    transition: all 0.3s ease;
}
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--dorado);
    transition: width 0.3s ease;
}
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active { color: var(--dorado); opacity: 1; }
.navbar-nav .nav-link:hover::after { width: 100%; }
.nav-link-cta { background-color: var(--dorado); color: var(--negro) !important; padding: 8px 20px !important; border-radius: 5px; font-weight: bold; }
.nav-link-cta:hover { background-color: var(--crema); }
.navbar-toggler { border-color: rgba(203, 161, 53, 0.5); }
.navbar-toggler-icon { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(203, 161, 53, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); }

/* ========================================================================= */
/* === 3. PÁGINA DE INICIO (INDEX.PHP) === */
/* ========================================================================= */

#hero-parallax { width: 100%; height: 100vh; padding: 0; background: var(--negro); touch-action: none; position: relative; overflow: hidden; }
.parallax-card { width: 100%; height: 100%; position: relative; overflow: hidden; }
.parallax-card .assets { position: absolute; inset: 0; z-index: 1; }
.parallax-card .assets > img { position: absolute; top: 50%; left: 50%; height: 110%; width: 110%; max-width: none; object-fit: cover; user-select: none; pointer-events: none; transform: translate(-50%, -50%) scale(1.1); }
.parallax-card .assets > img:first-of-type { filter: brightness(0.7); transform: translate(calc(-50% + var(--x) * 20px), calc(-50% + var(--y) * -15px)) scale(1.1); }
.parallax-card .assets > .parallax-foreground-item { height: clamp(150px, 25vh, 250px); width: auto; filter: drop-shadow(0 5px 20px rgba(0,0,0,0.6)); z-index: 3; transform: translate(calc(-50% + var(--x) * 40px), calc(-50% + var(--y) * 15px)); }
.parallax-card .assets h3 { position: absolute; left: 50%; top: 35%; width: 100%; text-align: center; font-size: clamp(4rem, 12vw, 9rem); text-transform: uppercase; font-family: "Bebas Neue", sans-serif; color: var(--crema); text-shadow: 2px 2px 15px rgba(0,0,0,0.7); z-index: 4; transform: translate(calc(-50% + var(--x) * -30px), calc(-50% + var(--y) * -20px)); }
.parallax-card .content { position: absolute; bottom: 10%; left: 50%; transform: translateX(-50%); width: 100%; color: var(--crema); display: flex; flex-direction: column; gap: 0.5rem; justify-content: center; align-items: center; padding: 1rem; z-index: 5; }
.parallax-card .content p { margin: 0; font-size: clamp(1rem, 2.5vw, 1.2rem); font-family: 'Rubik', sans-serif; text-shadow: 1px 1px 5px rgba(0,0,0,0.5); }
.parallax-card .content p:first-of-type::after { content: ""; position: absolute; bottom: calc(100% + 0.75rem); left: 50%; transform: translateX(-50%); width: 20ch; max-width: 80%; background: var(--dorado); height: 1px; }
.parallax-card .content .fas { color: var(--dorado); margin-right: 0.5rem; }
.parallax-card .blur { position: absolute; inset: 0; z-index: 2; }
.parallax-card .blur .layer { --layers: 5; --blur: calc(sin(((var(--layers) - var(--index)) / var(--layers)) * 90deg) * 5); --stop: calc(sin(((var(--index)) / var(--layers)) * 90deg) * 25); position: absolute; inset: 0; background: hsla(0, 0%, 0%, 0.1); backdrop-filter: blur(min(calc(var(--blur) * 1px), 4px)); mask: radial-gradient(180% 160% at 45% 90%, #fff 10%, #0000 calc((10 + var(--stop)) * 1%)); }

section#flyers { padding: 6rem 0; overflow: hidden; }
.flyer-slider-container { width: 90%; max-width: 900px; height: 500px; margin: 2rem auto; position: relative; perspective: 1000px; }
.flyer-slider-container .slide { position: absolute; inset: 0; width: 100%; height: 100%; }
.flyer-slider-container .slide .item { position: absolute; width: 200px; height: 300px; top: 50%; left: 50%; transform: translate(-50%, -50%); border-radius: 20px; box-shadow: 0 20px 50px rgba(0,0,0,0.4); background-size: cover; background-position: center; transition: all 1s ease-in-out; will-change: transform, opacity, left; z-index: 1; }
.slide .item:nth-child(1) { top: 50%; left: 50%; transform: translate(-50%, -50%) scale(2.5); width: 100%; height: 100%; border-radius: 0; box-shadow: none; z-index: 0; filter: blur(20px) brightness(0.7); }
.slide .item:nth-child(2) { width: 70%; height: 80%; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 3; box-shadow: 0 30px 60px rgba(0,0,0,0.5); }
.slide .item:nth-child(3) { left: 85%; z-index: 2; }
.slide .item:nth-child(4) { left: 100%; transform: translate(-20%, -50%) scale(0.9); z-index: 1; }
.slide .item:nth-child(n + 5) { left: 115%; opacity: 0; }
.item .content { position: absolute; top: 50%; left: 5%; transform: translateY(-50%); width: 60%; color: var(--crema); display: none; z-index: 10; padding: 2rem; text-shadow: 2px 2px 8px rgba(0,0,0,0.9); }
.slide .item:nth-child(2) .content { display: block; opacity: 0; animation: animateContent 1s ease-in-out 0.7s forwards; }
.content .name { font-family: 'Playfair Display', serif; font-size: 2.8rem; color: var(--dorado); text-transform: uppercase; font-weight: bold; }
.content .des { font-family: 'Montserrat', sans-serif; margin-top: 1rem; font-size: 1.1rem; font-weight: 500; line-height: 1.6; }
@keyframes animateContent { from { opacity: 0; transform: translateY(50px); } to { opacity: 1; transform: translateY(-50%); } }
.item .image-container { position: absolute; top: 0; right: 0; width: 60%; height: 100%; overflow: hidden; clip-path: polygon(25% 0, 100% 0, 100% 100%, 0% 100%); display: none; }
.slide .item:nth-child(2) .image-container { display: block; }
.item .image-container img { width: 100%; height: 100%; object-fit: cover; }
.flyer-slider-container .button { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; gap: 15px; }
.flyer-slider-container .button button { width: 50px; height: 50px; border-radius: 50%; border: 2px solid var(--dorado); cursor: pointer; background-color: rgba(28, 28, 28, 0.7); color: var(--dorado); font-size: 1.5rem; transition: all 0.3s ease; }
.flyer-slider-container .button button:hover { background-color: var(--dorado); color: var(--negro); transform: scale(1.1); }

#creaciones-carousel .swiper-container { width: 100%; padding-top: 50px; padding-bottom: 50px; }
#creaciones-carousel .swiper-slide { background-position: center; background-size: cover; width: 320px; height: 400px; border-radius: 15px; box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5); }
#creaciones-carousel .swiper-pagination-bullet { background: var(--dorado); opacity: 0.7; }
#creaciones-carousel .swiper-pagination-bullet-active { background: var(--burdeos); opacity: 1; }

#galeria .subtitulo-seccion { margin-bottom: 4rem; }
.blinds-gallery-container { margin-bottom: 4rem; position: relative; width: 100%; max-width: 1100px; margin-left: auto; margin-right: auto; aspect-ratio: 2 / 1; box-shadow: 0 20px 50px rgba(0,0,0,0.6); }
.blinds-gallery { width: 100%; height: 100%; position: relative; overflow: hidden; border-radius: 20px; }
.blinds-gallery .w { width: 100%; height: 100%; position: relative; font-size: 0; white-space: nowrap; background-color: var(--negro); background-repeat: no-repeat; background-attachment: fixed; background-position: center center; background-size: cover; }
.blinds-gallery .i { width: calc(100% / 50); height: 100%; display: inline-block; position: relative; transition: opacity 1.3s ease-in-out; background-repeat: no-repeat; background-attachment: fixed; background-position: center center; background-size: cover; }
.blinds-gallery .i:hover { transition: opacity 0s linear; opacity: 0; }
.blinds-gallery .h { display: block; position: absolute; z-index: 10; width: 100%; text-align: center; top: 50%; left: 50%; transform: translate(-50%, -50%); font-family: 'Playfair Display', serif; font-size: clamp(2.5rem, 8vw, 5rem); color: var(--crema); text-shadow: 0 5px 20px rgba(0, 0, 0, 0.85); pointer-events: none; }
.gallery-instance-1 .w { background-image: url('Images/Dia de Muertos-min.jpeg'); }
.gallery-instance-1 .i { background-image: url('Images/Pan de muerto-min.jpeg'); }
.gallery-instance-2 .w { background-image: url('Images/Croissant-min.jpeg'); }
.gallery-instance-2 .i { background-image: url('Images/Rollo canela-min.jpeg'); }

.assistant-card { display: flex; flex-wrap: nowrap; justify-content: space-between; width: 100%; height: 500px; border: 4px solid var(--dorado); border-radius: 15px; transition: 0.3s ease-in-out; position: relative; overflow: hidden; background-color: var(--negro); }
.assistant-card .overlay { position: relative; display: flex; width: 100%; height: 100%; background: var(--gris-oscuro); transition: 0.5s ease-in-out; z-index: 2; }
.assistant-card .overlay-content { display: flex; flex-direction: column; justify-content: center; width: 40%; height: 100%; padding: 2rem; transition: 0.4s ease-in-out 0.2s; z-index: 1; }
.assistant-card .overlay-content h4 { font-family: 'Playfair Display', serif; color: var(--dorado); font-size: 1.8rem; margin-bottom: 1rem; }
.assistant-card .overlay-content p { font-family: 'Montserrat', sans-serif; color: var(--crema); opacity: 0.8; font-size: 1rem; line-height: 1.6; }
.assistant-card .image-content { position: absolute; top: 0; right: 0; width: 60%; height: 100%; background-size: cover; background-position: center; transition: 0.4s ease-in-out; clip-path: polygon(25% 0, 100% 0, 100% 100%, 0% 100%); }
.assistant-card .text { display: flex; align-items: center; position: absolute; top: 0; right: 0; width: 100%; height: 100%; padding: 0; background: var(--negro); overflow: hidden; opacity: 0; transition: opacity 0.3s ease-in-out; z-index: 1; }
.assistant-card .text video { width: 100%; height: 100%; object-fit: cover; }
.assistant-card:hover .overlay { transform: translateX(-100%); }
.assistant-card:hover .text { opacity: 1; transition-delay: 0.3s; }
.animate { animation-duration: 0.7s; animation-timing-function: cubic-bezier(0.26, 0.53, 0.74, 1.48); animation-fill-mode: backwards; }
.pop { animation-name: pop; }
@keyframes pop { 0% { opacity: 0; transform: scale(0.5, 0.5); } 100% { opacity: 1; transform: scale(1, 1); } }
.slide-anim { animation-name: slide-anim-keyframes; }
@keyframes slide-anim-keyframes { 0% { opacity: 0; transform: translate(4em, 0); } 100% { opacity: 1; transform: translate(0, 0); } }
.slide-left { animation-name: slide-left; }
@keyframes slide-left { 0% { opacity: 0; transform: translate(-40px, 0); } 100% { opacity: 1; transform: translate(0, 0); } }
.delay-2 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 1.2s; }
.delay-5 { animation-delay: 1.5s; }

/* ========================================================================= */
/* === 5. PÁGINA DE TIENDA (TIENDA.PHP) === */
/* ========================================================================= */
.store-header {
    padding: 6rem 0;
    margin-top: 70px;
    color: var(--crema);
    background-color: var(--burdeos);
    position: relative;
    overflow: hidden;
}
.featured-product-image, .featured-product-title, .featured-product-category, .featured-product-price, .store-header .lead, .store-header .btn {
    position: relative;
    z-index: 2;
}
.featured-product-image { max-width: 450px; filter: drop-shadow(0 20px 25px rgba(0,0,0,0.4)); }
.featured-product-title { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 700; }
.featured-product-category { text-transform: uppercase; letter-spacing: 2px; font-size: 0.9rem; font-weight: 500; opacity: 0.8; }
.featured-product-price { font-size: 2.5rem; font-weight: 700; color: var(--dorado); }

.product-grid { padding: 6rem 0; }
.product-card { background-color: var(--gris-oscuro); border: 1px solid rgba(203, 161, 53, 0.2); border-radius: 15px; overflow: hidden; text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.product-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.4); }
.product-card .image-container { overflow: hidden; height: 250px; }
.product-card .card-img-top { width: 100%; height: 100%; object-fit: cover; }
.product-card .zoom { transition: 1.5s ease; }
.product-card .image-container:hover .zoom { transform: scale(1.15); }
.product-card .card-body { padding: 1.5rem; }
.product-card .card-title { font-size: 1.5rem; min-height: 3.5rem; }
.product-card .card-price { font-size: 1.25rem; font-weight: 500; margin-bottom: 1rem; }

/* ========================================================================= */
/* === 6. PÁGINA DE CARRITO (CART.PHP) === */
/* ========================================================================= */
.cart-page-background {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 0;
    overflow: hidden;
}
.bg-animation {
    bottom:0; left:-50%; opacity:.5; position:fixed; right:-50%; top:0; z-index:-1;
}
.bg-animation.bg1 {
    animation:slide-bg 3s ease-in-out infinite alternate;
    background-image: linear-gradient(-60deg, var(--burdeos) 50%, var(--dorado) 50%);
}
.bg-animation.bg2 {
    animation-direction:alternate-reverse; animation-duration:4s;
    background-image: linear-gradient(-60deg, var(--negro) 50%, var(--gris-oscuro) 50%);
}
.bg-animation.bg3 {
    animation-duration:5s;
    background-image: linear-gradient(-60deg, var(--dorado) 50%, var(--crema) 50%);
}
@keyframes slide-bg { 0% { transform:translateX(-25%); } 100% { transform:translateX(25%); } }

.cart-page-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 15px; position: relative; z-index: 1; }
.cart-section, .cart-summary { background-color: rgba(28, 28, 28, 0.85); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 2rem; border-radius: 15px; border: 1px solid rgba(203, 161, 53, 0.2); }
.cart-product-row { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem 0; border-bottom: 1px solid var(--gris-oscuro); }
.cart-product-row:last-child { border-bottom: none; }
.cart-product-image { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; margin-right: 1.5rem; }
.cart-quantity-input { width: 60px; background-color: var(--gris-oscuro); color: white; border-color: #555; text-align: center; }
.cart-quantity-input:focus { background-color: var(--gris-oscuro); color: white; border-color: var(--dorado); box-shadow: none; }
.btn-custom.disabled, .btn-custom:disabled { background-color: #555; border-color: #555; color: #999; cursor: not-allowed; }

/* ========================================================================= */
/* === 7. CARRITO EN VIVO (FLOTANTE Y SIDEBAR) Y NOTIFICACIONES === */
/* ========================================================================= */
#cart-count-nav, #cart-count-icon { position: absolute; top: -5px; right: -8px; font-size: 0.7rem; line-height: 1; padding: .25em .5em; }
#toast-notification { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background-color: #28a745; color: white; padding: 10px 20px; border-radius: 5px; z-index: 1060; opacity: 0; transition: opacity 0.5s, transform 0.5s; }
#toast-notification.toast-visible { opacity: 1; transform: translate(-50%, -20px); }
.toast-hidden { display: none; }
.cart-sidebar-hidden, .cart-sidebar-visible { position: fixed; top: 0; right: 0; width: 380px; max-width: 90%; height: 100%; background-color: var(--negro); z-index: 1055; display: flex; flex-direction: column; box-shadow: -10px 0 25px rgba(0,0,0,0.5); transition: transform 0.4s ease-in-out; }
.cart-sidebar-hidden { transform: translateX(100%); }
.cart-sidebar-visible { transform: translateX(0); }
.cart-header { padding: 1rem; background-color: var(--gris-oscuro); display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(203, 161, 53, 0.2); }
.cart-header h4 { color: var(--dorado); margin: 0; }
.cart-items { flex-grow: 1; overflow-y: auto; }
.cart-item { display: flex; align-items: center; padding: 1rem; border-bottom: 1px solid var(--gris-oscuro); }
.cart-item img { width: 60px; height: 60px; object-fit: cover; border-radius: 5px; margin-right: 1rem; }
.cart-item-details { flex-grow: 1; }
.cart-item-details h6 { margin: 0; color: var(--crema); font-family: 'Montserrat', sans-serif; font-size: 0.9rem; }
.cart-item-details p { margin: 0; color: var(--dorado); font-size: 0.9rem; }
.cart-footer { padding: 1.5rem; border-top: 1px solid rgba(203, 161, 53, 0.2); background-color: var(--gris-oscuro); }
#floating-cart-icon { position: fixed; bottom: 40px; right: 40px; width: 60px; height: 60px; background-color: var(--burdeos); color: white; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 1.5rem; cursor: pointer; box-shadow: 0 5px 15px rgba(0,0,0,0.3); z-index: 1050; transition: transform 0.3s ease; }
#floating-cart-icon:hover { transform: scale(1.1); }

/* ========================================================================= */
/* === 8. FOOTER Y FORMULARIO DE CONTACTO (ESTILOS RESTAURADOS) === */
/* ========================================================================= */
.contact-form .input-group {
    position: relative;
    margin-bottom: 2rem;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 10px;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--dorado);
    color: var(--crema);
    font-size: 1rem;
    outline: none;
    position: relative;
    z-index: 1;
}
.contact-form label {
    position: absolute;
    top: 10px;
    left: 10px;
    color: var(--dorado);
    opacity: 0.7;
    transition: all 0.3s ease;
    pointer-events: none;
}
.contact-form input:focus + label, 
.contact-form input:valid + label,
.contact-form textarea:focus + label,
.contact-form textarea:valid + label {
    top: -20px;
    font-size: 0.8rem;
    opacity: 1;
}
.contact-form button, .btn-custom {
    background-color: var(--burdeos);
    color: var(--crema);
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}
.contact-form button:hover, .btn-custom:hover {
    background-color: var(--burdeos-claro);
}

.footer-section { position: relative; background-color: var(--negro); color: var(--crema); overflow: hidden; }
.footer-section::before { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 100px; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100'%3e%3cpath d='M-1000,50 C-750,100 -750,0 -500,50 S-250,100 0,50 S250,0 500,50 S750,100 1000,50 V100 H-1000 Z' fill='%23CBA135'/%3e%3c/svg%3e"); background-size: 1000px 100px; opacity: 0.15; z-index: 0; animation: gentle-wave 25s linear infinite; }
@keyframes gentle-wave { 0% { background-position-x: 0px; } 100% { background-position-x: 1000px; } }
.footer-content { position: relative; z-index: 1; padding: 5rem 0; }
.footer-logo { max-width: 80px; }
.slogan-footer { font-family: 'Playfair Display', serif; color: var(--dorado); font-size: 1.2rem; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: var(--crema); opacity: 0.7; transition: all 0.3s; }
.footer-links a:hover { opacity: 1; color: var(--dorado); padding-left: 5px; }
.social-icons a { display: inline-flex; justify-content: center; align-items: center; width: 40px; height: 40px; border-radius: 50%; margin: 0 5px; background-color: var(--gris-oscuro); color: var(--crema); transition: all 0.3s ease; }
.social-icons a:hover { background-color: var(--dorado); color: var(--negro); transform: translateY(-3px); }

#form-notification { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(150%); min-width: 300px; background-color: var(--gris-oscuro); border: 1px solid var(--dorado); color: var(--crema); padding: 1rem 1.5rem; border-radius: 10px; box-shadow: 0 5px 20px rgba(0,0,0,0.5); z-index: 1050; transition: transform 0.5s ease-in-out; }
#form-notification.visible { transform: translateX(-50%) translateY(0); }
#form-notification.success { border-left: 5px solid #28a745; }
#form-notification.error { border-left: 5px solid #dc3545; }
#form-notification .notification-content { display: flex; align-items: center; }
#form-notification .notification-icon { font-size: 1.8rem; margin-right: 15px; }
#form-notification .notification-title { font-family: 'Playfair Display', serif; margin: 0 0 5px; color: var(--dorado); }
#form-notification .notification-message { margin: 0; opacity: 0.9; }

.whatsapp-float { position: fixed; width: 60px; height: 60px; bottom: 40px; right: 40px; background-color: #25D366; color: #FFF; border-radius: 50px; text-align: center; font-size: 30px; box-shadow: 2px 2px 10px rgba(0,0,0,0.3); z-index: 100; display: flex; justify-content: center; align-items: center; visibility: hidden; }

/* ========================================================================= */
/* === 9. ESTILOS DEL PANEL DE USUARIO (DASHBOARD) === */
/* ========================================================================= */
body.dashboard {
    height: 100vh;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    background: var(--negro);
    -webkit-font-smoothing: antialiased;
    font-size: 14px;
    overflow: hidden;
    color: var(--crema);
}

.swanky {
    margin: auto;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    perspective: 700px;
    width: 95%;
    max-width: 1200px;
    position: absolute;
    height: auto;
    max-height: 85vh;
    display: flex;
    gap: 30px;
}

.swanky_wrapper {
    width: 250px;
    flex-shrink: 0;
    height: auto;
    overflow: hidden;
    border-radius: 4px;
    background: var(--gris-oscuro);
}

.swanky_wrapper label {
    padding: 25px;
    float: left;
    height: 72px;
    border-bottom: 1px solid var(--negro);
    position: relative;
    width: 100%;
    color: var(--crema);
    transition: text-indent .15s, height .3s;
    box-sizing: border-box;
    cursor: pointer;
}

.swanky_wrapper label i {
    margin-right: 15px;
    position: relative;
    top: 2px;
    width: 16px;
    font-size: 1.2em;
    text-align: center;
    color: var(--dorado);
}

.swanky_wrapper label span {
    position: relative;
    top: -3px;
}

.swanky_wrapper label:hover {
    background: #3a3a3a;
    border-bottom: 1px solid var(--gris-oscuro);
    text-indent: 4px;
}

.swanky_wrapper label:hover .bar {
    width: 100%;
}

.swanky_wrapper .bar {
    width: 0px;
    transition: width .15s;
    height: 2px;
    position: absolute;
    display: block;
    background: var(--dorado);
    bottom: 0;
    left: 0;
}

.swanky_wrapper .lil_arrow {
    width: 5px;
    height: 5px;
    transition: transform 0.8s;
    transition-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-top: 2px solid var(--crema);
    border-right: 2px solid var(--crema);
    float: right;
    position: relative;
    top: 6px;
    right: 2px;
    transform: rotate(45deg);
}

.swanky_wrapper__content {
    position: absolute;
    display: none;
    overflow: hidden;
    left: 0;
    width: 100%;
}

.swanky_wrapper__content ul {
    width: 100%;
    padding:0;
    margin:0;
}
.swanky_wrapper__content li {
    list-style-type: none;
    width: 100%;
    opacity: 0;
    left: -100%;
    background: var(--burdeos);
    box-shadow: 0px 0px var(--negro) inset;
    transition: box-shadow .3s, text-indent .3s;
    position: relative;
}
.swanky_wrapper__content li a {
    display: block;
    color: var(--crema);
    text-decoration: none;
    padding: 18px 0px;
    text-indent: 25px;
}

.swanky_wrapper__content li:hover {
    background: #A53D34;
    box-shadow: 3px 0px var(--negro) inset;
    transition: box-shadow .3s linear, text-indent .3s linear;
}
.swanky_wrapper__content li:hover a {
    text-indent: 31px;
}

.swanky_wrapper input[type='radio'] {
    display: none;
}
.swanky_wrapper input[type='radio']:checked+label .swanky_wrapper__content {
    display: block;
    top: 72px;
    border-bottom: 1px solid var(--negro);
}

.swanky_wrapper input[type="radio"]:checked+label>.lil_arrow {
    transition: transform 0.8s;
    transition-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform: rotate(135deg);
    border-top: 2px solid var(--dorado);
    border-right: 2px solid var(--dorado);
}

.swanky_wrapper input[type='radio']:checked+label {
    height: 250px;
    background: var(--negro);
    text-indent: 4px;
    transition-property: height;
    transition-duration: .6s;
    transition-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.swanky_wrapper input[type='radio']:checked+label .bar {
    width: 0;
}

.swanky_wrapper input[type='radio']:checked+label li:nth-of-type(1) {
    animation: in 0.15s 0.575s forwards;
    transition-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.swanky_wrapper input[type='radio']:checked+label li:nth-of-type(2) {
    animation: in 0.15s 0.7s forwards;
    transition-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.swanky_wrapper input[type='radio']:checked+label li:nth-of-type(3) {
    animation: in 0.15s 0.825s forwards;
    transition-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes in {
    from { left: -100%; opacity: 0; }
    to { left: 0; opacity: 1; }
}

.main-dashboard-content {
    flex-grow: 1;
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
    padding: 2rem;
    height: 85vh;
    overflow-y: auto;
}

.main-dashboard-content h1, .main-dashboard-content h3, .main-dashboard-content h4 {
    font-family: 'Playfair Display', serif;
    color: var(--dorado);
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

/* ========================================================================= */
/* === 11. BOTÓN ANIMADO "AURORA" === */
/* ========================================================================= */

@property --bg-position {
  syntax: "<number>";
  inherits: true;
  initial-value: 100;
}

.aurora-button {
  all: unset;
  display: inline-block;
  box-sizing: border-box;
  background: transparent;
  border-width: 0;
  transform: scale(var(--btn-scale, 1));
  transition: --bg-position 0.5s ease, transform 0.2s cubic-bezier(.76,-0.25,.51,1.13);
  text-decoration: none;
}

.aurora-button > div {
  display: block;
  padding: 0.8em 1.2em;
  background: var(--btn-bg, var(--negro));
  color: var(--crema);
  font-weight: bold;
  border-radius: 8px;
  font-size: 1rem;
  position: relative;
  cursor: pointer;
  text-align: center;
}

.aurora-button > div > span {
  background: linear-gradient( to right, var(--crema), var(--crema), var(--dorado), var(--burdeos), var(--dorado), var(--crema), var(--crema) )
    no-repeat calc(var(--bg-position) * 1%) 0% / 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.1ch;
  font-weight: 600;
}

.aurora-button > div:before {
  content: "";
  display: block;
  position: absolute;
  width: calc(100% + 3px);
  height: calc(100% + 3px);
  background: linear-gradient( to right, var(--crema), var(--dorado), var(--burdeos), var(--dorado), var(--crema) )
    no-repeat calc(var(--bg-position) * 1%) 0% / 300%;
  border-radius: 9px;
  z-index: -1;
  top: -1.5px;
  left: -1.5px;
  opacity: 0.8;
}

.aurora-button:hover {
  --bg-position: 0;
  transform: scale(1.05);
}

.aurora-button:active {
  transform: scale(0.98);
}

.cart-summary .input-group .aurora-button {
    --btn-bg: var(--burdeos);
}
.cart-summary .input-group .aurora-button:hover {
    --btn-bg: var(--burdeos-claro);
}

/* ========================================================================= */
/* === 12. ESTILOS DEL PERSONALIZADOR DE PASTELES === */
/* ========================================================================= */

.cake-builder-container {
    background-color: var(--gris-oscuro);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid rgba(203, 161, 53, 0.2);
}

.cake-preview {
    background-color: var(--negro);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.cake-visual {
    width: 200px;
    height: 250px;
    position: relative;
    margin: 2rem auto;
}

.cake-layer {
    position: absolute;
    width: 100%;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.cake-pan {
    background-color: #e0c9a6;
    height: 40px;
    bottom: 0;
    z-index: 1;
}

.cake-relleno {
    height: 30px;
    bottom: 40px;
    z-index: 2;
}

.cake-betun {
    height: 35px;
    bottom: 70px;
    z-index: 3;
}

.cake-topping {
    height: 25px;
    bottom: 105px;
    z-index: 4;
}

.ingredient-categories {
    display: flex;
    gap: 10px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.category-btn {
    background-color: var(--negro);
    color: var(--crema);
    border: 1px solid var(--dorado);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn.active, .category-btn:hover {
    background-color: var(--dorado);
    color: var(--negro);
}

.ingredients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.ingredient-card {
    background-color: var(--negro);
    border: 1px solid rgba(203, 161, 53, 0.2);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ingredient-card:hover {
    transform: translateY(-5px);
    border-color: var(--dorado);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.ingredient-card.selected {
    border-color: var(--dorado);
    background-color: rgba(203, 161, 53, 0.1);
}

.ingredient-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.ingredient-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ingredient-info {
    padding: 1rem;
}

.ingredient-info h5 {
    color: var(--dorado);
    margin-bottom: 0.5rem;
}

.ingredient-price {
    color: var(--crema);
    font-weight: bold;
}

.selected-ingredients {
    background-color: var(--negro);
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 2rem;
    border: 1px solid rgba(203, 161, 53, 0.2);
}

.selected-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.selected-item:last-child {
    border-bottom: none;
}

.remove-btn {
    background: none;
    border: none;
    color: var(--burdeos-claro);
    cursor: pointer;
    padding: 5px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.remove-btn:hover {
    background-color: var(--burdeos-claro);
    color: white;
}

.cake-total {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--dorado);
    text-align: center;
    margin: 1rem 0;
}

.default-message {
    color: var(--crema);
    opacity: 0.7;
    font-style: italic;
}
.cake-layer.real-image {
    background-size: cover;
    background-position: center;
    border: 2px solid var(--dorado);
}

.admin-container {
    background-color: var(--gris-oscuro);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid rgba(203, 161, 53, 0.2);
}

.admin-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.table-dark {
    background-color: var(--negro);
}

.action-btn {
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 5px;
}

.edit-btn {
    background-color: var(--dorado);
    color: var(--negro);
}

.delete-btn {
    background-color: var(--burdeos-claro);
    color: white;
}

.status-btn {
    background-color: #28a745;
    color: white;
}

.status-btn.inactive {
    background-color: #6c757d;
}

.image-preview {
    max-width: 100px;
    max-height: 100px;
    margin-top: 10px;
    border-radius: 5px;
    border: 1px solid var(--dorado);
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 10px;
    max-height: 200px;
    overflow-y: auto;
    padding: 10px;
    background-color: var(--negro);
    border-radius: 5px;
}

.gallery-image {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.gallery-image:hover {
    border-color: var(--dorado);
    transform: scale(1.05);
}

.gallery-image.selected {
    border-color: var(--burdeos);
}

.upload-btn {
    background-color: var(--burdeos);
    color: var(--crema);
    border: none;
}

.upload-btn:hover {
    background-color: var(--burdeos-claro);
    color: var(--crema);
}
/* ========================================================================= */
/* === 13. ESTILOS DEL PASTEL ANIMADO (PERSONALIZADOR) === */
/* ========================================================================= */

.cake-visual {
    transform: scale(0.9); /* Ajuste de tamaño para que quepa bien */
}

.birthday-cake {
    position: relative;
    width: 250px;
    height: 200px;
    margin: auto;
}

.birthday-cake .plate {
    width: 270px;
    height: 110px;
    position: absolute;
    bottom: -10px;
    left: -10px;
    background-color: #ccc;
    border-radius: 50%;
    box-shadow: 0 2px 0 #b3b3b3, 0 4px 0 #b3b3b3, 0 5px 40px rgba(0, 0, 0, 0.5);
}

.birthday-cake .cake {
    position: absolute;
    bottom: 40px;
    left: 25px;
    width: 200px;
    height: 100px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 0px var(--dorado);
}

.cake .layer {
    position: absolute;
    width: 100%;
    height: 25px; /* Altura de cada capa de pan o relleno */
    background-color: var(--layer-color, #e0c9a6);
    box-shadow: 0 2px 0px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease;
}

.birthday-cake .icing {
    position: absolute;
    bottom: 90px;
    left: 25px;
    width: 200px;
    height: 50px;
    background-color: var(--icing-color, #f0e4d0);
    border-radius: 50% / 20px;
    z-index: 10;
}

.icing .drip {
    position: absolute;
    width: 20px;
    height: 30px;
    background-color: var(--icing-color, #f0e4d0);
    border-radius: 0 0 50% 50%;
}

.drip1 { top: 30px; left: 15px; }
.drip2 { top: 40px; left: 50px; height: 20px; }
.drip3 { top: 35px; left: 100px; }
.drip4 { top: 45px; left: 140px; height: 25px; }
.drip5 { top: 30px; right: 15px; }

.candle {
    position: absolute;
    bottom: 140px;
    left: 115px;
    width: 20px;
    height: 50px;
    background: repeating-linear-gradient(45deg, #f9f9f9, #f9f9f9 5px, #f0b8d3 5px, #f0b8d3 10px);
    border-radius: 2px;
    z-index: 11;
}

.candle .flame {
    position: absolute;
    top: -20px;
    left: 2px;
    width: 15px;
    height: 30px;
    background-color: #ffc107;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: flicker 1s ease-in-out infinite;
}

@keyframes flicker {
    0%, 100% { transform: scaleY(1); opacity: 1; }
    50% { transform: scaleY(0.95) scaleX(1.05); opacity: 0.8; }
}