/* ================== SLIDER PRINCIPAL ================== */
.slider-principal {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #ebebeb;
}

.slider-contenedor {
    display: flex;
    width: 100%;
}

.slide {
    min-width: 100%;
    display: flex;
    justify-content: center;
}

.slide img {
    width: 100%;
    height: auto;
    aspect-ratio: 21 / 7; 
    object-fit: cover;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #ffffff;
    color: var(--color-primario);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.2s ease;
}

.slider-principal:hover .slider-btn { opacity: 1; }
.slider-btn:hover { transform: translateY(-50%) scale(1.1); }
.slider-prev { left: 20px; }
.slider-next { right: 20px; }

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.activo {
    background-color: #ffffff;
    transform: scale(1.3);
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* ================== SECCIONES GLOBALES DE INICIO ================== */
.seccion-categorias, .seccion-productos {
    padding: 60px 5%;
}

/* ================== GRILLA DE CATEGORÍAS ================== */
.grid-categorias {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); 
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.card-categoria {
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    padding: 30px 15px;
    text-align: center;
    border-radius: 12px;
    color: var(--texto);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.03);
}

.card-categoria i {
    font-size: 2.8rem;
    color: var(--color-primario);
    transition: transform 0.3s ease, color 0.3s ease;
}

.card-categoria span {
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-categoria:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.1);
    border-color: var(--color-acento);
}

.card-categoria:hover i {
    color: var(--color-acento);
    transform: scale(1.15);
}

/* ================== BANNER DE INVITACIONES ================== */
.banner-invitaciones {
    background: linear-gradient(rgba(9, 5, 0, 0.5), rgba(9, 5, 70, 0.8)), url('../img/banner1.webp') center center/cover no-repeat;
    color: white;
    text-align: center;
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.banner-contenido {
    max-width: 800px;
    animation: fadeInUp 1.2s ease-out;
}

.banner-contenido h3 {
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
    color: #e0e0e0;
}

.banner-contenido h2 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 4px 10px rgba(0,0,0,0.6);
    line-height: 1.1;
}

.banner-contenido p {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #f4f4f4;
}

.banner-contenido .etiquetas-banner {
    font-weight: 800;
    color: #ffd620;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ================== BANNERS PROMOCIONALES ================== */
.seccion-promocional {
    padding: 80px 5%;
    background-color: #f2f2f2;
    display: flex;
    justify-content: center;
}

.promo-contenedor {
    display: flex;
    align-items: center;
    max-width: 1100px;
    width: 100%;
}

.promo-imagen {
    width: 60%;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.promo-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.promo-texto {
    width: 45%;
    background-color: #ffffff;
    padding: 60px 50px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 2;
    margin-left: -80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.promo-texto h3 {
    font-size: 0.9rem;
    color: var(--color-acento);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.promo-texto h2 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--color-primario);
    margin-bottom: 20px;
    line-height: 1.1;
}

.promo-texto p {
    font-size: 1.1rem;
    color: #444;
    line-height: 1.6;
    margin-bottom: 30px;
}

.btn-promo-whatsapp {
    display: inline-block;
    align-self: flex-start; 
    padding: 15px 40px;
    border: 2px solid var(--color-primario);
    color: var(--color-primario);
    background-color: transparent;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-promo-whatsapp:hover {
    background-color: var(--color-primario); 
    color: #ffffff;
}

.promo-invertido { flex-direction: row-reverse; }
.promo-invertido .promo-texto { margin-left: 0; margin-right: -80px; }

/* ================== TARJETAS DE PRODUCTOS (WOOCOMMERCE) ================== */
.grid-productos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); 
    gap: 20px; 
    max-width: 1200px;
    margin: 0 auto;
}

.producto-card {
    border: 1px solid #000; 
    padding: 10px 20px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.producto-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.producto-card img { 
    width: 100%; 
    height: auto;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    display: block;
    margin-bottom: 15px;
    cursor: zoom-in; 
    transition: transform 0.3s ease;
}

.info-producto {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-grow: 1; 
    text-decoration: none;
    color: inherit;
}

.producto-card h4 { 
    font-size: 1.1rem; 
    font-weight: 600;
    color: var(--texto);
    margin-bottom: 15px; 
    text-align: center;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 45px; 
}

.precio { 
    font-weight: 800; 
    font-size: 1.3rem; 
    color: var(--color-primario);
    margin-bottom: 20px; 
}

.btn-comprar {
    background-color: var(--color-primario);
    color: white;
    padding: 12px 25px;
    width: 100%;
    border-radius: 5px;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s;
}

.info-producto:hover .btn-comprar { background-color: #333; }

/* ================== MEDIA QUERIES (ESPECÍFICOS DE INICIO) ================== */
@media (max-width: 768px) {
    /* Ajustes Slider */
    .slide img { aspect-ratio: 16 / 9; }
    .slider-btn { display: none; }
    .slider-dots { bottom: 10px; }
    .dot { width: 8px; height: 8px; }

    /* Ajustes Categorías (3 por fila en móvil) */
    .grid-categorias {
        grid-template-columns: repeat(3, 1fr) !important; 
        gap: 10px; 
    }
    .card-categoria { padding: 15px 5px; gap: 8px; border-radius: 8px; }
    .card-categoria i { font-size: 1.8rem; }
    .card-categoria span { font-size: 0.7rem; letter-spacing: 0; }

    /* Ajustes Banners Promocionales */
    .promo-contenedor { flex-direction: column-reverse; align-items: center; }
    .promo-texto {
        width: 90%;
        margin-left: 0;
        margin-bottom: -50px;
        padding: 40px 30px;
        text-align: left; 
    }
    .promo-invertido .promo-texto { margin-right: 0; }
    .promo-imagen { width: 100%; }
    .promo-texto h2 { font-size: 2.2rem; }
    .btn-promo-whatsapp { align-self: stretch; text-align: center; }

    /* Ajustes Banner Invitaciones */
    .banner-contenido h2 { font-size: 2rem; }

    /* Ajustes Tarjetas de Productos */
    .grid-productos { grid-template-columns: repeat(2, 1fr) !important; gap: 15px; }
    .producto-card { padding: 15px 10px; }
    .producto-card h4 { font-size: 0.95rem; height: 38px; }
    .precio { font-size: 1.1rem; }
    .btn-comprar { font-size: 0.8rem; padding: 10px 15px; }
}