
/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 50%, #1a1a1a 100%);
    color: var(--white);
    padding: 8rem 0 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 215, 0, 0.08) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(212,175,55,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary-color);
    margin-bottom: 1rem;
    animation: fadeIn 1.5s ease-out;
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--white) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    line-height: 1.8;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

.hero-buttons .btn-primary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.hero-buttons .btn-primary svg {
    transition: transform 0.3s;
}

.hero-buttons .btn-primary:hover svg {
    transform: translateX(5px);
}

.btn-secondary-hero {
    padding: 1rem 2.5rem;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    background: transparent;
    color: var(--white);
}

.btn-secondary-hero:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

.hero-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.floating-perfume {
    position: absolute;
    font-size: 3rem;
    opacity: 0.15;
    animation: float 6s ease-in-out infinite;
}

.floating-perfume:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-perfume:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.floating-perfume:nth-child(3) {
    bottom: 20%;
    left: 15%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

/* Popular Products Section */
.popular-products {
    padding: 6rem 0;
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.75rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 800;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-top: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05), rgba(255, 215, 0, 0.05));
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 1;
    pointer-events: none;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.2);
    border-color: var(--primary-color);
}

.product-card:hover::before {
    opacity: 1;
}

.product-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.6s;
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

.product-info {
    padding: 1.75rem;
    position: relative;
    z-index: 2;
}

.product-brand {
    color: var(--primary-color);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

.product-name {
    font-size: 1.35rem;
    margin: 0.75rem 0;
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.4;
}

.product-category {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--secondary-color);
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.75rem;
    margin: 0.5rem 0;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.product-description {
    color: var(--text-light);
    font-size: 0.875rem;
    margin: 0.5rem 0;
    line-height: 1.5;
}

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

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.btn-add-cart {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--secondary-color);
    padding: 0.75rem 1.75rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-add-cart::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-add-cart:hover::before {
    width: 300px;
    height: 300px;
}

.btn-add-cart:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.btn-add-cart:disabled {
    background: var(--text-light);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* View All Button */
.view-all-container {
    text-align: center;
    margin-top: 4rem;
}

.btn-view-all {
    display: inline-block;
    padding: 1rem 3rem;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.125rem;
    transition: all 0.3s;
}

.btn-view-all:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 5rem 0 4rem;
        min-height: 500px;
    }

    .hero-content h2 {
        font-size: 2.25rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn-primary,
    .btn-secondary-hero {
        width: 100%;
        max-width: 300px;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* Footer Justificado */
.footer-grid {
    text-align: left;
}

.footer-about,
.footer-contact,
.footer-social {
    text-align: left;
}

/* =========================
   CARRUSEL Y RESPONSIVE
   (añadir al final de index.css)
   ========================= */

/* Wrapper general del carrusel */
.carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 2rem 0;
}

/* Contenedor horizontal de productos */
.carousel-products {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.3s ease;
    scroll-behavior: smooth;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1rem;
    /* Para permitir foco teclado */
    outline: none;
}

/* Ocultar scrollbar en webkit */
.carousel-products::-webkit-scrollbar {
    display: none;
}

/* product-card mantiene tu estilo; forzamos tamaño mínimo para carrusel */
.carousel-products .product-card {
    min-width: 320px; /* default desktop card width in carousel */
    max-width: 320px;
    flex: 0 0 auto;
}

/* Ajustes visuales de los botones laterales */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.6rem;
    color: var(--primary-color);
    background: rgba(255,255,255,0.95);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    border: none;
    transition: transform .18s ease, background .18s ease, color .18s ease;
}

.carousel-nav:hover {
    transform: translateY(-50%) scale(1.06);
    background: var(--primary-color);
    color: #fff;
}

.carousel-nav.prev {
    left: 8px;
}

.carousel-nav.next {
    right: 8px;
}

/* Botones responsivos: ocultar en pantallas pequeñas si quieres (opcional) */
/* @media (max-width: 480px) {
    .carousel-nav { display: none; }
} */

/* ---------- RESPONSIVE: CELULAR (mostrar 2 por fila) ---------- */
@media (max-width: 768px) {
    .carousel-products {
        gap: 1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Mostrar 2 por vista: cada card ocupa 50% menos gaps */
    .carousel-products .product-card {
        min-width: calc(50% - 0.75rem);
        max-width: calc(50% - 0.75rem);
    }

    .product-image {
        height: 220px; /* ajusta si quieres imágenes más cortas en móvil */
    }
}

/* Para pantallas muy pequeñas: mostrar ~1.2 tarjetas (peeking) */
@media (max-width: 480px) {
    .carousel-products .product-card {
        min-width: 70%;
        max-width: 70%;
    }

    .product-image {
        height: 200px;
    }
}

/* Accesibilidad: alto contraste focus */
.carousel-products .product-card:focus-within,
.carousel-products .product-card:hover {
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

/* Ajuste suave del tamaño de los Product Cards */
.product-card {
    transform: scale(0.92); /* Reduce tamaño global del card */
    transform-origin: center;
}

/* Cuando el card haga hover en PC, no se verá demasiado grande */
.product-card:hover {
    transform: scale(0.97);
}

/* En pantallas pequeñas los cards serán un poquito más pequeños */
@media (max-width: 768px) {
    .product-card {
        transform: scale(0.88);
    }
}

.btn-primary span {
    display: inline-block;
    width: 100%;
    text-align: center;
}
