/* Estilos generales */
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    width: 100%;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #f8e1e7, #e9d5dc);
    color: #5a4a4a;
}

h1, h2 {
    color: #c97b8b;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

p {
    color: #7a6a6a;
}

/* VIDEO */
.video-background {
    position: relative;
    width: 100%;
    height: 100vh;
    max-height: 900px;
    overflow: hidden;
    background: #f3e4e8;
}

.video-background .video-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    filter: brightness(0.9) contrast(1.05);
}

@media (max-width: 768px) {
    .video-background {
        height: 100vh;
    }
}

/* Sección de cards */
.cards-section {
    padding: 50px 20px 70px;
    background: rgba(255, 255, 255, 0.5);
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}

/* Cards de categorías - CON EFECTO DE BRILLO VISIBLE */
.card {
    max-width: 280px;
    width: 100%;
    position: relative;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    border-radius: 18px;
    padding: 25px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 8px 20px rgba(201, 123, 139, 0.15);
    border: 1px solid rgba(201, 123, 139, 0.2);
    overflow: hidden;
}

/* Efecto de brillo - AHORA CON Z-INDEX MÁS ALTO PARA SER VISIBLE */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.9),
        transparent
    );
    transition: left 0.6s ease;
    z-index: 10; /* MÁS ALTO QUE EL LINK */
    pointer-events: none; /* PARA QUE NO BLOQUEE EL CLICK */
}

.card:hover::before {
    left: 100%;
}

.card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 
        0 15px 35px rgba(201, 123, 139, 0.3),
        0 0 25px rgba(201, 123, 139, 0.25);
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(201, 123, 139, 0.5);
}

.card-icon {
    width: 75px;
    height: 75px;
    margin-bottom: 15px;
    transition: transform 0.4s ease, filter 0.4s ease;
    filter: drop-shadow(0 0 8px rgba(201, 123, 139, 0.3));
}

.card:hover .card-icon {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 0 20px rgba(201, 123, 139, 0.6));
}

.card h3 {
    font-size: 1.2rem;
    color: #c97b8b;
    margin: 0;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.card:hover h3 {
    color: #b85c74;
    text-shadow: 0 0 15px rgba(201, 123, 139, 0.5);
}

.card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    position: relative;
    z-index: 5; /* MENOR QUE EL BRILLO ::before */
}

/* Responsive */
@media (max-width: 768px) {
    .cards-container {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 480px) {
    .cards-container {
        grid-template-columns: 1fr;
    }
}

/* Productos */
.productos-promocion {
    padding: 60px 20px;
    background: linear-gradient(to bottom, #f8e1e7, #e9d5dc);
    position: relative;
}

.productos-promocion h2 {
    text-align: center;
    font-size: 2.3rem;
    margin-bottom: 40px;
    color: #c97b8b;
    text-shadow: 0 0 15px rgba(201, 123, 139, 0.3);
}

.container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 0 10px;
}

.container .card-body {
    padding: 20px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 0 0 18px 18px;
    border: 1px solid rgba(201, 123, 139, 0.15);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.container .card-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.9),
        transparent
    );
    transition: left 0.6s ease;
    z-index: 10;
    pointer-events: none;
}

.container .card-body:hover::before {
    left: 100%;
}

.container .card-body:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 
        0 10px 30px rgba(201, 123, 139, 0.25),
        0 0 20px rgba(201, 123, 139, 0.2);
    border-color: rgba(201, 123, 139, 0.4);
}

.card-img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 18px 18px 0 0;
    transition: filter 0.3s ease, transform 0.3s ease;
}

.container .card:hover .card-img {
    filter: brightness(1.1);
    transform: scale(1.02);
}

.card-title {
    font-size: 1.4rem;
    color: #c97b8b;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.container .card-body:hover .card-title {
    text-shadow: 0 0 15px rgba(201, 123, 139, 0.4);
}

.card-description {
    text-align: center;
    color: #7a6a6a;
    position: relative;
    z-index: 2;
}

.card-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #b85c74;
    text-align: center;
    text-shadow: 0 0 10px rgba(184, 92, 116, 0.4);
    position: relative;
    z-index: 2;
}

.card-category {
    text-align: center;
    color: #aaa;
    position: relative;
    z-index: 2;
}

/* BOTÓN con brillo */
.btn {
    background: linear-gradient(45deg, #d9a5b3, #c97b8b);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.4s ease;
    margin-top: 15px;
    width: 100%;
    max-width: 250px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(201, 123, 139, 0.3);
    z-index: 2;
}

.btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20px;
    height: 200%;
    background: rgba(255, 255, 255, 0.5);
    transform: rotate(25deg);
    transition: left 0.5s ease;
}

.btn:hover::after {
    left: 120%;
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    background: linear-gradient(45deg, #c97b8b, #b85c74);
    box-shadow: 
        0 8px 25px rgba(201, 123, 139, 0.5),
        0 0 20px rgba(201, 123, 139, 0.3);
}

/* Botón sonido */
.sound-button {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.6);
    color: #c97b8b;
    border: 1px solid rgba(201, 123, 139, 0.3);
    border-radius: 50px;
    padding: 10px 15px;
    backdrop-filter: blur(6px);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.sound-button:hover {
    background: #c97b8b;
    color: white;
    box-shadow: 0 0 20px rgba(201, 123, 139, 0.6);
    transform: scale(1.1);
}

/* Bienvenida */
.bienvenida {
    display: flex;
    justify-content: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.3);
    margin: 40px 0;
}

.card-bienvenida {
    position: relative;
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    background: linear-gradient(135deg, rgba(243, 214, 222, 0.9), rgba(233, 195, 207, 0.9));
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(201, 123, 139, 0.2);
    box-shadow: 0 8px 25px rgba(201, 123, 139, 0.2);
    overflow: hidden;
}

.card-bienvenida::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.9),
        transparent
    );
    transition: left 0.7s ease;
    z-index: 10;
    pointer-events: none;
}

.card-bienvenida:hover::before {
    left: 100%;
}

.card-bienvenida:hover {
    transform: scale(1.03);
    box-shadow: 
        0 15px 40px rgba(201, 123, 139, 0.35),
        0 0 30px rgba(201, 123, 139, 0.3);
    border-color: rgba(201, 123, 139, 0.5);
}

.card-bienvenida h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #c97b8b;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.card-bienvenida:hover h1 {
    text-shadow: 0 0 20px rgba(201, 123, 139, 0.5);
}

.card-bienvenida h2 {
    font-size: 1.8rem;
    margin: 12px 0;
    color: #b85c74;
    position: relative;
    z-index: 2;
}

.card-bienvenida h3 {
    font-size: 1.2rem;
    margin: 8px 0;
    color: #a86c7c;
    position: relative;
    z-index: 2;
}

.card-bienvenida a {
    display: inline-flex;
    align-items: center;
    color: #25D366;
    font-weight: bold;
    margin-top: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.card-bienvenida a:hover {
    transform: scale(1.1);
    color: #1ebc57;
    text-shadow: 0 0 15px rgba(37, 211, 102, 0.6);
}

.whatsapp-icon {
    width: 50px;
    height: 50px;
    margin-right: 10px;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.card-bienvenida a:hover .whatsapp-icon {
    transform: scale(1.2) rotate(10deg);
    filter: drop-shadow(0 0 15px rgba(37, 211, 102, 0.7));
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    .card-img {
        height: 220px;
    }
}