/* ==========================================================================
   Banner Carrusel Interactivo
   ========================================================================== */
.tacta-carousel-container {
    position: relative;
    width: 100%;
    height: 400px;
    /* Reducido de 500px */
    overflow: hidden;
    border-radius: 0 0 40px 40px;
    /* Curva más suave */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    /* Menos espacio de separación */
    background-color: var(--tacta-bg-cream);
}

.tacta-carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.tacta-slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.slide-overlay {
    background: rgba(0, 0, 0, 0.45);
    padding: 30px 40px;
    /* Más compacto */
    border-radius: 20px;
    text-align: center;
    color: white;
    max-width: 65%;
    backdrop-filter: blur(3px);
}

.slide-overlay h1 {
    font-size: 2.8rem;
    /* Letra ajustada */
    margin-bottom: 10px;
    font-weight: 800;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.slide-overlay p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.btn-primary {
    display: inline-block;
    background-color: var(--tacta-yellow-border);
    color: var(--text-dark);
    padding: 12px 25px;
    /* Botón menos aparatoso */
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    margin-top: 10px;
    transition: transform 0.2s;
}

.btn-primary:hover {
    transform: scale(1.05);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    color: var(--tacta-blue);
    border: none;
    width: 40px;
    /* Flechas más sutiles */
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: white;
    color: var(--tacta-red);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
    background: white;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
    transform: scale(1.2);
}

/* ==========================================================================
   Secciones y Tarjetas de Productos
   ========================================================================== */
.section-title {
    color: var(--tacta-blue);
    font-size: 1.8rem;
    /* Refinado */
    margin-bottom: 20px;
    border-left: 5px solid var(--tacta-orange);
    padding-left: 12px;
}

.product-section {
    padding: 30px 5% 10px;
    /* Menos padding vertical */
}

.product-grid {
    display: grid;
    /* Reducimos mínimo a 220px para que las tarjetas no se estiren tanto */
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    /* Menos espacio entre tarjetas */
}

.product-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 15px;
    /* Menos padding interno */
    border: 2px solid transparent;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--tacta-green);
}

.product-img-real {
    width: 100%;
    height: 190px;
    /* Reducido drásticamente de 250px */
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 15px;
    background-color: var(--tacta-bg-cream);
}

.product-card h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    text-align: center;
}

.product-desc {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 10px;
    text-align: center;
    line-height: 1.4;
}

.price {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.btn-secondary {
    background-color: var(--tacta-bg-cream);
    color: var(--tacta-blue);
    border: 2px solid transparent;
    padding: 10px 20px;
    /* Botón más compacto */
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.3s ease;
    margin-top: auto;
    width: 100%;
    cursor: pointer;
    text-align: center;
}

.btn-secondary:hover {
    background-color: var(--tacta-blue);
    color: white;
    box-shadow: 0 6px 15px rgba(42, 75, 124, 0.2);
}

/* ==========================================================================
   Diferenciación Visual: Sección "Los Favoritos"
   ========================================================================== */
.favorites-section {
    background-color: var(--tacta-bg-cream);
    border-radius: 30px;
    padding: 40px 5% !important;
    /* Reducido de 60px */
    margin: 30px 2% 40px !important;
    /* Más cerca de Novedades */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(232, 185, 75, 0.15);
}

.favorites-section .section-title {
    text-align: center;
    border-left: none;
    padding-left: 0;
    margin-bottom: 30px;
    font-size: 2rem;
}

.favorites-section .section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--tacta-orange);
    margin: 12px auto 0;
    border-radius: 5px;
}

/* ==========================================================================
   Secciones Apiladas de Inicio
   ========================================================================== */
.centered-title {
    text-align: center;
    border-left: none;
    padding-left: 0;
    margin-bottom: 30px;
}

.centered-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--tacta-orange);
    margin: 12px auto 0;
    border-radius: 5px;
}

.news-section-wrapper {
    background-color: #F4F4F4;
    padding: 50px 5% 60px;
    /* Reducido */
    border-radius: 40px 40px 0 0;
    margin-top: 10px;
}

.news-card-horizontal {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 850px;
    /* Más angosto para no verse gigante en PC */
    margin: 0 auto;
    display: flex;
    flex-direction: row;
}

.news-card-horizontal:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--tacta-yellow-border);
}

.news-img {
    width: 40%;
    min-height: 250px;
    /* Reducido de 300px */
    background-color: var(--tacta-bg-cream);
    background-size: cover;
    background-position: center;
}

.news-content {
    width: 60%;
    padding: 30px;
    /* Reducido de 40px */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.news-tag {
    display: inline-block;
    background-color: var(--tacta-yellow-border);
    color: #333;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 12px;
    border-radius: 15px;
    margin-bottom: 12px;
}

.news-content h3 {
    font-size: 1.4rem;
    /* Reducido */
    color: var(--tacta-blue);
    margin-bottom: 12px;
    line-height: 1.3;
}

.news-content p {
    color: #555;
    line-height: 1.5;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.btn-text-arrow {
    display: inline-flex;
    align-items: center;
    color: var(--tacta-red);
    font-weight: bold;
    text-decoration: none;
    transition: gap 0.3s ease, color 0.3s ease;
    gap: 5px;
}

.btn-text-arrow:hover {
    gap: 12px;
    color: var(--tacta-pink);
}

.instagram-section-wrapper {
    background: linear-gradient(135deg, var(--tacta-pink) 0%, var(--tacta-red) 100%);
    padding: 60px 5%;
    /* Reducido de 80px */
    border-radius: 40px 40px 0 0;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.05);
    margin-top: -20px;
    position: relative;
    z-index: 2;
}

.instagram-container {
    max-width: 1200px;
    margin: 0 auto;
}

.white-title {
    color: white !important;
}

.white-title::after {
    background-color: white !important;
}

.instagram-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.ig-dynamic-feed {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 15px;
    backdrop-filter: blur(5px);
}

/* ==========================================================================
   Adaptación estricta para Celulares
   ========================================================================== */
@media (max-width: 992px) {
    .tacta-carousel-container {
        height: 350px;
        border-radius: 0 0 25px 25px;
        margin-bottom: 25px;
    }

    .slide-overlay {
        max-width: 90%;
        padding: 20px;
    }

    .slide-overlay h1 {
        font-size: 2rem;
    }

    .slide-overlay p {
        font-size: 0.95rem;
        margin-bottom: 15px;
    }

    /* Grilla de productos para móvil: forzamos que entren bien */
    .product-grid {
        gap: 15px;
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    .product-card {
        padding: 12px;
    }

    .product-img-real {
        height: 160px;
        /* Imágenes más chicas en celular */
        margin-bottom: 10px;
    }

    .btn-secondary {
        font-size: 0.85rem;
        padding: 8px 10px;
    }

    /* Favoritos móvil */
    .favorites-section {
        padding: 30px 5% !important;
        margin: 20px 0 !important;
        border-radius: 20px;
    }

    /* Noticias móvil */
    .news-card-horizontal {
        flex-direction: column;
    }

    .news-img {
        width: 100%;
        min-height: 200px;
    }

    .news-content {
        width: 100%;
        padding: 20px;
    }

    .instagram-section-wrapper {
        padding: 40px 5%;
    }
}