/* tienda/assets/css/style.css */
html {
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f2f5;
    color: var(--color-texto-contenido);
}

header {
    background-color: var(--color-base);
    color: var(--color-texto-layout);
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-img-link {
    display: block;
    line-height: 0;
    margin-right: 15px;
    text-decoration: none;
}

.logo-container img {
    height: 60px;
    width: auto;
    vertical-align: middle;
    transition: transform 0.7s ease-in-out, background-color 0.3s ease-in-out;
    transform-origin: center center;
}

.logo-container img:hover {
    transform: scale(1.5);
    /* Crece la imagen un 10% */

}

.logo-text {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--color-texto-layout);
    white-space: nowrap;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: var(--color-texto-layout);
    text-decoration: none;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

main.container {
    max-width: 1500px;
    margin: 1px auto;
    padding: 1px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.08);
}

h1,
h2 {
    color: var(--color-texto-layout);
    text-align: center;
    margin-bottom: 25px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.hero-section {
    min-height: 60vh;
    background-color: #f0f0f0;
    padding: 60px 0;
    text-align: center;
    color: white;
    background-size: cover;
    background-position: center center;
    display: flex;
    align-items: center;
    justify-content: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Overlay oscuro al 50% de opacidad. Este valor (0.5) es el que usted debe ajustar
       si quiere que la imagen se vea más (baje a 0.4) o menos (suba a 0.6) */
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
    /* Se coloca sobre la imagen de fondo (Capa 1) */
}

.hero-section .hero-content {
    /* El hero-content original está bien, solo re-afirmamos el z-index */
    z-index: 2;
    /* Se coloca sobre el overlay (z-index: 1) (Capa 2) */
    position: relative;
}

/* Definición de la animación para recorrer toda la imagen */
@keyframes fadeInSlideAcrossImage {
    from {
        opacity: 1;
        background-position: 0% center;
    }

    to {
        opacity: 1;
        background-position: 100% center;
    }
}



.hero-content {
    padding: 20px;
    border-radius: 8px;

    opacity: 0;
    animation: fadeIn 1.5s ease-in-out forwards;
    animation-delay: 0.5s;
}

.hero-section h1 {
    font-size: 3em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    color: var(--color-texto-layout);

}

/*----------------------------------------------------------------FOOTER---------------------------------------------------------------------------------------*/
/*----------------------------------------------------------------FOOTER (VERSIÓN MODERNA) ---------------------------------------------------------------------------------------*/
.footer {
    /* Usa el color base del header para fondo y el texto de layout para el texto principal */
    color: var(--color-texto-layout);
    padding: 50px 0 20px 0;
    /* Relleno superior */
    font-size: 0.95rem;
    font-family: var(--font-family-base, sans-serif);
}

.footer .container {
    max-width: 1500px;
    /* Alinea con el resto del layout */
    margin: 0 auto;
}

/* Títulos de sección (ej. Navegación, Ayuda) */
.footer-title-accent {
    color: var(--color-texto-layout) !important;
    text-transform: uppercase;
    font-weight: bold;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
    margin-bottom: 1rem !important;
}

/* Estilo para el Logo en el Footer */
.footer-logo {
    max-width: 150px;
    height: auto;
    transition: filter 0.3s ease;
}

/* Estilo para enlaces (Navegación/Ayuda) */
.footer-link {
    color: var(--color-texto-layout) !important;
    text-decoration: none;
    display: block;
    padding: 3px 0;
    transition: color 0.3s ease, padding-left 0.3s ease;
    font-size: 0.9em;
    font-weight: bold;
}

.footer-link:hover {
    color: var(--color-acento) !important;
    padding-left: 5px;
}

/* --- ESTILOS PARA ÍCONOS DE REDES SOCIALES (USANDO IMÁGENES) --- */

/* Contenedor del enlace (el círculo) */
.social-link-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    /* Usamos el color de acento para el borde por defecto */
    border: 1px solid var(--color-acento);
    border-radius: 50%;

    /* ✅ SOLUCIÓN: SOMBRA BLANCA para Contorno en Fondos Oscuros */
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);

    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    margin-right: 10px;
}

.social-link-icon:hover {
    background-color: var(--color-acento);
    /* Fondo de acento al pasar el mouse */
    transform: scale(1.1);
    /* Desactivar la sombra blanca en hover para que destaque el fondo */
    box-shadow: none;
}

/* Estilo para las IMAGENES dentro del contenedor (el ícono real) */
.social-img-icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;

    /* ✅ ELIMINAMOS COMPLETAMENTE LOS FILTROS DE COLOR */
    filter: none;

    transition: filter 0.3s ease;
}

.social-link-icon:hover .social-img-icon {
    /* ✅ Filtro también eliminado aquí */
    filter: none;
}

.mb-2 {
    color: var(--color-acento);
    font-weight: bold;

}

/* NOTA: Eliminamos las reglas .whatsapp-footer-icon y .whatsapp-footer-icon:hover
   porque ahora usamos la regla general .social-link-icon */


/* Íconos de Contacto (dirección, email, teléfono) - SÍ usan Font Awesome */
.footer .fa-map-marker-alt,
.footer .fa-envelope,
.footer .fa-phone {
    color: var(--color-acento);
    width: 15px;
    text-align: center;
}

.footer hr {
    background-color: var(--color-texto-layout) !important;
    opacity: 0.15;
}

.footer-marca {
    /* Usamos un color oscuro más profundo para diferenciarlo del color base */
    background: var(--color-base) !important;
    color: white;
    /* Aseguramos que el texto dentro sea blanco */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-marca .container {
    max-width: 100%;
    /* Alineación */
    margin: 0 auto;
}

/* Ajuste de color de texto si usamos text-secondary en el HTML */
.footer-marca .text-secondary {
    color: rgba(255, 255, 255, 0.75) !important;
    /* Blanco suave */
}


/*---------------------------------------------------------------- BOTÓN FLOTANTE WHATSAPP (Izquierda) ----*/

.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    right: auto;

    background-color: #25d366;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    display: flex;
    justify-content: center;
    align-items: center;

    /* ✅ SOMBRA BLANCA para el botón flotante (Opcional, pero da contraste) */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5), 0 0 0 4px rgba(255, 255, 255, 0.3);

    z-index: 1000;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-btn:hover {
    background-color: #1da851;
    transform: scale(1.1);
    /* Mantenemos la sombra de profundidad, pero podrías desactivar la blanca */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.6);
}

/* ✅ REGLA ACTUALIZADA para el tamaño de la imagen flotante (sin filtro) */
.whatsapp-icon-img {
    width: 50px;
    height: 50px;
    /* ✅ ELIMINAMOS FILTROS */
    filter: none;
}


/* Media Query para móviles: Ajustamos el botón en pantallas pequeñas */
@media (max-width: 767px) {
    .whatsapp-btn {
        bottom: 15px;
        left: 15px;
        width: 45px;
        height: 45px;
    }

    /* Estilo para la imagen en móvil */
    .whatsapp-icon-img {
        width: 24px;
        height: 24px;
    }
}

/*----------------------------------------------------------------------------- Estilos responsive para el footer ----*/
@media (min-width: 768px) {
    .footer .container {
        flex-direction: row;
        justify-content: space-between;
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .social-links {
        margin-top: 0;
    }
}

/*--------------------------------------------------------------------------------------------------------------------------FIN FOOTER----------------------------*/


/*..............................................................estilos para tarjetas de categorias en index.php..................................................*/

.categorias-section {
    padding: 0px 0;
    background-color: #f8f8f8;
    text-align: center;
    margin-top: 30px;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    /* Importante para posicionar las flechas de navegación de Swiper */
}

.categorias-section h2 {
    font-size: 2.2em;
    color: #333;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.categorias-section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--color-base);
    margin: 10px auto 0;
    border-radius: 5px;
}

/*------------------------------------------------------------------------------------------------------ Contenedor principal de Swiper */
.categorias-swiper {
    width: 100%;
    overflow: hidden;
    /* Asegura que haya suficiente espacio para los slides y la paginación */
    padding-bottom: 40px;
}

/* CRÍTICO: Definir el ancho de cada slide para que 'slidesPerView: auto' funcione */
.categorias-swiper .swiper-slide {
    width: 150px;
    /* Ancho fijo de la tarjeta para que el carrusel sepa qué espacio ocupar */
    height: 200px;
    display: flex;
    /* Asegura que la tarjeta se alinee correctamente */
    justify-content: center;
}

/* AJUSTE CLAVE para el movimiento continuo */
/* Fuerza la transición de Swiper a ser lineal, eliminando el "ease" por defecto */
.swiper-wrapper {
    transition-timing-function: linear !important;
}

/*------------------------------------------------------------------------------------------------- fin categoria-card para Swiper slides */

/* El grid de categorías ya no es un grid, es un swiper-wrapper */
/* Ajustar .categoria-card para Swiper slides */
.categoria-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* AJUSTE CLAVE: Para desktop, usamos 100% del slide (200px) */
    width: 100%;
    height: 50%;
    /* Mantener la altura uniforme */
    margin-top: 40px;

    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    text-decoration: none;
    color: #555;
    background-color: #ffffff;
    box-shadow: 0 2px 2px var(--color-base);
    text-align: center;
    overflow: hidden;

    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out, background-color 0.3s ease-out, border-color 0.3s ease-out;
}

.categoria-card h3 {
    margin: 0;
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
    word-break: break-word;
    /* Evitar que el texto muy largo rompa la altura de la tarjeta */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* Limita a 2 líneas en desktop */
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* EFECTOS HOVER */
.categoria-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    background-color: #ffffff;
    border-color: var(--color-base);
    color: #007bff;
}


/* Contenedor del carrusel */
.categorias-swiper {
    width: 100%;
    overflow: hidden;
    /* Altura mínima si los slides tienen alto variable, o deja que se ajuste automáticamente */
    min-height: 150px;
}

/* Estilos de las flechas de navegación */
.categorias-swiper .swiper-button-next,
.categorias-swiper .swiper-button-prev {
    color: var(--color-base);
    /* Color de las flechas */
    background-color: rgba(255, 255, 255, 0.8);
    /* Fondo semitransparente para que se vean mejor */
    border-radius: 50%;
    /* Flechas redondas */
    width: 40px;
    /* Tamaño de las flechas */
    height: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.categorias-swiper .swiper-button-next:hover,
.categorias-swiper .swiper-button-prev:hover {
    background-color: var(--color-base);
    /* Fondo al pasar el mouse */
    color: #ffffff;
    /* Color de flecha al pasar el mouse */
}

/* Ajustar la posición de las flechas si se superponen con el contenido */
/* Por defecto están a la mitad de la altura del swiper-container */
/* Puedes ajustarlas así si es necesario: */
.categorias-swiper .swiper-button-prev {
    left: 10px;
}

.categorias-swiper .swiper-button-next {
    right: 10px;
}

/* Estilos de los puntos de paginación */
.categorias-swiper .swiper-pagination-bullet {
    background: #ccc;
    /* Color de los puntos inactivos */
    opacity: 1;
    transition: background-color 0.3s ease;
}

.categorias-swiper .swiper-pagination-bullet-active {
    background: #007bff;
    /* Color del punto activo */
}

/* Media Queries para responsividad (ajusta si es necesario) */
@media (max-width: 768px) {
    /* ... (Estilos previos de media query) ... */

    .categorias-section {
        padding: 30px 0;
    }

    .categorias-section h2 {
        font-size: 1.8em;
    }

    /* AJUSTE CLAVE: Ancho y altura fijos para la consistencia en el slide */
    .categorias-swiper .swiper-slide {
        width: 130px;
        /* Ancho fijo para móvil */
        height: 130px;
        /* Altura fija para móvil */
    }

    .categoria-card {
        width: 100%;
        /* ¡CLAVE! Asegura que la tarjeta ocupe EXACTAMENTE los 150px */
        height: 50%;
        /* Asegura que la tarjeta ocupe EXACTAMENTE los 120px */
        padding: 10px;
    }

    .categoria-card h3 {
        font-size: 1em;
        line-height: 1.2;
        /* Limitar a 3 líneas para evitar desborde en la altura fija de 120px */
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
    }

    /* Ocultar flechas en móviles */
    .categorias-swiper .swiper-button-next,
    .categorias-swiper .swiper-button-prev {
        display: none;
    }
}

@media (max-width: 480px) {

    /* ... (Estilos previos de media query) ... */
    .categorias-section {
        padding: 20px 0;
    }

    .categorias-section h2 {
        font-size: 1.6em;
    }

    /* AJUSTE CLAVE: Reducir aún más el ancho y altura de la slide en móviles muy pequeños */
    .categorias-swiper .swiper-slide {
        width: 130px;
        /* Ancho fijo para móvil */
        height: 150px;
        /* Altura fija */
    }

    .categoria-card {
        width: 100%;
        /* ¡CLAVE! Asegura que la tarjeta ocupe EXACTAMENTE los 130px */
        height: 50%;
        /* Asegura que la tarjeta ocupe EXACTAMENTE los 100px */
        padding: 10px;
    }

    .categoria-card h3 {
        font-size: 0.95em;
        line-height: 1.1;
        /* Limitar a 3 líneas para evitar desborde en la altura fija de 100px */
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
    }
}


/*..............................................................estilos para tarjetas de categorias en index.php FIN..................................................*/



.productos-destacados,
.novedades-section {
    padding: 40px 0;
    text-align: center;
    background-color: #f0f0f0;
}

.productos-destacados h2,
.novedades-section h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #333;
}


/* Estilos de filtros y búsqueda */
.filtros-busqueda {
    margin-bottom: 2rem;
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-filtros {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    width: 100%;
}

.form-filtros input[type="text"],
.form-filtros select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    flex-grow: 1;
    min-width: 180px;
    box-sizing: border-box;
}

.form-filtros .btn {
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
}

.form-filtros .btn-primary {
    background-color: var(--color-base);
    color: var(--color-texto-layout);
    border: 1px solid var(--color-base);
}

.form-filtros .btn-primary:hover {
    background-color: var(--color-acento);
    border-color: var(--color-acento);
}

.form-filtros .btn-secondary {
    background-color: #6c757d;
    color: #fff;
    border: 1px solid #6c757d;
}

.form-filtros .btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

/*.........................................................................este grid es de productos.php................................................................*/
.grid-productos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    justify-content: center;
}

/*.........................................................................este grid es de index.php................................................................*/
.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/*.........................................................................Estilos para Producto CARD................................................................*/
.producto-card {
    position: relative;
    border: none;
    border-radius: 16px;
    background-color: #fff;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 480px;
    overflow: hidden;
    margin-bottom: 20px;
}

.producto-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.producto-img-container {
    position: relative;
    height: 60%;
    width: 100%;
    overflow: hidden;
}

.producto-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.producto-card:hover .producto-img-container img {
    transform: scale(1.1);
}

.producto-precio-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--color-base);
    color: var(--color-texto-layout, #fff);
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.producto-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: left;
}

.producto-card h3 {
    font-size: 1.25em;
    margin: 0 0 8px 0;
    color: #333;
    font-weight: 700;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 3rem;
}

.producto-card p {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8rem;
}

.producto-card .btn {
    margin-top: auto;
    display: block;
    width: 100%;
    text-align: center;
    background-color: var(--color-base);
    color: var(--color-texto-layout, #fff);
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: filter 0.3s ease;
}

.producto-card .btn:hover {
    filter: brightness(110%);
}

/*.........................................................................FIN Estilos para producto producto-card....-............................................................*/
/*------------------------------------------------------------- Estilos necesarios para la funcionalidad de Zoom/Lupa------------------------------------------------------------- */
/* CSS Mínimo para el efecto Lupa Moderno */

/* 1. Contenedor principal del zoom */
.detalle-imagen {
    /* CRÍTICO: Debe tener overflow: hidden para recortar la imagen al hacer scale(1.5) */
    overflow: hidden;
    position: relative;
    /* Base de posicionamiento */
    cursor: zoom-in;
    /* Indicamos al usuario que es interactiva */
    /* Limita el tamaño del contenedor si fuera necesario, aunque ya lo hace .detalle-imagen */
}

/* 2. El enlace envuelve la imagen, le quitamos el cursor */
.detalle-imagen a {
    cursor: inherit;
    /* Hereda el cursor del padre */
}

/* 3. La imagen real: aplican las transiciones */
.detalle-img-principal {
    transition: transform 0.3s ease;
    /* HACE EL ZOOM SUAVE */
    /* Asegura que la imagen no tenga un comportamiento extraño en móviles */
    touch-action: manipulation;
    /* Asegurar que la imagen ocupe el espacio */
    width: 100%;
    height: auto;
}

/*------------------------------------------------------------- FIN Estilos necesarios para la funcionalidad de Zoom------------------------------------------------------------- */
@media (max-width: 992px) {

    /* Ocultar en dispositivos más pequeños si el zoom no es práctico */
    .img-zoom-result {
        display: none !important;
    }
}

.btn {
    display: inline-block;
    background-color: var(--color-acento);
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    margin-bottom: 0px;
    box-sizing: border-box;
}

.btn:hover {
    background-color: var(--color-base);
}

.producto-acciones {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    width: 100%;
}

.producto-acciones .btn {
    width: 100%;
    margin-bottom: 0;
}

/* Estilos de paginación */
.paginacion {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    gap: 10px;
    padding: 15px;
    background-color: #f0f0f0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.paginacion .btn-paginacion {
    padding: 8px 15px;
    border: 1px solid var(--color-base);
    border-radius: 5px;
    background-color: #fff;
    color: var(--color-base);
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.paginacion .btn-paginacion:hover {
    background-color: var(--color-acento);
    color: var(--color-texto-layout);
    border-color: var(--color-acento);
}

.paginacion .btn-paginacion.active {
    background-color: var(--color-base);
    color: var(--color-texto-layout);
    border-color: var(--color-base);
    font-weight: bold;
    cursor: default;
}

/* Estilos para la sección de contacto */
.info-contacto {
    margin-bottom: 40px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.info-contacto h2 {
    color: var(--color-acento);
    border-bottom: 2px solid var(--color-acento);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.info-contacto p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.info-contacto a {
    color: var(--color-acento);
    text-decoration: none;
}

.info-contacto a:hover {
    text-decoration: underline;
}

/* Estilos para el mapa responsive */
.mapa-ubicacion {
    margin-bottom: 40px;
}

.mapa-ubicacion h2 {
    color: var(--color-acento);
    border-bottom: 2px solid var(--color-acento);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.mapa-responsive {
    position: relative;
    padding-bottom: 56.25%;
    /* Relación de aspecto 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background-color: #e0e0e0;
}

.mapa-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


.hamburger-button {
    display: none;
    /* Oculto por defecto, visible solo en móviles */
}

/* Estilos para la página del carrito de cotización */
.mensaje-carrito-vacio {
    text-align: center;
    padding: 50px 20px;
    background-color: #f8f8f8;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.mensaje-carrito-vacio p {
    font-size: 1.2em;
    color: #555;
    margin-bottom: 20px;
}

.tabla-carrito {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

.tabla-carrito table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.tabla-carrito th,
.tabla-carrito td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.tabla-carrito thead th {
    background-color: var(--color-base);
    color: var(--color-texto-layout);
    font-weight: bold;
    text-transform: uppercase;
}

.tabla-carrito tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.tabla-carrito tbody tr:hover {
    background-color: #f1f1f1;
}

.producto-info {
    display: flex;
    align-items: center;
}

.producto-info img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-right: 15px;
    border-radius: 4px;
    border: 1px solid #eee;
}

.cantidad-input {
    width: 70px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-align: center;
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Ocultar flechas en input type="number" para Chrome, Safari, Edge */
.cantidad-input::-webkit-outer-spin-button,
.cantidad-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

.btn-eliminar {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-eliminar:hover {
    background-color: #c82333;
}

.tabla-carrito tfoot td {
    font-weight: bold;
    border-top: 2px solid var(--color-acento);
    padding-top: 15px;
}

.tabla-carrito tfoot .total-label {
    text-align: right;
    font-size: 1.1em;
}

.tabla-carrito tfoot .total-valor {
    font-size: 1.2em;
    color: var(--color-acento);
}


/* Estilos para el formulario de cotización */
.form-cotizacion {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.form-cotizacion h2 {
    text-align: center;
    color: var(--color-acento);
    margin-bottom: 25px;
    border-bottom: 2px solid var(--color-acento);
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"] {
    width: calc(100% - 20px);
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
}

.btn-enviar-cotizacion {
    display: block;
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
    background-color: var(--color-acento);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-enviar-cotizacion:hover {
    background-color: var(--color-base);
}

/* --- Estilos para la página detalle-producto.php --- */
.detalle-producto {
    padding: 30px;
}

.detalle-producto h1 {
    text-align: center;
    color: var(--color-base);
    margin-bottom: 30px;
    font-size: 2.5em;
    border-bottom: 2px solid var(--color-acento);
    padding-bottom: 10px;
}

.detalle-contenido {
    display: flex;
    flex-direction: column;
    /* Por defecto apilados en móvil */
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
}

.detalle-imagen {
    flex: 1;
    max-width: 450px;
    width: 100%;
    text-align: center;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.detalle-imagen img {
    max-width: 100%;
    height: auto;
    max-height: 300px;
    /* Tamaño ajustado para la imagen del producto */
    object-fit: contain;
    border-radius: 8px;
}

.detalle-info {
    flex: 2;
    width: 100%;
    padding: 20px;
    background-color: #fcfcfc;
    border: 1px solid #e9e9e9;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.detalle-precio {
    font-size: 2em;
    font-weight: bold;
    color: var(--color-acento);
    margin-bottom: 20px;
    text-align: left;
}

.detalle-descripcion h3 {
    font-size: 1.4em;
    color: var(--color-base);
    margin-bottom: 10px;
    text-align: left;
}

.detalle-descripcion p {
    font-size: 1.1em;
    line-height: 1.6;
    color: #444;
    margin-bottom: 25px;
    text-align: left;
}

.cantidad-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    text-align: left;
}

.cantidad-selector label {
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
}

.input-cantidad {
    width: 80px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1.1em;
    text-align: center;
    -moz-appearance: textfield;
    appearance: textfield;
}

.input-cantidad::-webkit-outer-spin-button,
.input-cantidad::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

.btn-cotizar {
    width: 100%;
    padding: 15px 20px;
    font-size: 1.2em;
    background-color: var(--color-acento);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-cotizar:hover {
    background-color: var(--color-base);
}

.detalle-producto .btn-secondary {
    display: inline-block;
    margin-top: 20px;
}


/* Estilos para notificaciones flotantes (Toast/Snackbar-like) */
.floating-alert-container {
    position: fixed;
    top: 60px;
    right: 20px;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 350px;
}

.alert-float {
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 1;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    transform: translateX(0);
}

.alert-float.alert-success {
    background-color: #28a745;
}

.alert-float.alert-danger {
    background-color: #dc3545;
}

.alert-float.alert-warning {
    background-color: #ffc107;
    color: #333;
}

.alert-float.alert-info {
    background-color: #17a2b8;
}

.alert-float .close-btn-float {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2em;
    cursor: pointer;
    margin-left: 15px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.alert-float.alert-warning .close-btn-float {
    color: #333;
}

.alert-float .close-btn-float:hover {
    opacity: 1;
}

.alert-float.hide {
    opacity: 0;
    transform: translateX(100%);
}

@media (min-width: 769px) {

    /* Cambiado a 769px para evitar conflictos con 768px */
    .detalle-contenido {
        flex-direction: row;
        /* En pantallas más grandes, uno al lado del otro */
        align-items: flex-start;
        /* Alinea los elementos al inicio (arriba) */
    }

    /* Asegurar que la tabla y su pie vuelvan a la normalidad en desktop */
    .tabla-carrito thead {
        display: table-header-group;
        /* Muestra el encabezado de la tabla en desktop */
    }

    .tabla-carrito tbody tr {
        display: table-row;
        /* Vuelve a ser una fila de tabla normal */
        margin-bottom: 0;
        border: none;
        box-shadow: none;
        padding: 0;
    }

    .tabla-carrito td {
        display: table-cell;
        /* Vuelve a ser una celda de tabla normal */
        padding: 12px 15px;
        text-align: left;
        border-bottom: 1px solid #e0e0e0;
    }

    .tabla-carrito td::before {
        display: none;
        /* Oculta las etiquetas que solo son para móvil */
    }

    .tabla-carrito tfoot td {
        /* Restaura el comportamiento normal del footer en desktop */
        display: table-cell;
    }

    .tabla-carrito tfoot .total-label {
        text-align: right;
        font-size: 1.1em;
    }

    .tabla-carrito tfoot .total-valor {
        font-size: 1.2em;
        color: var(--color-acento);
    }

    .producto-info {
        width: auto;
        /* Autoajusta el ancho en desktop */
    }
}

/*--------------------------------------------------------- Responsividad general y ajustes específicos para móvil -------------------------------------------------------*/
/*--------------------------------------------------------- Responsividad general y ajustes específicos para móvil -------------------------------------------------------*/
/*--------------------------------------------------------- Responsividad general y ajustes específicos para móvil -------------------------------------------------------*/
/*--------------------------------------------------------- Responsividad general y ajustes específicos para móvil -------------------------------------------------------*/
/*--------------------------------------------------------- Responsividad general y ajustes específicos para móvil -------------------------------------------------------*/
/*--------------------------------------------------------- Responsividad general y ajustes específicos para móvil -------------------------------------------------------*/
/*--------------------------------------------------------- Responsividad general y ajustes específicos para móvil -------------------------------------------------------*/
/*--------------------------------------------------------- Responsividad general y ajustes específicos para móvil -------------------------------------------------------*/
/*--------------------------------------------------------- Responsividad general y ajustes específicos para móvil -------------------------------------------------------*/
@media (max-width: 768px) {
    .logo-container {
        height: 50px;
        width: auto;
        vertical-align: middle;
    }

    .logo-container img {
        height: 50px;
        width: auto;
        vertical-align: middle;
    }

    .floating-alert-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: unset;
    }

    .alert-float {
        padding: 10px 15px;
        font-size: 0.9em;
    }

    .hero-section {
        background-position: 0% center;
        animation: fadeInSlideAcrossImage 7s linear forwards;
    }

    .hero-section h1 {
        font-size: 1.9em;

    }

    nav {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
    }

    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--color-base);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        padding: 10px 0;
        z-index: 999;
        margin-top: 0;
        transition: all 0.3s ease-in-out;
    }

    nav ul.show {
        display: flex;
    }

    nav ul li {
        margin: 0.5rem 0;
        width: 100%;
        text-align: center;
    }

    nav ul li a {
        padding: 10px 0;
        display: block;
    }

    nav ul li a:hover {
        background-color: rgba(255, 255, 255, 0.3);
    }

    .filtros-busqueda {
        justify-content: center;
    }

    .form-filtros {
        flex-direction: column;
    }

    .form-filtros input[type="text"],
    .form-filtros select,
    .form-filtros .btn {
        width: 90%;
        min-width: unset;
    }

    .logo-container {
        width: 100%;
        justify-content: center;
        margin-bottom: 10px;
    }

    .logo-text {
        display: none;
        /* Oculta el nombre de la empresa en móviles si solo se quiere el logo */
    }

    .hamburger-button {
        display: block;
        /* Muestra el botón de hamburguesa en móvil */
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        font-size: 2em;
        color: var(--color-texto-layout);
        cursor: pointer;
        z-index: 1002;
        padding: 5px;
    }

    /* Reglas para tablas responsivas en móvil: solo ocultar encabezados y ajustar celdas */
    .tabla-carrito table {
        /* No necesitamos min-width aquí para móvil, lo manejamos con overflow-x en el contenedor */
        min-width: auto;
        /* Permite que la tabla se encoja */
    }

    .tabla-carrito thead {
        display: none;
        /* Oculta el encabezado de la tabla en móvil */
    }

    .tabla-carrito tbody tr {
        margin-bottom: 15px;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
        padding: 10px;
        display: block;
        /* Asegura que cada fila ocupe todo el ancho y se apile */
    }

    .tabla-carrito td {
        display: flex;
        /* Permite alinear etiqueta y valor */
        justify-content: space-between;
        /* Distribuye espacio entre contenido y etiqueta */
        align-items: center;
        padding: 8px 0;
        /* Espaciado más compacto dentro de cada "fila" móvil */
        border-bottom: 1px dashed #eee;
        /* Línea divisoria suave */
    }

    .tabla-carrito td:last-child {
        border-bottom: none;
        /* No hay borde en la última celda de cada fila móvil */
    }

    .tabla-carrito td::before {
        content: attr(data-label);
        font-weight: bold;
        color: #555;
        margin-right: 10px;
        /* Espacio entre etiqueta y valor */
    }

    /* Ocultar etiquetas para el total en el pie de tabla */
    .tabla-carrito tfoot .total-label::before {
        display: none;
        /* Oculta la etiqueta "Total de la Cotización:" en móvil */
    }

    .tabla-carrito tfoot td.total-label {
        padding-right: 0;
        /* Ajusta el padding para que no empuje el valor */
        text-align: left;
        /* Alinea el "Total de la Cotización:" a la izquierda */
        width: auto;
        /* Permite que el contenido determine el ancho */
    }

    .tabla-carrito tfoot .total-valor {
        text-align: right;
        /* Alinea el valor del total a la derecha */
        width: auto;
        /* Permite que el contenido determine el ancho */
    }

    .producto-info {
        flex-direction: row;
        /* Vuelve a poner la imagen y el nombre en línea en la celda del producto */
        justify-content: flex-start;
        width: 100%;
        /* Asegura que ocupe el ancho completo */
    }

    .producto-info img {
        margin-right: 10px;
        margin-left: 0;
        width: 50px;
        height: 50px;
    }

    .cantidad-input {
        width: 60px;
        /* Tamaño más pequeño para el input de cantidad en móvil */
        text-align: center;
    }
}

/* .........................................................................
   INSTAGRAM PREMIUM CARD (PORTED FROM TIENDA)
   ......................................................................... */
.ig-card-premium {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.ig-card-header {
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.ig-logo {
    width: 32px;
    height: 32px;
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

.ig-user-info {
    display: flex;
    flex-direction: column;
}

.ig-username {
    font-weight: 700;
    font-size: 0.9rem;
    color: #262626;
}

.ig-media-anchor {
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    max-height: 60vh;
    background: #fcfcfc;
}

.ig-media-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.ig-media-container img,
.ig-media-container video {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.ig-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #fff;
}

.ig-media-anchor:hover .ig-overlay {
    opacity: 1;
}

.ig-card-body {
    padding: 12px 15px;
    background: #fff;
}

.ig-caption {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Contenedor Global del Feed --- */
.quienes-somos-ig {
    flex: 1 1 450px;
    order: 2;
    max-width: 600px;
    padding: 10px;
    width: 100%;
}

@media (max-width: 768px) {
    .ig-media-anchor {
        max-height: 40vh;
    }

    .quienes-somos-ig {
        max-width: 100%;
        padding: 0;
    }
}

/* =========================================================================
   SISTEMA DE TARJETAS PREMIUM (PORTED FROM MICELIOTIENDA)
   Aislado con prefijo sc-
   ========================================================================= */
.sc-card {
    position: relative;
    background: #ffffff;
    border: none !important;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sc-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.sc-img-container {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background-color: #f8f9fa;
}

.sc-card img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.5s ease;
    border-radius: 0 !important;
    display: block;
}

.sc-card:hover img {
    transform: scale(1.04);
}

.sc-btn-cart {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 45px !important;
    height: 45px !important;
    min-width: 45px !important;
    min-height: 45px !important;
    background: white !important;
    border: none !important;
    border-radius: 50% !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--color-base) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12) !important;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sc-btn-cart:hover {
    transform: scale(1.15);
    background: var(--color-base) !important;
    color: white !important;
}

.sc-info-body {
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: white;
}

.sc-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
}

.sc-title {
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    color: #2d3436 !important;
    margin: 0 !important;
    text-align: left !important;
    line-height: 1.3 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sc-price-badge {
    background: var(--color-base);
    color: white;
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.sc-desc {
    margin-top: 5px;
    font-size: 0.85rem !important;
    color: #636e72 !important;
    text-align: left !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.sc-actions {
    padding: 15px 20px;
    border-top: 1px solid #f1f2f6;
    display: flex;
    gap: 10px;
    background: white;
}

.sc-btn-details {
    flex-grow: 1;
    text-align: center;
    padding: 10px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    border: 1px solid var(--color-base) !important;
    background: var(--color-base) !important;
    color: white !important;
    border-radius: 10px !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}

/* =========================================================================
   INSTAGRAM PREMIUM FEED (PARIDAD TOTAL)
   ========================================================================= */
.ig-feed-swiper .swiper-button-next,
.ig-feed-swiper .swiper-button-prev {
    color: white;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    z-index: 10;
}

.ig-feed-swiper .swiper-button-next::after,
.ig-feed-swiper .swiper-button-prev::after {
    font-size: 1.2rem;
}

.ig-type-indicator {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    z-index: 5;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* =========================================================================
   SOCIAL HERO SECTION (ESTILO CENTRALIZADO)
   ========================================================================= */
.social-hero-section {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 600px;
    background-color: #2c3e50;
    color: white;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.social-hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.social-hero-content {
    z-index: 2;
    position: relative;
}

.social-hero-links {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.social-hero-links .social-icon {
    width: 60px;
    height: 60px;
    filter: invert(1);
}

@media (max-width: 768px) {
    .social-hero-section {
        height: 300px;
    }

    .social-hero-links .social-icon {
        width: 45px;
        height: 45px;
    }
}

/* =========================================================================
   REFINAMIENTOS DE PARIDAD (ICONOS FLOTANTES Y DETALLES IG)
   ========================================================================= */
@keyframes floating {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.social-hero-links a {
    display: block;
    transition: transform 0.3s ease;
    border-radius: 50%;
    animation: floating 3s ease-in-out infinite;
}

.social-hero-links a:nth-child(1) {
    animation-delay: 0s;
}

.social-hero-links a:nth-child(2) {
    animation-delay: 0.5s;
}

.social-hero-links a:nth-child(3) {
    animation-delay: 1s;
}

.social-hero-links a:hover {
    transform: translateY(-8px) scale(1.1);
    animation-play-state: paused;
    /* Opcional: pausar al hacer hover */
}

/* --- Refinamientos Instagram Card --- */
.ig-card-body {
    padding: 12px 15px;
    background: #fff;
}

.ig-caption {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ig-media-anchor:hover .ig-overlay {
    opacity: 1;
}

.ig-media-anchor:hover img,
.ig-media-anchor:hover video {
    transform: scale(1.05);
}

.ig-overlay i {
    font-size: 2rem;
}

/* =========================================================================
   PARIDAD 100% - REFINAMIENTOS FINALES
   ========================================================================= */

/* 1. Animaciones de Flotación (Social Hero) */
@keyframes floating {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.social-hero-links a {
    display: block !important;
    transition: transform 0.3s ease !important;
    border-radius: 50% !important;
    animation: floating 3s ease-in-out infinite !important;
}

.social-hero-links a:nth-child(1) {
    animation-delay: 0s !important;
}

.social-hero-links a:nth-child(2) {
    animation-delay: 0.5s !important;
}

.social-hero-links a:nth-child(3) {
    animation-delay: 1s !important;
}

/* 2. Efectos de Hover en Instagram */
.ig-media-anchor:hover img,
.ig-media-anchor:hover video {
    transform: scale(1.05) !important;
    transition: transform 0.5s ease !important;
}

.ig-media-anchor .ig-overlay {
    background: rgba(0, 0, 0, 0.4) !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
}

.ig-media-anchor:hover .ig-overlay {
    opacity: 1 !important;
}

/* 3. Refinamiento de la Tarjeta Instagram */
.ig-card-premium {
    background: #fff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

.ig-card-body {
    padding: 12px 15px !important;
    background: #fff !important;
}

.ig-caption {
    font-size: 0.85rem !important;
    color: #555 !important;
    line-height: 1.4 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* 4. Fix para el desorden (Social Hero Overlay) */
.social-hero-section::before {
    background: rgba(0, 0, 0, 0.5) !important;
}

.social-hero-content h2 {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

/* =========================================================================
   PARIDAD ESTRUCTURAL FINAL (MT -> MR)
   ========================================================================= */

/* Unificación de contenedores de Galería e Instagram */
.quienes-somos-ig,
.quienes-somos-galeria {
    min-height: 350px !important;
    height: 600px !important;
    flex: 1 1 450px !important;
    max-width: 600px !important;
    width: 100% !important;
    padding: 10px !important;
    order: 2 !important;
}

/* Forzar que el swiper ocupe todo el espacio del contenedor padre */
.ig-feed-swiper,
.quienes-somos-swiper {
    height: 100% !important;
    width: 100% !important;
}

/* Responsividad Tablet (max-width: 900px) */
@media (max-width: 900px) {

    .quienes-somos-ig,
    .quienes-somos-galeria {
        flex: 1 1 300px !important;
        max-width: 40% !important;
        padding: 5px !important;
    }
}

/* Responsividad Móvil (max-width: 768px) */
@media (max-width: 768px) {

    .quienes-somos-ig,
    .quienes-somos-galeria {
        height: 350px !important;
        min-height: 0 !important;
        flex: 1 1 100% !important;
        max-width: 100% !important;
        order: 1 !important;
        padding: 0 !important;
    }
}

/* Asegurar que la imagen en la tarjeta premium no flote y se centre, dejando espacio al body */
.ig-media-anchor {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #fcfcfc !important;
    overflow: hidden !important;
    min-height: 0 !important;
}

.ig-media-container {
    height: 100% !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.ig-card-premium {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}