/* ==========================================================================
   LA CUADRA RURAL — Capa de modernización
   --------------------------------------------------------------------------
   Este archivo se carga DESPUÉS de style.css y aplica mejoras puntuales
   manteniendo la misma identidad (tipografías Cormorant + Lora, paleta
   cálida andaluza). Diseñado para ser 100% reversible: si quieres volver
   al estado original, basta con eliminar el <link> de este archivo.
   ========================================================================== */

/* ---------- TOKENS DE DISEÑO ---------- */
:root {
    /* Paleta refinada (alineada con la actual) */
    --lc-cream:        #faf6ef;
    --lc-cream-soft:   #f4ede0;
    --lc-ink:          #2b2418;
    --lc-ink-soft:     #4a3f30;
    --lc-olive:        #6b7a3d;
    --lc-olive-dark:   #4e5a2d;
    --lc-terracotta:   #c66b3d;
    --lc-terracotta-d: #a85528;
    --lc-gold:         #c9962c;
    --lc-gold-soft:    #e2b855;
    --lc-line:         rgba(43, 36, 24, 0.10);

    /* Sombras multicapa para un look más moderno y profesional */
    --lc-shadow-sm:  0 1px 2px rgba(43, 36, 24, 0.05),
                     0 1px 3px rgba(43, 36, 24, 0.06);
    --lc-shadow-md:  0 4px 6px -2px rgba(43, 36, 24, 0.05),
                     0 10px 20px -5px rgba(43, 36, 24, 0.10);
    --lc-shadow-lg:  0 10px 15px -3px rgba(43, 36, 24, 0.08),
                     0 25px 50px -12px rgba(43, 36, 24, 0.18);
    --lc-shadow-hover: 0 6px 10px -3px rgba(43, 36, 24, 0.08),
                       0 20px 40px -10px rgba(198, 107, 61, 0.22);

    /* Curva de easing más natural */
    --lc-ease: cubic-bezier(0.22, 1, 0.36, 1);

    /* Radios consistentes */
    --lc-radius-sm: 8px;
    --lc-radius-md: 14px;
    --lc-radius-lg: 22px;
}

/* ---------- AJUSTES GLOBALES SUAVES ---------- */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Selección de texto con el color de la marca */
::selection {
    background: var(--lc-terracotta);
    color: #fff;
}

/* Scrollbar minimalista (WebKit) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--lc-cream-soft); }
::-webkit-scrollbar-thumb {
    background: var(--lc-olive);
    border-radius: 10px;
    border: 2px solid var(--lc-cream-soft);
}
::-webkit-scrollbar-thumb:hover { background: var(--lc-olive-dark); }

/* ---------- HEADER / NAVEGACIÓN ---------- */
.header {
    backdrop-filter: saturate(180%) blur(8px);
    -webkit-backdrop-filter: saturate(180%) blur(8px);
    transition: box-shadow .35s var(--lc-ease), background-color .35s var(--lc-ease);
}

.navbar .logo img {
    transition: transform .5s var(--lc-ease);
}
.navbar .logo:hover img { transform: scale(1.04); }

.nav-links a {
    position: relative;
    transition: color .25s var(--lc-ease);
}
.nav-links a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--lc-terracotta);
    transition: width .35s var(--lc-ease), left .35s var(--lc-ease);
    border-radius: 2px;
}
.nav-links a:hover::after,
.nav-links a:focus-visible::after {
    width: 80%;
    left: 10%;
}

/* ---------- HERO ---------- */
.hero-banner {
    position: relative;
    isolation: isolate;
}
.hero-banner::after {
    /* Viñeta cálida sutil que da más profundidad */
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(120% 80% at 50% 110%,
          rgba(43, 36, 24, 0.55) 0%,
          rgba(43, 36, 24, 0)   60%);
    pointer-events: none;
    z-index: 0;
}
.hero-content { position: relative; z-index: 1; }

.hero-content h1 {
    letter-spacing: 0.5px;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.45);
    animation: lcFadeUp .9s var(--lc-ease) both;
}
.hero-content > p {
    animation: lcFadeUp .9s .15s var(--lc-ease) both;
}

@keyframes lcFadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------- USP ICONOS ---------- */
.usp-icons {
    gap: 14px;
    animation: lcFadeUp .9s .3s var(--lc-ease) both;
}

.usp-item {
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--lc-radius-md);
    padding: 14px 18px;
    transition: transform .35s var(--lc-ease),
                background-color .35s var(--lc-ease),
                border-color .35s var(--lc-ease);
}
.usp-item:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
}
.usp-item i {
    color: var(--lc-gold-soft);
    transition: transform .4s var(--lc-ease);
}
.usp-item:hover i { transform: scale(1.15) rotate(-4deg); }

/* ---------- BOTONES ---------- */
.btn-search {
    border-radius: 999px;
    padding: 16px 38px;
    letter-spacing: 0.5px;
    font-weight: 600;
    box-shadow: var(--lc-shadow-md);
    transition: transform .3s var(--lc-ease),
                box-shadow .3s var(--lc-ease),
                background-color .3s var(--lc-ease);
    position: relative;
    overflow: hidden;
}
.btn-search::before {
    content: '';
    position: absolute;
    top: 0; left: -75%;
    width: 50%; height: 100%;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(255, 255, 255, 0.25) 50%,
        transparent 100%
    );
    transition: left .6s var(--lc-ease);
}
.btn-search:hover {
    transform: translateY(-3px);
    box-shadow: var(--lc-shadow-hover);
}
.btn-search:hover::before { left: 125%; }
.btn-search:active { transform: translateY(-1px); }

.btn-instagram, .btn-facebook {
    border-radius: 999px;
    padding: 11px 22px;
    transition: transform .3s var(--lc-ease), box-shadow .3s var(--lc-ease);
    box-shadow: var(--lc-shadow-sm);
}
.btn-instagram:hover, .btn-facebook:hover {
    transform: translateY(-2px);
    box-shadow: var(--lc-shadow-md);
}

.btn-contact {
    border-radius: 999px;
    padding: 14px 28px;
    transition: transform .3s var(--lc-ease), box-shadow .3s var(--lc-ease);
    box-shadow: var(--lc-shadow-sm);
}
.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: var(--lc-shadow-md);
}

/* ---------- SECCIONES ---------- */
.section {
    position: relative;
}
.section h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 16px;
}
.section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--lc-terracotta) 30%,
        var(--lc-gold) 70%,
        transparent 100%);
    border-radius: 3px;
}

/* Centrar h2 con su línea decorativa */
.descripcion h2,
.servicios h2,
.reviews h2 {
    display: block;
    text-align: center;
}
.descripcion h2::after,
.servicios h2::after,
.reviews h2::after {
    left: 50%;
}

/* ---------- DESCRIPCIÓN: GALERÍAS LATERALES ---------- */
.galeria-img {
    border-radius: var(--lc-radius-md);
    box-shadow: var(--lc-shadow-sm);
    transition: transform .5s var(--lc-ease),
                box-shadow .5s var(--lc-ease),
                filter .5s var(--lc-ease);
    filter: saturate(0.95);
    cursor: zoom-in;
}
.galeria-img:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--lc-shadow-lg);
    filter: saturate(1.1);
}

/* Contenido descripción más legible */
.descripcion-content {
    line-height: 1.75;
}
.descripcion-content h3 {
    margin-top: 1.5em;
    position: relative;
    padding-left: 18px;
}
.descripcion-content h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.4em;
    bottom: 0.4em;
    width: 4px;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--lc-terracotta), var(--lc-gold));
}

/* ---------- SERVICIOS: TARJETAS ---------- */
.servicios-categoria {
    background: #fff;
    border-radius: var(--lc-radius-lg);
    box-shadow: var(--lc-shadow-sm);
    border: 1px solid var(--lc-line);
    transition: transform .4s var(--lc-ease),
                box-shadow .4s var(--lc-ease),
                border-color .4s var(--lc-ease);
    overflow: hidden;
    position: relative;
}
.servicios-categoria::before {
    /* Acento superior con la paleta */
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--lc-terracotta), var(--lc-gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .5s var(--lc-ease);
}
.servicios-categoria:hover {
    transform: translateY(-6px);
    box-shadow: var(--lc-shadow-lg);
    border-color: transparent;
}
.servicios-categoria:hover::before { transform: scaleX(1); }

.servicios-categoria h3 {
    display: flex;
    align-items: center;
    gap: 10px;
}
.servicios-categoria h3 i {
    color: var(--lc-terracotta);
    transition: transform .35s var(--lc-ease);
}
.servicios-categoria:hover h3 i { transform: rotate(-8deg) scale(1.1); }

.servicios-categoria ul li {
    transition: transform .25s var(--lc-ease), color .25s var(--lc-ease);
}
.servicios-categoria ul li:hover {
    transform: translateX(4px);
    color: var(--lc-terracotta-d);
}
.servicios-categoria ul li i {
    color: var(--lc-olive);
}

/* ---------- MODAL DE IMAGEN ---------- */
.modal {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(43, 36, 24, 0.85);
    animation: lcFadeIn .3s var(--lc-ease);
}
.modal-content {
    border-radius: var(--lc-radius-md);
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
    animation: lcZoomIn .4s var(--lc-ease);
}
.modal .close {
    transition: transform .25s var(--lc-ease), color .25s var(--lc-ease);
}
.modal .close:hover {
    transform: rotate(90deg) scale(1.1);
    color: var(--lc-terracotta);
}

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

/* ---------- BOTONES FLOTANTES ---------- */
.whatsapp-flotante,
.google-review-btn {
    box-shadow: 0 6px 20px rgba(43, 36, 24, 0.18),
                0 2px 6px rgba(43, 36, 24, 0.12);
    transition: transform .35s var(--lc-ease), box-shadow .35s var(--lc-ease);
    will-change: transform;
}
.whatsapp-flotante:hover,
.google-review-btn:hover {
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 12px 30px rgba(43, 36, 24, 0.25),
                0 4px 10px rgba(43, 36, 24, 0.15);
}

/* (El pulso dorado del Google Review se ha quitado para no
   competir con los CTAs del contenido en móvil) */

/* ---------- FOOTER ---------- */
.footer {
    border-top: 1px solid var(--lc-line);
}
.footer a {
    transition: color .25s var(--lc-ease);
    position: relative;
}
.footer a:hover { color: var(--lc-terracotta); }

/* ---------- BANNER DE COOKIES ---------- */
#cookie-banner {
    border-radius: var(--lc-radius-md) var(--lc-radius-md) 0 0;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ==========================================================================
   TICKER DE RESEÑAS DE GOOGLE
   ========================================================================== */

.reviews-ticker {
    width: 100%;
    margin-top: 30px;
    padding: 10px 0;
    overflow: hidden;
    /* Fundido en los bordes para entrada/salida limpia */
    -webkit-mask-image: linear-gradient(90deg,
        transparent 0%,
        #000 8%,
        #000 92%,
        transparent 100%);
    mask-image: linear-gradient(90deg,
        transparent 0%,
        #000 8%,
        #000 92%,
        transparent 100%);
}

.reviews-ticker__row {
    display: flex;
    width: max-content;
    gap: 22px;
    padding: 18px 11px;
}

/* Fila superior: deslizamiento hacia la izquierda */
.reviews-ticker__row--left {
    animation: lcTickerLeft 140s linear infinite;
}

/* Fila inferior: deslizamiento hacia la derecha */
.reviews-ticker__row--right {
    animation: lcTickerRight 160s linear infinite;
}

/* Pausa al hacer hover sobre la fila */
.reviews-ticker__row:hover {
    animation-play-state: paused;
}

@keyframes lcTickerLeft {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@keyframes lcTickerRight {
    from { transform: translateX(-50%); }
    to   { transform: translateX(0); }
}

/* Respeto a prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .reviews-ticker__row {
        animation: none;
        flex-wrap: wrap;
        justify-content: center;
    }
    .reviews-ticker {
        -webkit-mask-image: none;
        mask-image: none;
    }
}

/* ---------- TARJETA DE RESEÑA ---------- */
.review-card {
    flex: 0 0 auto;
    width: 340px;
    background: var(--lc-cream, #faf6ef);
    border: 1px solid var(--lc-line);
    border-radius: var(--lc-radius-lg);
    padding: 24px 22px 22px;
    box-shadow: var(--lc-shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    transition: transform .35s var(--lc-ease),
                box-shadow .35s var(--lc-ease),
                border-color .35s var(--lc-ease);
}
.review-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--lc-shadow-md);
    border-color: transparent;
}

/* Acento decorativo: comilla grande */
.review-card::before {
    content: '\201C';
    position: absolute;
    top: 8px;
    right: 18px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 72px;
    line-height: 1;
    color: var(--lc-terracotta);
    opacity: 0.18;
    font-weight: 700;
    pointer-events: none;
}

.review-card__head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-card__avatar {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: 'Lora', Georgia, serif;
    font-weight: 700;
    font-size: 17px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(43, 36, 24, 0.18);
}

.review-card__meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.review-card__author {
    font-family: 'Lora', Georgia, serif;
    font-weight: 700;
    font-size: 0.98rem;
    color: var(--lc-ink);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}

.review-card__date {
    font-family: 'Lora', Georgia, serif;
    font-size: 0.78rem;
    color: var(--lc-ink-soft);
    margin-top: 2px;
}

.review-card__stars {
    color: var(--lc-gold);
    font-size: 0.95rem;
    letter-spacing: 2px;
    line-height: 1;
}

.review-card__text {
    font-family: 'Lora', Georgia, serif;
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--lc-ink-soft);
    margin: 0;
    /* Recorte limpio si es muy larga */
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.review-card__google {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px dashed var(--lc-line);
    font-family: 'Lora', Georgia, serif;
    font-size: 0.75rem;
    color: var(--lc-ink-soft);
}
.review-card__google svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* CTA debajo del ticker */
.reviews-cta {
    text-align: center;
    margin-top: 26px;
}
.reviews-cta a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 28px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--lc-line);
    color: var(--lc-ink);
    font-family: 'Lora', Georgia, serif;
    font-weight: 600;
    text-decoration: none;
    box-shadow: var(--lc-shadow-sm);
    transition: transform .3s var(--lc-ease),
                box-shadow .3s var(--lc-ease),
                background-color .3s var(--lc-ease);
}
.reviews-cta a:hover {
    transform: translateY(-2px);
    box-shadow: var(--lc-shadow-md);
    background: var(--lc-cream-soft);
}
.reviews-cta a i {
    color: var(--lc-gold);
}

/* Ajustes responsive */
@media (max-width: 768px) {
    .review-card {
        width: 280px;
        padding: 20px 18px 18px;
    }
    .review-card__text {
        font-size: 0.88rem;
        -webkit-line-clamp: 4;
    }
    /* Más lento en móvil: la card es más grande relativa al viewport
       y necesita más tiempo en pantalla para poder leerla */
    .reviews-ticker__row--left  { animation-duration: 180s; }
    .reviews-ticker__row--right { animation-duration: 200s; }
}

/* ==========================================================================
   HOTFIXES — Móvil y limpieza del hero
   ========================================================================== */

/* El `.search-box` original tiene un fondo crema que en móvil queda como
   un recuadro grande alrededor del botón. Lo dejamos transparente para
   que el botón "Buscar Disponibilidad" respire. */
.search-box {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* USP icons: en móvil cada item se ajustaba a su contenido y se apilaban
   con anchos distintos. Forzamos rejilla 2×2 con anchos iguales. */
@media (max-width: 768px) {
    .usp-icons {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        max-width: 92%;
        margin: 20px auto 24px;
    }
    .usp-item {
        width: auto;
        padding: 12px 10px;
        font-size: 0.85rem;
        text-align: center;
        justify-content: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .usp-item i {
        font-size: 0.95rem;
    }
}

/* Sticky buttons: en móvil eran demasiado prominentes y solapaban
   el CTA del hero. Los hacemos más compactos y los separamos algo
   más del borde para que no compitan con el contenido. */
@media (max-width: 768px) {
    .whatsapp-flotante,
    .google-review-btn {
        width: 48px;
        height: 48px;
        font-size: 22px;
        bottom: 18px;
    }
    .whatsapp-flotante { left: 14px; }
    .google-review-btn { right: 14px; }
}

/* En el hero móvil, dar un poco más de margen inferior a los social
   buttons para que no queden pegados al borde si los sticky aparecen. */
@media (max-width: 768px) {
    .social-hero-buttons {
        margin-bottom: 28px;
    }
}

/* ==========================================================================
   GALERÍA DE FOTOS (fotoscuadra.php) — Masonry + Modal con navegación
   ========================================================================== */

/* ---------- HERO DE LA SECCIÓN ---------- */
.galeria-section {
    padding-top: 50px;
    padding-bottom: 60px;
}
.galeria-section > .subtitle {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 30px;
}

/* ---------- MASONRY (CSS columns, sin librerías) ---------- */
.galeria-grid {
    column-count: 3;
    column-gap: 18px;
    max-width: 1200px;
    margin: 30px auto 0;
    padding: 0 20px;
}

.galeria-grid .galeria-img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 0 18px;
    border-radius: var(--lc-radius-md, 14px);
    box-shadow: var(--lc-shadow-sm);
    cursor: zoom-in;
    /* Evita que una imagen se parta entre columnas */
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    /* Aparición progresiva */
    opacity: 0;
    transition: opacity 0.7s var(--lc-ease, ease),
                box-shadow 0.4s ease,
                filter 0.4s ease;
    filter: saturate(0.95);
}

.galeria-grid .galeria-img.is-visible {
    opacity: 1;
}

.galeria-grid .galeria-img:hover {
    box-shadow: var(--lc-shadow-lg);
    filter: saturate(1.1) brightness(1.03);
}

/* Responsive: 3 columnas → 2 → 1 */
@media (max-width: 1024px) {
    .galeria-grid {
        column-count: 2;
        column-gap: 14px;
        padding: 0 16px;
    }
    .galeria-grid .galeria-img { margin-bottom: 14px; }
}

@media (max-width: 600px) {
    .galeria-grid {
        column-count: 1;
        padding: 0 14px;
    }
    .galeria-grid .galeria-img { margin-bottom: 12px; }
}

/* Si el usuario prefiere menos movimiento, sin fade */
@media (prefers-reduced-motion: reduce) {
    .galeria-grid .galeria-img {
        opacity: 1 !important;
        transition: none !important;
        transition-delay: 0s !important;
    }
}

/* ==========================================================================
   MODAL DE GALERÍA — visor con navegación
   Solo afecta a .modal-gallery; el modal del index no se toca.
   ========================================================================== */

.modal-gallery {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(20, 16, 10, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: lcFadeIn .25s var(--lc-ease, ease);
}

.modal-gallery.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Botón cerrar --- */
.modal-gallery .modal-close {
    position: absolute;
    top: 20px;
    right: 22px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color .3s var(--lc-ease, ease),
                transform .35s var(--lc-ease, ease),
                border-color .3s var(--lc-ease, ease);
    z-index: 10;
}
.modal-gallery .modal-close:hover {
    background: var(--lc-terracotta, #c66b3d);
    border-color: transparent;
    transform: rotate(90deg) scale(1.05);
}

/* --- Botones de navegación --- */
.modal-gallery .modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 4px; /* compensa el descenso visual de ‹ › */
    transition: background-color .3s var(--lc-ease, ease),
                transform .35s var(--lc-ease, ease),
                border-color .3s var(--lc-ease, ease);
    z-index: 10;
}
.modal-gallery .modal-nav:hover {
    background: var(--lc-terracotta, #c66b3d);
    border-color: transparent;
}
.modal-gallery .modal-nav--prev {
    left: 22px;
}
.modal-gallery .modal-nav--prev:hover {
    transform: translateY(-50%) translateX(-3px) scale(1.06);
}
.modal-gallery .modal-nav--next {
    right: 22px;
}
.modal-gallery .modal-nav--next:hover {
    transform: translateY(-50%) translateX(3px) scale(1.06);
}

/* --- Stage e imagen --- */
.modal-gallery .modal-stage {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 70px 90px;
    box-sizing: border-box;
}

.modal-gallery .modal-content {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--lc-radius-md, 14px);
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
    transition: opacity .25s var(--lc-ease, ease);
    animation: lcZoomIn .35s var(--lc-ease, ease);
}
.modal-gallery .modal-content.is-loading {
    opacity: 0.2;
}

/* --- Contador --- */
.modal-gallery .modal-counter {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    padding: 8px 18px;
    border-radius: 999px;
    font-family: 'Lora', Georgia, serif;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

/* --- Responsive del modal --- */
@media (max-width: 768px) {
    .modal-gallery .modal-stage {
        padding: 60px 12px;
    }
    .modal-gallery .modal-nav {
        width: 44px;
        height: 44px;
        font-size: 28px;
    }
    .modal-gallery .modal-nav--prev { left: 8px; }
    .modal-gallery .modal-nav--next { right: 8px; }
    .modal-gallery .modal-close {
        top: 14px;
        right: 14px;
        width: 40px;
        height: 40px;
        font-size: 22px;
    }
    .modal-gallery .modal-counter {
        bottom: 14px;
        font-size: 0.78rem;
        padding: 6px 14px;
    }
}
