/* Variables de color */
:root {
    --bg-color: #F5F2EE;
    --text-main: #4A443F;
    --accent-gold: #C5A059;
    --white: #ffffff;
    --transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* Puedes cambiar 'Raleway' por 'Montserrat' si quieres que sea la fuente principal */
    font-family: 'Montserrat', sans-serif; 
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
}

/* Navegación */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 8%;
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 241, 225, 0.98); /* Color crema Mavera */
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}
/* Agrupa el logo y el texto horizontalmente */
.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 15px; /* Espacio exacto entre imagen y texto */
}

.logo-miniatura {
    width: 45px;
    height: 45px;
    object-fit: contain;
    border-radius: 50%;
}

.logo-text {
    /* Cambiamos Playfair Display por Montserrat */
    font-family: 'Montserrat', sans-serif; 
    font-size: 1.4rem;
    font-weight: 500; /* Un peso medio se parece más */
    letter-spacing: 3px; /* Aumentamos el espaciado */
    text-transform: uppercase; /* Aseguramos mayúsculas */
    color: #4A443F;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-family: 'Montserrat', sans-serif; /* Usamos la nueva fuente */
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px; /* Espaciado para los enlaces */
    font-weight: 500;
}

.btn-cita {
    background-color: var(--text-main);
    background-color: rgba(255, 241, 225, 0.98);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 50px;
    transition: 0.3s;
}
.btn-golden-glow, .nav-button {
    position: relative;
    padding: 12px 25px;
    font-family: 'Raleway', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    color: #4A443F;
    background: #ffeeee;
    border: 1px solid #C5A059; /* Dorado */
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Efecto rebote suave */
    display: inline-block;
}

/* Efecto de Brillo Movible */
.btn-golden-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg, 
        transparent, 
        rgba(255, 255, 255, 0.6), 
        rgba(197, 160, 89, 0.4), 
        transparent
    );
    transition: all 0.7s;
}

/* HOVER: Levantar y Brillar */
.btn-golden-glow:hover {
    transform: translateY(-5px); /* Se levanta */
    background-color: #C5A059;
    color: white !important;
    box-shadow: 0 8px 20px rgba(197, 160, 89, 0.4);
}

.btn-golden-glow:hover::before {
    left: 150%; /* El brillo cruza */
}

/* Enlaces simples del menú (Inicio, Catálogo...) */
.nav-item {
    text-decoration: none;
    color: #4A443F;
    font-family: 'Raleway', sans-serif;
    font-size: 0.9rem;
    transition: 0.3s;
    position: relative;
}

.nav-item:hover {
    color: #C5A059;
    transform: translateY(-2px);
    display: inline-block;
}

/* Espaciado para el contenido de abajo */
body {
    padding-top: 45px;
}


/* Sección Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 10%;
    position: relative;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
}

h1 {
    font-family: 'Montserrat', sans-serif; /* Usamos la nueva fuente */
    font-size: 3.5rem; /* Ajustamos un poco el tamaño */
    line-height: 1.2;
    margin-bottom: 20px;
    text-transform: uppercase; /* Mayúsculas para el título */
    letter-spacing: 3px; /* Espaciado generoso */
    font-weight: 500;
}

h1 span {
    color: #C5A059;
}

p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Animaciones de subida */
.reveal-text {
    animation: fadeInUp 1.2s forwards;
    opacity: 0;
}

.reveal-text-delayed {
    animation: fadeInUp 1.2s forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Botones */
.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn-primary {
    background-color: var(--accent-gold);
    color: white;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 2px;
}

.btn-secondary {
    border: 1px solid var(--text-main);
    color: var(--text-main);
    padding: 15px 35px;
    text-decoration: none;
}

/* Decoración con el Logo */
.logo-decoration {
    position: absolute;
    right: 5%;
    width: 40%;
    display: flex;
    justify-content: center;
    opacity: 0.8;
}

.floating-logo {
    width: 100%;
    max-width: 550px;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}
/* Carrusel de Productos */
.products-carousel {
    padding: 80px 10%;
    
    background-color: var(--white);
}

/* Carrusel de Productos - Título Actualizado */
.carousel-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    color: var(--text-main);
    margin-bottom: 40px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 500;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.product-card {
    min-width: calc(33.33% - 20px);
    margin: 10px;
    background: var(--bg-color);
    padding: 20px;
    border-radius: 4px;
    text-align: center;
    flex-shrink: 0;
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #e2ddd6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    font-weight: bold;
    margin-bottom: 15px;
    border: 1px dashed var(--accent-gold);
}

.product-info h4 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 10px;
}

/* Flechas con transparencia */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--text-main);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0; /* Transparente por defecto */
    transition: opacity 0.5s ease;
    z-index: 10;
}

.carousel-container:hover .nav-btn {
    opacity: 0.7; /* Se vuelven semi-visibles al hacer hover */
}

.nav-btn:hover {
    opacity: 1 !important;
    background: var(--accent-gold);
}

.prev { left: 20px; }
.next { right: 20px; }

/* Responsive móvil */
@media (max-width: 768px) {
    .product-card {
        min-width: calc(100% - 20px);
    }
}

/* Contenedor de la imagen para asegurar el cuadrado */
/* Contenedor de la imagen con el nuevo marco */
.product-image-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    margin-bottom: 15px;
    background-color: #e2ddd6; /* Color de fondo si no hay imagen */
    border-radius: 4px;
    border: 5px solid #896e47; /* Tu marco negro */
    box-sizing: border-box;
    display: flex; /* Añadido para centrar texto si no hay imagen */
    align-items: center;
    justify-content: center;
}

/* Asegúrate de que la imagen ocupe todo el espacio interno */
.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Eliminamos o comentamos el viejo image-placeholder */
.image-placeholder {
    display: none; 
}

/* Botón Principal con Brillo Dorado */
.btn-golden-glow {
    position: relative;
    padding: 15px 35px;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    color: #4A443F; /* Color de texto oscuro inicial */
    background: #E5DED4; /* Fondo beige suave inicial */
    border: 1px solid var(--accent-gold);
    border-radius: 4px;
    overflow: hidden; /* Importante para que el brillo no se salga */
    transition: all 0.4s ease; /* Transición para el levantamiento */
    display: inline-block;
    z-index: 1;
}

/* El efecto de brillo dorado que se mueve */
.btn-golden-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%; /* Empieza fuera del botón */
    width: 100%;
    height: 100%;
    /* Gradiente dorado metálico animado */
    background: linear-gradient(
        120deg, 
        transparent, 
        rgba(197, 160, 89, 0.2), 
        rgba(255, 223, 145, 0.8), 
        rgba(197, 160, 89, 0.2), 
        transparent
    );
    transition: all 0.6s;
    z-index: -1;
}

/* Estado Hover (Mouse sobre el botón) */
.btn-golden-glow:hover {
    color: #fff; /* El texto cambia a blanco */
    transform: translateY(-8px); /* El botón se levanta */
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.3); /* Sombra dorada suave */
    background-color: var(--accent-gold); /* El fondo se vuelve dorado */
}

.btn-golden-glow:hover::before {
    left: 100%; /* El brillo cruza todo el botón de lado a lado */
    transition: all 0.6s ease;
}

/* Versión Secundaria (Borde Dorado) */
.btn-secondary-glow {
    position: relative;
    padding: 15px 35px;
    font-family: 'Raleway', sans-serif;
    text-decoration: none;
    color: var(--text-main);
    border: 1px solid var(--text-main);
    transition: all 0.4s ease;
}

.btn-secondary-glow:hover {
    transform: translateY(-8px);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}


/* Solo el nombre de la marca en dorado */
h1 span.nombre-marca {
    color: var(--accent-gold); /* Usa el color #C5A059 definido en tus variables */
}

/* El eslogan y el párrafo de abajo en el color oscuro principal */
h1 span.eslogan-principal, 
.reveal-text-delayed {
    color: var(--text-main); /* Usa el color #4A443F definido en tus variables */
}

/* Estilo adicional para el párrafo para que se vea limpio */
p.reveal-text-delayed {
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.6;
    font-family: 'Raleway', sans-serif;
}

/* Estilos del Footer */
.main-footer {
    background-color: #000000; /* Fondo negro solicitado */
    color: #ffffff; /* Texto blanco solicitado */
    padding: 60px 8% 20px;
    font-family: 'Montserrat', sans-serif; /* Usando la fuente limpia */
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-col h3 {
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 25px;
    font-weight: 600;
    text-transform: uppercase;
}

.footer-logo {
    font-size: 1.2rem !important;
    letter-spacing: 4px !important;
}

.footer-col p {
    font-size: 0.85rem;
    line-height: 1.8;
    color: #cccccc; /* Gris claro para párrafos para mejor lectura */
    margin-bottom: 10px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--accent-gold); /* Toque dorado al pasar el mouse */
}

.contact-info {
    display: block;
    margin-top: 5px;
}

.social-icons {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    font-weight: bold;
}

/* Línea final de copyright */
.footer-bottom {
    border-top: 1px solid #333333;
    padding-top: 20px;
    text-align: center;
    font-size: 0.75rem;
    color: #888888;
}

/* Ajuste para móviles */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
    }
}

/* Estilos para los iconos de redes sociales */
.social-icons {
    margin-top: 20px;
    display: flex;
    gap: 20px; /* Espacio entre los iconos */
}

.social-icons a {
    text-decoration: none;
    color: #ffffff; /* Iconos blancos por defecto */
    font-size: 1.5rem; /* Tamaño de los iconos */
    transition: all 0.3s ease; /* Transición suave para el hover */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%; /* Opcional: para un fondo circular al pasar el mouse */
    background-color: rgba(255, 255, 255, 0.1); /* Fondo sutil */
}

/* Efecto al pasar el mouse (Hover) */
.social-icons a:hover {
    color: var(--accent-gold); /* El icono se vuelve dorado */
    background-color: rgba(197, 160, 89, 0.2); /* Fondo dorado translúcido */
    transform: translateY(-3px); /* Pequeño efecto de elevación */
}


/* Iconos de Usuario y Carrito en el Navbar */
.user-login-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    margin-left: 12px;
    /* Transición suave para el movimiento de levante */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}

.user-icon {
    /* Tamaño aumentado para mayor visibilidad */
    font-size: 1.8rem; 
    color: var(--text-main);
    /* Transición para el cambio de color a dorado */
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* EFECTO HOVER: Se levantan y cambian a dorado */
.user-login-link:hover {
    transform: translateY(-6px); /* Elevación clara al pasar el mouse */
}

.user-login-link:hover .user-icon {
    color: var(--accent-gold); /* Cambio al color dorado de la marca */
    /* Pequeño resplandor dorado para que resalten más */
    text-shadow: 0 0 10px rgba(197, 160, 89, 0.3); 
}

/* Ajuste para que el badge del carrito no se desfase al mover el icono */
#cart-badge {
    transition: background-color 0.3s ease;
    /* Aseguramos que el badge siga al icono en el movimiento */
}

/* Definición de la animación de levantamiento */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* Clase que aplicaremos a los elementos */
.reveal {
    opacity: 0; /* Invisible al inicio */
    animation: fadeInUp 0.8s cubic-bezier(0.2, 1, 0.3, 1) forwards;
}

/* Retrasos para que no todo salga al mismo tiempo (efecto cascada) */
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }