/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #000;
    color: #f5f5f5;
    line-height: 1.6;
    text-align: center;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

header {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 24px 0;
    text-align: center;
    position: relative;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid #333;
}

header img {
    width: 180px;
    height: auto;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.6)) brightness(1.5);
    border: none;
    box-shadow: none;
    background: transparent;
}

header img[src*="logo_refinado"] {
    max-width: 240px;
    width: auto;
    padding: 0;
    margin: 0;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.8)) brightness(1.8);
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(15, 15, 15, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    height: 60px;
    z-index: 900;
    border-bottom: 1px solid #333;
    padding: 0;
    position: relative;
    white-space: nowrap;
}

nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, transparent, rgba(224, 190, 125, 0.5), transparent);
}

.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    text-align: center;
    flex-wrap: nowrap;
}

.nav-links a {
    flex: 0 1 auto;
    max-width: none;
    padding: 0 20px;
    color: #f5f5f5;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    position: relative;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    white-space: nowrap;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 10px;
    left: 50%;
    background-color: #e0be7d;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover {
    background-color: transparent;
    color: #e0be7d;
    transform: translateY(-2px);
}

.nav-links a:hover::after {
    width: 50px;
}

main {
    padding: 20px;
    max-width: 1100px;
    margin: auto;
    overflow-x: hidden;
}

h1, h2 {
    font-family: 'Montserrat', sans-serif;
    color: #e0be7d;
    text-align: center;
    margin-bottom: 30px;
    letter-spacing: 1.5px;
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
    margin-top: 1.5rem;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    max-width: 100%;
    overflow: visible;
}

h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 2px;
    background: linear-gradient(to right, transparent, #e0be7d, transparent);
}

h2 {
    font-size: 2rem;
    position: relative;
    padding-bottom: 15px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #e0be7d;
}

p {
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: 0.03rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

section {
    background-color: rgba(20, 20, 20, 0.9);
    padding: 50px 30px;
    margin-bottom: 50px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    border: 1px solid #333;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, transparent, rgba(224, 190, 125, 0.5), transparent);
}

.rollup {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

#inicio .rollup h1 {
    display: block;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    overflow: visible;
    margin-top: 30px;
    font-size: 2.8rem;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
    letter-spacing: 2px;
    text-transform: uppercase;
}

#inicio .rollup p {
    font-size: 1.15rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.rollup img {
    height: auto;
    margin-bottom: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.5s ease, filter 0.5s ease;
}

.rollup img:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
}

.rollup img[src*="logo_refinado_black"] {
    max-width: 300px;
    width: auto;
    margin: 0 auto 25px;
    background: transparent;
    -webkit-mask-image: none;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.8)) brightness(1.8);
}

.rollup p {
    max-width: 700px;
    margin: auto;
    line-height: 1.7;
    text-align: center;
}

.transp {
    max-width: 100%;
    height: auto;
    margin-bottom: 25px;
    border-radius: 8px;
    -webkit-mask-image: radial-gradient(circle, rgba(0, 0, 0, 1) 20%, rgba(0, 0, 0, 0) 95%);
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

form input,
form textarea {
    width: 100%;
    max-width: 600px;
    padding: 14px;
    margin: 12px 0;
    border: 1px solid #333;
    border-radius: 6px;
    font-size: 16px;
    background-color: #111;
    color: #f5f5f5;
    transition: all 0.3s ease;
    font-family: 'Lato', sans-serif;
    letter-spacing: 0.5px;
    text-align: left;
}

form input:focus,
form textarea:focus {
    outline: none;
    border-color: #e0be7d;
    box-shadow: 0 0 8px rgba(224, 190, 125, 0.5);
}

form button {
    padding: 14px 28px;
    background-color: #e0be7d;
    color: #111;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-top: 10px;
    letter-spacing: 1px;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
}

form button:hover {
    background-color: #d5aa56;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(224, 190, 125, 0.3);
}

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: rgba(224, 190, 125, 0.8);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s, background-color 0.3s, transform 0.3s;
}

.scroll-to-top:hover {
    background-color: rgba(224, 190, 125, 1);
    transform: translateY(-3px);
}

.scroll-to-top svg {
    fill: #111;
}

.language-buttons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 12px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 950;
}

.language-buttons a {
    display: inline-block;
    margin: 0 3px;
    padding: 0;
    line-height: 0;
    text-decoration: none;
    cursor: pointer;
    z-index: 960;
    border-radius: 50%;
    transition: transform 0.3s ease;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.language-buttons a:hover {
    transform: scale(1.1);
}

.language-buttons img {
    width: 20px;
    height: 20px;
    transition: transform 0.4s ease, filter 0.4s ease, box-shadow 0.3s ease;
    border-radius: 50%;
    padding: 2px;
    background-color: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    border: 1px solid transparent;
    object-fit: cover;
    display: block;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    aspect-ratio: 1 / 1;
    object-position: center;
}

.language-buttons img:hover {
    transform: scale(1.15);
    filter: brightness(1.2);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 8px rgba(224, 190, 125, 0.4);
}

footer {
    background-color: rgba(10, 10, 10, 0.95);
    color: #f5f5f5;
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

footer .social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
    width: 100%;
}

footer a {
    margin: 0 15px;
    color: #e0be7d;
    text-decoration: none;
    font-size: 24px;
    transition: color 0.3s, transform 0.3s;
    display: inline-block;
    text-align: center;
}

footer a:hover {
    color: #d5aa56;
    transform: translateY(-3px);
}

footer p {
    margin: 15px 0;
    font-size: 0.95rem;
    color: #aaa;
    text-align: center;
    width: 100%;
    line-height: 1.8;
}

footer .tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
    margin: 0 15px;
    text-align: center;
}

footer .tooltip .tooltiptext {
    visibility: hidden;
    width: 180px;
    background-color: #222;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 150%;
    left: 50%;
    margin-left: -90px;
    opacity: 0;
    transition: opacity 0.3s;
    border: 1px solid #444;
}

footer .tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.rollup .logo-img {
    height: auto;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.6)) brightness(1.5);
    border: none;
    box-shadow: none;
    background: transparent;
    max-width: 100%;
}

#responseMessage {
    padding: 15px;
    font-weight: 500;
    border-radius: 6px;
    margin-top: 20px;
    max-width: 600px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    background-color: rgba(0, 0, 0, 0.2);
    display: none;
    line-height: 1.5;
    font-family: 'Lato', sans-serif;
}

#responseMessage.success {
    background-color: rgba(0, 128, 0, 0.1);
    color: #4CAF50;
    border-left: 4px solid #4CAF50;
}

#responseMessage.error {
    background-color: rgba(255, 0, 0, 0.1);
    color: #f44336;
    border-left: 4px solid #f44336;
    font-weight: 600;
}

/* Estilos para el CAPTCHA personalizado */
.captcha-container {
    width: 100%;
    max-width: 600px;
    margin: 15px auto;
    text-align: center;
}

.captcha-image {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    position: relative;
}

.captcha-image img {
    border-radius: 6px;
    max-width: 100%;
    height: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    display: block;
}

.captcha-image button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(224, 190, 125, 0.9);
    border: none;
    color: #000;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    transition: all 0.3s ease;
    padding: 0;
}

.captcha-image button:hover {
    background-color: #e0be7d;
    transform: translateY(-50%) scale(1.1);
}

#captchaCode {
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
    text-align: center;
    font-size: 18px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Estilos responsivos */
@media only screen and (min-width: 768px) {
    .rollup .logo-img {
        width: 320px;
    }

    .rollup img:not(.logo-img) {
        width: 450px;
    }
}

@media only screen and (max-width: 767px) {
    nav {
        flex-direction: column;
        height: auto;
        padding: 10px 0;
        position: relative;
        display: flex;
        align-items: center;
    }
    
    .nav-links {
        flex-direction: column;
        width: 100%;
        margin-bottom: 10px;
        display: flex;
        align-items: center;
    }
    
    .nav-links a {
        width: 100%;
        padding: 10px 0;
        margin: 2px 0;
    }
    
    .language-buttons {
        position: static;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 5px auto;
        transform: none;
        text-align: center;
        left: auto;
        right: auto;
        top: auto;
        gap: 15px;
    }
    
    .language-buttons img {
        width: 24px;
        height: 24px;
        padding: 2px;
        display: block;
        margin: 0 auto;
    }
    
    .language-buttons a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin: 0;
    }
    
    h1 {
        font-size: 2rem;
        padding: 0 5px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
    }
    
    h2 {
        font-size: 1.8rem;
        padding: 0 5px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
    }
    
    section {
        padding: 30px 10px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .rollup .logo-img {
        max-width: 200px;
    }
    
    .rollup img:not(.logo-img) {
        max-width: 100%;
    }
    
    footer {
        padding: 25px 15px;
    }
    
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
    }
    
    form input, 
    form textarea {
        width: 100%;
        box-sizing: border-box;
        margin-bottom: 15px;
    }
    
    .slideshow-container {
        max-width: 100%;
        height: auto;
    }
    
    .slide {
        height: auto;
        flex-direction: column;
    }
    
    .slide img {
        width: 100%;
        height: auto;
        max-height: none;
        object-fit: contain;
    }
    
    main {
        padding: 15px 10px;
    }
    
    p {
        font-size: 1rem;
        padding: 0 5px;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    /* Ajustes para evitar desbordamiento en pies de foto */
    .slide-caption {
        width: 100%;
        font-size: 15px;
        padding: 15px 10px 10px;
        box-sizing: border-box;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Ajustes para elementos con posible overflow */
    .croqueta-info {
        width: 100%;
        box-sizing: border-box;
        padding: 15px 10px 0;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    #inicio .rollup h1 {
        font-size: 2.2rem;
        letter-spacing: 1.5px;
        margin: 30px auto 15px;
        padding: 0;
        width: 100%;
        max-width: 100%;
        word-break: normal;
        overflow-wrap: normal;
    }
    
    h1 {
        font-size: 2rem;
        padding: 0;
        margin-left: auto;
        margin-right: auto;
        width: auto;
        max-width: 90%;
        word-break: normal;
        overflow-wrap: normal;
    }
    
    h2 {
        font-size: 1.8rem;
        padding: 0;
        margin-left: auto;
        margin-right: auto;
        width: auto;
        max-width: 90%;
        word-break: normal;
        overflow-wrap: normal;
    }
    
    .language-buttons img {
        width: 24px;
        height: 24px;
        padding: 2px;
    }
}

@media only screen and (max-width: 480px) {
    header img {
        width: 150px;
    }
    
    h1 {
        font-size: 1.8rem;
        padding: 0 5px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    h2 {
        font-size: 1.5rem;
        padding: 0 5px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    form input,
    form textarea {
        padding: 10px;
    }
    
    .rollup .logo-img {
        max-width: 180px;
    }
    
    .rollup img:not(.logo-img) {
        max-width: 100%;
    }
    
    .language-buttons {
        gap: 12px;
    }
    
    .language-buttons a {
        margin: 0 3px;
    }
    
    .slideshow-container {
        margin: 20px auto;
    }
    
    .slide {
        height: auto;
    }
    
    .slide img {
        width: 100%;
        height: auto;
        max-height: none;
        object-fit: contain;
        margin: 0 auto;
    }
    
    .slide-caption {
        font-size: 14px;
        padding: 8px 0;
    }
    
    .prev, .next {
        font-size: 18px;
        padding: 10px;
        margin-top: -15px;
    }
    
    .dot {
        height: 10px;
        width: 10px;
        margin: 0 3px;
    }
    
    main {
        padding: 10px 5px;
    }
    
    section {
        padding: 25px 8px;
    }
    
    p {
        font-size: 0.95rem;
        line-height: 1.5;
        padding: 0;
    }
    
    #inicio .rollup h1 {
        font-size: 1.9rem;
        letter-spacing: 1px;
        margin: 20px auto 15px;
        padding: 0;
        width: 100%;
        max-width: 90%;
    }
    
    h1 {
        font-size: 1.8rem;
        padding: 0;
        width: auto;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
    
    h2 {
        font-size: 1.5rem;
        padding: 0;
        width: auto;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Mejoras adicionales para dispositivos móviles pequeños */
@media only screen and (max-width: 360px) {
    nav {
        padding: 5px 0;
    }
    
    .nav-links a {
        font-size: 14px;
        padding: 8px 0;
    }
    
    header img {
        width: 130px;
    }
    
    h1 {
        font-size: 1.6rem;
        width: 100%;
        max-width: 100%;
        padding: 0 5px;
        box-sizing: border-box;
    }
    
    h2 {
        font-size: 1.3rem;
        width: 100%;
        max-width: 100%;
        padding: 0 5px;
        box-sizing: border-box;
    }
    
    .language-buttons img {
        width: 20px;
        height: 20px;
    }
    
    section {
        padding: 20px 8px;
    }
    
    p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .social-links a, .social-links .tooltip {
        margin: 0 5px;
    }
    
    footer p {
        font-size: 0.85rem;
    }
    
    main {
        padding: 8px 5px;
    }
    
    /* Ajustes para pantallas muy pequeñas */
    .slide-caption {
        font-size: 12px;
        padding: 10px 8px 8px;
    }
    
    #inicio .rollup h1 {
        font-size: 1.7rem;
        letter-spacing: 0.5px;
        margin: 15px auto 10px;
        padding: 0;
        max-width: 90%;
    }
    
    h1 {
        font-size: 1.6rem;
        padding: 0;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
        width: auto;
    }
    
    h2 {
        font-size: 1.3rem;
        padding: 0;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
        width: auto;
    }
    
    .language-buttons {
        gap: 10px;
    }
}

/* Estilos para el slideshow */
.slideshow-container {
    position: relative;
    max-width: 800px;
    margin: 40px auto;
    overflow: visible !important;
    background: none !important;
}

.slideshow-container:hover {
    transform: translateY(-3px);
}

.slideshow-slides {
    width: 100%;
    position: relative;
    background: transparent;
    overflow: visible;
}

.slide {
    position: relative;
    display: none;
    width: 100%;
    padding: 20px;
    text-align: center;
    overflow: visible;
    background: none;
}

/* Eliminar cualquier pseudoelemento que pueda estar interfiriendo */
.slide::before,
.slide::after {
    display: none !important;
}

.slide img {
    /* Tamaño y posición - aumentar el tamaño */
    width: 500px;
    max-width: 90%;
    height: auto;
    display: block;
    max-height: 500px;
    object-fit: contain;
    margin: 0 auto;
    
    /* Estilo básico */
    filter: brightness(1.2);
    transition: all 0.5s ease;
    
    /* Combinar tres máscaras: circular, superior/inferior y nueva para laterales */
    -webkit-mask-image: 
        radial-gradient(circle, black 50%, rgba(0,0,0,0.7) 65%, transparent 80%),
        linear-gradient(to bottom, transparent 5%, black 15%, black 85%, transparent 95%),
        linear-gradient(to right, transparent 2%, black 8%, black 92%, transparent 98%);
    mask-image: 
        radial-gradient(circle, black 50%, rgba(0,0,0,0.7) 65%, transparent 80%),
        linear-gradient(to bottom, transparent 5%, black 15%, black 85%, transparent 95%),
        linear-gradient(to right, transparent 2%, black 8%, black 92%, transparent 98%);
    
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-composite: intersect;
    mask-composite: intersect;
}

.slide-caption {
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.6));
    color: #e0be7d;
    text-align: center;
    padding: 25px 0 15px;
    width: 100%;
    font-weight: 500;
    font-size: 18px;
    letter-spacing: 0.8px;
    border-top: none;
    position: absolute;
    bottom: 0;
    left: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    opacity: 0.9;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    padding-top: 30px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    box-sizing: border-box;
}

.slide:hover .slide-caption {
    opacity: 1;
}

/* Botones de navegación */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    color: rgba(224, 190, 125, 0.7);
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
    border-radius: 50%;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.3);
    text-decoration: none;
    z-index: 10;
    opacity: 0.5;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    border: none;
}

.prev {
    left: -10px;
}

.next {
    right: -10px;
}

.prev:hover, .next:hover {
    background-color: rgba(224, 190, 125, 0.15);
    color: #fff;
    opacity: 0.9;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 15px rgba(224, 190, 125, 0.3);
}

/* Modal para imagen ampliada */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.modal.show {
    opacity: 1;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    position: relative;
    top: 50%;
    transform: translateY(-50%) scale(0.95);
    transition: transform 0.4s ease;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
}

.modal.show .modal-content {
    transform: translateY(-50%) scale(1);
    opacity: 1;
}

.modal-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #e0be7d;
    padding: 20px 0;
    height: 50px;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    text-shadow: 0 1px 3px #000;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    z-index: 10000;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #e0be7d;
    text-decoration: none;
    cursor: pointer;
    transform: scale(1.1);
}

/* Estilos para el indicador de carga del slideshow */
.slideshow-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(224, 190, 125, 0.2);
    border-top: 3px solid #e0be7d;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mejoras adicionales para el carrusel */
.slide.active {
    z-index: 2;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animación de transición */
.fade {
    animation-name: fadeInEffect;
    animation-duration: 1s;
}

@keyframes fadeInEffect {
    from {
        opacity: 0.3; 
        transform: scale(0.97) translateY(5px);
        filter: blur(2px);
    }
    to {
        opacity: 1; 
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
}

/* Indicadores de posición (dots) */
.dots-container {
    text-align: center;
    padding: 15px 0;
    background: none !important;
    position: relative;
    margin-top: 0;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.dot {
    cursor: pointer;
    height: 10px;
    width: 10px;
    margin: 0 2px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    opacity: 0.6;
}

.dot.active, .dot:hover {
    background-color: #e0be7d;
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(224, 190, 125, 0.5);
    opacity: 1;
}

.croqueta-info {
    text-align: center;
    margin-top: 30px;
    font-style: italic;
    color: #e0be7d;
    letter-spacing: 0.6px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    position: relative;
    padding-top: 15px;
    font-family: 'Lato', sans-serif;
}

.croqueta-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(224, 190, 125, 0.5), transparent);
}

/* Eliminar cualquier fondo o borde que pueda estar afectando */
.slideshow-container,
.slideshow-slides,
.slide,
.dots-container,
.slide-caption {
    background: none;
    border: none;
    overflow: visible;
}

/* Responsive para el slideshow */
@media only screen and (max-width: 767px) {
    .slideshow-container {
        max-width: 95%;
        margin: 20px auto;
    }
    
    .slide {
        padding: 10px;
        overflow: hidden !important;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    
    .slide img {
        width: 95%;
        max-width: 400px;
        max-height: 300px;
        
        /* Máscaras más intensas para móviles medianos */
        -webkit-mask-image: 
            radial-gradient(circle, black 50%, rgba(0,0,0,0.6) 65%, transparent 80%),
            linear-gradient(to bottom, transparent 3%, black 10%, black 90%, transparent 97%),
            linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%) !important;
        mask-image: 
            radial-gradient(circle, black 50%, rgba(0,0,0,0.6) 65%, transparent 80%),
            linear-gradient(to bottom, transparent 3%, black 10%, black 90%, transparent 97%),
            linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%) !important;
        
        /* Asegurar que las propiedades de máscaras se apliquen correctamente */
        -webkit-mask-size: contain !important;
        mask-size: contain !important;
        -webkit-mask-repeat: no-repeat !important;
        mask-repeat: no-repeat !important;
        -webkit-mask-position: center !important;
        mask-position: center !important;
        -webkit-mask-composite: intersect !important;
        mask-composite: intersect !important;
        
        /* Forzar redibujado en dispositivos móviles */
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        will-change: mask-image;
    }
    
    .slide-caption {
        padding: 10px 0;
        font-size: 16px;
    }
    
    .prev, .next {
        width: 40px;
        height: 40px;
        opacity: 0.7;
    }
    
    .croqueta-info {
        font-size: 0.95rem;
    }
    
    .dots-container {
        padding: 10px 0;
    }
    
    .dot {
        height: 8px;
        width: 8px;
        margin: 0 4px;
    }
}

@media only screen and (max-width: 480px) {
    .slideshow-container {
        max-width: 100%;
        margin: 15px auto;
    }
    
    .slide {
        padding: 5px;
        overflow: hidden !important;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    
    .slide img {
        width: 100%;
        max-width: 300px;
        max-height: 220px;
        
        /* Máscaras más intensas para móviles pequeños */
        -webkit-mask-image: 
            radial-gradient(circle, black 45%, rgba(0,0,0,0.5) 65%, transparent 78%),
            linear-gradient(to bottom, transparent 1%, black 8%, black 92%, transparent 99%),
            linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%) !important;
        mask-image: 
            radial-gradient(circle, black 45%, rgba(0,0,0,0.5) 65%, transparent 78%),
            linear-gradient(to bottom, transparent 1%, black 8%, black 92%, transparent 99%),
            linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%) !important;
            
        /* Garantizar aplicación de las máscaras en todos los navegadores */
        -webkit-mask-size: contain !important;
        mask-size: contain !important;
        -webkit-mask-position: center !important;
        mask-position: center !important;
        -webkit-mask-repeat: no-repeat !important;
        mask-repeat: no-repeat !important;
        -webkit-mask-composite: intersect !important;
        mask-composite: intersect !important;
        
        /* Forzar redibujado en dispositivos móviles */
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        will-change: mask-image;
        filter: brightness(1.2);
    }
    
    .slide-caption {
        font-size: 14px;
        padding: 8px 0;
    }
    
    .prev, .next {
        width: 35px;
        height: 35px;
        font-size: 16px;
        opacity: 0.6;
    }
    
    .dot {
        height: 6px;
        width: 6px;
        margin: 0 3px;
    }
}

/* Estilos adicionales para forzar las máscaras en móviles */
@media screen and (max-width: 767px) {
    .slide {
        overflow: visible !important;
    }
    
    .slide img {
        -webkit-mask-image: 
            radial-gradient(circle, black 50%, rgba(0,0,0,0.6) 65%, transparent 80%),
            linear-gradient(to bottom, transparent 3%, black 10%, black 90%, transparent 97%),
            linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%) !important;
        mask-image: 
            radial-gradient(circle, black 50%, rgba(0,0,0,0.6) 65%, transparent 80%),
            linear-gradient(to bottom, transparent 3%, black 10%, black 90%, transparent 97%),
            linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%) !important;
    }
}

@media screen and (max-width: 480px) {    
    .slide img {
        -webkit-mask-image: 
            radial-gradient(circle, black 45%, rgba(0,0,0,0.5) 65%, transparent 78%),
            linear-gradient(to bottom, transparent 1%, black 8%, black 92%, transparent 99%),
            linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%) !important;
        mask-image: 
            radial-gradient(circle, black 45%, rgba(0,0,0,0.5) 65%, transparent 78%),
            linear-gradient(to bottom, transparent 1%, black 8%, black 92%, transparent 99%),
            linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%) !important;
    }
}
