/* ------------------------- */
/* PALETA DE COLORES */
:root {
    --primary: #ef52af;     /* Rosado */
    --secondary: #fff0f8;   /* Suave */
    --accent: #ffd55f;      /* Dorado */
}

/* ------------------------- */
/* GLOBAL */
* {
    box-sizing: border-box;
}

body {
    background-color: var(--secondary);
    color: var(--primary);
    font-family: 'Raleway', sans-serif;
    margin: 0;
    padding: 0;
    position: relative;
}

/* ------------------------- */
/* NAVBAR FIJA CON ALTURA EXACTA */
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    height: 80px;               /* Altura fija escritorio */
    z-index: 9999;
    background-color: var(--secondary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;        /* Centrado vertical */
    justify-content: space-between;
    padding: 0 20px;            /* Solo horizontal */
    overflow: visible;           /* Evita que contenido agrande navbar */
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Sombra al hacer scroll */
.navbar.scrolled {
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* LOGO */
.navbar-brand .logo {
    height: 60px;               /* Ajusta altura dentro del navbar */
    max-height: 100%;
    width: auto;
    display: block;
}

/* LINKS DEL NAVBAR */
.navbar-nav {
    display: flex;
    align-items: center;        /* Centrado vertical */
    margin: 0;
    padding: 0;
    list-style: none;
}

.navbar-nav li {
    margin-left: 20px;
}

.navbar-nav li a {
    display: block;
    padding: 0;                 /* Sin padding vertical */
    line-height: 1;             /* Evita agrandar navbar */
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        height: 60px;
    }
    .navbar-brand .logo {
        height: 45px;
    }
}

/* ------------------------- */
/* MAIN CONTENT */
.main-content {
    margin-top: 80px; /* Igual que altura navbar escritorio */
    padding: 20px 0;
}

@media (max-width: 768px) {
    .main-content {
        margin-top: 60px; /* Igual que altura navbar móvil */
    }
}

/* ------------------------- */
/* HERO */
.hero {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    padding: 80px 20px;
    text-align: center;
}

/* ------------------------- */
/* SECCIONES */
.section {
    padding: 60px 20px;
    text-align: center;
}

.section {
    padding: 20px 20px 60px 20px; /* menos espacio arriba */
}

/* ------------------------- */
/* BOTONES DE FILTRO POR CATEGORÍA */
.category-filter .btn {
    background-color: var(--primary) !important; /* Rosado SIEMPRE */
    color: #ffffff !important;
    font-weight: 600;
    margin: 5px 5px;
    border: none !important;
    border-radius: 5px;
    padding: 8px 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

/* Hover (sigue rosado) */
.category-filter .btn:hover {
    background-color: #d94498 !important;
    color: #ffffff !important;
}

/* SOLO el botón activo */
.category-filter .btn.active {
    background-color: var(--accent) !important; /* Dorado */
    color: var(--primary) !important; /* Texto rosado */
    box-shadow: 0 0 12px rgba(255, 213, 95, 0.8);
}




/* ------------------------- */
/* TIPOGRAFÍA POR COLOR */
.text-pink {
    color: var(--primary);
    font-weight: 700;
}

.text-pink-italic {
    color: var(--primary);
    font-weight: 700;
    font-style: italic;
}

.text-gold {
    color: var(--accent);
    font-weight: 400;
}

.text-gold-italic {
    color: var(--accent);
    font-weight: 400;
    font-style: italic;
}

/* ------------------------- */
/* PRODUCT CARDS */
.product-card {
    background: var(--secondary);
    padding: 15px;
    border-radius: 20px;
    text-align: center;
    overflow: hidden;
    transition: 0.3s;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
}

.product-card img {
    border-radius: 15px;
    transition: all 0.3s ease-in-out;
}

/* PRODUCT INFO */
.product-info p {
    color: #000000;
    font-weight: 400;
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.product-price {
    color: var(--accent) !important;
    font-weight: 800 !important;
    font-size: 2rem !important;
    margin: 0.5rem 0;
}

@media (max-width: 768px) {
    .product-price {
        font-size: 1.5rem !important;
    }
}

/* Botón Agregar al carrito */
.btn-cart {
    background-color: var(--primary);
    color: #ffffff;
    font-weight: 700;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    transition: 0.3s;
}

.btn-cart:hover {
    background-color: var(--accent);
    color: var(--secondary);
    cursor: pointer;
}

/* ------------------------- */
/* TÍTULOS DE SECCIÓN */
.section-title {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
}

/* ------------------------- */
/* PAGINACIÓN */
.pagination .page-link {
    color: var(--primary);
    font-weight: 700;
}

.pagination .page-item.active .page-link {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* ------------------------- */
/* FOOTER */
.footer {
    background-color: var(--secondary);
    padding: 20px;
}

/* ------------------------- */


@media (max-width: 768px) {
    body::before {
        height: 60px;           /* Igual que navbar móvil */
    }
}


/* ------------------------- */
/* FIX MENU MOBILE */
@media (max-width: 991px) {

    .navbar-collapse {
        position: absolute;
        top: 60px; /* altura del navbar en mobile */
        left: 0;
        width: 100%;
        background-color: rgba(255, 240, 248, 0.95);
	backdrop-filter: blur(10px);
        padding: 15px 0;
        box-shadow: 0 8px 16px rgba(0,0,0,0.15);
        z-index: 9998;
    }

    .navbar-nav {
        flex-direction: column;
        align-items: center; /* centra los items */
    }

    .navbar-nav li {
        margin: 10px 0;
    }

}




/* TODO LO QUE SIGUE AQUI ES PARA EL INDEX*/
/* HERO VIDEO */
.hero-video {
    position: relative;
    height: 90vh;
    overflow: hidden;
}

.hero-video video {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.35);
    padding: 0 20px;
}

/* BOTONES */
.btn-glow {
    background-color: var(--accent);
    color: #000;
    font-weight: 700;
    padding: 12px 25px;
    border-radius: 30px;
    transition: 0.3s;
}

.btn-glow:hover {
    background-color: var(--primary);
    color: #fff;
}

/* BENEFICIOS */
.benefit-card {
    border-radius: 20px;
    transition: transform 0.3s;
}

.benefit-card:hover {
    transform: translateY(-10px);
}

/* PRODUCTOS */
.section-products {
    background-color: #fdf0f8;
}

.product-card {
    border-radius: 20px;
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-8px);
}

/* TESTIMONIOS */
.testimonial-card {
    border-radius: 15px;
    background: #fff;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-8px);
}

/* CTA FINAL */
.cta-final {
    background-color: var(--primary);
    color: #fff;
}

.cta-final .btn-glow {
    background-color: var(--accent);
}


/* HERO VIDEO */
.hero-video {
    position: relative;
    height: 80vh;
    overflow: hidden;
}

.hero-video video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 20px;
}

/* BOTON HERO */
.btn-glow {
    background-color: var(--accent);
    color: var(--primary);
    font-weight: 700;
    padding: 12px 30px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn-glow:hover {
    background-color: var(--primary);
    color: var(--secondary);
    transform: scale(1.05);
}

/* PRODUCTOS DESTACADOS */
.section-products .product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section-products .product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* VIDEO TUTORIAL Y TESTIMONIOS */
.section-tutorial iframe,
.testimonial-video-card iframe {
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

/* TESTIMONIOS */
.testimonial-video-card h6 {
    font-weight: 600;
    text-align: center;
    margin-top: 0.5rem;
}

/* CTA FINAL */
.section-cta .btn-glow {
    font-size: 1.25rem;
    padding: 15px 40px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero-video {
        height: 60vh;
    }
    .hero-overlay h1 {
        font-size: 2rem;
    }
}

/* Cambiar dorado a negro solo en index */
.index-page .text-gold {
    color: #000;
}

.index-page .text-gold-italic {
    color: #000;
}


/* Cambiar dorado a negro solo en index, excepto el héroe */
.index-page .text-gold {
    color: #000;
}

/* Excepción: texto destacado del hero sigue dorado */
.index-page .hero-highlight {
    color: var(--accent);
}


/* BOTÓN DE WHATSAPP FLOTANTE */
.whatsapp-float {
    position: fixed;
    right: 10px;       /* distancia desde el borde izquierdo */
    bottom: 20px;     /* distancia desde el borde inferior */
    width: 60px;
    height: 60px;
    background-color: #25D366; /* verde WhatsApp */
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}


/* ------------------------- */
/* BOTÓN LIMPIAR CARRITO */
.btn-limpiar-carrito {
    background-color: var(--primary); /* Rosado */
    color: white; /* Texto blanco */
    font-weight: 400;
    font-size: 0.7rem; /* Tamaño de fuente más pequeño */
    padding: 5px 12px;
    border-radius: 5px;
    width: 100%;
    border: none; /* Sin borde */
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-limpiar-carrito:hover {
    background-color: #ffd55f; /* Color rosado más oscuro para hover */
    cursor: pointer;
    color: #000;
}


/* ------------------------- */
/* ESTILO DETALLE CARRITO (MINI CARRITO) */
#mini-cart {
    background-color: var(--secondary); /* Fondo suave de la paleta */
    color: var(--primary); /* Texto rosado */
}

#mini-cart p {
    color: var(--primary); /* Aseguramos que el texto sea rosado */
}

/* ------------------------- */
/* BOTÓN DETALLE CARRITO */
#mini-cart button {
    background-color: var(--primary); /* Rosado para el botón */
    color: white; /* Texto blanco */
    font-weight: 600;
    padding: 10px 15px;
    border-radius: 5px;
    border: none;
    width: 100%;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

#mini-cart button:hover {
    background-color: #d94498; /* Rosado más oscuro para hover */
    cursor: pointer;
}

/* ------------------------- */
/* TOTAL CARRITO */
#total-carrito {
    font-weight: 700;
    color: var(--primary); /* Rosado para el total */
}

/* ------------------------- */
/* PRODUCTOS EN EL CARRITO */
.cart-items {
    margin-bottom: 15px;
}

.cart-items .cart-item {
    background-color: var(--secondary); /* Fondo suave */
    color: var(--primary); /* Texto rosado */
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.cart-items .cart-item:hover {
    background-color: #f5d2e1; /* Fondo más suave al pasar el mouse */
}


/* ------------------------- */
/* BOTÓN "Ver Carrito" en el Footer */
footer .btn-custom {
    background-color: var(--primary) !important; /* Fondo rosado */
    color: white !important; /* Texto blanco */
    font-weight: 600; /* Negrita */
    padding: 12px 20px; /* Ajustamos el padding para hacerlo más grande */
    border: none; /* Sin borde */
    border-radius: 5px; /* Bordes redondeados */
    text-align: center; /* Aseguramos que el texto esté centrado */
    display: inline-block; /* Para que se comporte como un botón */
    width: auto; /* Permitimos que el ancho sea flexible */
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer; /* Cambia el cursor a mano al pasar por encima */
}

/* Efecto hover para el botón "Ver carrito" */
footer .btn-custom:hover {
    background-color: #d94498 !important; /* Color rosado más oscuro para hover */
    transform: scale(1.05); /* Efecto de aumento al hacer hover */
}