/* Eliminar márgenes predeterminados */
html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Eliminar el resaltado azul en dispositivos móviles */
*,
*:focus,
*:active {
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

/* Opcional: Asegurar que los enlaces y botones no muestren efectos no deseados */
a,
button,
input,
textarea,
[role="button"] {
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

body {
    background-color: #fff7f1;
    font-family: 'Sansita', sans-serif;
    color: #1a1a1a;
}

/* Estilos para la pantalla de carga */
.loading-screen {
    display: none; /* Oculta por defecto en escritorio */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f9e8d9;
    z-index: 2000;
    opacity: 1;
    transition: opacity 1s ease-in-out;
}

.loading-screen.hide {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.loading-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.loading-content p {
    font-family: 'Sansita', sans-serif;
    font-size: 1.25rem;
    color: #555;
}

/* Media Query para móviles */
@media (max-width: 768px) {
    .loading-screen {
        display: flex; /* Mostrar en móviles */
    }

    .loading-content h1 {
        font-size: 2rem;
    }

    .loading-content p {
        font-size: 1rem;
    }
}

/* Ajustar el header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.25rem;
    margin: 0;
    position: relative;
}

/* Ajustar el contenedor del logo */
.logo {
    width: clamp(200px, 25vw, 300px);
    height: auto;
    margin: 0;
    padding: 0;
    margin-top: 0.625rem;
}

/* Ajustar la imagen del logo */
.logo img {
    width: 100%;
    height: auto;
    display: block;
    vertical-align: top;
    transition: transform 0.9s ease;
}

/* Estilos para el enlace del logo */
.logo a {
    display: block;
    text-decoration: none;
}

/* Animación al hacer clic en el logo */
.logo.clicked img {
    animation: logoClick 0.5s ease;
}

/* Definición de la animación */
@keyframes logoClick {
    0% { transform: scale(1); }
    50% { transform: scale(1.1) rotate(10deg); }
    100% { transform: scale(1); }
}

/* Estilos base para el botón hamburguesa */
.menu-toggle {
    display: none;
    position: relative;
    width: 1.875rem;
    height: 1.375rem;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
}

/* Cada barra */
.menu-toggle .bar {
    position: absolute;
    height: 0.1875rem;
    width: 100%;
    background-color: #1d1b1b;
    transition: all 0.6s ease;
    right: 0.5rem;
}

/* Ubicación de cada barra */
.menu-toggle .bar:nth-child(1) { top: 0; }
.menu-toggle .bar:nth-child(2) { top: 50%; transform: translateY(-50%); }
.menu-toggle .bar:nth-child(3) { bottom: 0; }

/* Estado activo: transforma las barras para crear la "X" */
.menu-toggle.active .bar:nth-child(1) {
    transform: rotate(450deg) translate(5px, 5px);
    transform-origin: center center;
}
.menu-toggle.active .bar:nth-child(2) { opacity: 0; }
.menu-toggle.active .bar:nth-child(3) {
    transform: rotate(-450deg) translate(5px, -5px);
    transform-origin: center center;
}

/* Estilos para el menú de navegación */
.nav-menu { transition: all 0.3s ease; }

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

nav li { margin: 0 0.625rem; }

nav li:not(:last-child) {
    border-right: 1px solid #1a1a1a;
    padding-right: 0.625rem;
}

nav a {
    text-decoration: none;
    color: #1a1a1a;
    text-transform: uppercase;
    font-size: 0.875rem;
}

/* Estilos generales del ticker-wrapper */
.ticker-wrapper {
    width: 100%;
    background-color: #1a1a1a;
    height: 3.125rem;
    overflow: hidden;
    position: relative;
    margin-top: 1.25rem;
}

.ticker {
    display: flex;
    white-space: nowrap;
    animation: ticker 20s linear infinite;
}

.ticker span {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    color: #fff;
    letter-spacing: 0.0625rem;
    text-transform: uppercase;
    padding-right: 2.5rem;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Sección Home */
main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 3.5rem);
    padding: 1.25rem;
    box-sizing: border-box;
}

/* Contenedor adicional para limitar y centrar el contenido */
.content-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 75rem;
    width: 100%;
}

.text-section, .image-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.25rem;
}

.text-section {
    flex-direction: column;
    text-align: center;
}

.text-section h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.25rem;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.text-section p {
    font-family: 'Playfair Display', serif;
    font-size: 1.125rem;
    color: #1a1a1a;
}

/* Estilos para el contenedor de íconos */
.icons-container {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 1.25rem;
}

/* Estilos para las imágenes de los íconos */
.icons-container img {
    width: 4.375rem;
    height: 4.375rem;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* Efecto hover para los íconos */
.icons-container img:hover { transform: scale(1.1); }

/* Estilos para el carrusel en image-section */
.image-section {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 31.25rem;
    filter: drop-shadow(0.3125rem 0.625rem 1.875rem #444343);
}

.slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active { opacity: 1; }

.image-section img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0);
    transition: transform 0.3s ease;
}

.image-section .slide:hover img { transform: scale(1.05); }

/* Estilos para la sección Sobre Nosotros */
.sobre-nosotros {
    padding: 3.125rem 1.25rem;
    background-color: #f9e8d9;
}

.sobre-nosotros-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 75rem;
    margin: 0 auto;
    gap: 1.5rem;
}

.sobre-nosotros-text {
    flex: 1;
    text-align: left;
}

.sobre-nosotros-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 0.0625rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.sobre-nosotros-text p {
    font-family: 'Playfair Display', serif;
    font-size: 1.125rem;
    font-style: italic;
    color: #2f2f2f;
    line-height: 1.8;
    letter-spacing: 0.03125rem;
    margin-top: 0.5rem;
    text-align: justify;
}

/* Estilos para la imagen en la sección Sobre Nosotros */
.sobre-nosotros-video {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100%; /* Evitar desbordes */
    overflow: hidden; /* Evitar que la imagen se salga del contenedor */
}

.sobre-nosotros-video .about-image {
    width: 100%;
    max-width: 80rem; /* Tamaño para escritorio */
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

/* Media Query para móviles: forzar tamaño adecuado */
@media (max-width: 768px), (max-device-width: 768px) {
    .sobre-nosotros-video {
        max-width: 100%;
        overflow: hidden;
    }
    .sobre-nosotros-video .about-image {
        max-width: 20rem !important; /* Reducimos a 20rem para que se ajuste mejor */
        width: 100%;
        height: auto;
        border-radius: 0.5rem;
    }
}

/* Estilo específico para Instagram */
.instagram-mobile .sobre-nosotros-video .about-image {
    max-width: 20rem !important;
    width: 100% !important;
    height: auto !important;
}

/* Estilos para la sección Nuevos Diseños */
.nuevos-disenos {
    padding: 3.125rem 1.25rem;
    background: linear-gradient(135deg, #7a7979 0%, #424140 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: fadeIn 1s ease-in;
}

.nuevos-disenos h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.0625rem;
    position: relative;
    display: inline-block;
}

.nuevos-disenos h2::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 0.125rem;
    background-color: #ffffff;
    transition: width 0.3s ease;
}

.nuevos-disenos h2:hover::after { width: 100%; }

.nuevos-disenos-wrapper {
    max-width: 75rem;
    margin: 0 auto;
    position: relative;
}

.nuevos-disenos-carousel {
    display: flex;
    width: 100%;
    height: 37.5rem;
    position: relative;
    gap: 1.5rem;
    padding: 0 0.5rem;
    white-space: nowrap;
    animation: slideRightToLeft 20s linear infinite;
}

@keyframes slideRightToLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.carousel-item {
    flex: 0 0 calc(50% - 0.75rem);
    height: 100%;
    display: inline-block;
    position: relative;
    overflow: visible;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 1.5rem;
    filter: drop-shadow(0.5rem 0.5rem 1.25rem rgba(0, 0, 0, 0.8));
    transition: transform 0.4s ease-in-out, filter 0.4s ease-in-out;
}

.carousel-item:hover img {
    transform: scale(1.1);
    filter: drop-shadow(0.75rem 0.75rem 1.5rem rgba(0, 0, 0, 0.9));
}

.carousel-caption {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 0.25rem;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.carousel-item:hover .carousel-caption {
    opacity: 1;
    transform: translateX(-50%) translateY(-0.5rem);
}

.carousel-caption h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin: 0;
}

.carousel-caption p {
    font-family: 'Sansita', sans-serif;
    font-size: 1rem;
    margin: 0.25rem 0 0;
}

.nuevos-disenos-cta { margin-top: 2rem; }

.cta-button {
    display: inline-block;
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: #fff;
    background-color: #c07451;
    text-decoration: none;
    padding: 0.75rem 2rem;
    border-radius: 0.25rem;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    background-color: #a05e3e;
    transform: scale(1.05);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.2);
}

/* Estilos para el mensaje "Desliza para ver" */
.swipe-message {
    display: none; /* Oculto por defecto en escritorio */
    font-family: 'Sansita', sans-serif;
    font-size: 1rem;
    color: #ffffff;
    text-align: center;
    margin-bottom: 1rem;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

/* Media Query para móviles */
@media (max-width: 768px) {
    .nuevos-disenos {
        padding: 2rem 0.625rem;
        min-height: 30rem;
    }

    .nuevos-disenos h2 {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }

    .nuevos-disenos-wrapper { padding: 0; }

    .nuevos-disenos-carousel {
        height: 20rem;
        gap: 1rem;
        padding: 0 0.5rem;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        white-space: nowrap;
        display: flex;
        align-items: center;
        animation: none;
        transform: none;
        touch-action: pan-x;
        user-select: none;
    }

    .carousel-item {
        flex: 0 0 100%;
        height: 100%;
        scroll-snap-align: start;
        display: inline-block;
        overflow: visible;
    }

    .carousel-item img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        border-radius: 1rem;
        filter: drop-shadow(0.4rem 0.4rem 1rem rgba(0, 0, 0, 0.8));
        transition: transform 0.4s ease-in-out, filter 0.4s ease-in-out;
    }

    .carousel-item:hover img {
        transform: scale(1.05);
        filter: drop-shadow(0.6rem 0.6rem 1.25rem rgba(0, 0, 0, 0.9));
    }

    .carousel-caption {
        bottom: 0.5rem;
        padding: 0.5rem 1rem;
    }

    .carousel-caption h3 { font-size: 1rem; }

    .carousel-caption p { font-size: 0.75rem; }

    .nuevos-disenos-cta { margin-top: 1.5rem; }

    .cta-button {
        font-size: 1rem;
        padding: 0.625rem 1.5rem;
    }

    /* Mostrar el mensaje "Desliza para ver" en móviles */
    .swipe-message {
        display: block;
    }
}

@media (max-width: 768px) {
    .nuevos-disenos-carousel .carousel-item .carousel-caption {
        opacity: 0;
        transform: translateX(-50%) translateY(0);
        transition: opacity 0.5s ease, transform 0.5s ease;
    }

    .nuevos-disenos-carousel .carousel-item.active .carousel-caption {
        opacity: 1;
        transform: translateX(-50%) translateY(-0.5rem);
        animation: fadeInCaption 0.5s ease-in-out;
    }

    @keyframes fadeInCaption {
        0% {
            opacity: 0;
            transform: translateX(-50%) translateY(0);
        }
        100% {
            opacity: 1;
            transform: translateX(-50%) translateY(-0.5rem);
        }
    }
}

/* Estilos para la sección Catálogo */
.catalogo {
    padding: 3.125rem 1.25rem;
    background-color: #fff7f1;
}

.catalogo h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #1e1e1e;
    text-align: center;
    margin-bottom: 2.5rem;
}

.catalogo-sections {
    max-width: 75rem;
    margin: 0 auto;
}

.catalogo-subsection { margin-bottom: 3.75rem; }

.catalogo-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2.5rem;
}

.catalogo-text {
    flex: 1;
    text-align: left;
}

.catalogo-text h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    color: #1a1a1a;
    margin-bottom: 0.9375rem;
}

.catalogo-text p {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.catalogo-link {
    display: inline-block;
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: #333;
    text-decoration: none;
    padding: 0.625rem 1.25rem;
    border: 1px solid #333;
    border-radius: 0.25rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.catalogo-link:hover {
    background-color: #333;
    color: white;
}

.catalogo-image {
    flex: 1;
    text-align: center;
}

.catalogo-image img {
    width: 100%;
    max-width: 31.25rem;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 0.5rem;
    transition: transform 0.3s ease;
    filter: drop-shadow(0.625rem 0.625rem 1.25rem #303030b0);
}

@media (min-width: 769px) {
    .catalogo-subsection.repisas .catalogo-content {
        flex-direction: row;
    }

    .catalogo-subsection.repisas .catalogo-text {
        order: 0; /* Texto a la izquierda */
    }

    .catalogo-subsection.repisas .catalogo-image {
        order: 1; /* Imagen a la derecha */
    }
}

.catalogo-image img:hover { transform: scale(1.05); }

.espejo-item {
    position: relative; /* Necesario para posicionar el span relativo a la imagen */
}

.espejo-item .agotado {
    position: absolute;
    top: 0.625rem;
    right: 0.625rem;
    font-family: 'Sansita', sans-serif;
    font-size: 1rem;
    color: #ffffff;
    background-color: #ff0000;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    text-transform: uppercase;
    text-align: center;
    z-index: 10; /* Asegura que esté por encima de la imagen */
}

@media (max-width: 768px) {
    .espejo-item .agotado {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
        top: 0.5rem;
        right: 0.5rem;
    }
}

/* Estilos para la sección Encuéntranos en */
.contacto {
    padding: 3.125rem 1.25rem;
    background-color: #f9e8d9;
    text-align: center;
}

.contacto h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #1a1a1a;
    margin-bottom: 1.875rem;
    text-align: center;
}

.contacto .social-links {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.contacto .social-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s ease, color 0.3s ease;
}

.contacto .social-icon {
    width: 4rem;
    height: 4rem;
    margin-bottom: 0.75rem;
    transition: transform 0.3s ease;
}

.contacto .social-item span {
    font-family: 'Sansita', sans-serif;
    font-size: 1.125rem;
    color: #1a1a1a;
}

.contacto .social-item:hover {
    transform: scale(1.1);
    color: #555;
}

.contacto .social-item:hover .social-icon { transform: scale(1.1); }

/* Estilos para el footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1.25rem;
}

footer p {
    margin: 0;
    font-family: 'Sansita', sans-serif;
    font-size: 0.875rem;
}

.footer-links { margin-top: 0.625rem; }

.footer-links a {
    color: white;
    text-decoration: none;
    margin: 0 0.625rem;
    font-family: 'Sansita', sans-serif;
    font-size: 0.875rem;
}

.footer-links a:hover { text-decoration: underline; }

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

header, .text-section, .image-section, .sobre-nosotros, .catalogo, .contacto {
    animation: fadeIn 1s ease-in;
}

nav a:hover {
    color: #555;
    text-decoration: underline;
}

/* Media Query para móviles (pantallas menores a 768px) */
@media (max-width: 768px) {
    .ticker-wrapper {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 1.5625rem;
        margin-top: 0;
        z-index: 1100;
    }

    .ticker span { font-size: 1.125rem; }

    header {
        background-color: #c07451;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        padding: 0.625rem;
        position: fixed;
        top: 1.5625rem;
        width: 100%;
        z-index: 1000;
        height: 2.375rem;
    }

    .logo {
        width: 12.5rem;
        margin: 0;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .logo img {
        width: 100%;
        height: auto;
    }

    .menu-toggle {
        display: block;
        position: absolute;
        right: 1.25rem;
        top: 50%;
        transform: translateY(-50%);
        color: #333;
    }

    .nav-menu {
        display: none;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #fff;
        box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active { display: block; }

    nav ul {
        flex-direction: column;
        text-align: center;
        padding: 0.625rem 0;
    }

    nav li {
        margin: 0.625rem 0;
        padding: 0;
        border-right: none;
    }

    nav a {
        display: block;
        padding: 0.625rem;
        color: #333;
    }

    main {
        margin-top: 3.9375rem;
        flex-direction: column;
        padding: 0.625rem;
    }

    .content-wrapper { flex-direction: column; }

    .text-section, .image-section {
        width: 100%;
        padding: 0.625rem;
    }

    .text-section h1 { font-size: 1.75rem; }

    .text-section p { font-size: 1rem; }

    .image-section { height: 18.75rem; }

    .slide { height: 100%; }

    .sobre-nosotros-wrapper {
        flex-direction: column;
        gap: 1rem;
    }

    .sobre-nosotros-video video {
        max-width: 20rem;
        height: auto;
        transform: rotate(270deg);
        border-radius: 0.5rem;
    }

    .sobre-nosotros-text h2 { margin-bottom: 0.5rem; }

    .sobre-nosotros-text p { margin-top: 0.25rem; }

    .catalogo-content {
        flex-direction: column;
        gap: 1.25rem;
    }

    .catalogo-subsection.repisas .catalogo-content {
        flex-direction: column;
        display: flex;
    }

    .catalogo-subsection.repisas .catalogo-text { order: -1; }

    .catalogo-subsection.repisas .catalogo-image { order: 0; }

    .catalogo-subsection.mesas .catalogo-content {
        flex-direction: column;
        display: flex;
    }

    .catalogo-subsection.mesas .catalogo-text { order: -1; }

    .catalogo-subsection.mesas .catalogo-image { order: ; }

    .catalogo-text { text-align: center; }

    .catalogo-image img {
        max-width: 18.75rem;
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .contacto .social-links { gap: 2rem; }

    .contacto .social-icon {
        width: 3rem;
        height: 3rem;
    }

    .contacto .social-item span { font-size: 1rem; }
}

/* Media Query para móviles (Sobre Nosotros) */
@media (max-width: 768px) {
    .sobre-nosotros-video .desktop-video {
        display: none; /* Oculta completamente el video en móviles */
    }

    .sobre-nosotros-video .mobile-only-image {
        display: block;
        width: 100%;
        max-width: none;
        height: auto;
        aspect-ratio: 16 / 9;
        transform: rotate(0deg);
        border-radius: 0.5rem;
        box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
        object-fit: cover;
    }

    .sobre-nosotros-video {
        width: 100%;
        padding: 0;
    }

    .sobre-nosotros-wrapper {
        padding: 0 0.625rem;
    }
}

/* Mantener el header y ticker-wrapper sin cambios en escritorio */
@media (min-width: 769px) {
    .ticker-wrapper {
        position: relative;
        margin-top: 1.25rem;
    }

    header { position: relative; }
}

/* Estilos para el nuevo carrusel exclusivo para móviles */
.mobile-slider {
    display: none;
    position: relative;
    width: 100%;
    height: 19.5rem;
    overflow: hidden;
}

.mobile-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.mobile-slide.active { opacity: 1; }

.mobile-slider img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* Ajustes en la media query para móviles */
@media (max-width: 768px) {
    .image-section { display: none; }

    .mobile-slider { display: block; }

    main {
        margin-top: 3.9375rem;
        flex-direction: column;
        padding: 0.625rem;
    }

    .content-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .text-section {
        width: 100%;
        padding: 0.625rem;
    }
}

/* Estilos para la cuadrícula de espejos */
.catalogo-espejos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18.75rem, 1fr));
    gap: 2.5rem;
    max-width: 75rem;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.espejo-item {
    text-align: center;
    transition: transform 0.3s ease;
}

.espejo-item:hover { transform: scale(1.05); }

.espejo-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.espejo-item img {
    width: 100%;
    max-width: 18.75rem;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 0.5rem;
    filter: drop-shadow(0.625rem 0.625rem 1.25rem #303030b0);
    margin-bottom: 0.9375rem;
}

.espejo-item h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #1a1a1a;
    margin-bottom: 0.625rem;
}

.espejo-item p {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: #555;
    margin: 0;
}

/* Botón volver al catálogo */
.catalogo-espejos__back {
    text-align: center;
    margin-top: 3rem;
}

.catalogo-espejos__back-link {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: #333;
    text-decoration: none;
    border: 1px solid #333;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.catalogo-espejos__back-link:hover {
    background-color: #333;
    color: white;
}

/* Media Query para móviles */
@media (max-width: 768px) {
    .catalogo-espejos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0 0.625rem;
    }

    .espejo-item img {
        max-width: 100%;
        width: 100%;
        height: auto;
    }

    .espejo-item h3 { font-size: 1rem; }

    .espejo-item p { font-size: 0.75rem; }
}

/* Estilos específicos para la página de detalle del producto */
.producto-detalle {
    padding: 5rem 1.25rem 3.125rem;
    background-color: #fff7f1;
    min-height: calc(100vh - 6.25rem);
}

.producto-container {
    max-width: 75rem;
    margin: 0 auto;
    display: flex;
    gap: 2.5rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.producto-imagen {
    flex: 1;
    text-align: center;
    transition: transform 0.5s ease;
}

.producto-imagen img {
    width: 100%;
    max-width: 31.25rem;
    height: auto;
    border-radius: 0.5rem;
    filter: drop-shadow(0.625rem 0.625rem 1.25rem #303030b0);
    transition: transform 0.3s ease;
}

.producto-imagen:hover img { transform: scale(1.05); }

.producto-info {
    flex: 1;
    text-align: left;
    padding: 1.25rem;
    background-color: #f9e8d9;
    border-radius: 0.5rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

.producto-info h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.0625rem;
}

.producto-info p {
    font-family: 'Playfair Display', serif;
    font-size: 1.125rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.producto-detalles {
    margin-bottom: 2rem;
}

.producto-detalles h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
}

.producto-detalles ul {
    list-style: none;
    padding: 0;
    font-family: 'Sansita', sans-serif;
    font-size: 1rem;
    color: #333;
}

.producto-detalles ul li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.25rem;
}

.producto-detalles ul li:before {
    content: "•";
    color: #c07451;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -0.125rem;
}

.producto-cta { text-align: center; }

.producto-cta a {
    display: inline-block;
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: #fff;
    background-color: #c07451;
    text-decoration: none;
    padding: 0.75rem 2rem;
    border-radius: 0.25rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.producto-cta a:hover {
    background-color: #a05e3e;
    transform: scale(1.05);
}

/* Media Query para móviles */
@media (max-width: 768px) {
    .producto-container {
        flex-direction: column;
        gap: 1.5rem;
        padding: 3.9375rem 0.625rem 1.25rem;
    }

    .producto-imagen img {
        max-width: 18.75rem;
        margin-bottom: 40px;
    }

    .producto-info {
        padding: 1rem;
    }

    .producto-info h1 { font-size: 1.75rem; }

    .producto-info p { font-size: 1rem; }

    .producto-detalles h3 { font-size: 1.25rem; }

    .producto-detalles ul { font-size: 0.875rem; }

    .producto-cta a {
        font-size: 1rem;
        padding: 0.625rem 1.5rem;
    }
}

/* Estilos para el carrusel en la página de producto */
.carrusel-producto {
    position: relative;
    width: 100%;
    max-width: 31.25rem;
    height: 31.25rem;
    margin: 0 auto;
    padding: 0.625rem;
    box-sizing: border-box;
}

.carrusel-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.carrusel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carrusel-slide.active { opacity: 1; }

.carrusel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0.5rem;
    filter: drop-shadow(0.625rem 0.625rem 1.25rem #303030b0);
    transition: transform 0.3s ease;
}

.carrusel-slide:hover img { transform: scale(1.05); }

/* Estilos para las flechas */
.carrusel-prev,
.carrusel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 1.5rem;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.carrusel-prev { left: 0.625rem; }

.carrusel-next { right: 0.625rem; }

.carrusel-prev:hover,
.carrusel-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Media Query para móviles */
@media (max-width: 768px) {
    .carrusel-producto {
        max-width: 18.75rem;
        height: 18.75rem;
    }

    .carrusel-prev,
    .carrusel-next {
        font-size: 1rem;
        width: 2rem;
        height: 2rem;
        padding: 0.25rem;
    }

    .carrusel-prev { left: 0.3125rem; }

    .carrusel-next { right: 0.3125rem; }
}

/* Estilos para la imagen estática en móviles */
.producto-imagen .mobile-only-image {
    display: none;
    width: 100%;
    max-width: 25rem;
    height: auto;
    border-radius: 0.5rem;
    filter: drop-shadow(0.625rem 0.625rem 1.25rem #303030b0);
    transition: transform 0.3s ease;
    object-fit: cover;
}

/* Media Query para móviles */
@media (max-width: 768px) {
    .producto-imagen .carrusel-producto { display: none; }

    .producto-imagen .mobile-only-image { display: block; }

    .producto-imagen {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 2px;
    }
}
