/* Color Palette & Variables */
:root {
    /* Color Palette - Premium & Nature-inspired */
    --color-gold: #c9a84c;
    --color-jungle-green: #0277a8;
    --color-maya-blue: #48cae4;
    --color-mint: #7fffd4;
    --color-cenote-deep: #011c28;
    --color-sand: #f9f7f2;
    --color-bg-light: #fcfbf8;
    --color-white: #ffffff;
    --color-black: #1a1a1a;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Jost', sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-light);
    color: var(--color-black);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display-serif {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* Header Styles */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background: transparent;
    transition: var(--transition-smooth);
}

.site-header.is-scrolled,
body.woocommerce-cart .site-header,
body.woocommerce-checkout .site-header,
body.woocommerce-account .site-header,
body.woocommerce-order-received .site-header,
body.single-product .site-header,
body.woocommerce-shop .site-header,
body.page-template-default:not(.home):not(.front-page) .site-header,
body.single:not(.home) .site-header,
body.archive .site-header,
body.search .site-header,
body.error404 .site-header {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    padding: 18px 0;      /* antes 10px — queda muy apretado para los iconos del header */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}
/* Cuando el usuario hace scroll el header se compacta un poco (sensación de shrink) */
.site-header.is-scrolled {
    padding: 12px 0;
}

/* En estas páginas el header siempre está "scrolled" — forzar estilos de texto oscuro */
body.woocommerce-cart .site-title,
body.woocommerce-checkout .site-title,
body.woocommerce-account .site-title,
body.woocommerce-order-received .site-title,
body.single-product .site-title,
body.woocommerce-shop .site-title,
body.page-template-default:not(.home):not(.front-page) .site-title,
body.single:not(.home) .site-title,
body.archive .site-title,
body.search .site-title,
body.error404 .site-title { color: var(--color-cenote-deep); text-shadow: none; }

body.woocommerce-cart .main-navigation a,
body.woocommerce-checkout .main-navigation a,
body.woocommerce-account .main-navigation a,
body.woocommerce-order-received .main-navigation a,
body.single-product .main-navigation a,
body.woocommerce-shop .main-navigation a,
body.page-template-default:not(.home):not(.front-page) .main-navigation a,
body.single:not(.home) .main-navigation a,
body.archive .main-navigation a,
body.search .main-navigation a,
body.error404 .main-navigation a { color: var(--color-text-main); }

body.woocommerce-cart .pdo-auth-btn,
body.woocommerce-checkout .pdo-auth-btn,
body.woocommerce-account .pdo-auth-btn,
body.woocommerce-order-received .pdo-auth-btn,
body.single-product .pdo-auth-btn,
body.woocommerce-shop .pdo-auth-btn,
body.page-template-default:not(.home):not(.front-page) .pdo-auth-btn,
body.single:not(.home) .pdo-auth-btn,
body.archive .pdo-auth-btn,
body.search .pdo-auth-btn {
    color: #011c28 !important;
    border-color: rgba(1,28,40,.2) !important;
    background: rgba(1,28,40,.03) !important;
    text-shadow: none !important;
}
body.woocommerce-cart .pdo-auth-btn:hover,
body.woocommerce-checkout .pdo-auth-btn:hover,
body.woocommerce-account .pdo-auth-btn:hover,
body.woocommerce-order-received .pdo-auth-btn:hover,
body.single-product .pdo-auth-btn:hover,
body.woocommerce-shop .pdo-auth-btn:hover,
body.page-template-default:not(.home):not(.front-page) .pdo-auth-btn:hover,
body.single:not(.home) .pdo-auth-btn:hover,
body.archive .pdo-auth-btn:hover,
body.search .pdo-auth-btn:hover {
    background: rgba(1,28,40,.08) !important;
    color: #011c28 !important;
    border-color: rgba(1,28,40,.35) !important;
}
body.woocommerce-cart .pdo-auth-btn .dashicons,
body.woocommerce-checkout .pdo-auth-btn .dashicons,
body.woocommerce-account .pdo-auth-btn .dashicons,
body.woocommerce-order-received .pdo-auth-btn .dashicons,
body.single-product .pdo-auth-btn .dashicons,
body.woocommerce-shop .pdo-auth-btn .dashicons,
body.page-template-default:not(.home):not(.front-page) .pdo-auth-btn .dashicons,
body.single:not(.home) .pdo-auth-btn .dashicons,
body.archive .pdo-auth-btn .dashicons,
body.search .pdo-auth-btn .dashicons { color: inherit !important; }

/* Register en páginas claras mantiene el gradiente dorado con texto blanco */
body.woocommerce-cart .pdo-auth-btn.pdo-auth-register,
body.woocommerce-checkout .pdo-auth-btn.pdo-auth-register,
body.woocommerce-account .pdo-auth-btn.pdo-auth-register,
body.woocommerce-order-received .pdo-auth-btn.pdo-auth-register,
body.single-product .pdo-auth-btn.pdo-auth-register,
body.woocommerce-shop .pdo-auth-btn.pdo-auth-register,
body.page-template-default:not(.home):not(.front-page) .pdo-auth-btn.pdo-auth-register,
body.single:not(.home) .pdo-auth-btn.pdo-auth-register,
body.archive .pdo-auth-btn.pdo-auth-register,
body.search .pdo-auth-btn.pdo-auth-register {
    color: #fff !important;
    border-color: transparent !important;
    background: linear-gradient(135deg, #c9a876 0%, #9f7f5e 100%) !important;
}
body.woocommerce-cart .pdo-auth-btn.pdo-auth-register .dashicons,
body.woocommerce-checkout .pdo-auth-btn.pdo-auth-register .dashicons,
body.woocommerce-account .pdo-auth-btn.pdo-auth-register .dashicons,
body.single-product .pdo-auth-btn.pdo-auth-register .dashicons,
body.woocommerce-shop .pdo-auth-btn.pdo-auth-register .dashicons,
body.page-template-default:not(.home):not(.front-page) .pdo-auth-btn.pdo-auth-register .dashicons,
body.single:not(.home) .pdo-auth-btn.pdo-auth-register .dashicons,
body.archive .pdo-auth-btn.pdo-auth-register .dashicons { color: #fff !important; }

/* Botón de usuario (avatar + nombre) en páginas claras */
body.woocommerce-cart .pdo-user-btn,
body.woocommerce-checkout .pdo-user-btn,
body.woocommerce-account .pdo-user-btn,
body.woocommerce-order-received .pdo-user-btn,
body.single-product .pdo-user-btn,
body.woocommerce-shop .pdo-user-btn,
body.page-template-default:not(.home):not(.front-page) .pdo-user-btn,
body.single:not(.home) .pdo-user-btn,
body.archive .pdo-user-btn,
body.search .pdo-user-btn {
    color: #011c28 !important;
    background: rgba(1,28,40,.04) !important;
    border-color: rgba(1,28,40,.15) !important;
    text-shadow: none !important;
}

/* Locale picker visible en páginas con fondo claro */
body.woocommerce-cart .sts-locale-btn,
body.woocommerce-checkout .sts-locale-btn,
body.woocommerce-account .sts-locale-btn,
body.woocommerce-order-received .sts-locale-btn,
body.single-product .sts-locale-btn,
body.woocommerce-shop .sts-locale-btn,
body.page-template-default:not(.home):not(.front-page) .sts-locale-btn,
body.single:not(.home) .sts-locale-btn,
body.archive .sts-locale-btn { color: #011c28 !important; border-color: rgba(1,28,40,.15) !important; background: rgba(1,28,40,.04) !important; }

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    padding-left: 1.5rem; /* Evitar que la 'D' inicial se corte */
}

.site-title {
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--color-white);
    transition: var(--transition-smooth);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.is-scrolled .site-title {
    color: var(--color-cenote-deep);
    text-shadow: none;
}

.site-title a, .site-title a:visited, .site-title a:hover {
    color: inherit !important;
    text-decoration: none !important;
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.main-navigation a {
    font-weight: 500;
    color: var(--color-white);
    font-size: 0.95rem;
}

.is-scrolled .main-navigation a {
    color: var(--color-text-main);
}

.main-navigation a:hover {
    color: var(--color-turquoise);
}

/* Buttons - Premium Clean Style (sin twists ni líneas visibles) */
.btn-primary, .btn-cta, .btn-ghost, .boton, .btn-full {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    position: relative;
    border: none;
    cursor: pointer;
    text-decoration: none;
    overflow: hidden;
    padding: 14px 34px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    background: linear-gradient(135deg, #1a2f3a 0%, #011c28 100%);
    border-radius: 2px;
    transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s ease, background .35s ease;
    box-shadow: 0 4px 14px rgba(1, 28, 40, .18);
    isolation: isolate;
}
/* Hover con deslizado de color desde la izquierda */
.btn-primary::before, .btn-cta::before, .boton.boton-clean::before, .btn-full::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #b9936c 0%, #9f7f5e 100%);
    transform: translateX(-101%);
    transition: transform .45s cubic-bezier(.645,.045,.355,1);
    z-index: -1;
}
.btn-primary:hover, .btn-cta:hover, .boton.boton-clean:hover, .btn-full:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(159, 127, 94, .35);
    color: #fff;
}
.btn-primary:hover::before, .btn-cta:hover::before, .boton.boton-clean:hover::before, .btn-full:hover::before {
    transform: translateX(0);
}

/* Variante header (transparente sobre hero) */
.site-header .header-cta,
.site-header.is-scrolled .header-cta,
.is-scrolled .main-navigation a.header-cta {
    background: linear-gradient(135deg, #1a2f3a 0%, #011c28 100%);
    color: #fff !important;
}
.site-header .header-cta:hover,
.site-header.is-scrolled .header-cta:hover {
    color: #fff !important;
}

/* Variante ghost (outline) */
.btn-ghost {
    background: transparent !important;
    color: #011c28;
    border: 2px solid #011c28;
    box-shadow: none;
}
.btn-ghost:hover {
    color: #fff !important;
    background: #011c28 !important;
}
.btn-ghost::before { display: none; }

/* Legacy reset: ocultar cualquier twist residual de caché */
.twists-container, .twist { display: none !important; }

.botontext {
    position: absolute;
    height: 100%;
    width: 100%;
    z-index: 10;
    text-align: center;
    line-height: inherit;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.botontext.placeholder {
    position: relative;
    opacity: 0;
    z-index: -1;
    padding: 14px 34px;
}

.twists-container {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    z-index: 1;
    pointer-events: none;
    perspective: 400px;
}

.twist {
    display: block;
    height: 100%;
    flex: 1;
    position: relative;
    pointer-events: none;
    transform-style: preserve-3d;
}

.twist:before, .twist:after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%; height: 100%;
    backface-visibility: hidden;
}

/* Front Face (Normal State) */
.twist:after {
    top: 0;
    background: #1a2f3a; /* Azul marino */
    transform-origin: center top;
    transform: rotateX(0deg) translateY(0%);
    transition: all 500ms cubic-bezier(0.97, 0, 0.395, 0.995);
}

/* Top Face (Hover State) */
.twist:before {
    bottom: 100%;
    background: #9f7f5e; /* Dorado tierra */
    transform-origin: center bottom;
    transform: rotateX(90deg) translateY(0%);
    transition: all 500ms cubic-bezier(0.97, 0, 0.395, 0.995);
}

/* Hover Animations */
.boton:hover .twist:after {
    transform: rotateX(-90deg) translateY(100%);
}

.boton:hover .twist:before {
    transform: rotateX(0deg) translateY(100%);
}

/* Secondary Button Colors */
.btn-secondary .twist:after {
    background: #9f7f5e; /* Dorado normal */
}
.btn-secondary .twist:before {
    background: #1a2f3a; /* Azul marino hover */
}

.boton .twist:nth-of-type(1) { margin-left: 0; }
.boton .twist:nth-of-type(1):before, .boton .twist:nth-of-type(1):after { transition-delay: 0s; }
.boton .twist:nth-of-type(2):before, .boton .twist:nth-of-type(2):after { transition-delay: 0.1s; }
.boton .twist:nth-of-type(3):before, .boton .twist:nth-of-type(3):after { transition-delay: 0.2s; }
.boton .twist:nth-of-type(4):before, .boton .twist:nth-of-type(4):after { transition-delay: 0.3s; }

.boton .botontext.text-1 {
    color: var(--color-white);
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    transform: translate(-50%, -50%) rotateX(0deg);
    transition: all 500ms cubic-bezier(0.970, 0.000, 0.395, 0.995);
    z-index: 5;
    white-space: nowrap;
}

.boton:hover .botontext.text-1 {
    transform: translate(-50%, -50%) rotateX(-90deg);
    opacity: 0;
}

.boton .botontext.text-2 {
    color: var(--color-white);
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    transform: translate(-50%, -50%) rotateX(90deg);
    transition: all 500ms cubic-bezier(0.970, 0.000, 0.395, 0.995);
    opacity: 0;
    z-index: 5;
    white-space: nowrap;
}

.boton:hover .botontext.text-2 {
    transform: translate(-50%, -50%) rotateX(0deg);
    opacity: 1;
}

.btn-ghost {
    background: transparent;
    color: var(--color-cenote-deep);
    border: 2px solid var(--color-cenote-deep);
}

.btn-ghost:hover {
    background: var(--color-cenote-deep);
    color: var(--color-white);
}

.btn-link {
    padding: 0;
    background: transparent;
    color: var(--color-gold);
    border-radius: 0;
    font-weight: 700;
    position: relative;
}

.btn-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-gold);
    transition: var(--transition-smooth);
}

.btn-link:hover::after {
    width: 100%;
}

.btn-full { width: 100%; }

.btn-open-triptych {
    color: var(--color-white);
}

.text-center { text-align: center; }

/* Footer Styles */
.site-footer {
    background: #0d1f2d;
    color: var(--color-white);
    padding: 80px 0 40px;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 50px;
}

.footer-column h3 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--color-turquoise);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column a {
    color: #a0a0a0;
}

.footer-column a:hover {
    color: var(--color-white);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.site-info {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 0.85rem;
    color: #a0a0a0;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    background: var(--color-cenote-deep);
    overflow: hidden;
    display: flex;
    align-items: center;
    color: var(--color-white);
}

.video-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
}

/* Hero promo caption (override de campaña desde Promociones) */
.hero-promo-caption {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 clamp(20px, 6vw, 80px);
    pointer-events: none;
    color: #fff;
    text-shadow: 0 4px 24px rgba(0,0,0,.5);
}
.hero-promo-caption > * { pointer-events: auto; }
.hero-promo-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 5.5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 14px;
    letter-spacing: -0.5px;
}
.hero-promo-subtitle {
    font-size: clamp(1rem, 1.6vw, 1.4rem);
    font-weight: 400;
    line-height: 1.5;
    margin: 0 0 28px;
    max-width: 720px;
    opacity: .95;
}
.hero-promo-cta {
    display: inline-block;
    padding: 14px 36px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    border-radius: 999px;
    box-shadow: 0 12px 32px rgba(0,0,0,.35);
    transition: transform .2s ease, box-shadow .2s ease;
}
.hero-promo-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(0,0,0,.45);
}
@media (max-width: 600px) {
    .hero-promo-caption { padding: 0 18px; justify-content: center; }
    .hero-promo-cta { padding: 12px 26px; font-size: .9rem; }
}

/* Custom Video Audio Controls */
.video-audio-controls {
    position: absolute;
    bottom: 30px;
    right: 30px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(1, 28, 40, 0.6);
    padding: 10px 20px;
    border-radius: 50px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}
/* En mobile: dejar espacio al botón flotante de WhatsApp (bottom-right ~70px) */
@media (max-width: 768px) {
    .video-audio-controls {
        right: 90px;        /* corre la barra a la izquierda */
        bottom: 24px;
        gap: 10px;
        padding: 8px 14px;
    }
}

.video-audio-controls:hover {
    background: rgba(1, 28, 40, 0.8);
    transform: translateY(-2px);
}

.mute-btn {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    width: 30px;
    height: 30px;
    transition: transform 0.2s ease;
}

.mute-btn:hover {
    transform: scale(1.1);
}

.volume-slider {
    width: 80px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: contain; /* Muestra el video completo sin recortar (zoom) */
    background: #011c28; /* Fondo que combina con el video */
    opacity: 1;
}

/* Fix 3D Button Hover Text */
.boton {
    perspective: 800px; /* Necesario para que la rotación 3D del texto sea visible */
}

.botontext.text-2 {
    transform: translate(-50%, -50%) rotateX(-90deg); /* Ajustado para mejor visibilidad */
}

.boton:hover .botontext.text-2 {
    transform: translate(-50%, -50%) rotateX(0deg);
}

/* Global Input Contrast Fix */
.input-field, .search-field, .custom-form input, .custom-form select {
    color: #1A1A1A !important; /* Forzar texto oscuro en campos claros */
}

.input-field::placeholder {
    color: #666 !important;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(1,28,40,0.5) 0%, rgba(1,28,40,0.2) 50%, rgba(1,28,40,0.8) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
}

.welcome-section {
    padding: 80px 0;
    background-color: var(--color-bg-light);
    color: var(--color-cenote-deep);
    position: relative;
    z-index: 20;
}

.welcome-section .hero-title {
    color: var(--color-cenote-deep);
    text-shadow: none;
}

.welcome-section .hero-subtitle {
    color: var(--color-black);
    text-shadow: none;
    margin-left: auto;
    margin-right: auto;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

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

.sound-toggle {
    position: absolute;
    bottom: 40px;
    right: 40px;
    z-index: 20;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--color-white);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    backdrop-filter: blur(5px);
}

.sound-toggle:hover {
    background: var(--color-gold);
    border-color: var(--color-gold);
}

/* Responsive Menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

/* 3D Interactive Triptych (Cenote Cards) */
.cenote-3d-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 4rem;
    perspective: 1400px;
    perspective-origin: 50% 40%;
    /* Fit-to-viewport: altura fija en función de la pantalla */
    height: min(720px, calc(100vh - 130px));
}

.cenote-3d-flipper {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.95s cubic-bezier(0.645, 0.045, 0.355, 1.000),
                filter 0.95s ease;
    will-change: transform;
}

/* Sombra que crece mientras la tarjeta gira (profundidad) */
.cenote-3d-flipper::after {
    content: '';
    position: absolute;
    inset: 8px;
    border-radius: 24px;
    background: transparent;
    box-shadow: 0 0 0 rgba(0,0,0,0);
    transition: box-shadow 0.5s ease;
    pointer-events: none;
    z-index: -1;
}
.cenote-3d-wrapper.is-flipping .cenote-3d-flipper::after {
    box-shadow: 0 30px 80px rgba(0,0,0,0.35);
}

.cenote-3d-wrapper.is-flipped .cenote-3d-flipper {
    transform: rotateY(180deg);
}

.cenote-face {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 24px;
    background: var(--color-white);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transform: translateZ(0); /* Fix for mobile mirroring */
}

/* Front Face Strategy: Cover overlay, unfold panels underneath */
.cenote-front {
    display: flex;
    flex-direction: column;
}

.cenote-back {
    transform: rotateY(180deg);
    background: var(--color-sand);
    padding: 2.5rem 3rem;
    display: flex;
    align-items: flex-start;     /* Contenido alineado arriba, no centrado */
    justify-content: center;
    overflow-y: auto;             /* Scroll cuando el contenido es largo */
    -webkit-overflow-scrolling: touch;
}

/* Prevent accidental click overlap */
.cenote-3d-wrapper.is-flipped .cenote-front {
    pointer-events: none;
}
.cenote-3d-wrapper:not(.is-flipped) .cenote-back {
    pointer-events: none;
}

/* The Cover (Initial visual) */
.triptych-cover {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 10;
    border-radius: 24px;
    overflow: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    transform-origin: center;
}

.cover-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.cover-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(1, 28, 40, 0.8), rgba(0,0,0,0.1));
    z-index: 2;
}

.cover-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--color-white);
    padding: 2rem;
}

.badge-distance {
    background: var(--color-gold);
    color: var(--color-white);
    padding: 6px 16px;
    border-radius: 980px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.cenote-name {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.cenote-tagline {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    text-shadow: 0 1px 5px rgba(0,0,0,0.5);
}

/* ── Cover Actions — botones lado a lado, tamaño uniforme ────── */
.cover-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 1.2rem;
}
.cover-actions .boton {
    min-height: 44px;
    padding: 10px 20px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 0 1 auto;
    max-width: 200px;
    box-sizing: border-box;
    margin-top: 0 !important;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    border-radius: 6px;
    white-space: nowrap;
}
.cover-actions .btn-cta-buy {
    background: var(--color-gold) !important;
    color: #1a1a1a !important;
    border: none !important;
}
.cover-actions .btn-secondary {
    background: rgba(255,255,255,0.15) !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.45) !important;
}
.cover-actions .btn-secondary:hover {
    background: rgba(255,255,255,0.28) !important;
}

/* When Triptych is Open */
.cenote-3d-wrapper.is-open .triptych-cover {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.97) translateY(-6px);
    pointer-events: none;
}

/* Inner triptych — absolutamente posicionado para llenar la cara completa */
.triptych-inner {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    background: var(--color-bg-light);
    border-radius: 24px;
    overflow: hidden;
    pointer-events: none;           /* desactivado hasta que esté abierto */
}
.cenote-3d-wrapper.is-open .triptych-inner {
    pointer-events: auto;
}

/* The 3 Panels */
.triptych-panels {
    display: grid;
    grid-template-columns: 1fr 1.6fr 1fr;
    gap: 0;
    height: 100%;
    perspective: 1600px;
    perspective-origin: 50% 40%;
}

/* ── Cada panel es un flex-column: header + zona-scroll + footer (botones) ── */
.triptych-panel {
    padding: 2rem 1.75rem;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;               /* El scroll lo maneja .panel-scroll dentro */
    min-height: 0;                  /* Fix CSS Grid: permite overflow en celdas */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    transition:
        opacity    0.55s ease,
        visibility 0s   linear 0.55s,
        transform  0.85s cubic-bezier(0.23, 1, 0.32, 1);
}
/* Zona interior con scroll — este es el ÚNICO elemento que hace scroll */
.triptych-panel .panel-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding-right: 4px;             /* espacio para la scrollbar sin cortar texto */
    scrollbar-width: thin;
    scrollbar-color: rgba(1,28,40,.2) transparent;
}
.triptych-panel .panel-scroll::-webkit-scrollbar { width: 4px; }
.triptych-panel .panel-scroll::-webkit-scrollbar-thumb { background: rgba(1,28,40,.2); border-radius: 4px; }
/* Footer de acciones siempre visible (sin scroll) */
.triptych-panel .triptych-actions {
    flex: 0 0 auto;
    margin-top: 1rem;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ─── Desdoblado realista tipo papel: se abre del centro a los lados ─────
   - Bisagra EN el borde adyacente al centro
   - Rotación inicial 180° (completamente doblado sobre sí mismo)
   - Al abrir: rotación suave a 0° con easing de papel + sombra en el pliegue
   ─────────────────────────────────────────────────────────────────────── */
.panel-left {
    background: linear-gradient(135deg, #fdfdfd 0%, #f5f5f0 100%);
    transform-origin: right center;
    transform: rotateY(-180deg);
    box-shadow:
        inset -6px 0 12px rgba(0,0,0,0.05),
        -4px 0 14px rgba(0,0,0,0.12);
    position: relative;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}
/* Sombra del pliegue (arista derecha) durante el despliegue */
.panel-left::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 24px;
    background: linear-gradient(to left, rgba(0,0,0,0.10), transparent);
    pointer-events: none;
    opacity: 0.6;
    transition: opacity 0.7s ease;
}

.panel-right {
    background: linear-gradient(225deg, #fdfdfd 0%, #f5f5f0 100%);
    transform-origin: left center;
    transform: rotateY(180deg);
    box-shadow:
        inset 6px 0 12px rgba(0,0,0,0.05),
        4px 0 14px rgba(0,0,0,0.12);
    position: relative;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}
.panel-right::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 24px;
    background: linear-gradient(to right, rgba(0,0,0,0.10), transparent);
    pointer-events: none;
    opacity: 0.6;
    transition: opacity 0.7s ease;
}

/* Panel central: eje del "libro", aparece primero y un poco más adelantado */
.panel-center {
    background: var(--color-white);
    padding: 2rem 1.5rem;
    transform: scale(0.94) translateZ(-40px);
    box-shadow:
        inset 10px 0 12px -8px rgba(0,0,0,0.08),
        inset -10px 0 12px -8px rgba(0,0,0,0.08);
    position: relative;
    z-index: 2;
}

/* ── Estado ABIERTO (todos los paneles planos) ─────────────────────── */
.cenote-3d-wrapper.is-open .triptych-panel {
    opacity: 1;
    visibility: visible;
    transform: rotateY(0) scale(1) translateZ(0);
    transition:
        opacity    0.55s ease,
        visibility 0s   linear 0s,
        transform  0.95s cubic-bezier(0.33, 1, 0.68, 1);
}

/* Secuencia papel: centro primero → luego las páginas laterales */
.cenote-3d-wrapper.is-open .panel-center {
    transition-delay: 0s;
    box-shadow:
        inset 2px 0 8px -6px rgba(0,0,0,0.05),
        inset -2px 0 8px -6px rgba(0,0,0,0.05);
}
.cenote-3d-wrapper.is-open .panel-left {
    transition-delay: 0.15s;
    box-shadow: inset -3px 0 10px rgba(0,0,0,0.04);
}
.cenote-3d-wrapper.is-open .panel-right {
    transition-delay: 0.30s;
    box-shadow: inset 3px 0 10px rgba(0,0,0,0.04);
}
/* La sombra del pliegue desaparece cuando está totalmente abierto */
.cenote-3d-wrapper.is-open .panel-left::after,
.cenote-3d-wrapper.is-open .panel-right::before {
    opacity: 0;
    transition: opacity 0.4s ease 0.6s;
}

.panel-num {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    color: var(--color-gold);
    opacity: 0.3;
    margin-bottom: 1rem;
}

.triptych-panel h4 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--color-cenote-deep);
    margin-bottom: 0.5rem;
}

.triptych-panel p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(0,0,0,0.7);
}

.panel-center h3 {
    font-size: 2.5rem;
    color: var(--color-cenote-deep);
    margin-bottom: 1rem;
    text-align: center;
}

.details-desc {
    font-size: 1.05rem;
    line-height: 1.7;
    text-align: center;
    color: rgba(0,0,0,0.8);
    margin-bottom: 2rem;
}

.triptych-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: auto;
}

/* Back Face Content */
.back-content {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}
.back-content h3 {
    text-align: center;
    color: var(--color-cenote-deep);
    margin-bottom: 2rem;
}
.practical-info-text {
    background: var(--color-white);
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
}

/* ═══════════════════════════════════════════════════════════════════
   TRIPTYCH RESPONSIVE
   ─────────────────────────────────────────────────────────────────
   ≥ 1025px : Desktops — 3 columnas horizontales, fold en Y
   768–1024px : Tablets landscape — 3 columnas compactas
   ≤ 767px portrait  : Móvil vertical → apila verticalmente, fold en X
   ≤ 900px landscape : Móvil horizontal → 3 columnas, fold en Y compacto
   ═══════════════════════════════════════════════════════════════════ */

/* ── Tablet (769–1024px) ────────────────────────────────────────── */
@media (max-width: 1024px) and (min-width: 769px) {
    .cenote-3d-wrapper { perspective: 1100px; }
    .cenote-3d-flipper { min-height: 600px; }

    .triptych-panels {
        grid-template-columns: 0.8fr 1.4fr 0.8fr;
        perspective: 1000px;
    }
    .triptych-panel { padding: 2rem 1.5rem; }

    /* Bisagra más corta → fold más dramático en tablet */
    .panel-left  { transform: rotateY(-85deg); }
    .panel-right { transform: rotateY(85deg); }
    .panel-center { transform: scale(0.95); }
}

/* ── Móvil vertical (portrait ≤ 767px) — apila de arriba a abajo ── */
@media (max-width: 767px) and (orientation: portrait) {
    .cenote-3d-wrapper  {
        perspective: 900px;
        /* Quitar la altura fija de viewport: el contenido apilado
           necesita crecer libremente para que se vean los botones. */
        height: auto;
        min-height: 0;
    }
    .cenote-3d-flipper  {
        min-height: unset;
        min-height: auto;
        height: auto;
    }
    .triptych-inner {
        height: auto;
    }
    /* Botones de los paneles: visibles, separados, con margen abajo
       para no quedar pegados al borde de la sección */
    .triptych-actions {
        margin-top: 1.4rem;
        margin-bottom: 0.4rem;
        flex-direction: column;
        gap: 0.7rem;
    }
    .triptych-actions .btn,
    .triptych-actions .boton,
    .triptych-actions a,
    .triptych-actions button {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
    /* Sección global: respiración inferior para no recortar el último panel */
    .cenotes-tripticos-section {
        padding-bottom: 2rem;
    }

    /* Los paneles se apilan verticalmente */
    .triptych-panels {
        display: flex;
        flex-direction: column;
        height: auto;
        overflow-y: auto;
        perspective: none;
    }

    /* Cada panel ocupa su contenido + scroll si hace falta */
    .triptych-panel {
        min-height: 0;
        height: auto;
        overflow-y: visible;     /* No scroll individual, scroll en la columna */
        padding: 1.8rem 1.4rem;
        opacity: 0;
        visibility: hidden;
        /* Desdoblado vertical: arriba→abajo */
        transition:
            opacity    0.35s ease,
            visibility 0s   linear 0.35s,
            transform  0.55s cubic-bezier(0.23, 1, 0.32, 1);
    }

    /* Panel izquierdo: se dobla hacia abajo desde su borde inferior */
    .panel-left {
        transform-origin: bottom center;
        transform: rotateX(90deg);
        order: 1;
    }
    .panel-left::after { display: none; }

    /* Panel central: aparece desde "atrás" */
    .panel-center {
        order: 2;
        transform: scaleY(0.88) translateY(-12px);
        padding-top: 2rem;
        justify-content: flex-start;
    }

    /* Panel derecho: se dobla hacia arriba desde su borde superior */
    .panel-right {
        transform-origin: top center;
        transform: rotateX(-90deg);
        order: 3;
    }
    .panel-right::before { display: none; }

    /* Abierto en móvil portrait */
    .cenote-3d-wrapper.is-open .panel-left,
    .cenote-3d-wrapper.is-open .panel-right,
    .cenote-3d-wrapper.is-open .panel-center {
        transform: none;
        opacity: 1;
        visibility: visible;
        transition:
            opacity    0.35s ease,
            visibility 0s   linear 0s,
            transform  0.55s cubic-bezier(0.23, 1, 0.32, 1);
    }
    .cenote-3d-wrapper.is-open .panel-center { transition-delay: 0s; }
    .cenote-3d-wrapper.is-open .panel-left   { transition-delay: 0.10s; }
    .cenote-3d-wrapper.is-open .panel-right  { transition-delay: 0.20s; }

    /* Inner triptych en portrait: height auto (contenido determina alto) */
    .triptych-inner {
        position: relative;
        top: auto; left: auto;
        height: auto;
    }

    .cenote-back { padding: 1.5rem; }
}

/* ── Móvil horizontal (landscape ≤ 900px) — 3 columnas compactas ── */
@media (max-width: 900px) and (orientation: landscape) {
    .cenote-3d-wrapper  { perspective: 1000px; }
    .cenote-3d-flipper  { min-height: min(380px, calc(100vh - 80px)); }

    .triptych-panels {
        grid-template-columns: 0.75fr 1.5fr 0.75fr;
        perspective: 900px;
        height: 100%;
    }

    .triptych-panel { padding: 1.5rem 1.2rem; }

    /* Fold horizontal compacto */
    .panel-left  { transform: rotateY(-80deg); }
    .panel-right { transform: rotateY(80deg); }
    .panel-center { transform: scale(0.96); }

    .cenote-back { padding: 1.5rem 2rem; }
}

.triptico-panel {
    display: none;
    width: 100%;
    animation: fadeIn 0.5s ease forwards;
}

.triptico-panel.active {
    display: block;
    background: var(--color-bg-light);
}

.cenote-card .panel-portada.active { padding: 60px 40px; }
.cenote-card .panel-experience.active { padding: 60px 40px; }
.cenote-card .panel-info.active { padding: 60px 40px; }

@media (max-width: 768px) {
    .cenote-card-header { padding: 2rem; }
    .cenote-card-header h3 { font-size: 1.8rem; }
    .cenotes-hero h1 { font-size: 2.5rem; }
}


/* Booking Module Base */
.booking-module {
    padding: 100px 0;
    background: var(--color-cenote-deep);
    color: var(--color-white);
}

/* Redundant Phase 3 styles removed - moved to child-buceo.css */

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

/* Animations extra */
.quick-booking-form {
    border: 2px solid transparent;
    transition: var(--transition-smooth);
}

.quick-booking-form:hover {
    border-color: var(--color-turquoise);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

@media (max-width: 900px) {
    .cenote-name { font-size: 2.5rem; }
    .experience-sequence { grid-template-columns: 1fr; }
    .info-grid { grid-template-columns: 1fr; }
    .row { flex-direction: column; }
}

/* Phase 6: Diving Section Layout */
.diving-section {
    padding: 80px 0;
    background: #fcfbf8;
}

.diving-wrapper {
    background: #ffffff;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 15px 45px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
}

.diving-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

.diving-form-container h3, 
.diving-table-container h3 {
    margin-bottom: 1.5rem;
    color: var(--color-cenote-deep);
}

.diving-form-container .input-field {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #1a1a1a !important;
}

.diving-form-container label {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

@media (max-width: 992px) {
    .diving-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .diving-wrapper {
        padding: 1.5rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   BOOKING MODULE v2 — Carrito de Compras
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Sección principal ── */
.booking-module {
    padding: 80px 0;
    background: linear-gradient(160deg, #f0f7ff 0%, var(--color-sand) 100%);
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-top: -1rem;
    margin-bottom: 2.5rem;
    font-size: 1rem;
}

.reserva-wrapper {
    max-width: 820px;
    margin: 0 auto;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    overflow: hidden;
}

/* ── Wizard Progress ── */
.wizard-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 40px 0;
    gap: 0;
}

.wizard-step-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.wizard-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2.5px solid #ddd;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    font-weight: 700;
    color: #aaa;
    transition: all .35s ease;
    position: relative;
}

.wizard-dot.active {
    border-color: var(--color-jungle-green);
    background: var(--color-jungle-green);
    color: #fff;
    box-shadow: 0 0 0 5px rgba(2, 119, 168, .15);
}

.wizard-dot.completed {
    border-color: var(--color-jungle-green);
    background: var(--color-jungle-green);
    color: #fff;
}

.wizard-dot.completed::after {
    content: '✓';
    font-size: 1rem;
}

.wizard-label {
    font-size: .72rem;
    color: #999;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.wizard-dot.active ~ .wizard-label,
.wizard-step-wrap:has(.wizard-dot.active) .wizard-label,
.wizard-step-wrap:has(.wizard-dot.completed) .wizard-label {
    color: var(--color-jungle-green);
    font-weight: 600;
}

.wizard-connector {
    flex: 1;
    height: 2px;
    background: #e0e0e0;
    margin: 0 4px;
    margin-bottom: 22px; /* align with dot center */
    transition: background .35s;
}

/* ── Booking Steps ── */
.booking-flow {
    padding: 32px 40px 40px;
}

.booking-step {
    display: none;
}

.booking-step.active {
    display: block;
    animation: fadeInStep .3s ease;
}

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

.step-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-jungle-green);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.step-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--color-cenote-deep);
}

/* ── Cenote Picker Cards ── */
.cenote-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
}

.cenote-pick-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 18px 12px;
    border: 2px solid #e8e8e8;
    border-radius: 16px;
    background: #fafafa;
    cursor: pointer;
    transition: all .25s ease;
    text-align: center;
    font-family: var(--font-body);
}

.cenote-pick-card:hover {
    border-color: var(--color-jungle-green);
    background: #f0f9ff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2,119,168,.12);
}

.cenote-pick-card.selected {
    border-color: var(--color-jungle-green);
    background: linear-gradient(135deg, #e3f2fd, #f0f9ff);
    box-shadow: 0 4px 16px rgba(2,119,168,.18);
}

.cpc-icon {
    font-size: 2rem;
    line-height: 1;
    display: inline-block;
    transform-origin: center;
    transition: transform .5s cubic-bezier(.22, 1, .36, 1), filter .4s ease;
    will-change: transform, filter;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .08));
}

/* ─── Hover base: efecto unificado y elegante para todas las tarjetas */
.cenote-pick-card:hover .cpc-icon {
    transform: scale(1.12) translateY(-2px);
    filter: drop-shadow(0 8px 18px rgba(244, 185, 47, .35))
            drop-shadow(0 2px 4px rgba(1, 28, 40, .12));
}

/* ─── Acentos sutiles por cenote ──────────────────────────────────── */

/* Dos Ojos: parpadeo del ojo (mantenido — es el que les gustó).
   Más suave: cierra completamente, pausa larga, ciclo de 4s */
.cenote-pick-card[data-cenote="dos-ojos"]:hover .cpc-icon {
    animation: pdo-blink 4s ease-in-out infinite;
}
@keyframes pdo-blink {
    0%, 92%, 100% { transform: scale(1.12) translateY(-2px) scaleY(1); }
    95%, 98%      { transform: scale(1.12) translateY(-2px) scaleY(.08); }
}

/* Jaguar: respiración profunda (predador en reposo) — scale sutil que
   aumenta y disminuye lentamente */
.cenote-pick-card[data-cenote="jaguar"]:hover .cpc-icon {
    animation: pdo-breath 3.5s ease-in-out infinite;
}
@keyframes pdo-breath {
    0%, 100% { transform: scale(1.12) translateY(-2px); }
    50%      { transform: scale(1.20) translateY(-3px); }
}

/* Nicte-Ha: vaivén delicado (flor flotando sobre el agua).
   Pendulo muy sutil ±3°, lento y orgánico */
.cenote-pick-card[data-cenote="nicte-ha"]:hover .cpc-icon {
    animation: pdo-float 4s ease-in-out infinite;
    transform-origin: center bottom;
}
@keyframes pdo-float {
    0%, 100% { transform: scale(1.12) translateY(-2px) rotate(-3deg); }
    50%      { transform: scale(1.12) translateY(-4px) rotate(3deg); }
}

/* Misterio Maya: rotación lenta tipo museo — una vuelta cada 12s.
   Da sensación de objeto valioso siendo observado en 360°.
   Truco: removemos el translateY del hover base para no romper la rotación */
.cenote-pick-card[data-cenote="misterio"]:hover .cpc-icon {
    animation: pdo-museum-rotate 12s linear infinite;
}
@keyframes pdo-museum-rotate {
    from { transform: scale(1.12) rotate(0deg); }
    to   { transform: scale(1.12) rotate(360deg); }
}

/* Monos: curioso que asoma la cabeza — micro-tilt entre lados, lento */
.cenote-pick-card[data-cenote="monos"]:hover .cpc-icon {
    animation: pdo-curious 3s ease-in-out infinite;
}
@keyframes pdo-curious {
    0%, 100% { transform: scale(1.12) translateY(-2px) rotate(0deg); }
    33%      { transform: scale(1.14) translateY(-3px) rotate(-5deg); }
    66%      { transform: scale(1.14) translateY(-3px) rotate(5deg); }
}

/* ─── Highlight (resaltado) cuando se hace click en banner ──────── */
.cenote-pick-card.pdo-highlight {
    animation: pdo-highlight-pulse 1.4s ease-in-out 3;
    border-color: #f4b92f !important;
    background: linear-gradient(135deg, #fff7e0, #fdfbf5) !important;
    box-shadow: 0 8px 28px rgba(244,185,47,.35) !important;
    position: relative;
    z-index: 2;
}
.cenote-pick-card.pdo-highlight::after {
    content: '🎁 Tour incluye Nicte-Ha y Jaguar';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #f4b92f, #d99e1c);
    color: #011c28;
    font-size: .65rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(244,185,47,.4);
    animation: pdo-tag-bounce 1.4s ease-in-out 3;
    letter-spacing: .3px;
}
@keyframes pdo-highlight-pulse {
    0%, 100% { transform: translateY(0) scale(1); }
    50%      { transform: translateY(-4px) scale(1.04); }
}
@keyframes pdo-tag-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(-3px); }
}

.cpc-name {
    font-weight: 700;
    color: var(--color-cenote-deep);
    font-size: .9rem;
}

.cpc-tagline {
    font-size: .72rem;
    color: #777;
    line-height: 1.3;
}

/* ── Service Picker (Step 3) ── */
.sp-placeholder {
    text-align: center;
    color: #aaa;
    padding: 30px;
    font-style: italic;
}

.sp-cenote-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--color-cenote-deep);
    margin-bottom: 16px;
    font-weight: 700;
}

.sp-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sp-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border: 2px solid #eeeeee;
    border-radius: 14px;
    background: #fafafa;
    transition: all .25s ease;
}

.sp-card:hover {
    border-color: #cce0f0;
    background: #f5faff;
}

.sp-card--selected {
    border-color: var(--color-jungle-green);
    background: linear-gradient(135deg, #e8f5e9 0%, #f0f9ff 100%);
    box-shadow: 0 3px 12px rgba(2,119,168,.12);
}

.sp-card-icon {
    font-size: 2rem;
    flex-shrink: 0;
    width: 44px;
    text-align: center;
}

.sp-card-info {
    flex: 1;
    min-width: 0;
}

.sp-card-name {
    font-weight: 700;
    color: #1a1a1a;
    font-size: .95rem;
    margin-bottom: 2px;
}

.sp-card-desc {
    font-size: .82rem;
    color: #777;
    line-height: 1.4;
}

.sp-card-diving-badge {
    display: inline-block;
    margin-top: 6px;
    padding: 2px 10px;
    background: #fff3cd;
    color: #856404;
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 600;
}

.sp-card-price-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

.sp-card-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-cenote-deep);
    white-space: nowrap;
}

.sp-card-price span {
    font-size: .75rem;
    font-weight: 500;
    color: #999;
}

/* Precio con descuento promocional */
.sp-card-price--promo {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    line-height: 1.15;
}
.sp-card-price--promo .sp-price-original {
    font-size: .85rem;
    font-weight: 500;
    color: #999;
    text-decoration: line-through;
    opacity: .85;
}
.sp-card-price--promo .sp-price-new {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--pdo-promo-color, #c0392b);
}
.sp-card-price--promo .sp-price-new span {
    font-size: .7rem;
    font-weight: 600;
    color: inherit;
    opacity: .85;
}
.sp-card-price--promo .sp-price-pct,
.sp-card-price--promo .sp-price-badge {
    color: #fff;
    font-size: .65rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 999px;
    letter-spacing: .5px;
    line-height: 1.4;
}
.sp-card-price--promo .sp-price-badge {
    text-transform: uppercase;
}
.sp-card-price--promo .sp-price-pct + .sp-price-badge {
    margin-top: 2px;
}

/* ── Quantity Picker ── */
.sp-qty-picker {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sp-qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--color-jungle-green);
    background: transparent;
    color: var(--color-jungle-green);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: all .2s ease;
    padding: 0;
}

.sp-qty-btn:hover {
    background: var(--color-jungle-green);
    color: #fff;
}

.sp-qty-display {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-cenote-deep);
    min-width: 28px;
    text-align: center;
}

/* ── Cart Total Bar ── */
.cart-total-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--color-cenote-deep);
    border-radius: 12px;
    margin-top: 20px;
    color: #fff;
    transition: background .3s ease;
}

.cart-total-bar.ctb--has-items {
    background: var(--color-jungle-green);
}

.ctb-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .95rem;
    font-weight: 600;
    opacity: .9;
}

.ctb-amount {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -.02em;
}

.sp-diving-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    background: #fff8e1;
    border-left: 4px solid #ffc107;
    border-radius: 8px;
    margin-top: 14px;
    font-size: .88rem;
    color: #5d4037;
    line-height: 1.5;
}

/* ── Summary Card (Step 4) ── */
.summary-card {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
}

.summary-meta {
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e8e8e8;
}

.summary-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: .95rem;
    color: #333;
}

.summary-meta-row a {
    font-size: .82rem;
    color: var(--color-jungle-green);
    text-decoration: none;
}

.summary-meta-row a:hover { text-decoration: underline; }

.summary-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .95rem;
    color: #333;
}

.sl-name { flex: 1; }

.sl-price {
    font-weight: 700;
    color: var(--color-cenote-deep);
    white-space: nowrap;
    margin-left: 16px;
}

.summary-diving-warning {
    padding: 14px 16px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 8px;
    font-size: .88rem;
    color: #664d03;
    margin-bottom: 16px;
    line-height: 1.5;
}

.summary-diving-warning a {
    color: var(--color-cenote-deep);
    font-weight: 600;
}

/* ── Botón bloqueado por buceo ─────────────────────────────────── */
#btn-add-to-cart.btn-diving-locked {
    opacity: 0.45;
    cursor: not-allowed;
    filter: grayscale(40%);
    position: relative;
}
#btn-add-to-cart.btn-diving-locked::after {
    content: '🤿 Completa la solicitud de buceo primero';
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #1a2f3a;
    color: #fff;
    font-size: 0.78rem;
    padding: 6px 14px;
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s;
}
#btn-add-to-cart.btn-diving-locked:hover::after {
    opacity: 1;
}

/* Pulso en el enlace de solicitud de buceo */
@keyframes diving-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7); transform: scale(1); }
    50%  { box-shadow: 0 0 0 8px rgba(255, 193, 7, 0);  transform: scale(1.04); }
    100% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);    transform: scale(1); }
}
.summary-diving-warning a.diving-link-pulse {
    animation: diving-pulse 0.6s ease 3;
    display: inline-block;
    border-radius: 4px;
    outline: 2px solid #ffc107;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 2px solid #e0e0e0;
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
}

.st-amount {
    font-size: 1.5rem;
    color: var(--color-jungle-green);
}

/* ── Trust Badges ── */
.trust-badges {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 16px 0;
    border-top: 1px solid #f0f0f0;
    font-size: .82rem;
    color: #777;
}

.trust-badges span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.trust-badges .dashicons {
    color: var(--color-jungle-green);
    font-size: 1.1rem;
}

/* ── Actions ── */
.booking-step .actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.btn-full { width: 100%; justify-content: center; }

/* ── Shake animation ── */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%       { transform: translateX(-6px); }
    40%       { transform: translateX(6px); }
    60%       { transform: translateX(-4px); }
    80%       { transform: translateX(4px); }
}

.shake-anim { animation: shake .45s ease; }

/* ── Spin for loading state ── */
@keyframes spin {
    to { transform: rotate(360deg); }
}
.spin { display: inline-block; animation: spin .8s linear infinite; }

/* ── Responsive ── */
@media (max-width: 640px) {
    .booking-flow { padding: 24px 20px 32px; }
    .wizard-progress { padding: 22px 16px 0; gap: 0; }
    .wizard-label { display: none; }
    .wizard-connector { min-width: 20px; }
    .cenote-picker-grid { grid-template-columns: repeat(2, 1fr); }
    /* Layout en grid: icono + nombre/desc en fila 1, precio + qty full-width en fila 2 */
    .sp-card {
        display: grid;
        grid-template-columns: 44px 1fr;
        grid-template-rows: auto auto;
        column-gap: 12px;
        row-gap: 10px;
        align-items: start;
        padding: 14px;
    }
    .sp-card-icon { grid-column: 1; grid-row: 1; font-size: 1.7rem; width: auto; }
    .sp-card-info { grid-column: 2; grid-row: 1; }
    .sp-card-price-col {
        grid-column: 1 / -1;
        grid-row: 2;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        gap: 12px;
        padding-top: 8px;
        border-top: 1px dashed #e0e0e0;
    }
    .sp-card-price { font-size: 1.05rem; }
    .sp-card-name { font-size: 1rem; line-height: 1.3; }
    .sp-card-desc { font-size: .82rem; line-height: 1.4; }
    .cart-total-bar { flex-direction: column; gap: 4px; text-align: center; }
    .ctb-amount { font-size: 1.6rem; }
    .summary-meta-row { flex-direction: column; align-items: flex-start; gap: 4px; }
    .trust-badges { flex-direction: column; align-items: center; }
}


/* ═══════════════════════════════════════════════════════════════════════════
   GALERÍA DE FOTOS DE CENOTES + LIGHTBOX
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Sección de galería en panel trasero ── */
.cenote-gallery-section {
    margin: 2rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(0,0,0,0.08);
}

.gallery-section-title {
    font-size: 1.1rem;
    color: var(--color-cenote-deep);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── Grid de miniaturas ── */
.cenote-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 8px;
}

.cgallery-thumb {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid transparent;
    padding: 0;
    cursor: pointer;
    background: #e0e0e0;
    transition: transform 0.22s ease, border-color 0.2s;
}

.cgallery-thumb:hover {
    transform: scale(1.04);
    border-color: var(--color-gold);
}

.cgallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: filter 0.2s;
}

.cgallery-thumb:hover img {
    filter: brightness(0.82);
}

.cgallery-thumb-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    color: #fff;
    font-size: 1.5rem;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.cgallery-thumb:hover .cgallery-thumb-overlay {
    opacity: 1;
}

/* ═══════════════════════════════════════════════════════════════════════════
   LIGHTBOX
   ═══════════════════════════════════════════════════════════════════════════ */
#pdo-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#pdo-lightbox.lb-visible {
    opacity: 1;
    visibility: visible;
}

.lb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(1, 28, 40, 0.94);
    backdrop-filter: blur(6px);
    cursor: pointer;
}

.lb-container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 92vw;
    max-height: 92vh;
    width: 100%;
}

/* ── Imagen principal ── */
.lb-img-wrap {
    position: relative;
    max-width: 80vw;
    max-height: 68vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lb-img {
    max-width: 80vw;
    max-height: 68vh;
    width: auto;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
    object-fit: contain;
    transition: opacity 0.3s ease;
    display: block;
}

.lb-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 80vw;
    max-height: 68vh;
    width: 100%;
}

.lb-thumb--video { position: relative; }
.lb-thumb--video .lb-thumb-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    text-shadow: 0 2px 6px rgba(0,0,0,.6);
    background: rgba(0,0,0,.25);
    border-radius: inherit;
    pointer-events: none;
}

.lb-stage .lb-video {
    max-width: 80vw;
    max-height: 68vh;
    width: auto;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
    background: #000;
    transition: opacity 0.3s ease;
    display: block;
}

/* Spinner */
.lb-spinner {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
}

.lb-spin-ring {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,0.2);
    border-top-color: var(--color-gold);
    border-radius: 50%;
    animation: lb-spin 0.7s linear infinite;
}

@keyframes lb-spin { to { transform: rotate(360deg); } }

/* ── Caption y contador ── */
.lb-caption {
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    margin-top: 10px;
    text-align: center;
    min-height: 20px;
    max-width: 70vw;
}

.lb-counter {
    color: rgba(255,255,255,0.45);
    font-size: 0.78rem;
    margin-top: 4px;
    letter-spacing: 0.06em;
}

/* ── Botón cerrar ── */
.lb-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    z-index: 10;
    backdrop-filter: blur(4px);
}

.lb-close:hover {
    background: rgba(255,255,255,0.25);
    transform: rotate(90deg);
}

/* ── Prev / Next ── */
.lb-prev,
.lb-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.1);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    z-index: 2;
    backdrop-filter: blur(4px);
}

.lb-prev { left: clamp(8px, 2vw, 28px); }
.lb-next { right: clamp(8px, 2vw, 28px); }

.lb-prev:hover,
.lb-next:hover {
    background: rgba(255,255,255,0.22);
    transform: translateY(-50%) scale(1.08);
}

.lb-prev .dashicons,
.lb-next .dashicons {
    font-size: 1.4rem;
    width: auto;
    height: auto;
}

/* ── Miniaturas ── */
.lb-thumbs-wrap {
    margin-top: 14px;
    max-width: 80vw;
    overflow-x: auto;
    padding-bottom: 4px;
}

.lb-thumbs {
    display: flex;
    gap: 8px;
    padding: 4px 2px;
}

.lb-thumb {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 7px;
    overflow: hidden;
    border: 2px solid transparent;
    padding: 0;
    cursor: pointer;
    opacity: 0.55;
    transition: opacity 0.2s, border-color 0.2s, transform 0.2s;
    background: #333;
}

.lb-thumb img,
.lb-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    background: #000;
}

.lb-thumb:hover {
    opacity: 0.85;
    transform: scale(1.06);
}

.lb-thumb--active {
    opacity: 1;
    border-color: var(--color-gold);
    transform: scale(1.08);
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .lb-img-wrap,
    .lb-img { max-width: 96vw; max-height: 55vh; }
    .lb-prev, .lb-next { width: 40px; height: 40px; }
    .lb-thumb { width: 44px; height: 44px; }
    .cenote-gallery-grid { grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 6px; }
}

/* ═══════════════════════════════════════════════════════════════════
   HEADER: Auth buttons + User menu
   ═══════════════════════════════════════════════════════════════════ */
.pdo-auth-buttons { display: inline-flex; gap: 8px; align-items: center; margin-left: 12px; }
.pdo-auth-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px; border: 1px solid rgba(255,255,255,.3);
    background: transparent; color: #fff; border-radius: 50px;
    font-size: 0.85rem; font-weight: 600; cursor: pointer;
    transition: all .25s ease; letter-spacing: .02em;
    font-family: inherit;
}
.pdo-auth-btn:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.55); transform: translateY(-1px); }
.pdo-auth-btn .dashicons { font-size: 16px; width: 16px; height: 16px; line-height: 1; }
.pdo-auth-btn.pdo-auth-register,
.site-header.is-scrolled .pdo-auth-btn.pdo-auth-register {
    background: linear-gradient(135deg, #c9a876 0%, #9f7f5e 100%);
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(159,127,94,.35);
    color: #fff !important;
}
.pdo-auth-btn.pdo-auth-register:hover,
.site-header.is-scrolled .pdo-auth-btn.pdo-auth-register:hover {
    background: linear-gradient(135deg, #d4b58a 0%, #b9936c 100%) !important;
    border-color: transparent !important;
    box-shadow: 0 6px 22px rgba(159,127,94,.55) !important;
    color: #fff !important;
}
.pdo-auth-btn.pdo-auth-register:hover .dashicons,
.pdo-auth-btn.pdo-auth-register:hover span { color: #fff !important; }
.site-header.is-scrolled .pdo-auth-btn { color: #011c28; border-color: rgba(1,28,40,.2); }
.site-header.is-scrolled .pdo-auth-btn:hover { background: rgba(1,28,40,.06); color: #011c28; }

.pdo-user-menu { position: relative; margin-left: 12px; }
.pdo-user-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 4px 14px 4px 4px; border: 1px solid rgba(255,255,255,.3);
    background: rgba(255,255,255,.08); color: #fff; border-radius: 50px;
    cursor: pointer; font-size: 0.85rem; font-weight: 600;
    transition: all .25s ease;
    font-family: inherit;
}
.pdo-user-btn:hover { background: rgba(255,255,255,.16); }
.pdo-user-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.pdo-user-arrow { font-size: 0.7rem; opacity: .7; }
.site-header.is-scrolled .pdo-user-btn { color: #011c28; border-color: rgba(1,28,40,.15); background: rgba(1,28,40,.04); }

.pdo-user-dropdown {
    position: absolute; top: calc(100% + 10px); right: 0;
    min-width: 220px; background: #fff; border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,.18); padding: 8px 0;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: all .25s cubic-bezier(.22,1,.36,1); z-index: 9999;
}
.pdo-user-menu.is-open .pdo-user-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.pdo-user-item,
.main-navigation .pdo-user-dropdown a.pdo-user-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 16px; color: #011c28 !important; text-decoration: none;
    font-size: 0.9rem; transition: background .2s ease;
    text-shadow: none;
}
.pdo-user-item:hover,
.main-navigation .pdo-user-dropdown a.pdo-user-item:hover { background: #f7f4ef; color: #9f7f5e !important; }
.pdo-user-item .dashicons { font-size: 18px; width: 18px; height: 18px; color: #9f7f5e !important; flex-shrink: 0; }
.pdo-user-logout,
.main-navigation .pdo-user-dropdown a.pdo-user-logout { color: #c0392b !important; }
.pdo-user-logout .dashicons { color: #c0392b !important; }
.pdo-user-divider { height: 1px; background: #eee; margin: 6px 0; }

/* ═══════════════════════════════════════════════════════════════════
   CART ICON EN HEADER + MINI-CART HOVER
   ═══════════════════════════════════════════════════════════════════ */
.pdo-cart-menu { position: relative; display: inline-flex; align-items: center; overflow: visible; }
.pdo-cart-btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 50%;
    color: #fff; text-decoration: none;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
    transition: background .2s ease, color .2s ease, border-color .2s ease;
    overflow: visible;
}
.pdo-cart-btn .dashicons { font-size: 20px; width: 20px; height: 20px; line-height: 1; }
.pdo-cart-btn:hover { background: rgba(255,255,255,.18); }
.pdo-cart-count {
    position: absolute !important;
    top: -6px !important;
    right: -6px !important;
    left: auto !important;
    bottom: auto !important;
    transform: none !important;
    min-width: 20px; width: auto; height: 20px; padding: 0 5px;
    border-radius: 10px;
    background: #c0392b; color: #fff; font-size: 11px; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
    line-height: 1; border: 2px solid #011c28;
    box-shadow: 0 2px 6px rgba(0,0,0,.25);
    pointer-events: none;
    z-index: 2;
}
.pdo-cart-count.is-zero { display: none; }
/* Evitar que estilos heredados del WC mini-cart alteren la posición del badge */
.pdo-cart-btn .pdo-cart-count { margin: 0 !important; }

/* Cart icon sobre fondos claros (scrolled / WC / páginas internas) */
.site-header.is-scrolled .pdo-cart-btn,
body.woocommerce-cart .pdo-cart-btn,
body.woocommerce-checkout .pdo-cart-btn,
body.woocommerce-account .pdo-cart-btn,
body.woocommerce-order-received .pdo-cart-btn,
body.single-product .pdo-cart-btn,
body.woocommerce-shop .pdo-cart-btn,
body.page-template-default:not(.home):not(.front-page) .pdo-cart-btn,
body.single:not(.home) .pdo-cart-btn,
body.archive .pdo-cart-btn,
body.search .pdo-cart-btn,
body.error404 .pdo-cart-btn {
    color: #011c28 !important;
    background: rgba(1,28,40,.04);
    border-color: rgba(1,28,40,.15);
}
.site-header.is-scrolled .pdo-cart-count,
body.woocommerce-cart .pdo-cart-count,
body.woocommerce-checkout .pdo-cart-count { border-color: #fff; }

/* Dropdown del mini-cart */
.pdo-cart-dropdown {
    position: absolute; top: calc(100% + 10px); right: 0;
    width: 340px; max-width: calc(100vw - 2rem);
    background: #fff; border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,.18); padding: 0;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: all .25s cubic-bezier(.22,1,.36,1); z-index: 9998;
    color: #011c28;
}
.pdo-cart-menu.is-open .pdo-cart-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }

/* ── Mini-cart (render propio) ─────────────────────────────────────── */
.pdo-cart-dropdown .pdo-mini-cart,
.pdo-cart-dropdown ul.woocommerce-mini-cart,
.pdo-cart-dropdown ul.cart_list,
.pdo-cart-dropdown ul.product_list_widget {
    list-style: none !important;
    margin: 0 0 8px !important;
    padding: 0 !important;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box;
}
.pdo-cart-dropdown .pdo-mini-cart-item,
.pdo-cart-dropdown .woocommerce-mini-cart-item,
.pdo-cart-dropdown ul.woocommerce-mini-cart > li,
.pdo-cart-dropdown ul.cart_list > li,
.pdo-cart-dropdown ul.product_list_widget > li {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    float: none !important;
    clear: both !important;
    margin: 0 !important;
    padding: 12px 32px 12px 64px !important;
    border-bottom: 1px solid #f0ece3;
    list-style: none !important;
    color: #011c28 !important;
    font-size: 0.88rem;
    line-height: 1.35;
    text-align: left;
}
.pdo-cart-dropdown .pdo-mini-cart > li:last-child { border-bottom: 0; }

.pdo-cart-dropdown .pdo-mini-cart-thumb,
.pdo-cart-dropdown .pdo-mini-cart-item > a:first-of-type:not(.remove) {
    position: absolute !important;
    left: 12px; top: 12px;
    width: 48px; height: 48px;
    display: block;
    padding: 0 !important; margin: 0 !important;
    border-radius: 8px; overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.pdo-cart-dropdown .pdo-mini-cart-thumb img,
.pdo-cart-dropdown .pdo-mini-cart-item img {
    display: block !important;
    width: 48px !important; height: 48px !important;
    object-fit: cover; margin: 0 !important; padding: 0 !important;
    border-radius: 8px;
    position: static !important;
    float: none !important;
}
.pdo-cart-dropdown .pdo-mini-cart-title {
    display: block;
    color: #011c28 !important;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 2px;
}
.pdo-cart-dropdown .pdo-mini-cart-item .remove,
.pdo-cart-dropdown .pdo-mini-cart-item .remove_from_cart_button {
    position: absolute !important;
    right: 8px; top: 10px;
    width: 22px; height: 22px; padding: 0;
    border-radius: 50%;
    background: #f5f1ea; color: #c0392b !important;
    font-weight: 700; font-size: 14px; line-height: 22px;
    text-align: center; text-decoration: none !important;
    display: inline-flex !important;
    align-items: center; justify-content: center;
    float: none !important;
}
.pdo-cart-dropdown .pdo-mini-cart-item dl,
.pdo-cart-dropdown .pdo-mini-cart-item .variation {
    margin: 2px 0 0 !important; padding: 0 !important;
    font-size: 0.78rem; color: #5c6773;
    display: block;
}
.pdo-cart-dropdown .pdo-mini-cart-item dl dt,
.pdo-cart-dropdown .pdo-mini-cart-item dl dd {
    display: inline; margin: 0; font-weight: 400;
}
.pdo-cart-dropdown .pdo-mini-cart-item dl dt::after { content: ": "; }
.pdo-cart-dropdown .pdo-mini-cart-item dl dd + dt::before { content: " · "; color: #c8c2b4; }

.pdo-cart-dropdown .pdo-mini-cart-row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; margin-top: 8px;
}
.pdo-cart-dropdown .pdo-mini-cart-price {
    font-weight: 700; color: #011c28; font-size: 0.9rem;
}

/* Controles +/- dentro del mini-cart */
.pdo-cart-dropdown .pdo-mini-qty {
    display: inline-flex !important;
    align-items: center; gap: 4px;
    background: #f5f1ea; border-radius: 999px; padding: 2px;
    width: fit-content;
    position: static !important;
}
.pdo-cart-dropdown .pdo-qty-btn {
    width: 26px; height: 26px; border-radius: 50%;
    border: 0; background: #fff; color: #011c28 !important;
    cursor: pointer; font-weight: 700; font-size: 15px;
    display: inline-flex; align-items: center; justify-content: center;
    line-height: 1; padding: 0; text-decoration: none !important;
    transition: background .15s ease, color .15s ease;
}
.pdo-cart-dropdown .pdo-qty-btn:hover { background: #011c28; color: #fff !important; }
.pdo-cart-dropdown .pdo-qty-btn:disabled,
.pdo-cart-dropdown .pdo-qty-btn.is-loading { opacity: .55; cursor: default; }
.pdo-cart-dropdown .pdo-qty-value {
    min-width: 22px; text-align: center; font-weight: 700; font-size: 0.88rem; color: #011c28;
}

/* Footer del mini-cart (subtotal + botones) */
.pdo-cart-dropdown .pdo-mini-cart-footer {
    padding: 14px 16px 16px;
    border-top: 1px solid #e7e2d7;
    background: #fdfbf5;
    border-radius: 0 0 14px 14px;
}
.pdo-cart-dropdown .pdo-mini-cart-subtotal {
    display: flex; justify-content: space-between; align-items: baseline;
    font-size: 0.95rem; margin-bottom: 10px; color: #011c28;
}
.pdo-cart-dropdown .pdo-mini-cart-subtotal span { font-weight: 700; }
.pdo-cart-dropdown .pdo-mini-cart-buttons {
    display: flex; gap: 8px;
}
.pdo-cart-dropdown .pdo-mini-btn {
    flex: 1; text-align: center;
    padding: 10px 12px; border-radius: 50px;
    font-size: 0.82rem; font-weight: 700;
    text-decoration: none !important;
    transition: transform .15s ease, box-shadow .15s ease;
}
.pdo-cart-dropdown .pdo-mini-btn-ghost {
    background: #f5f1ea; color: #011c28 !important;
}
.pdo-cart-dropdown .pdo-mini-btn-primary {
    background: linear-gradient(135deg, #011c28, #1a4a5e);
    color: #fff !important;
}
.pdo-cart-dropdown .pdo-mini-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.12); }

/* Empty state */
.pdo-cart-dropdown .woocommerce-mini-cart__empty-message {
    margin: 0; padding: 20px !important; text-align: center; color: #7d7a73;
}

.pdo-cart-dropdown-inner { padding: 0; max-height: 75vh; overflow-y: auto; }
.pdo-cart-dropdown .woocommerce-mini-cart__total {
    display: flex; justify-content: space-between; padding: 12px 0 6px;
    border-top: 1px solid #e7e2d7; font-weight: 700; color: #011c28;
}
.pdo-cart-dropdown .woocommerce-mini-cart__buttons {
    display: flex; gap: 8px; margin: 10px 0 0;
}
.pdo-cart-dropdown .woocommerce-mini-cart__buttons .button {
    flex: 1; text-align: center; padding: 10px 12px; border-radius: 50px;
    font-size: 0.8rem; font-weight: 700; text-decoration: none;
    background: #f5f1ea; color: #011c28 !important; border: 0;
}
.pdo-cart-dropdown .woocommerce-mini-cart__buttons .checkout {
    background: linear-gradient(135deg, #011c28, #1a4a5e); color: #fff !important;
}

@media (max-width: 860px) {
    .pdo-auth-btn span:not(.dashicons) { display: none; }
    .pdo-auth-btn { padding: 8px 10px; }
    .pdo-user-name { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════
   HERO SLIDER (5 slides debajo del video hero)
   Layout 2 columnas: texto (izq) + imagen vertical (der)
   ═══════════════════════════════════════════════════════════════════ */
.pdo-hero-slider {
    position: relative;
    padding: 60px 0 40px;
    background: linear-gradient(180deg, #fffdf8 0%, #f7f1e6 100%);
    overflow: hidden;
}
.pdo-hero-slider::before {
    content: ""; position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 20% 10%, rgba(159,127,94,.08) 0, transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(1,28,40,.06) 0, transparent 45%);
    pointer-events: none;
}
.pdo-hero-slider .container { position: relative; max-width: 1280px; z-index: 1; padding: 0 30px; }
.pdo-slider-track {
    position: relative;
    min-height: 540px;
}
.pdo-slide {
    position: absolute; inset: 0;
    opacity: 0; transform: translateX(60px) scale(.96);
    transition: opacity .8s cubic-bezier(.22,1,.36,1), transform .8s cubic-bezier(.22,1,.36,1);
    pointer-events: none;
}
.pdo-slide.is-active {
    opacity: 1; transform: translateX(0) scale(1);
    pointer-events: auto;
    position: relative;
}
.pdo-slide-inner {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 50px;
    align-items: center;
    text-align: left;
}
.pdo-slide.pdo-slide--no-image .pdo-slide-inner { grid-template-columns: 1fr; text-align: center; max-width: 900px; margin: 0 auto; }

.pdo-slide-text { min-width: 0; }
.pdo-slide-eyebrow {
    text-transform: uppercase; letter-spacing: .18em;
    color: #9f7f5e; font-size: .72rem; font-weight: 700;
    margin: 0 0 .7rem;
}
.pdo-slide-title {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: clamp(1.55rem, 2.8vw, 2.2rem);
    color: #011c28; margin: 0 0 1rem; line-height: 1.15;
}
.pdo-slide-body {
    font-size: .95rem; color: #3a3a3a; line-height: 1.65;
    margin: 0 0 1.2rem;
}
.pdo-slide-body p { margin-bottom: .7rem; }
.pdo-slide-body p:last-child { margin-bottom: 0; }
.pdo-slide-body strong { color: #011c28; }
.pdo-slide-checks {
    padding: 0; list-style: none;
    text-align: left; margin: 0;
    line-height: 1.5;
    font-size: .9rem;
}
.pdo-slide-checks li { margin: .4rem 0; padding-left: 0; }
.pdo-slide-map {
    position: relative; aspect-ratio: 4/3; border-radius: 18px;
    overflow: hidden; margin: 0 0 1rem; max-width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,.14);
}
.pdo-slide-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Columna de imagen vertical (derecha) */
.pdo-slide-media {
    position: relative;
    aspect-ratio: 3/4;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(1,28,40,.18), 0 6px 20px rgba(0,0,0,.08);
    transform: perspective(1000px) rotateY(-3deg);
    transition: transform .6s cubic-bezier(.22,1,.36,1);
}
.pdo-slide.is-active .pdo-slide-media { transform: perspective(1000px) rotateY(0deg); }
.pdo-slide-media::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(1,28,40,.25) 100%);
    pointer-events: none;
}
.pdo-slide-media img {
    width: 100%; height: 100%; object-fit: cover;
    display: block;
}
.pdo-slide-media--placeholder {
    background:
        radial-gradient(circle at 30% 20%, rgba(159,127,94,.5), transparent 60%),
        linear-gradient(135deg, #011c28 0%, #0f3642 60%, #1a5a70 100%);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.5); font-size: 4rem;
}

.hero-actions { margin-top: 1.2rem; gap: 12px; flex-wrap: wrap; }
.pdo-slide .hero-actions .btn-cta { padding: 12px 24px; font-size: 0.82rem; }

.pdo-slider-nav {
    display: flex; align-items: center; justify-content: center;
    gap: 20px; margin-top: 28px;
}
.pdo-slider-arrow {
    width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid rgba(1,28,40,.15); background: #fff;
    color: #011c28; font-size: 1.5rem; line-height: 1;
    cursor: pointer; transition: all .25s ease;
    display: inline-flex; align-items: center; justify-content: center;
    font-family: inherit;
    box-shadow: 0 4px 14px rgba(0,0,0,.05);
}
.pdo-slider-arrow:hover { background: #011c28; color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(1,28,40,.2); }
.pdo-slider-arrow[disabled] { opacity: .3; cursor: not-allowed; pointer-events: none; }
.pdo-slider-dots { display: inline-flex; gap: 10px; align-items: center; }
.pdo-slider-dot {
    width: 10px; height: 10px; border-radius: 50%;
    border: 0; background: rgba(1,28,40,.22); cursor: pointer;
    padding: 0; transition: all .3s cubic-bezier(.22,1,.36,1);
}
.pdo-slider-dot:hover { background: rgba(1,28,40,.45); transform: scale(1.25); }
.pdo-slider-dot.is-active {
    width: 32px; border-radius: 6px;
    background: linear-gradient(90deg, #9f7f5e, #c9a876);
    box-shadow: 0 2px 10px rgba(159,127,94,.45);
}
.pdo-slider-progress {
    max-width: 220px; height: 2px; margin: 16px auto 0;
    background: rgba(1,28,40,.08); border-radius: 2px; overflow: hidden;
    transition: opacity .3s ease;
}
.pdo-slider-progress.is-paused { opacity: .25; }
.pdo-slider-progress-bar {
    display: block; height: 100%; width: 0;
    background: linear-gradient(90deg, #9f7f5e, #c9a876);
}

@media (max-width: 980px) {
    .pdo-slide-inner { grid-template-columns: 1fr; gap: 25px; text-align: center; }
    .pdo-slide-text { order: 2; }
    .pdo-slide-media { order: 1; max-width: 320px; margin: 0 auto; aspect-ratio: 4/3; }
    .pdo-slide-checks { text-align: left; max-width: 520px; margin: 0 auto; }
    .pdo-hero-slider .container { padding: 0 20px; }
}
@media (max-width: 768px) {
    .pdo-hero-slider { padding: 45px 0 35px; }
    .pdo-slider-track { min-height: 680px; }
    .pdo-slide-title { font-size: 1.35rem; }
    .pdo-slide-body, .pdo-slide-checks { font-size: .88rem; }
    .pdo-slider-arrow { width: 40px; height: 40px; font-size: 1.3rem; }
    .pdo-slide-media { max-width: 260px; aspect-ratio: 4/3; }
}

/* ═══════════════════════════════════════════════════════════════════
   CARRITO, CHECKOUT, MI CUENTA — diseño profesional alineado al brand
   ═══════════════════════════════════════════════════════════════════ */

/* Wrapper común: elevamos la entry-content sobre el hero azul */
body.woocommerce-cart .entry-content,
body.woocommerce-checkout .entry-content,
body.woocommerce-account .entry-content {
    max-width: 1180px;
    margin: -40px auto 80px;
    padding: 40px clamp(20px, 4vw, 48px);
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 30px 80px rgba(1,28,40,.08);
    position: relative;
    z-index: 2;
}

/* Hero / page-header más corto en páginas WC */
body.woocommerce-cart .page-header,
body.woocommerce-checkout .page-header,
body.woocommerce-account .page-header {
    padding: 130px 0 90px;
    background: linear-gradient(135deg, #011c28 0%, #1a4a5e 100%);
}
body.woocommerce-cart .entry-title,
body.woocommerce-checkout .entry-title,
body.woocommerce-account .entry-title {
    color: #fff;
    font-size: clamp(2rem, 4vw, 2.8rem);
    letter-spacing: .5px;
}

/* ── Tabla del carrito ─────────────────────────────────────────── */
.woocommerce-cart table.shop_table,
.woocommerce-cart .cart-collaterals .cart_totals table {
    border: 0 !important;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(1,28,40,.06);
}
.woocommerce-cart table.shop_table thead {
    background: linear-gradient(135deg, #f9f6ee, #f5f1ea);
}
.woocommerce-cart table.shop_table thead th {
    color: #011c28 !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: .78rem;
    padding: 18px 16px !important;
    border: 0 !important;
}
.woocommerce-cart table.shop_table tbody tr {
    transition: background .2s ease;
}
.woocommerce-cart table.shop_table tbody tr:hover {
    background: #fdfbf5;
}
.woocommerce-cart table.shop_table tbody td {
    padding: 20px 16px !important;
    vertical-align: middle !important;
    border-top: 1px solid #f0ece3 !important;
    border-bottom: 0 !important;
    color: #011c28;
}
.woocommerce-cart table.shop_table .product-thumbnail img {
    width: 64px !important;
    height: 64px !important;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
}
.woocommerce-cart table.shop_table .product-name a {
    color: #011c28 !important;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
}
.woocommerce-cart table.shop_table .product-name a:hover {
    color: #9f7f5e !important;
}
.woocommerce-cart table.shop_table .product-remove a.remove {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: #f5f1ea !important;
    color: #c0392b !important;
    font-size: 18px;
    line-height: 30px;
    text-align: center;
    display: inline-flex !important;
    align-items: center; justify-content: center;
    text-decoration: none !important;
    transition: all .2s ease;
}
.woocommerce-cart table.shop_table .product-remove a.remove:hover {
    background: #c0392b !important;
    color: #fff !important;
    transform: rotate(90deg);
}

/* Input cantidad */
.woocommerce-cart .quantity input[type="number"],
.woocommerce-cart .quantity .qty {
    width: 70px !important;
    height: 40px !important;
    border: 2px solid #e7e2d7 !important;
    border-radius: 8px !important;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    color: #011c28;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.woocommerce-cart .quantity input[type="number"]:focus {
    border-color: #011c28 !important;
    box-shadow: 0 0 0 3px rgba(1,28,40,.1);
    outline: none;
}

/* Subtotal / totals box */
.woocommerce-cart .cart-collaterals {
    margin-top: 40px;
}
.woocommerce-cart .cart_totals {
    background: linear-gradient(135deg, #fdfbf5, #f9f6ee);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid #e7e2d7;
    box-shadow: 0 8px 30px rgba(1,28,40,.06);
}
.woocommerce-cart .cart_totals h2 {
    color: #011c28;
    font-size: 1.5rem;
    margin: 0 0 20px;
    font-weight: 700;
}
.woocommerce-cart .cart_totals table.shop_table th {
    background: transparent !important;
    color: #5c6773 !important;
    font-weight: 500;
    padding: 14px 0 !important;
    border-top: 1px solid #e7e2d7 !important;
}
.woocommerce-cart .cart_totals table.shop_table td {
    text-align: right;
    font-weight: 700;
    color: #011c28;
    padding: 14px 0 !important;
    border-top: 1px solid #e7e2d7 !important;
}
.woocommerce-cart .cart_totals .order-total td,
.woocommerce-cart .cart_totals .order-total th {
    font-size: 1.15rem;
    color: #011c28 !important;
    padding-top: 20px !important;
}

/* Botones cart */
.woocommerce-cart .wc-proceed-to-checkout,
.woocommerce-cart .cart_totals {
    box-sizing: border-box;
}
.woocommerce-cart .wc-proceed-to-checkout { margin-top: 16px; }
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce-cart .wc-proceed-to-checkout .button,
.woocommerce .button.alt,
.woocommerce button.button.alt {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 16px 24px !important;
    background: linear-gradient(135deg, #011c28, #1a4a5e) !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 50px !important;
    font-size: .95rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    text-decoration: none !important;
    text-align: center;
    margin: 0 !important;
    transition: transform .2s ease, box-shadow .2s ease;
    box-shadow: 0 8px 24px rgba(1,28,40,.2);
}
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
.woocommerce .button.alt:hover,
.woocommerce button.button.alt:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(1,28,40,.3);
}
.woocommerce-cart .coupon .button,
.woocommerce-cart .actions .button {
    background: #fff !important;
    color: #011c28 !important;
    border: 2px solid #011c28 !important;
    border-radius: 50px !important;
    padding: 10px 20px !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    font-size: .8rem !important;
    transition: all .2s ease;
}
.woocommerce-cart .coupon .button:hover,
.woocommerce-cart .actions .button:hover {
    background: #011c28 !important;
    color: #fff !important;
}
.woocommerce-cart .coupon input[type="text"] {
    padding: 10px 14px;
    border: 2px solid #e7e2d7;
    border-radius: 50px;
    font-size: .9rem;
}

/* Cart empty */
.woocommerce-cart .cart-empty {
    text-align: center;
    font-size: 1.2rem;
    color: #5c6773;
    padding: 60px 20px;
}
.woocommerce-cart .return-to-shop a.button {
    background: linear-gradient(135deg, #9f7f5e, #b8956d) !important;
    color: #fff !important;
    padding: 14px 36px !important;
    border-radius: 50px !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ── Checkout ──────────────────────────────────────────────────── */
body.woocommerce-checkout form.checkout {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 40px;
}
body.woocommerce-checkout #customer_details {
    background: transparent;
}
body.woocommerce-checkout .woocommerce-billing-fields,
body.woocommerce-checkout .woocommerce-shipping-fields,
body.woocommerce-checkout .woocommerce-additional-fields {
    background: #fff;
    padding: 28px;
    border-radius: 14px;
    border: 1px solid #f0ece3;
    margin-bottom: 20px;
}
body.woocommerce-checkout h3 {
    color: #011c28;
    font-size: 1.3rem;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f5f1ea;
}
body.woocommerce-checkout .form-row input[type="text"],
body.woocommerce-checkout .form-row input[type="email"],
body.woocommerce-checkout .form-row input[type="tel"],
body.woocommerce-checkout .form-row input[type="password"],
body.woocommerce-checkout .form-row select,
body.woocommerce-checkout .form-row textarea {
    width: 100%;
    padding: 12px 14px !important;
    border: 2px solid #e7e2d7 !important;
    border-radius: 10px !important;
    font-size: .95rem;
    transition: border-color .2s ease, box-shadow .2s ease;
}
body.woocommerce-checkout .form-row input:focus,
body.woocommerce-checkout .form-row select:focus,
body.woocommerce-checkout .form-row textarea:focus {
    border-color: #011c28 !important;
    box-shadow: 0 0 0 3px rgba(1,28,40,.1);
    outline: none;
}
body.woocommerce-checkout .form-row label {
    font-weight: 600;
    color: #011c28;
    margin-bottom: 6px;
    display: block;
}
body.woocommerce-checkout #order_review_heading,
body.woocommerce-checkout #order_review {
    background: linear-gradient(135deg, #fdfbf5, #f9f6ee);
    padding: 24px;
    border-radius: 14px;
    border: 1px solid #e7e2d7;
    align-self: start;
}
/* En mobile: sin sticky, scroll natural de la página */
@media (max-width: 1023px) {
    body.woocommerce-checkout #order_review_heading,
    body.woocommerce-checkout #order_review {
        position: static;
        max-height: none;
        overflow: visible;
    }
}
/* Desktop: sticky para que el resumen/pago siga al scroll, pero con
   altura limitada y scroll propio si el contenido es mayor */
@media (min-width: 1024px) {
    body.woocommerce-checkout #order_review_heading,
    body.woocommerce-checkout #order_review {
        position: sticky;
        top: 100px;
    }
}
body.woocommerce-checkout #order_review_heading {
    margin-bottom: 0;
    padding-bottom: 16px;
    border-bottom: 0;
}
body.woocommerce-checkout #order_review {
    margin-top: -1px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}
body.woocommerce-checkout table.shop_table {
    background: transparent;
    box-shadow: none;
}
/* ─── Banners promocionales bajo el booking form ─────────────────── */
.pdo-booking-banners {
    margin: 24px 0 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.pdo-booking-banner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 24px;
    border-radius: 14px;
    box-shadow: 0 8px 26px rgba(1,28,40,.18);
    overflow: hidden;
    animation: pdo-banner-pulse 3s ease-in-out infinite;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease;
}
.pdo-booking-banner:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(1,28,40,.28);
}
.pdo-booking-banner:active { transform: translateY(-1px); }
.pdo-booking-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top right, rgba(255,255,255,.18), transparent 60%);
    pointer-events: none;
}
.pdo-booking-banner-icon {
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 14px rgba(0,0,0,.2);
    color: #011c28;
    z-index: 1;
}
.pdo-booking-banner-text {
    flex: 1 1 auto;
    line-height: 1.45;
    z-index: 1;
}
.pdo-booking-banner-title {
    display: block;
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 4px;
    letter-spacing: .3px;
}
.pdo-booking-banner-body {
    font-size: .98rem;
    opacity: .95;
}
@keyframes pdo-banner-pulse {
    0%, 100% { box-shadow: 0 8px 26px rgba(1,28,40,.18); }
    50%      { box-shadow: 0 12px 34px rgba(244,185,47,.32); }
}
@media (max-width: 600px) {
    .pdo-booking-banner { flex-direction: column; align-items: flex-start; padding: 16px 18px; gap: 10px; text-align: left; }
    .pdo-booking-banner-icon { width: 44px; height: 44px; font-size: 1.4rem; }
    .pdo-booking-banner-title { font-size: 1rem; }
    .pdo-booking-banner-body { font-size: .9rem; }
}

/* ─── Páginas legales (privacidad / términos / FAQ) ──────────────── */
body.page-template-default.page:not(.home) .entry-content {
    max-width: 880px;
    margin: 40px auto;
    padding: 40px clamp(20px, 4vw, 56px);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(1, 28, 40, .06);
    border: 1px solid #f0ece3;
    line-height: 1.75;
    color: #2c3338;
    font-size: 1.02rem;
}
body.page-template-default.page:not(.home) .entry-content h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.7rem;
    color: #011c28;
    margin: 36px 0 18px;
    padding-top: 10px;
    border-top: 2px solid #f0ece3;
    letter-spacing: -.3px;
}
body.page-template-default.page:not(.home) .entry-content h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
body.page-template-default.page:not(.home) .entry-content h3 {
    font-size: 1.15rem;
    color: #1a4a5e;
    margin: 22px 0 8px;
    font-weight: 700;
}
body.page-template-default.page:not(.home) .entry-content p,
body.page-template-default.page:not(.home) .entry-content ul,
body.page-template-default.page:not(.home) .entry-content ol {
    margin: 0 0 14px;
}
body.page-template-default.page:not(.home) .entry-content ul,
body.page-template-default.page:not(.home) .entry-content ol {
    padding-left: 28px;
}
body.page-template-default.page:not(.home) .entry-content li { margin-bottom: 6px; }
body.page-template-default.page:not(.home) .entry-content a {
    color: #9f7f5e;
    text-decoration: underline;
    font-weight: 600;
}
body.page-template-default.page:not(.home) .entry-content a:hover { color: #011c28; }
body.page-template-default.page:not(.home) .entry-content em { color: #5c6773; font-size: .92em; }
body.page-template-default.page:not(.home) .entry-content strong { color: #011c28; }

/* FAQ: cada h3 (pregunta) tiene una tarjeta sutil */
body.page-id-faq .entry-content h3,
body.page .entry-content h3 + p,
body.page .entry-content h3 + ul {
    /* Mantener flujo natural; las preguntas y respuestas se ven como bloques */
}
body.page .entry-content h3 {
    background: linear-gradient(90deg, rgba(159,127,94,.08), transparent);
    padding: 10px 14px;
    border-left: 3px solid #9f7f5e;
    border-radius: 0 8px 8px 0;
}

/* Header "scrolled" automático en estas páginas (igual que cart/checkout) */
body.page-template-default:not(.home):not(.front-page) .site-header {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* ─── Layout 2 columnas en checkout (desktop ≥ 992px) ────────────── */
/* Expandir contenedor padre para aprovechar todo el ancho disponible */
@media (min-width: 992px) {
    body.woocommerce-checkout .entry-content,
    body.woocommerce-checkout .container,
    body.woocommerce-checkout main,
    body.woocommerce-checkout .site-main,
    body.woocommerce-checkout #primary {
        max-width: min(1400px, 96vw) !important;
        width: min(1400px, 96vw) !important;
        padding-left: clamp(20px, 3vw, 40px) !important;
        padding-right: clamp(20px, 3vw, 40px) !important;
        background: #fff;
        border-radius: 16px;
        box-shadow: 0 8px 32px rgba(1,28,40,.06);
        margin: 30px auto !important;
    }
    body.woocommerce-checkout form.checkout {
        display: grid;
        /* Izquierda más ancha (más espacio para datos del cliente),
           derecha mantiene mínimo cómodo para Clip card form */
        grid-template-columns: minmax(0, 1.5fr) minmax(420px, 1fr);
        grid-template-rows: auto 1fr;
        gap: 18px 40px;
        align-items: start;
    }
    /* Inputs del form: ancho completo dentro de su columna */
    body.woocommerce-checkout #customer_details input[type="text"],
    body.woocommerce-checkout #customer_details input[type="email"],
    body.woocommerce-checkout #customer_details input[type="tel"],
    body.woocommerce-checkout #customer_details input[type="number"],
    body.woocommerce-checkout #customer_details select,
    body.woocommerce-checkout #customer_details textarea,
    body.woocommerce-checkout #customer_details .select2-container {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
    /* Nombre + apellido en 2 columnas dentro del form izquierdo */
    body.woocommerce-checkout #billing_first_name_field,
    body.woocommerce-checkout #billing_last_name_field {
        display: inline-block;
        width: calc(50% - 8px) !important;
        vertical-align: top;
    }
    body.woocommerce-checkout #billing_first_name_field { margin-right: 14px; }
    /* Misma idea para los demás campos en pares cuando WC los marque como
       form-row-first / form-row-last */
    body.woocommerce-checkout .form-row-first {
        width: calc(50% - 8px) !important;
        float: left;
        margin-right: 14px;
    }
    body.woocommerce-checkout .form-row-last {
        width: calc(50% - 8px) !important;
        float: left;
    }
    body.woocommerce-checkout .form-row-wide {
        width: 100% !important;
        clear: both;
    }
    /* El bloque "Detalles de facturación" con padding cómodo */
    body.woocommerce-checkout .woocommerce-billing-fields,
    body.woocommerce-checkout .woocommerce-additional-fields {
        background: linear-gradient(155deg, #fff, #fdfbf5);
        border: 1px solid #f0ece3;
        border-radius: 12px;
        padding: 22px 24px;
        margin-bottom: 18px;
    }
    body.woocommerce-checkout .woocommerce-billing-fields h3,
    body.woocommerce-checkout .woocommerce-additional-fields h3 {
        margin-top: 0;
        font-size: 1.15rem;
        color: #011c28;
        border-bottom: 2px solid #f0ece3;
        padding-bottom: 10px;
        margin-bottom: 16px;
    }
    /* Notices y coupon ocupan toda la fila arriba */
    body.woocommerce-checkout form.checkout > .woocommerce-form-coupon-toggle,
    body.woocommerce-checkout form.checkout > .woocommerce-form-coupon,
    body.woocommerce-checkout form.checkout > .woocommerce-NoticeGroup,
    body.woocommerce-checkout form.checkout > .woocommerce-error,
    body.woocommerce-checkout form.checkout > .woocommerce-info,
    body.woocommerce-checkout form.checkout > .woocommerce-message,
    /* Notices que WC inyecta al inicio del form como NoticeGroup */
    body.woocommerce-checkout form.checkout .woocommerce-NoticeGroup-checkout,
    body.woocommerce-checkout .woocommerce-notices-wrapper {
        grid-column: 1 / -1;
        width: 100%;
    }
    /* Columna izquierda: datos de cliente — ocupa 2 filas para que el
       lado derecho pueda apilar heading + review uno bajo el otro. */
    body.woocommerce-checkout form.checkout #customer_details {
        grid-column: 1;
        grid-row: 1 / span 2;
    }
    /* Columna derecha — fila 1: heading */
    body.woocommerce-checkout form.checkout #order_review_heading {
        grid-column: 2;
        grid-row: 1;
        margin: 0;
        padding-top: 0;
    }
    /* Columna derecha — fila 2: cart table + payment + place order.
       Sticky para que siga al hacer scroll. */
    body.woocommerce-checkout form.checkout #order_review {
        grid-column: 2;
        grid-row: 2;
        align-self: start;
        position: sticky;
        top: calc(var(--pdo-banner-h, 0px) + 110px);
        max-height: calc(100vh - 140px);
        overflow-y: auto;
        padding: 24px;
        background: linear-gradient(160deg, #fdfbf5, #f5f1ea);
        border: 1px solid #ede9e1;
        border-radius: 14px;
        box-shadow: 0 8px 32px rgba(1,28,40,.08);
    }
    /* Asegurar que el formulario de tarjeta de Clip (iframe) tenga ancho
       completo y respiración dentro del review */
    body.woocommerce-checkout form.checkout #order_review .payment_box {
        padding: 16px !important;
    }
    body.woocommerce-checkout form.checkout #order_review .payment_box iframe,
    body.woocommerce-checkout form.checkout #order_review #clip-card-element {
        width: 100% !important;
        min-height: 220px;
    }
    /* La tabla del resumen de productos: ancho completo, números a la derecha */
    body.woocommerce-checkout form.checkout #order_review .shop_table {
        width: 100%;
        margin-bottom: 16px;
    }
    body.woocommerce-checkout form.checkout #order_review .shop_table td,
    body.woocommerce-checkout form.checkout #order_review .shop_table th {
        padding: 8px 4px;
    }
    /* Dentro de customer_details: los col-1/col-2 se apilan verticalmente
       (la columna izquierda ya es angosta de por sí) */
    body.woocommerce-checkout #customer_details .col-1,
    body.woocommerce-checkout #customer_details .col-2 {
        width: 100%;
        max-width: none;
        float: none;
        margin-bottom: 18px;
    }
    /* Scrollbar más sutil dentro del review sticky */
    body.woocommerce-checkout #order_review::-webkit-scrollbar { width: 6px; }
    body.woocommerce-checkout #order_review::-webkit-scrollbar-thumb {
        background: rgba(159,127,94,.4);
        border-radius: 3px;
    }
}

body.woocommerce-checkout #place_order,
body.woocommerce-checkout #clip-payment-button {
    background: linear-gradient(135deg, #9f7f5e, #b8956d) !important;
    color: #fff !important;
    padding: 18px !important;
    font-size: 1rem !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 50px !important;
    width: 100%;
    margin-top: 20px;
    transition: transform .2s ease, box-shadow .2s ease;
    box-shadow: 0 8px 24px rgba(159,127,94,.35);
    border: 0 !important;
    cursor: pointer;
}
body.woocommerce-checkout #place_order:hover,
body.woocommerce-checkout #clip-payment-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(159,127,94,.5);
}

/* Cuando Clip clona el botón original y lo oculta con jQuery .hide(),
   el inline style="display:none" debe respetarse aunque el original
   #place_order tenga reglas de tema. El selector de atributo refuerza
   la ocultación frente a cualquier !important previo. */
body.woocommerce-checkout form.checkout #place_order[style*="display: none"],
body.woocommerce-checkout form.checkout #place_order[style*="display:none"] {
    display: none !important;
}
/* Si por algún motivo aparece el clon Y el original simultáneamente,
   forzar que sólo se vea el clon (Clip lo necesita para tokenizar la
   tarjeta antes de enviar el pedido). */
body.woocommerce-checkout form.checkout #clip-payment-button ~ #place_order,
body.woocommerce-checkout form.checkout #place_order + #clip-payment-button + #place_order {
    display: none !important;
}

/* ── My Account ────────────────────────────────────────────────── */
body.woocommerce-account .woocommerce-MyAccount-navigation {
    background: linear-gradient(180deg, #011c28 0%, #1a4a5e 100%);
    padding: 28px 0;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(1,28,40,.15);
    position: sticky;
    top: 100px;
}
body.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
body.woocommerce-account .woocommerce-MyAccount-navigation ul li {
    border: 0;
    padding: 0;
    margin: 0;
}
body.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    color: rgba(255,255,255,.75) !important;
    text-decoration: none;
    font-weight: 500;
    font-size: .95rem;
    border-left: 3px solid transparent;
    transition: background .2s ease, color .2s ease, border-color .2s ease, padding-left .2s ease;
    position: relative;
}
body.woocommerce-account .woocommerce-MyAccount-navigation ul li a::before {
    content: "";
    width: 20px; height: 20px;
    background: center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M12 1v6M12 17v6M4.22 4.22l4.24 4.24M15.54 15.54l4.24 4.24M1 12h6M17 12h6M4.22 19.78l4.24-4.24M15.54 8.46l4.24-4.24'/%3E%3C/svg%3E");
    opacity: .8;
    flex-shrink: 0;
}
body.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--dashboard a::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Cpolyline points='9 22 9 12 15 12 15 22'/%3E%3C/svg%3E");
}
body.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--orders a::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 2H8a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h11a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2z'/%3E%3Cpath d='M6 18H4a2 2 0 0 0-2 2v0a2 2 0 0 0 2 2h11'/%3E%3Cline x1='10' y1='8' x2='17' y2='8'/%3E%3Cline x1='10' y1='12' x2='17' y2='12'/%3E%3C/svg%3E");
}
body.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--edit-account a::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3C/svg%3E");
}
body.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout a::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpolyline points='16 17 21 12 16 7'/%3E%3Cline x1='21' y1='12' x2='9' y2='12'/%3E%3C/svg%3E");
}
body.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover,
body.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
    color: #fff !important;
    background: rgba(255,255,255,.08);
    border-left-color: #9f7f5e;
    padding-left: 28px;
}

/* Layout My Account (grid) — nav a la izquierda, contenido a la derecha */
body.woocommerce-account .entry-content .woocommerce,
body.woocommerce-account .woocommerce {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 40px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}
body.woocommerce-account .woocommerce-MyAccount-navigation {
    flex: 0 0 260px !important;
    width: 260px !important;
    max-width: 260px !important;
    float: none !important;
    margin: 0 !important;
    box-sizing: border-box;
}
body.woocommerce-account .woocommerce-MyAccount-content {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;   /* permite que la tabla se encoja dentro del flex */
    max-width: 100% !important;
    float: none !important;
    margin: 0 !important;
    box-sizing: border-box;
    background: #fff;
    padding: 36px;
    border-radius: 18px;
    box-shadow: 0 10px 40px rgba(1,28,40,.06);
    border: 1px solid #f0ece3;
    color: #011c28;
    line-height: 1.7;
    min-height: 400px;
}
body.woocommerce-account .woocommerce-MyAccount-content a {
    color: #9f7f5e;
    font-weight: 600;
    text-decoration: none;
}
body.woocommerce-account .woocommerce-MyAccount-content a:hover {
    color: #011c28;
    text-decoration: underline;
}

/* Tabla de pedidos */
body.woocommerce-account .woocommerce-MyAccount-content table.my_account_orders {
    border: 0;
    background: #fff;
    box-shadow: 0 4px 20px rgba(1,28,40,.04);
    border-radius: 12px;
    overflow: hidden;
}
body.woocommerce-account .my_account_orders thead {
    background: linear-gradient(135deg, #f9f6ee, #f5f1ea);
}
body.woocommerce-account .my_account_orders thead th {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: .72rem;
    font-weight: 700;
    color: #011c28 !important;
    padding: 16px !important;
    border: 0 !important;
}
body.woocommerce-account .my_account_orders tbody td {
    padding: 16px !important;
    border-top: 1px solid #f0ece3 !important;
    color: #011c28;
    vertical-align: middle !important;
}
body.woocommerce-account .my_account_orders tbody tr:hover {
    background: #fdfbf5;
}
body.woocommerce-account .order-status,
body.woocommerce-account .woocommerce-orders-table__cell-order-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    background: #f5f1ea;
    color: #011c28;
}
body.woocommerce-account .order-status.status-processing,
body.woocommerce-account tr[class*="status-processing"] .order-status {
    background: #d4edda; color: #155724;
}
body.woocommerce-account .order-status.status-completed,
body.woocommerce-account tr[class*="status-completed"] .order-status {
    background: #cce5ff; color: #004085;
}
body.woocommerce-account .order-status.status-on-hold,
body.woocommerce-account tr[class*="status-on-hold"] .order-status {
    background: #fff3cd; color: #856404;
}
body.woocommerce-account .order-status.status-cancelled,
body.woocommerce-account tr[class*="status-cancelled"] .order-status {
    background: #f8d7da; color: #721c24;
}

/* Forms de Configuración / Dirección */
body.woocommerce-account .woocommerce-MyAccount-content input[type="text"],
body.woocommerce-account .woocommerce-MyAccount-content input[type="email"],
body.woocommerce-account .woocommerce-MyAccount-content input[type="tel"],
body.woocommerce-account .woocommerce-MyAccount-content input[type="password"],
body.woocommerce-account .woocommerce-MyAccount-content select,
body.woocommerce-account .woocommerce-MyAccount-content textarea {
    width: 100%;
    padding: 12px 14px !important;
    border: 2px solid #e7e2d7 !important;
    border-radius: 10px !important;
    font-size: .95rem;
    background: #fff;
    color: #011c28;
    transition: border-color .2s ease, box-shadow .2s ease;
}
body.woocommerce-account .woocommerce-MyAccount-content input:focus,
body.woocommerce-account .woocommerce-MyAccount-content select:focus,
body.woocommerce-account .woocommerce-MyAccount-content textarea:focus {
    border-color: #011c28 !important;
    box-shadow: 0 0 0 3px rgba(1,28,40,.1);
    outline: none;
}
body.woocommerce-account .woocommerce-MyAccount-content label {
    font-weight: 600;
    color: #011c28;
    display: block;
    margin-bottom: 6px;
}
body.woocommerce-account .woocommerce-MyAccount-content .button,
body.woocommerce-account .woocommerce-MyAccount-content button[type="submit"] {
    background: linear-gradient(135deg, #011c28, #1a4a5e) !important;
    color: #fff !important;
    padding: 14px 28px !important;
    border: 0 !important;
    border-radius: 50px !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: .85rem;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
    box-shadow: 0 6px 20px rgba(1,28,40,.2);
}
body.woocommerce-account .woocommerce-MyAccount-content .button:hover,
body.woocommerce-account .woocommerce-MyAccount-content button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(1,28,40,.3);
}

/* Dashboard tarjetas */
.pdo-account-welcome {
    background: linear-gradient(135deg, #011c28, #1a4a5e);
    color: #fff;
    padding: 28px 32px;
    border-radius: 14px;
    margin-bottom: 24px;
    box-shadow: 0 15px 40px rgba(1,28,40,.18);
}
.pdo-account-welcome h2 {
    margin: 0 0 8px;
    color: #fff !important;
    font-size: 1.5rem;
}
.pdo-account-welcome p {
    margin: 0;
    color: rgba(255,255,255,.85);
}
.pdo-account-welcome .pdo-logout-link {
    color: #f5d9a8 !important;
    text-decoration: underline;
}

.pdo-account-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 24px;
}
.pdo-account-card {
    display: block;
    padding: 24px;
    background: #fdfbf5;
    border: 1px solid #f0ece3;
    border-radius: 14px;
    text-decoration: none !important;
    color: #011c28 !important;
    transition: all .25s ease;
    position: relative;
    overflow: hidden;
}
.pdo-account-card::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #9f7f5e, #b8956d);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .3s ease;
}
.pdo-account-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(1,28,40,.12);
    background: #fff;
}
.pdo-account-card:hover::before { transform: scaleY(1); }
.pdo-account-card-icon {
    font-size: 1.8rem;
    margin-bottom: 10px;
    display: block;
}
.pdo-account-card-title {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 4px;
}
.pdo-account-card-desc {
    font-size: .85rem;
    color: #5c6773;
    line-height: 1.4;
}

/* Preferencias de locale */
.pdo-locale-prefs {
    margin-top: 32px;
    padding: 28px;
    background: linear-gradient(135deg, #fdfbf5, #f9f6ee);
    border: 1px solid #e7e2d7;
    border-radius: 14px;
}
.pdo-locale-prefs h3 {
    margin: 0 0 20px;
    color: #011c28;
    font-size: 1.2rem;
}
.pdo-locale-prefs .pdo-locale-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.pdo-locale-saved {
    display: inline-block;
    margin-top: 12px;
    padding: 6px 14px;
    background: #d4edda;
    color: #155724;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(-4px);
    transition: all .3s ease;
}
.pdo-locale-saved.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 860px) {
    body.woocommerce-account .entry-content .woocommerce,
    body.woocommerce-account .woocommerce {
        flex-direction: column !important;
    }
    body.woocommerce-account .woocommerce-MyAccount-navigation {
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    body.woocommerce-account .woocommerce-MyAccount-navigation {
        position: static;
    }
    body.woocommerce-checkout form.checkout {
        grid-template-columns: 1fr;
    }
    body.woocommerce-checkout #order_review_heading,
    body.woocommerce-checkout #order_review {
        position: static;
    }
    .pdo-locale-prefs .pdo-locale-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile cart: tabla apilada */
@media (max-width: 600px) {
    .woocommerce-cart table.shop_table thead { display: none; }
    .woocommerce-cart table.shop_table tbody tr {
        display: block;
        background: #fff;
        margin-bottom: 14px;
        border-radius: 12px;
        padding: 14px;
        box-shadow: 0 4px 14px rgba(1,28,40,.06);
    }
    .woocommerce-cart table.shop_table tbody td {
        display: block;
        border: 0 !important;
        padding: 8px 0 !important;
        text-align: left;
    }
    .woocommerce-cart table.shop_table tbody td::before {
        content: attr(data-title) ": ";
        font-weight: 700;
        margin-right: 6px;
        color: #5c6773;
    }
    .woocommerce-cart table.shop_table .product-remove {
        position: absolute;
        top: 8px; right: 8px;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   FLOATING WHATSAPP BUTTON
   ═══════════════════════════════════════════════════════════════════ */
#pdo-whatsapp-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 9990;
    box-shadow: 0 10px 30px rgba(37,211,102,.4), 0 4px 10px rgba(0,0,0,.18);
    text-decoration: none;
    transition: transform .25s cubic-bezier(.22,1,.36,1), box-shadow .25s ease;
    animation: pdo-wa-pulse 2.6s ease-in-out infinite;
}
#pdo-whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 14px 40px rgba(37,211,102,.55), 0 6px 14px rgba(0,0,0,.22);
    animation-play-state: paused;
}
#pdo-whatsapp-float svg { width: 34px; height: 34px; display: block; }

#pdo-whatsapp-float::before {
    content: attr(data-tooltip);
    position: absolute;
    right: calc(100% + 14px);
    top: 50%;
    transform: translateY(-50%) translateX(6px);
    background: #011c28;
    color: #fff;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    box-shadow: 0 6px 20px rgba(1,28,40,.22);
}
#pdo-whatsapp-float::after {
    content: "";
    position: absolute;
    right: calc(100% + 6px);
    top: 50%;
    width: 0; height: 0;
    border-left: 8px solid #011c28;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    transform: translateY(-50%) translateX(6px);
    opacity: 0;
    transition: opacity .2s ease, transform .2s ease;
}
#pdo-whatsapp-float:hover::before,
#pdo-whatsapp-float:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

@keyframes pdo-wa-pulse {
    0%, 100% { box-shadow: 0 10px 30px rgba(37,211,102,.4), 0 4px 10px rgba(0,0,0,.18), 0 0 0 0 rgba(37,211,102,.55); }
    50%      { box-shadow: 0 10px 30px rgba(37,211,102,.4), 0 4px 10px rgba(0,0,0,.18), 0 0 0 14px rgba(37,211,102,0); }
}

@media (max-width: 600px) {
    #pdo-whatsapp-float { width: 56px; height: 56px; right: 16px; bottom: 16px; }
    #pdo-whatsapp-float svg { width: 30px; height: 30px; }
    #pdo-whatsapp-float::before,
    #pdo-whatsapp-float::after { display: none; } /* En mobile no tooltip */
}

/* Icono TikTok SVG en footer */
.social-icon.tt svg { width: 20px; height: 20px; display: block; }

/* ═══════════════════════════════════════════════════════════════════
   RESEÑAS — formulario público + grid de reseñas aprobadas
   ═══════════════════════════════════════════════════════════════════ */

.pdo-review-form {
    max-width: 640px;
    margin: 40px auto;
    padding: 40px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(1,28,40,.1);
    border: 1px solid #f0ece3;
}
.pdo-review-header { text-align: center; margin-bottom: 28px; }
.pdo-review-header h2 {
    margin: 0 0 8px;
    color: #011c28;
    font-size: 1.75rem;
}
.pdo-review-header p { margin: 0; color: #5c6773; font-size: .95rem; }

.pdo-review-field { margin-bottom: 20px; }
.pdo-review-field > label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #011c28;
    font-size: .95rem;
}
.pdo-review-form textarea,
.pdo-review-form input[type="text"] {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e7e2d7;
    border-radius: 10px;
    font-size: .95rem;
    font-family: inherit;
    color: #011c28;
    box-sizing: border-box;
    resize: vertical;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.pdo-review-form textarea:focus,
.pdo-review-form input[type="text"]:focus {
    outline: none;
    border-color: #011c28;
    box-shadow: 0 0 0 3px rgba(1,28,40,.1);
}

/* Rating estrellas (trick CSS con radios reverso) */
.pdo-review-stars {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
}
.pdo-review-stars input[type="radio"] { display: none; }
.pdo-review-stars label {
    font-size: 2rem;
    color: #e7e2d7;
    cursor: pointer;
    transition: color .15s ease, transform .15s ease;
    line-height: 1;
}
.pdo-review-stars label:hover,
.pdo-review-stars label:hover ~ label,
.pdo-review-stars input[type="radio"]:checked ~ label {
    color: #f4b92f;
    transform: scale(1.05);
}

.pdo-review-submit {
    display: block;
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #011c28, #1a4a5e);
    color: #fff;
    border: 0;
    border-radius: 50px;
    font-weight: 700;
    font-size: .95rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    cursor: pointer;
    margin-top: 10px;
    box-shadow: 0 8px 24px rgba(1,28,40,.2);
    transition: transform .2s ease, box-shadow .2s ease;
}
.pdo-review-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(1,28,40,.3);
}
.pdo-review-submit:disabled { opacity: .6; cursor: wait; }

.pdo-review-feedback {
    margin-top: 14px;
    text-align: center;
    color: #c0392b;
    font-size: .9rem;
    min-height: 1em;
}

/* ─── Slider de rating con tercios (.0/.3/.6) ────────────────────── */
.pdo-review-rating-wrap {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 6px;
}
.pdo-rating-slider {
    position: relative;
    display: inline-block;
    font-size: 2.4rem;
    line-height: 1;
    letter-spacing: 4px;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;            /* permite drag horizontal sin scroll */
    outline: none;
}
.pdo-rating-slider:focus-visible {
    outline: 2px dashed #9f7f5e;
    outline-offset: 6px;
    border-radius: 4px;
}
.pdo-rating-bg {
    color: #e7e2d7;
    display: inline-block;
}
.pdo-rating-fg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    color: #f4b92f;
    pointer-events: none;
    white-space: nowrap;
    transition: width .12s ease-out;
}
.pdo-rating-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: #011c28;
    min-width: 3ch;
    background: linear-gradient(135deg, #fdfbf5, #f5f1ea);
    border: 1px solid #ede9e1;
    padding: 6px 14px;
    border-radius: 999px;
    font-variant-numeric: tabular-nums;
}

/* Estrella parcial (CSS clip) usada por render_stars_fraction() */
.pdo-star-partial {
    position: relative;
    display: inline-block;
    color: #e7e2d7;
}
.pdo-star-partial-bg { color: #e7e2d7; }
.pdo-star-partial-fg {
    position: absolute;
    top: 0; left: 0;
    width: var(--pct, 50%);
    overflow: hidden;
    color: #f4b92f;
}
.pdo-star-full  { color: #f4b92f; }
.pdo-star-empty { color: #e7e2d7; }

/* Numerito junto a las estrellas en las tarjetas públicas */
.pdo-review-rating-num {
    margin-left: 8px;
    font-size: .85rem;
    font-weight: 700;
    color: #5c6773;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
}

/* ─── Upload de fotos opcional + consent ─────────────────────────── */
.pdo-review-photos-field { }
.pdo-review-upload {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.pdo-review-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    background: #fff;
    border: 2px dashed #c2b69d;
    border-radius: 50px;
    color: #9f7f5e;
    font-weight: 700;
    font-size: .9rem;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
    user-select: none;
}
.pdo-review-upload-btn:hover {
    background: #fdfbf5;
    border-color: #9f7f5e;
    color: #011c28;
}
.pdo-review-upload-status {
    color: #7d7a73;
    font-size: .82rem;
    line-height: 1.4;
}
.pdo-review-photos-preview {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 6px 0 14px;
}
.pdo-review-photo-thumb {
    position: relative;
    width: 84px;
    height: 84px;
    border-radius: 10px;
    border: 1px solid #e7e2d7;
    box-shadow: 0 2px 6px rgba(1,28,40,.08);
    overflow: hidden;
    background: #fdfbf5;
}
.pdo-review-photo-thumb img,
.pdo-review-photo-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.pdo-review-video-thumb {
    background: #000;
}
.pdo-review-photo-remove {
    position: absolute;
    top: 4px; right: 4px;
    width: 22px; height: 22px;
    border-radius: 50%;
    border: 0;
    background: rgba(1,28,40,.85);
    color: #fff;
    font-size: 16px;
    line-height: 22px;
    text-align: center;
    cursor: pointer;
    padding: 0;
    z-index: 2;
    transition: background .15s ease, transform .15s ease;
}
.pdo-review-photo-remove:hover {
    background: #c0392b;
    transform: scale(1.08);
}
.pdo-review-video-badge {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 28px; height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,.85);
    color: #011c28;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    pointer-events: none;
}
.pdo-review-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fdfbf5;
    border: 1px solid #ede9e1;
    border-radius: 10px;
    padding: 12px 14px;
    cursor: pointer;
    user-select: none;
    transition: background .15s ease;
}
.pdo-review-consent:hover { background: #f5f1ea; }
.pdo-review-consent input[type="checkbox"] {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #9f7f5e;
}
.pdo-review-consent span {
    font-size: .82rem;
    color: #5c6773;
    line-height: 1.5;
}

/* ─── Galería de fotos en tarjetas públicas ─────────────────────── */
.pdo-review-card.has-photos { padding-top: 18px; overflow: hidden; }
.pdo-review-card.has-photos::before { display: none; }
.pdo-review-card-photos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 4px;
    /* -18px arriba: respeta el padding-top del card y deja un poco de aire;
       -28px laterales: las fotos se extienden hasta los bordes del card;
        18px abajo: separación uniforme con las estrellas */
    margin: -18px -28px 18px;
    background: #f5f1ea;
}
.pdo-review-card-photo {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    transition: opacity .25s ease;
}
.pdo-review-card-photo:hover { opacity: .85; }
.pdo-review-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.pdo-review-card-video {
    position: relative;
    background: #000;
}
.pdo-review-card-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Trigger uniforme (button) en lugar de <a target="_blank"> */
.pdo-gallery-trigger {
    border: 0;
    padding: 0;
    margin: 0;
    background: transparent;
    cursor: pointer;
    overflow: hidden;
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    position: relative;
    transition: opacity .2s ease;
}
.pdo-gallery-trigger:hover { opacity: .85; }
.pdo-gallery-trigger img,
.pdo-gallery-trigger video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.pdo-card-play-badge {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    color: #011c28;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    pointer-events: none;
    box-shadow: 0 4px 14px rgba(0,0,0,.35);
}

/* ─── Lightbox modal full-screen ──────────────────────────────────── */
.pdo-gallery-lightbox {
    position: fixed;
    inset: 0;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;                  /* dynamic viewport para móviles */
    background: rgba(1, 28, 40, .94);
    z-index: 999999;
    display: none;
    place-items: center;             /* centrado robusto en grid */
    padding: 40px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: pdoLightboxIn .2s ease-out;
    box-sizing: border-box;
}
.pdo-gallery-lightbox.is-open { display: grid; }
@keyframes pdoLightboxIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.pdo-gallery-stage {
    max-width: min(94vw, 1400px);
    max-height: min(86vh, 900px);
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    place-self: center;              /* asegura centrado en el grid padre */
}
.pdo-gallery-stage img,
.pdo-gallery-stage video {
    max-width: 100%;
    max-height: 86vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 30px 80px rgba(0,0,0,.6);
    background: #000;
    display: block;
    margin: 0 auto;
}

.pdo-gallery-close,
.pdo-gallery-prev,
.pdo-gallery-next {
    position: absolute;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    color: #fff;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    line-height: 1;
}
.pdo-gallery-close {
    top: 18px; right: 22px;
    width: 44px; height: 44px;
    border-radius: 50%;
    font-size: 26px;
    font-weight: 300;
}
.pdo-gallery-prev,
.pdo-gallery-next {
    top: 50%;
    transform: translateY(-50%);
    width: 56px; height: 56px;
    border-radius: 50%;
    font-size: 32px;
    font-weight: 400;
    font-family: Georgia, serif;
}
.pdo-gallery-prev { left: 24px; }
.pdo-gallery-next { right: 24px; }

.pdo-gallery-close:hover,
.pdo-gallery-prev:hover,
.pdo-gallery-next:hover {
    background: rgba(255,255,255,.25);
}
.pdo-gallery-prev:hover { transform: translateY(-50%) scale(1.06); }
.pdo-gallery-next:hover { transform: translateY(-50%) scale(1.06); }
.pdo-gallery-close:hover { transform: scale(1.06); }

.pdo-gallery-counter {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,.7);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    background: rgba(0,0,0,.4);
    padding: 6px 14px;
    border-radius: 999px;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 600px) {
    .pdo-gallery-lightbox { padding: 16px; }
    .pdo-gallery-prev,
    .pdo-gallery-next {
        width: 44px; height: 44px;
        font-size: 26px;
    }
    .pdo-gallery-prev { left: 8px; }
    .pdo-gallery-next { right: 8px; }
    .pdo-gallery-close { top: 12px; right: 12px; }
}

.pdo-review-msg {
    max-width: 640px;
    margin: 60px auto;
    padding: 40px;
    text-align: center;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(1,28,40,.1);
    border: 1px solid #f0ece3;
}
.pdo-review-msg h2 { margin: 0 0 12px; color: #011c28; font-size: 1.6rem; }
.pdo-review-msg p  { margin: 0; color: #5c6773; font-size: 1rem; line-height: 1.6; }
.pdo-review-msg--ok::before { content: "✅"; font-size: 3rem; display: block; margin-bottom: 12px; }
.pdo-review-msg--error::before { content: "⚠️"; font-size: 3rem; display: block; margin-bottom: 12px; }

/* Grid de reseñas [pdo_reviews] */
.pdo-reviews-section { padding: 40px 0; }
.pdo-reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(16px, 3vw, 32px);
}
.pdo-review-card {
    background: linear-gradient(155deg, #fff, #fdfbf5);
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(1,28,40,.08);
    border: 1px solid #f0ece3;
    position: relative;
    transition: transform .25s ease, box-shadow .25s ease;
    display: flex;
    flex-direction: column;
}
.pdo-review-card::before {
    content: """;
    position: absolute;
    top: 14px; right: 20px;
    font-family: Georgia, serif;
    font-size: 3.5rem;
    color: #e7e2d7;
    line-height: 1;
}
.pdo-review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 50px rgba(1,28,40,.14);
}
.pdo-review-stars-display {
    color: #f4b92f;
    font-size: 1.1rem;
    margin-bottom: 14px;
    letter-spacing: 2px;
}
.pdo-review-stars-display .pdo-star-empty { color: #e7e2d7; }
.pdo-review-text {
    margin: 0 0 16px;
    padding: 0;
    font-size: 1rem;
    color: #011c28;
    line-height: 1.6;
    font-style: italic;
    border: 0;
    quotes: none;
    flex: 1 1 auto;       /* absorbe el espacio sobrante para empujar el footer */
}
.pdo-review-improve {
    margin: 0 0 16px;
    font-size: .88rem;
    color: #5c6773;
    padding: 12px;
    background: rgba(159,127,94,.06);
    border-radius: 10px;
    border-left: 3px solid #9f7f5e;
}
.pdo-review-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid #f0ece3;
    font-size: .85rem;
    color: #5c6773;
    margin-top: auto;     /* siempre pegado al fondo de la tarjeta */
}
.pdo-review-author strong { color: #011c28; }
.pdo-review-author .pdo-review-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 28px;
    border: 1px solid #f0ece3;
}
/* Card de Google: badge discreto arriba, mismo estilo general */
.pdo-review-card--google { position: relative; }
.pdo-review-google-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fff;
    border: 1px solid #e7e2d7;
    border-radius: 999px;
    padding: 3px 10px 3px 6px;
    font-size: .68rem;
    font-weight: 700;
    color: #4285F4;
    letter-spacing: .3px;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.pdo-review-google-badge svg { display: block; }
.pdo-review-lang {
    padding: 2px 8px;
    background: #f5f1ea;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .5px;
}
.pdo-reviews--empty {
    text-align: center;
    padding: 60px 20px;
    color: #7d7a73;
}

/* ═══════════════════════════════════════════════════════════════════
   PÁGINA PÚBLICA /resenas/  — hero con imagen de fondo + cards flotantes
   ═══════════════════════════════════════════════════════════════════ */
body.page-template-default .pdo-reviews-hero,
.pdo-reviews-hero {
    position: relative;
    min-height: 54vh;
    padding: clamp(100px, 18vw, 200px) 20px clamp(120px, 20vw, 240px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    color: #fff;
    overflow: hidden;
    isolation: isolate;
}
.pdo-reviews-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 60%, #fdfbf5 100%);
    z-index: 1;
}
.pdo-reviews-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 820px;
    margin: 0 auto;
}
.pdo-reviews-hero-title {
    margin: 0 0 16px;
    color: #fff;
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 700;
    letter-spacing: .5px;
    text-shadow: 0 6px 30px rgba(0,0,0,.4);
    line-height: 1.2;
}
.pdo-reviews-hero-subtitle {
    margin: 0 auto;
    color: rgba(255,255,255,.94);
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    max-width: 640px;
    line-height: 1.6;
    text-shadow: 0 4px 20px rgba(0,0,0,.35);
}

/* Sección donde flotan las cards por encima */
.pdo-reviews-floating-section {
    position: relative;
    margin-top: clamp(-160px, -14vw, -80px);   /* saca las cards sobre el hero */
    padding: 0 0 80px;
    background: transparent;
    z-index: 3;
}
.pdo-reviews-floating-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(16px, 3vw, 32px);
}
.pdo-reviews-floating-section .pdo-reviews-section { padding: 0; }
.pdo-reviews-floating-section .pdo-review-card {
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 25px 60px rgba(1,28,40,.2);
    transform: translateY(0);
    transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s ease;
}
.pdo-reviews-floating-section .pdo-review-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 35px 80px rgba(1,28,40,.28);
}
/* Entrada escalonada con delay */
.pdo-reviews-floating-section .pdo-review-card { animation: pdo-card-in .6s cubic-bezier(.22,1,.36,1) both; }
.pdo-reviews-floating-section .pdo-review-card:nth-child(2) { animation-delay: .08s; }
.pdo-reviews-floating-section .pdo-review-card:nth-child(3) { animation-delay: .16s; }
.pdo-reviews-floating-section .pdo-review-card:nth-child(4) { animation-delay: .24s; }
.pdo-reviews-floating-section .pdo-review-card:nth-child(5) { animation-delay: .32s; }
.pdo-reviews-floating-section .pdo-review-card:nth-child(6) { animation-delay: .40s; }
.pdo-reviews-floating-section .pdo-review-card:nth-child(n+7) { animation-delay: .48s; }

@keyframes pdo-card-in {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* La página /resenas/ no debe mostrar el page-header por defecto cuando
   tiene nuestro propio hero */
body.page-template-default .page-header:has(+ main .pdo-reviews-hero) { display: none; }
/* Fallback sin :has — el hero ya cubre la visual; ocultamos el h1 page-title si aplica */
body.page-template-default .entry-title { text-align: center; }

/* Contenido duplicado (intro heredada + hero) — si el page.php agrega el
   page-header antes del contenido, el primer título queda arriba. No lo
   ocultamos selectivamente porque depende del theme; el hero tiene más peso visual. */

@media (max-width: 600px) {
    .pdo-reviews-hero { padding: 90px 16px 120px; min-height: 42vh; }
    .pdo-reviews-floating-section { margin-top: -80px; }
}

/* Ocultar el page-header azul del theme cuando mostramos nuestro hero
   personalizado en /resenas/ (usamos body class inyectada por STS_Reviews). */
body.pdo-reviews-public-page .page-header { display: none !important; }
body.pdo-reviews-public-page .entry-content { padding: 0; margin: 0; max-width: 100%; }
body.pdo-reviews-public-page main#primary { padding: 0; }
body.pdo-reviews-public-page .entry-content > *:not(.pdo-reviews-hero):not(.pdo-reviews-floating-section):not(script) { display: none; }

/* Promedio global de reseñas en el hero de /resenas/ */
.pdo-reviews-hero-avg {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 14px 24px;
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 999px;
    margin-bottom: 22px;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
    animation: pdo-avg-in .7s cubic-bezier(.22,1,.36,1) both;
}
.pdo-reviews-hero-avg-num {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    text-shadow: 0 2px 12px rgba(0,0,0,.35);
    letter-spacing: -.5px;
}
.pdo-reviews-hero-avg-stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 1.35rem;
    line-height: 1;
    color: #f4b92f;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.3));
}
.pdo-reviews-hero-avg-stars .pdo-star-empty { color: rgba(255,255,255,.3); }
.pdo-reviews-hero-avg-stars .pdo-star-partial {
    position: relative;
    display: inline-block;
    line-height: 1;
}
.pdo-reviews-hero-avg-stars .pdo-star-partial-bg { color: rgba(255,255,255,.3); }
.pdo-reviews-hero-avg-stars .pdo-star-partial-fg {
    position: absolute;
    inset: 0;
    color: #f4b92f;
    overflow: hidden;
    width: var(--pct, 50%);
    white-space: nowrap;
}
.pdo-reviews-hero-avg-count {
    font-size: .85rem;
    color: rgba(255,255,255,.88);
    font-weight: 500;
    letter-spacing: .3px;
    text-shadow: 0 2px 10px rgba(0,0,0,.35);
}

@keyframes pdo-avg-in {
    from { opacity: 0; transform: translateY(-14px) scale(.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 600px) {
    .pdo-reviews-hero-avg { flex-wrap: wrap; justify-content: center; gap: 8px; padding: 10px 18px; }
    .pdo-reviews-hero-avg-num { font-size: 1.6rem; }
    .pdo-reviews-hero-avg-stars { font-size: 1.1rem; }
}

/* Menú auxiliar (Reseñas, etc.) — visible siempre, no depende de un menú asignado */
.pdo-aux-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}
.pdo-aux-menu li { margin: 0; padding: 0; }
.pdo-aux-menu a {
    display: inline-flex;
    align-items: center;
    color: var(--color-white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color .2s ease, transform .2s ease;
}
.pdo-aux-menu a:hover {
    color: #f4b92f;
    transform: translateY(-1px);
}
.is-scrolled .pdo-aux-menu a,
body.woocommerce-cart .pdo-aux-menu a,
body.woocommerce-checkout .pdo-aux-menu a,
body.woocommerce-account .pdo-aux-menu a,
body.woocommerce-shop .pdo-aux-menu a,
body.single-product .pdo-aux-menu a,
body.page-template-default:not(.home):not(.front-page) .pdo-aux-menu a,
body.single:not(.home) .pdo-aux-menu a,
body.archive .pdo-aux-menu a,
body.error404 .pdo-aux-menu a {
    color: var(--color-text-main);
}
.is-scrolled .pdo-aux-menu a:hover,
body.woocommerce-cart .pdo-aux-menu a:hover,
body.woocommerce-checkout .pdo-aux-menu a:hover,
body.woocommerce-account .pdo-aux-menu a:hover,
body.woocommerce-shop .pdo-aux-menu a:hover,
body.single-product .pdo-aux-menu a:hover,
body.page-template-default:not(.home):not(.front-page) .pdo-aux-menu a:hover,
body.single:not(.home) .pdo-aux-menu a:hover,
body.archive .pdo-aux-menu a:hover,
body.error404 .pdo-aux-menu a:hover {
    color: #9f7f5e;
}

@media (max-width: 860px) {
    .pdo-aux-menu a { font-size: .85rem; }
    .pdo-aux-menu .dashicons { display: none; }
}
