
/*
 Theme Name:   Ember and Iron
 Template:     kadence
 Description:  Cocina a la brasa de lujo
 Author:       Moisés Valero
 Version:      1.0.0
*/

/* Variables Globales */
:root {
    --color-obsidian: #0D0D0D;
    --color-copper: #B87333;
    --color-ash: #B8BAB9;
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'DM Sans', sans-serif;
    --font-montserrat: 'Montserrat', sans-serif;
    /* Separación entre secciones en home (tendencia 2026: mismo hueco en todas) */
    --home-section-space: clamp(72px, 7vw, 100px);
}

/* Fuentes de Google */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;700&family=DM+Sans:wght@400;500&family=Montserrat:wght@300&display=swap');

/* =========================================
   RESET EMBER & IRON vs KADENCE
   Elimina grano, neblina y sombras heredadas
   ========================================= */

body,
.site,
#outer-wrapper,
#wrapper,
#inner-wrap,
#main,
.site-content,
.entry-content {
    background-color: #0D0D0D !important;
    filter: none !important;
    backdrop-filter: none !important;
    mask-image: none !important;
    -webkit-mask-image: none !important;
    opacity: 1 !important;
}

body::before,
body::after,
#wrapper::before,
#wrapper::after,
.site::before,
.site::after {
    display: none !important;
    content: none !important;
    background: none !important;
}

.wp-block-kadence-rowlayout,
.kt-row-column-wrap,
#pane-header,
.entry-hero,
.site-main {
    box-shadow: none !important;
    filter: none !important;
    backdrop-filter: none !important;
}

.ember-image-block img,
.ei-img-frame img {
    filter: contrast(1.1) brightness(1) !important;
    opacity: 1 !important;
    mask-image: none !important;
    -webkit-mask-image: none !important;
}

section {
    position: relative !important;
    z-index: 10 !important;
    background-color: #0D0D0D !important;
}

header.site-header {
    z-index: 9999 !important;
}

/* =========================================
   HEADER / NAVBAR – Estructura real Kadence (#main-header, .site-header-inner-wrap…)
   Efecto cristal, minimalista, sticky solo escritorio
   ========================================= */

@media (min-width: 769px) {
    /* Cristal muy marcado: transparencia exagerada para que se note el blur */
    .site-header #main-header,
    .site-header .site-header-wrap,
    .site-header .site-header-inner-wrap,
    .site-header .site-header-upper-wrap,
    .site-header .site-header-upper-inner-wrap,
    .site-header .site-top-header-wrap,
    .site-header .site-header-row-container-inner,
    .site-header .site-header-row-container-inner .site-container {
        background: rgba(13, 13, 13, 0.12) !important;
        backdrop-filter: blur(40px) saturate(130%);
        -webkit-backdrop-filter: blur(40px) saturate(130%);
        -moz-backdrop-filter: blur(40px) saturate(130%);
        box-shadow: none !important;
    }

    /* Línea inferior en cobre (nuestro color), fina */
    .site-header #main-header,
    .site-header .site-header-inner-wrap,
    .site-header .site-header-row-container-inner {
        border-bottom: 1px solid rgba(184, 115, 51, 0.35) !important;
        border-top: none !important;
    }

    /* Misma altura siempre: evitar que el header “encoja” al hacer scroll */
    .site-header #main-header {
        height: 54px !important;
        min-height: 54px !important;
    }

    .site-header .site-header-inner-wrap {
        height: 54px !important;
        min-height: 54px !important;
        top: 0 !important;
    }

    .site-header .site-header-inner-wrap .site-header-upper-inner-wrap,
    .site-header .site-header-inner-wrap .site-header-row-container-inner {
        min-height: 54px !important;
    }

    .site-header {
        position: sticky !important;
        top: 0 !important;
        left: 0;
        right: 0;
    }

    /* Sticky: mismo cristal exagerado, sin cambiar tamaño */
    .site-header .site-header-inner-wrap.item-is-fixed {
        background: rgba(13, 13, 13, 0.18) !important;
        backdrop-filter: blur(40px) saturate(130%);
        -webkit-backdrop-filter: blur(40px) saturate(130%);
        height: 54px !important;
        min-height: 54px !important;
    }

    /* Barra compacta */
    .site-header .site-header-row-container-inner {
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }

    /* Logo: un puntito más grande y espacio entre letras */
    .site-header .site-branding .site-title,
    .site-header .site-branding .site-title-wrap .site-title,
    .site-header .site-branding a.brand {
        color: #FFFFFF !important;
        font-weight: 300;
        font-size: 14px !important;
        letter-spacing: 0.22em !important;
        word-spacing: 0.06em;
    }

    /* Menú: ítems separados y letras con espacio */
    .site-header #primary-menu.menu {
        display: flex;
        flex-wrap: wrap;
        gap: 4px 8px;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .site-header #primary-menu .menu-item {
        margin: 0;
    }

    .site-header #primary-menu .menu-item a {
        display: inline-block;
        color: rgba(255, 255, 255, 0.9) !important;
        font-size: 11px !important;
        font-weight: 400;
        letter-spacing: 0.22em !important;
        word-spacing: 0.1em;
        padding: 6px 10px !important;
        text-transform: uppercase;
        text-decoration: none;
    }

    .site-header #primary-menu .menu-item a:hover,
    .site-header #primary-menu .menu-item.current-menu-item a {
        color: #FFFFFF !important;
    }

    /* Quitar cualquier línea blanca/gris que Kadence ponga en el menú o la barra */
    .site-header .main-navigation,
    .site-header #site-navigation,
    .site-header .header-navigation,
    .site-header #primary-menu,
    .site-header .menu,
    .site-header .site-header-row-container,
    .site-header .site-header-row {
        border-bottom: none !important;
        border-top: none !important;
        box-shadow: none !important;
    }

    .site-header .sub-menu,
    .site-header .dropdown-menu {
        background: rgba(13, 13, 13, 0.9) !important;
        backdrop-filter: blur(28px);
        -webkit-backdrop-filter: blur(28px);
        border: 1px solid rgba(184, 115, 51, 0.2);
        border-radius: 0;
    }
}

/* Móvil: sin sticky, sin efecto cristal (Kadence suele usar drawer) */
@media (max-width: 768px) {
    .site-header {
        position: relative !important;
        background: #0D0D0D !important;
    }
}

.ember-triptych-section,
.ember-feature-section {
    margin-top: 0 !important;
    position: relative !important;
    z-index: 10 !important;
}

/* =========================================
   SISTEMA DE DISEÑO EMBER & IRON (OBLIGATORIO)
   Títulos: Cormorant Garamond · Texto: DM Sans · Botones: cuadrados, borde Copper
   ========================================= */

/* Títulos: Cormorant Garamond */
h1, h2, h3, h4, h5, h6,
.entry-title,
.page-title,
.kadence-page-title,
.site-title,
.ei-menu-title,
.menu-seccion h2,
.ei-footer-clean h4,
.wp-block-kadence-rowlayout h1,
.wp-block-kadence-rowlayout h2,
.wp-block-kadence-rowlayout h3 {
    font-family: 'Cormorant Garamond', serif !important;
}

/* Texto: DM Sans */
body,
.site,
.site-main,
.entry-content,
.site-footer,
.site-header,
p,
li,
span,
.menu-minimalista,
.ei-menu,
.ei-footer-clean,
.descripcion-plato,
.ei-dish-desc,
.ei-menu-subtitle {
    font-family: 'DM Sans', sans-serif !important;
}

/* Botones: Dark Glassmorphism Premium – DM Sans */
.btn-ember,
.btn-ember-outline,
.wp-block-button a,
.wp-block-button__link,
a.button,
button,
input[type="submit"],
input[type="button"] {
    border-radius: 0 !important;
    border: 1px solid rgba(184, 115, 51, 0.3) !important;
    font-family: 'DM Sans', sans-serif !important;
}

.btn-ember,
.wp-block-button a:not(.btn-ember-outline),
.wp-block-button__link {
    display: inline-block;
    background: rgba(255, 255, 255, 0.03) !important;
    color: #FFFFFF !important;
    padding: 16px 44px !important;
    font-weight: 500 !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 4px !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    transition-property: background, border-color, box-shadow, transform;
}

.btn-ember:hover,
.wp-block-button a:hover,
.wp-block-button__link:hover {
    background: rgba(184, 115, 51, 0.1) !important;
    border-color: rgba(184, 115, 51, 1) !important;
    box-shadow: 0 0 25px rgba(184, 115, 51, 0.2);
    transform: translateY(-3px);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Icono o flecha dentro del botón: se desplaza a la derecha en hover */
.btn-ember:hover svg,
.btn-ember:hover .icon,
.btn-ember:hover [class*="icon"],
.wp-block-button a:hover svg,
.wp-block-button a:hover .icon,
.wp-block-button a:hover [class*="icon"] {
    transform: translateX(5px);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.btn-ember svg,
.btn-ember .icon,
.wp-block-button a svg,
.wp-block-button a .icon {
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.btn-ember-outline {
    background: rgba(255, 255, 255, 0.03) !important;
    color: var(--color-ash) !important;
    padding: 14px 40px !important;
    font-size: 11px !important;
    letter-spacing: 4px !important;
    font-weight: 400 !important;
}

.btn-ember-outline:hover {
    background: rgba(184, 115, 51, 0.1) !important;
    border-color: rgba(184, 115, 51, 1) !important;
    color: #FFFFFF !important;
    box-shadow: 0 0 25px rgba(184, 115, 51, 0.2);
    transform: translateY(-3px);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Botón "Reservar Experiencia" del bloque Ritual del Fuego (video): mismo glassmorphism */
div:has(.home-ritual-title) > a {
    display: inline-block !important;
    background: rgba(255, 255, 255, 0.03) !important;
    color: #FFFFFF !important;
    padding: 16px 44px !important;
    border: 1px solid rgba(184, 115, 51, 0.3) !important;
    border-radius: 0 !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    letter-spacing: 4px !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    transition: 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    transition-property: background, border-color, box-shadow, transform;
}

div:has(.home-ritual-title) > a:hover {
    background: rgba(184, 115, 51, 0.1) !important;
    border-color: rgba(184, 115, 51, 1) !important;
    color: #FFFFFF !important;
    box-shadow: 0 0 25px rgba(184, 115, 51, 0.2);
    transform: translateY(-3px);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Eliminar estilos por defecto de Kadence en el footer */
.site-footer { 
    background: none !important;
    padding: 0 !important;
    border: none !important;
}
.site-footer > .site-container { 
    padding: 0 !important;
    background: none !important;
}
.site-footer .footer-inner { 
    display: block !important;
    padding: 0 !important;
}
.site-footer .footer-copyright { 
    border-top: none !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
}
.site-footer .site-info { display: none !important; } /* Ocultar elementos si es necesario */

/* Estilos para el nuevo footer con clases ei-* */
.ei-footer-clean {
    background: linear-gradient(to bottom, var(--color-obsidian) 0%, #121212 100%);
    color: #FFFFFF;
    font-family: var(--font-sans);
    padding: 60px 0 40px 0;
    width: 100%;
    box-sizing: border-box;
    border-top: 1px solid rgba(184, 115, 51, 0.15);
    overflow: hidden; /* Para contener el margen negativo del copyright */
}

.ei-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto 40px auto;
    gap: 40px;
    padding: 0 20px; /* Asegura padding horizontal */
}

.ei-col-brand {
    flex: 1.5;
    min-width: 250px;
}
.ei-col-links {
    flex: 1;
    min-width: 150px;
}

.ei-logo {
    font-family: var(--font-montserrat);
    font-weight: 300;
    font-size: 26px;
    letter-spacing: 5px;
    display: block;
    margin-bottom: 20px;
}

.ei-footer-clean h4 {
    color: var(--color-copper); /* Ember Copper */
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.ei-footer-clean p, .ei-footer-clean a {
    font-size: 14px; /* Ajustado a 14px para legibilidad */
    color: var(--color-ash); /* Color ceniza para texto y enlaces */
    text-decoration: none;
    line-height: 1.6;
}

.ei-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}
.ei-nav li {
    margin-bottom: 10px;
}
.ei-nav a:hover {
    color: #FFFFFF;
}

.ei-bottom {
    max-width: 100%; /* Ocupar todo el ancho */
    margin: 0;
    border-top: 1px solid rgba(184, 115, 51, 0.15);
    padding: 25px 20px 0 20px; /* Padding para el contenido y el copyright */
    display: flex;
    justify-content: space-between;
    font-size: 14px; /* Ajustado a 14px para legibilidad */
    color: var(--color-ash); /* Color ceniza */
    opacity: 0.7;
    box-sizing: border-box;
}

.ei-bottom span {
    font-family: var(--font-sans);
}

/* Footer responsive: 1 columna en móvil */
@media (max-width: 768px) {
    .ei-grid {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 16px;
    }

    .ei-col-brand,
    .ei-col-links {
        text-align: center;
    }

    .ei-bottom {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        padding: 20px 16px 10px 16px;
        text-align: center;
    }
}

/* Subrayado premium en el menú principal */
#primary-menu > li > a,
.primary-menu > li > a {
    position: relative;
    display: inline-block;
    padding-bottom: 6px;
}

#primary-menu > li > a::after,
.primary-menu > li > a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-copper), transparent);
    opacity: 0;
    transition: width 0.3s ease, opacity 0.3s ease;
}

#primary-menu > li:hover > a::after,
#primary-menu > li:focus-within > a::after,
#primary-menu > li.current-menu-item > a::after,
.primary-menu > li:hover > a::after,
.primary-menu > li:focus-within > a::after,
.primary-menu > li.current-menu-item > a::after {
    width: 68%;
    opacity: 1;
}

/* =========================================
   HERO PRINCIPAL - LEGIBILIDAD CINE
   ========================================= */

/* Cabecera hero del tema Kadence */
.entry-hero {
    position: relative;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

/* FORZAR HERO SIN NEBLINAS NI CAPAS OSCURAS */
.entry-hero,
.entry-hero::before,
.entry-hero::after,
.entry-hero *::before,
.entry-hero *::after {
    background: none !important;
    box-shadow: none !important;
    filter: none !important;
    mask-image: none !important;
    -webkit-mask-image: none !important;
}

.entry-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: none !important;
    z-index: 0;
}

.entry-hero-inner,
.entry-hero .hero-section-inner-wrap,
.entry-hero .entry-hero-title-wrap {
    position: relative;
    z-index: 1;
}

/* Hero: sin sombras de texto; legibilidad por overlay y contraste (estilo 2025) */
.entry-hero .entry-title,
.entry-hero .kadence-breadcrumbs,
.entry-hero .entry-hero-subtitle,
.entry-hero .entry-hero-description,
.entry-hero p {
    text-shadow: none !important;
}

/* Primera fila de contenido tipo hero: Full-Bleed 100vw, sin contenedor limitante */
.entry-content > .wp-block-kadence-rowlayout:first-of-type {
    position: relative;
    overflow: hidden;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    box-shadow: none !important;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(184, 115, 51, 0.15);
    background-color: transparent !important;
    background-image: none !important;
}

/* FORZAR HERO HOME SIN OVERLAYS NI OSCURECIMIENTOS */
.entry-content > .wp-block-kadence-rowlayout:first-of-type::before,
.entry-content > .wp-block-kadence-rowlayout:first-of-type::after,
.entry-content > .wp-block-kadence-rowlayout:first-of-type .kt-row-layout-overlay,
.entry-content > .wp-block-kadence-rowlayout:first-of-type .kt-row-layout-overlay::before,
.entry-content > .wp-block-kadence-rowlayout:first-of-type .kt-row-layout-overlay::after {
    background: none !important;
    box-shadow: none !important;
    filter: none !important;
    opacity: 1 !important;
}

/* MODO BRILLO TOTAL EN HERO DE INICIO: SIN FONDOS NI VÉLOS EN NINGÚN HIJO */
.home .entry-content > .wp-block-kadence-rowlayout:first-of-type,
.home .entry-content > .wp-block-kadence-rowlayout:first-of-type * {
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    filter: none !important;
    mask-image: none !important;
    -webkit-mask-image: none !important;
}

.entry-content > .wp-block-kadence-rowlayout:first-of-type::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: none !important;
    z-index: 1;
}

.entry-content > .wp-block-kadence-rowlayout:first-of-type .kt-row-layout-inner,
.entry-content > .wp-block-kadence-rowlayout:first-of-type .kt-row-column-wrap {
    position: relative;
    z-index: 2;
}

/* =========================================
   POST-HERO – Full-bleed 100vw · Editorial asimétrico · Overlay Obsidian
   Manual EMBER & IRON · Espaciado 3XL (160px) bajo el Hero
   ========================================= */
.entry-content > .wp-block-kadence-rowlayout:nth-of-type(2) {
    position: relative;
    overflow: hidden;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    margin-top: -1px !important;
    z-index: 2;
    padding: 0 !important;
    box-sizing: border-box;
}

.entry-content > .wp-block-kadence-rowlayout:nth-of-type(2) .kt-row-layout-inner,
.entry-content > .wp-block-kadence-rowlayout:nth-of-type(2) .content-wrap,
.entry-content > .wp-block-kadence-rowlayout:nth-of-type(2) .kt-row-column-wrap {
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Overlay gradiente negro → transparente para fundir con Obsidian */
.entry-content > .wp-block-kadence-rowlayout:nth-of-type(2)::after {
    content: none;
    background: none !important;
}

.entry-content > .wp-block-kadence-rowlayout:nth-of-type(2) .kt-row-layout-inner {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0 !important;
    align-items: stretch;
    position: relative;
    z-index: 2;
}

.entry-content > .wp-block-kadence-rowlayout:nth-of-type(2) .wp-block-kadence-column:first-child {
    position: relative;
}

.entry-content > .wp-block-kadence-rowlayout:nth-of-type(2) .wp-block-kadence-column:first-child .wp-block-image,
.entry-content > .wp-block-kadence-rowlayout:nth-of-type(2) .wp-block-kadence-column:first-child figure {
    margin: 0;
    min-height: 380px;
}

.entry-content > .wp-block-kadence-rowlayout:nth-of-type(2) .wp-block-kadence-column:first-child img {
    width: 100%;
    height: 100%;
    min-height: 380px;
    object-fit: cover;
    display: block;
}

/* Texto: layout asimétrico, pisa la imagen (negative margin) */
.entry-content > .wp-block-kadence-rowlayout:nth-of-type(2) .wp-block-kadence-column:last-child {
    position: relative;
    z-index: 3;
    margin-left: -10%;
    padding: var(--space-xl) var(--space-lg) !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--color-obsidian);
    border-top: 1px solid rgba(184, 115, 51, 0.18);
    min-height: 300px;
}

.entry-content > .wp-block-kadence-rowlayout:nth-of-type(2) .wp-block-kadence-column:last-child h1,
.entry-content > .wp-block-kadence-rowlayout:nth-of-type(2) .wp-block-kadence-column:last-child h2,
.entry-content > .wp-block-kadence-rowlayout:nth-of-type(2) .wp-block-kadence-column:last-child h3 {
    font-family: var(--font-serif) !important;
}

@media (max-width: 768px) {
    .entry-content > .wp-block-kadence-rowlayout:nth-of-type(2) .kt-row-layout-inner {
        grid-template-columns: 1fr !important;
    }
    .entry-content > .wp-block-kadence-rowlayout:nth-of-type(2) .wp-block-kadence-column:last-child {
        margin-left: 0;
        margin-top: -40px;
        padding: var(--space-lg) var(--space-sm) !important;
        min-height: auto;
    }
    .entry-content > .wp-block-kadence-rowlayout:nth-of-type(2) .wp-block-kadence-column:first-child .wp-block-image,
    .entry-content > .wp-block-kadence-rowlayout:nth-of-type(2) .wp-block-kadence-column:first-child figure {
        min-height: 260px;
    }
}

.entry-content > .wp-block-kadence-rowlayout:first-of-type h1,
.entry-content > .wp-block-kadence-rowlayout:first-of-type h2,
.entry-content > .wp-block-kadence-rowlayout:first-of-type h3,
.entry-content > .wp-block-kadence-rowlayout:first-of-type p {
    text-shadow: none !important;
}

/* Ken Burns suave en el hero construido con Row Layout (primera fila de contenido)
   Se aplica en todas las anchuras, salvo usuarios con "reducir movimiento" activado */
@media (prefers-reduced-motion: no-preference) {
    .entry-content > .wp-block-kadence-rowlayout:first-of-type {
        background-repeat: no-repeat;
        background-position: center center;
        background-size: cover;
        will-change: background-size, background-position;
        animation: ei-kenburns-row 28s ease-in-out infinite alternate;
    }
}

@keyframes ei-kenburns-row {
    0% {
        background-size: 100%;
        background-position: 50% 50%;
    }
    100% {
        background-size: 115%;
        background-position: 52% 48%;
    }
}

/* Subtítulo del hero del tema (línea cobre) más discreto en móvil */
@media (max-width: 480px) {
    .entry-hero .entry-hero-subtitle {
        font-size: 0.8rem;
        letter-spacing: 0.14em;
    }
}

/* =========================================
   EFECTO HOVER EN IMÁGENES DE CONTENIDO
   ========================================= */

.entry-content img,
.wp-block-image img,
.wp-block-kadence-rowlayout img,
.kadence-image img,
img.ei-hover {
    transition:
        transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    transform-origin: center center;
}

.entry-content img:hover,
.wp-block-image:hover img,
.wp-block-kadence-rowlayout img:hover,
.kadence-image:hover img,
img.ei-hover:hover {
    transform: scale(1.035);
}

/* ============================
   EL ORIGEN DE LA BRASA – IMAGEN DERECHA
   Aplicar la clase "ei-origen-image" al bloque de imagen o a su columna.
   ============================ */

.ei-origen-image {
    position: relative;
    overflow: hidden;
}

.ei-origen-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    transform-origin: center center;
    transition:
        transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.ei-origen-image:hover img {
    transform: scale(1.1) translateY(-20px);
}

.ei-origen-image::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        0deg,
        rgba(184, 115, 51, 0.2) 0%,
        transparent 50%
    );
}

/* Estilos del menú */
.menu-minimalista {
    font-family: var(--font-sans);
    color: #FFFFFF;
    background-color: var(--color-obsidian);
    padding: 40px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.menu-seccion {
    margin-bottom: 60px;
}

.menu-seccion:last-child {
    margin-bottom: 0;
}

.menu-seccion h2 {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: clamp(2.1rem, 3.5vw, 3rem);
    color: var(--color-copper);
    text-align: center;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.plato-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

.plato-item:last-of-type {
    border-bottom: none;
}

.plato-item:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.plato-info {
    flex-grow: 1;
    margin-right: 20px;
}

/* Cortes: títulos Cormorant Garamond Regular 400, 32px (manual EMBER & IRON) */
.nombre-plato,
.entry-content > .wp-block-kadence-rowlayout:has(.wp-block-kadence-column:nth-child(3):last-child) h2,
.entry-content > .wp-block-kadence-rowlayout:has(.wp-block-kadence-column:nth-child(3):last-child) h3 {
    font-family: 'Cormorant Garamond', serif !important;
    font-weight: 400 !important;
    font-size: 32px !important;
    color: #FFFFFF;
    margin-bottom: 5px;
    line-height: 1.2;
}

.descripcion-plato {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: var(--color-ash);
    line-height: 1.5;
    transition: color 0.3s ease;
}

.plato-item:hover .descripcion-plato {
    color: #FFFFFF; /* Efecto de brillo en hover */
}

.precio-plato {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 22px;
    color: #B87333; /* Ember Copper */
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .plato-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .nombre-plato {
        font-size: 22px;
    }

    .descripcion-plato {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .precio-plato {
        font-size: 18px;
    }

    .menu-seccion h2 {
        font-size: 38px;
    }
}

/* ============================
   CARTA EMBER & IRON - LAYOUT CON FOTOS
   ============================ */

.ei-menu {
    background-color: var(--color-obsidian);
    color: #F5F5F5;
    font-family: var(--font-sans);
    padding: 64px 20px;
}

.ei-menu-inner {
    max-width: 1120px;
    margin: 0 auto;
}

.ei-menu-header {
    text-align: center;
    margin-bottom: 40px;
}

.ei-menu-title {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(2rem, 3.1vw, 2.8rem);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin: 0 0 8px;
}

.ei-menu-subtitle {
    font-size: 14px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-ash);
    margin: 0;
}

.ei-menu-layout {
    display: flex;
    flex-direction: column;
    gap: 56px;
}

/* =========================================
   SECCIÓN 3 CORTES – Card Oscura · Grid 32px · 1:1 · Manual EMBER & IRON
   Secreto, Entrecot, Tomahawk · Aplicado por estructura (fila con 3 columnas)
   ========================================= */

.entry-content > .wp-block-kadence-rowlayout:has(.wp-block-kadence-column:nth-child(3):last-child) {
    background: var(--color-obsidian);
    margin: 0;
    padding: var(--space-3xl) var(--space-md) var(--space-2xl) !important;
    box-sizing: border-box;
}

.entry-content > .wp-block-kadence-rowlayout:has(.wp-block-kadence-column:nth-child(3):last-child) .kt-row-layout-inner {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 32px !important;
    max-width: 1200px;
    margin: 0 auto;
}

/* Card Oscura: #1A1A1A · border 1px rgba(184,186,185,0.12) · padding 48px */
.entry-content > .wp-block-kadence-rowlayout:has(.wp-block-kadence-column:nth-child(3):last-child) .wp-block-kadence-column {
    background: #1A1A1A !important;
    border: 1px solid rgba(184, 186, 185, 0.12) !important;
    padding: 48px !important;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.entry-content > .wp-block-kadence-rowlayout:has(.wp-block-kadence-column:nth-child(3):last-child) .wp-block-kadence-column .wp-block-image,
.entry-content > .wp-block-kadence-rowlayout:has(.wp-block-kadence-column:nth-child(3):last-child) .wp-block-kadence-column figure {
    aspect-ratio: 1 / 1 !important;
    overflow: hidden;
    margin: 0 0 var(--space-md) 0 !important;
    position: relative;
    flex: 0 0 auto;
    width: 100%;
}

.entry-content > .wp-block-kadence-rowlayout:has(.wp-block-kadence-column:nth-child(3):last-child) .wp-block-kadence-column img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
}

/* Nombre: Cormorant Garamond Regular 32px */
.entry-content > .wp-block-kadence-rowlayout:has(.wp-block-kadence-column:nth-child(3):last-child) h2,
.entry-content > .wp-block-kadence-rowlayout:has(.wp-block-kadence-column:nth-child(3):last-child) h3,
.entry-content > .wp-block-kadence-rowlayout:has(.wp-block-kadence-column:nth-child(3):last-child) .nombre-plato {
    font-family: var(--font-serif) !important;
    font-weight: 400 !important;
    font-size: 32px !important;
}

/* Precio: DM Sans · Copper (#B87333) */
.entry-content > .wp-block-kadence-rowlayout:has(.wp-block-kadence-column:nth-child(3):last-child) .precio-plato,
.entry-content > .wp-block-kadence-rowlayout:has(.wp-block-kadence-column:nth-child(3):last-child) .ei-dish-price {
    font-family: 'DM Sans', sans-serif !important;
    color: var(--color-copper) !important;
}

/* Carta – imágenes editoriales en columna (sin caja “bento”) */
.ei-menu-photo {
    position: relative;
    overflow: hidden;
    max-width: 420px;
    margin: 0 auto;
}

/* Primera imagen: más pequeña, proporción 4/5, sensación de detalle editorial */
.ei-menu-photo:first-of-type {
    max-width: 280px;
    margin-bottom: 1.5rem;
}

.ei-menu-photo:first-of-type img {
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center 20%;
}

.ei-menu-photo img {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition:
        transform 0.7s cubic-bezier(0.19, 1, 0.22, 1),
        filter 0.7s ease;
    filter: brightness(0.92) contrast(1.08);
}

.ei-menu-photo img:hover {
    transform: translateY(-6px) scale(1.03);
    filter: brightness(1) contrast(1.1);
}

@media (max-width: 768px) {
    .ei-menu-photo {
        max-width: 320px;
    }
    .ei-menu-photo:first-of-type {
        max-width: 240px;
    }
}

@media (max-width: 768px) {
    .entry-content > .wp-block-kadence-rowlayout:has(.wp-block-kadence-column:nth-child(3):last-child) .kt-row-layout-inner {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
    .entry-content > .wp-block-kadence-rowlayout:has(.wp-block-kadence-column:nth-child(3):last-child) {
        padding-left: var(--space-sm) !important;
        padding-right: var(--space-sm) !important;
        padding-top: var(--space-xl) !important;
    }
}

.ei-menu-sections {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px 56px;
}

@media (min-width: 900px) {
    .ei-menu .ei-menu-sections {
        grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    }
}

.ei-menu-column {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.ei-menu-section {
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

/* Ajuste fino: alinear el título de "Cava de vinos" con el de su sección vecina en escritorio */
@media (min-width: 900px) {
    .ei-menu-sections > .ei-menu-column:last-child .ei-menu-section:last-of-type {
        margin-top: -24px;
    }
}

.ei-menu-section-title {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 18px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin: 0 0 16px;
    color: #F5F5F5;
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
    cursor: default;
}

.ei-menu-section-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 46%;
    max-width: 140px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-copper), transparent);
    opacity: 0.8;
    transition: width 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}

.ei-menu-section-title:hover::after {
    width: 68%;
    opacity: 1;
    background: linear-gradient(to right, transparent, var(--color-copper), transparent);
}

.ei-menu-item {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.ei-menu-item:last-child {
    border-bottom: none;
}

.ei-menu-item-main {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}

.ei-dish-name {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 18px;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    margin: 0;
}

.ei-dish-price {
    font-family: var(--font-sans);
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-copper);
    white-space: nowrap;
}

.ei-dish-desc {
    margin: 0;
    max-width: 34rem;
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.7;
    color: rgba(245, 245, 245, 0.72);
    transition: filter 0.25s ease, text-shadow 0.25s ease, color 0.25s ease;
}

.ei-menu-item:hover {
    background-color: rgba(255, 255, 255, 0.02);
    transform: translateY(-1px);
}

.ei-menu-item:hover .ei-dish-desc {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.25);
    color: rgba(245, 245, 245, 0.94);
}

@media (max-width: 768px) {
    .ei-menu {
        padding: 48px 16px;
    }

    .ei-menu-title {
        font-size: 32px;
        letter-spacing: 0.14em;
    }

    .ei-menu-sections {
        gap: 32px;
    }
}

/* ============================
   EFECTOS GLOBALES - REVEAL, GRAIN
   ============================ */

/* Estado inicial sin JS: ocultar contenido para evitar "flash" antes del reveal */
body:not(.ei-js-ready) .site-main,
body:not(.ei-js-ready) .entry-hero,
body:not(.ei-js-ready) .wp-block-kadence-rowlayout:first-of-type {
    opacity: 0;
}

/* Revelado suave del contenido al entrar */
body.ei-page-enter .site-main,
body.ei-page-enter .entry-hero,
body.ei-page-enter .wp-block-kadence-rowlayout:first-of-type {
    animation: ei-content-reveal 1.1s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@keyframes ei-content-reveal {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Animación de revelado de imágenes (Liquid Reveal) */
.ei-img-reveal {
    opacity: 0;
    transform: translateY(8px) scale(1.05);
    clip-path: inset(100% 0 0 0);
    transition:
        clip-path 1.2s cubic-bezier(0.19, 1, 0.22, 1),
        transform 1.2s cubic-bezier(0.19, 1, 0.22, 1),
        opacity 0.8s ease-out;
}

.ei-img-reveal.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    clip-path: inset(0 0 0 0);
}

@media (max-width: 768px) {
    /* Evitar posibles desbordamientos horizontales por transform en pantallas pequeñas */
    .ei-img-reveal {
        transform: translateY(6px) scale(1.02);
    }

    .ei-img-reveal.is-visible {
        transform: translateY(0) scale(1);
    }

    .entry-content img:hover,
    .wp-block-image:hover img,
    .wp-block-kadence-rowlayout img:hover,
    .kadence-image:hover img,
    img.ei-hover:hover {
        transform: none;
        filter: none;
    }
}

/* ============================
   MENÚ MÓVIL - LEGIBILIDAD
   ============================ */

/* Texto del menú dentro del drawer móvil en claro sobre fondo oscuro */
.popup-drawer .mobile-navigation,
.popup-drawer .mobile-navigation .menu,
.popup-drawer .mobile-navigation .menu li,
.popup-drawer .mobile-navigation .menu a {
    color: #F5F0EB;
}

.popup-drawer .mobile-navigation .menu a {
    text-decoration: none;
}

.popup-drawer .mobile-navigation .menu a:hover,
.popup-drawer .mobile-navigation .menu a:focus {
    color: #FFFFFF;
}

/* ============================
   AJUSTES ESPECÍFICOS PÁGINA "EL RITUAL" EN MÓVIL
   ============================ */

@media (max-width: 768px) {
    /* Forzar que TODAS las filas/columnas de Kadence se apilen en vertical
       en móvil (evitar dos columnas estrechas lado a lado, como en El Ritual) */
    .kt-row-layout-inner {
        flex-direction: column !important;
        align-items: center;
    }

    .wp-block-kadence-column {
        width: 100% !important;
        max-width: 100% !important;
    }

    .wp-block-kadence-column > .kt-inside-inner-col {
        text-align: center;
    }
}

/* ============================
   HOME – DESACTIVAR TODAS LAS SOMBRAS (DEPURACIÓN)
   ============================ */
.home * {
    box-shadow: none !important;
}

/* ============================
   HOME – SEPARACIÓN UNIFORME ENTRE SECCIONES (2026)
   Mismo padding vertical en todas para huecos iguales
   ============================ */
.home .entry-content > .wp-block-kadence-rowlayout:not(:first-of-type) {
    padding-top: var(--home-section-space) !important;
    padding-bottom: var(--home-section-space) !important;
}

.home #ei-final-v5,
.home .ember-triptych-section,
.home .cava-premium-section {
    padding-top: var(--home-section-space) !important;
    padding-bottom: var(--home-section-space) !important;
}


/* ============================
   BLOQUE EI FINAL V5
   ============================ */

#ei-final-v5 {
    background: #0D0D0D !important;
    padding: var(--home-section-space) 0;
    display: flex;
    justify-content: center;
    position: relative;
    overflow: visible !important;
}

.ei-wrapper-v5 {
    max-width: 1200px;
    width: 90%;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 100 !important;
}

.ei-img-container-v5 {
    width: 70%;
    position: relative;
    line-height: 0;
    z-index: 1;
}

.ei-img-container-v5 img {
    width: 100%;
    height: 700px;
    object-fit: cover;
    display: block !important;
    filter: brightness(1) contrast(1.1) !important;
    opacity: 1 !important;
    mask-image: none !important;
    -webkit-mask-image: none !important;
}

.ei-box-v5 {
    width: 45%;
    background: #111111 !important;
    padding: 60px;
    position: absolute;
    right: 0;
    z-index: 2;
    border: 1px solid rgba(184, 115, 51, 0.4);
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.9);
}

.ei-label-v5 {
    color: #B87333;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    letter-spacing: 0.2em;
    display: block;
    margin-bottom: 20px;
}

.ei-title-v5 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 60px;
    color: #FFFFFF !important;
    line-height: 1.1;
    margin-bottom: 25px;
}

.ei-italic-v5 {
    color: #B87333;
    font-style: italic;
}

.ei-text-v5 {
    font-family: 'DM Sans', sans-serif;
    color: #FFFFFF !important;
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 35px;
    opacity: 1 !important;
}

@media (max-width: 1024px) {
    .ei-wrapper-v5 {
        flex-direction: column;
    }

    .ei-img-container-v5,
    .ei-box-v5 {
        width: 100%;
        position: static;
    }

    .ei-img-container-v5 img {
        height: 400px;
    }

    .ei-box-v5 {
        padding: 40px 20px;
        border: none;
    }
}

/* Rehabilitar la sombra de la tarjeta EI FINAL solo en home,
   por encima del bloque de depuración .home * */
.home #ei-final-v5 .ei-box-v5 {
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.9) !important;
}

/* ============================
   SECCIÓN TRÍPTICO EMBER
   ============================ */

.ember-triptych-section {
    background-color: #0D0D0D !important;
    padding: var(--home-section-space) 0;
    overflow: visible;
}

.ember-triptych-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1.3fr;
    gap: 50px;
    align-items: start;
    padding: 0 50px;
    position: relative;
}

.triptych-item {
    position: relative;
    line-height: 0;
}

.triptych-item img {
    width: 100%;
    object-fit: cover;
    filter: brightness(0.8) contrast(1.1);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.triptych-item:hover img {
    filter: brightness(1) contrast(1.1);
    transform: translateY(-5px);
}

/* Más brillo solo en las 3 imágenes principales del tríptico */
.triptych-item.item-large img,
.triptych-item.item-tall img,
.triptych-item.item-last img {
    filter: brightness(0.95) contrast(1.1);
}

.triptych-item.item-large:hover img,
.triptych-item.item-tall:hover img,
.triptych-item.item-last:hover img {
    filter: brightness(1.25) contrast(1.15);
}

.item-large img {
    height: 550px;
    margin-top: 80px;
}

.item-tall img {
    height: 750px;
}

.item-last img {
    height: 480px;
    margin-top: 150px;
}

.triptych-info {
    position: absolute;
    bottom: -10px; /* baja el bloque para que el texto se apoye en el fondo oscuro de la sección, no sobre la zona más clara de la foto */
    left: 30px;
    z-index: 5;
    pointer-events: none;
    background: none;
    padding: 0;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.65);
    transition: transform 0.25s ease, text-shadow 0.25s ease;
}

.triptych-info span {
    color: #B87333;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 2px;
    display: block;
}

.triptych-info h3 {
    color: #FFFFFF;
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px;
    margin: 8px 0 0 0;
    font-weight: 400;
}

.triptych-item:hover .triptych-info {
    transform: translateY(-2px);
    text-shadow: 0 0 14px rgba(0, 0, 0, 0.9);
}

.triptych-overlap-card {
    position: absolute;
    top: 320px;
    right: -30px;
    background: #111111;
    padding: 60px;
    border: 1px solid rgba(184, 115, 51, 0.4);
    box-shadow: 30px 30px 80px rgba(0, 0, 0, 0.8);
    width: 110%;
    z-index: 20;
}

.ember-tag {
    color: #B87333;
    font-size: 12px;
    font-family: 'DM Sans', sans-serif;
    letter-spacing: 3px;
    display: block;
    margin-bottom: 20px;
    font-weight: 700;
}

.ember-h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 52px;
    color: #FFFFFF !important;
    line-height: 1;
    margin-bottom: 25px;
    font-weight: 400;
}

.ember-h2 em {
    color: #B87333;
    font-style: italic;
}

.triptych-overlap-card p {
    color: #FFFFFF !important;
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    margin-bottom: 35px;
    line-height: 1.7;
    opacity: 0.9;
}

@media (max-width: 1100px) {
    .ember-triptych-container {
        grid-template-columns: 1fr;
        gap: 100px;
    }

    .item-large img,
    .item-tall img,
    .item-last img {
        height: 500px;
        margin-top: 0;
    }

    .triptych-overlap-card {
        position: static;
        width: 100%;
        padding: 40px 20px;
        background: #111111;
        margin-top: -50px;
        border-left: none;
        border-right: none;
    }
}

/* ============================
   SECCIÓN CAVA PREMIUM
   ============================ */

.cava-premium-section {
    background-color: #000 !important;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: var(--home-section-space) 5%;
}

.cava-bg-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(120px, 14vw, 240px);
    font-weight: 900;
    color: rgba(255, 255, 255, 0.08) !important;
    z-index: 1;
    pointer-events: none;
    letter-spacing: -0.3vw;
    text-transform: uppercase;
    white-space: nowrap;
    width: 100%;
    text-align: center;
    font-family: sans-serif;
}

.cava-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    max-width: 1200px;
    width: 100%;
    z-index: 5;
    align-items: center;
}

.cava-visual {
    position: relative;
}

.vertical-tag {
    position: absolute;
    left: -70px;
    top: 50%;
    transform: rotate(-90deg) translateY(-50%);
    color: #B87333 !important;
    font-size: 11px !important;
    letter-spacing: 5px;
    text-transform: uppercase;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0.5;
}

.bottle-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.bottle-img {
    max-height: 65vh;
    position: relative;
    z-index: 10;
    filter: drop-shadow(0 15px 50px rgba(0, 0, 0, 0.9));
    transition: transform 0.8s ease;
}

.bottle-wrapper:hover .bottle-img {
    transform: translateY(-15px);
}

.cava-fog {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    z-index: 2;
    filter: blur(80px);
}

.cava-fog-extra {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(184, 115, 51, 0.12) 0%, transparent 75%);
    z-index: 1;
    filter: blur(100px);
}

.bottle-shadow {
    position: absolute;
    bottom: -40px;
    width: 220px;
    height: 30px;
    background: radial-gradient(ellipse, rgba(184, 115, 51, 0.3) 0%, transparent 80%);
    z-index: 5;
}

.cava-info-content .cava-h2,
.cava-h2 {
    font-size: clamp(3.5rem, 6vw, 5rem);
    color: #fff !important;
    margin: 10px 0;
    font-family: serif;
}

.gold-divider {
    width: 60px;
    height: 1px;
    background: #B87333;
    margin: 30px 0;
}

.est-tag {
    color: #B87333 !important;
    letter-spacing: 4px;
    font-size: 12px;
    font-weight: bold;
}

.cava-description {
    color: #ccc;
    font-size: 1.15rem;
    max-width: 420px;
    line-height: 1.7;
}

@media (max-width: 900px) {
    .cava-container {
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
        gap: 40px;
    }

    .vertical-tag {
        display: none;
    }

    .cava-bg-title {
        font-size: 22vw;
        letter-spacing: -0.8vw;
    }

    .bottle-img {
        max-height: 45vh;
        transform: none;
        transition: none;
    }

    .bottle-wrapper:hover .bottle-img {
        transform: none;
    }
}

@media (max-width: 768px) {
    .cava-premium-section .bottle-wrapper,
    .cava-premium-section .bottle-img,
    .cava-premium-section .cava-fog,
    .cava-premium-section .cava-fog-extra,
    .cava-premium-section .bottle-shadow {
        transform: none !important;
        transition: none !important;
    }

    .cava-premium-section .bottle-wrapper:hover .bottle-img {
        transform: none !important;
    }

    .cava-premium-section .bottle-img {
        max-height: 38vh !important;
        filter: drop-shadow(0 15px 50px rgba(0, 0, 0, 0.9)) !important;
    }

    .cava-premium-section .cava-fog {
        filter: blur(40px) !important;
    }

    .cava-premium-section .cava-fog-extra {
        filter: blur(60px) !important;
    }
}

/* ============================
   CSS ADICIONAL MIGRADO DEL PERSONALIZADOR
   ============================ */

/* Logo texto más pequeño en móvil (header/footer) */
@media (max-width: 768px) {
    .ei-logo {
        font-size: 18px;
        letter-spacing: 3px;
        margin-bottom: 14px;
    }
}

/* Título del sitio en el header de Kadence (logo texto) */
@media (max-width: 768px) {
    .site-branding .site-title,
    .site-branding .site-title a {
        font-size: 18px !important;
        letter-spacing: 0.15em !important;
    }
}

/* Efecto suave para imágenes en móvil (zoom y brillo ligero) */
@media (max-width: 768px) {
    .entry-content img:hover,
    .wp-block-image:hover img,
    .wp-block-kadence-rowlayout img:hover,
    .kadence-image:hover img,
    img.ei-hover:hover {
        transform: scale(1.02);
        filter: saturate(1.03) contrast(1.03);
    }
}

/* HOME – primera imagen después del hero (fila 2) sin efectos en móvil */
@media (max-width: 768px) {
    .home .entry-content > .wp-block-kadence-rowlayout:nth-of-type(2) img {
        transform: none !important;
        filter: none !important;
        transition: none !important;
    }
}

/* HOME – última sección (La Cava): primero textos, luego botella en móvil */
@media (max-width: 768px) {
    .home .entry-content > .wp-block-kadence-rowlayout:last-of-type .kt-row-layout-inner {
        display: flex;
        flex-direction: column;
    }

    .home .entry-content > .wp-block-kadence-rowlayout:last-of-type .wp-block-kadence-column:nth-of-type(1) {
        order: 2;
    }

    .home .entry-content > .wp-block-kadence-rowlayout:last-of-type .wp-block-kadence-column:nth-of-type(2) {
        order: 1;
    }

    .home .entry-content > .wp-block-kadence-rowlayout:last-of-type img {
        transform: none !important;
        filter: none !important;
        transition: none !important;
    }
}

/* HERO HOME – Ken Burns suave específico para móvil */
@keyframes ei-kenburns-row-mobile {
    0% {
        background-size: 102%;
        background-position: 50% 50%;
    }
    100% {
        background-size: 106%;
        background-position: 50% 50%;
    }
}

@media (max-width: 768px) {
    .home .entry-content > .wp-block-kadence-rowlayout:first-of-type {
        animation: ei-kenburns-row-mobile 26s ease-in-out infinite alternate !important;
        will-change: background-size, background-position;
    }
}

/* CAVA – botella totalmente estable en móvil (solo efecto de sombra) */
@media (max-width: 768px) {
    .cava-premium-section .bottle-img,
    .cava-premium-section .bottle-img:hover {
        transform: none !important;
        filter: drop-shadow(0 15px 50px rgba(0, 0, 0, 0.9)) !important;
        transition: none !important;
    }
}

/* Imágenes con liquid reveal: versión ligera en móvil (sin clip-path pesado) */
@media (max-width: 768px) {
    .ei-img-reveal {
        clip-path: none !important;
        transform: translateY(0) scale(1.02) !important;
        transition:
            transform 0.6s cubic-bezier(0.19, 1, 0.22, 1),
            opacity 0.6s ease-out !important;
    }
}

/* RITUAL – diseño premium solo en móvil */
@media (max-width: 768px) {
    .ritual-section {
        min-height: 60vh;
        padding: 72px 20px;
        background-size: cover !important;
        background-position: center center !important;
        background-attachment: scroll !important;
        margin-bottom: 32px;
    }

    .ritual-inner {
        max-width: 90%;
        margin: 0 auto;
        text-align: center;
    }

    .ritual-title {
        font-size: clamp(1.9rem, 5vw, 2.4rem);
        letter-spacing: 0.16em;
    }

    .ritual-body {
        font-size: 0.95rem;
        line-height: 1.9;
    }

    .ritual-overlay {
        background: none !important;
    }

    .ritual-tag {
        margin-bottom: 1.2rem;
    }

    .ritual-accent-line {
        margin-bottom: 1.4rem;
    }
}

/* RITUAL – ajustar título "Degustación" para que no se parta en móvil */
@media (max-width: 768px) {
    .ritual-section:nth-of-type(5) .ritual-title {
        font-size: 1.7rem;
        letter-spacing: 0.14em;
    }
}

/* RITUAL – Ken Burns fuerte solo en móvil */
@keyframes ritual-mobile-pan {
    0% {
        background-size: 115%;
        background-position: 50% 60%;
    }
    100% {
        background-size: 130%;
        background-position: 50% 40%;
    }
}

@media (max-width: 768px) {
    .ritual-section {
        background-attachment: scroll !important;
        animation: ritual-mobile-pan 18s ease-in-out infinite alternate !important;
    }
}

/* HERO INTERIOR – título y spacing en móvil */
@media (max-width: 768px) {
    .entry-hero .entry-hero-title {
        font-size: clamp(2.2rem, 7vw, 2.7rem);
        line-height: 1.1;
        letter-spacing: 0.08em;
    }

    .entry-hero .hero-section-inner-wrap {
        padding-top: 96px;
        padding-bottom: 80px;
    }
}

@media (max-width: 768px) {
    .entry-hero .entry-hero-subtitle,
    .entry-hero .entry-hero-description {
        color: rgba(245, 240, 235, 0.88);
    }
}

@media (max-width: 768px) {
    .entry-hero .entry-hero-buttons .btn-ember {
        padding: 14px 40px;
        font-size: 12px;
    }
}

/* HOME – mover la carne más arriba en el hero (todas las vistas) */
@media (prefers-reduced-motion: no-preference) {
    .home .entry-content > .wp-block-kadence-rowlayout:first-of-type {
        background-position: 50% 60% !important;
        animation: ei-kenburns-row 28s ease-in-out infinite alternate !important;
    }
}

/* Redefinimos el Ken Burns para que parta de ese encuadre más bajo */
@keyframes ei-kenburns-row {
    0% {
        background-size: 100%;
        background-position: 50% 60%;
    }
    100% {
        background-size: 115%;
        background-position: 52% 58%;
    }
}

/* HOME hero – overlay sutil tipo 2025: legibilidad sin sombras, gradiente suave */
.home .entry-content > .wp-block-kadence-rowlayout:first-of-type::after {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.15) 50%,
        rgba(0, 0, 0, 0.5) 100%
    ) !important;
}

/* HOME – hero a pantalla completa y carne más arriba solo en móvil */
@media (max-width: 768px) {
    .home .entry-content > .wp-block-kadence-rowlayout:first-of-type {
        min-height: 100vh;
        background-size: cover !important;
        background-position: 50% 65% !important;
    }
}

/* HOME – títulos más compactos en móvil */
@media (max-width: 768px) {
    .home .entry-content h2,
    .home .entry-content h3 {
        line-height: 1.15;
        margin-bottom: 0.6em;
    }
}

/* HOME – ajustar títulos de las secciones 2 y 3 en móvil */
@media (max-width: 768px) {
    .home .entry-content > .wp-block-kadence-rowlayout:nth-of-type(2) h2,
    .home .entry-content > .wp-block-kadence-rowlayout:nth-of-type(3) h2 {
        font-size: 1.9rem;
        line-height: 1.15;
        letter-spacing: 0.06em;
        margin-bottom: 0.5em;
    }
}

/* HOME – hacer más grande el título "RITUAL DEL FUEGO" solo en escritorio */
@media (min-width: 1025px) {
    .home .entry-content > .wp-block-kadence-rowlayout:nth-of-type(4) h2 {
        font-size: clamp(2.4rem, 3.4vw, 3rem);
        letter-spacing: 0.16em;
        line-height: 1.1;
    }
}

/* HOME – título "RITUAL DEL FUEGO" más grande solo en escritorio */
@media (min-width: 1025px) {
    .home .home-ritual-title {
        font-size: 3.2rem !important;
        letter-spacing: 0.14em;
        line-height: 1.1;
    }
}

/* HOME – ajustes del hero solo en tablet (769–1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .home .entry-content > .wp-block-kadence-rowlayout:first-of-type {
        min-height: 90vh;
        background-size: cover !important;
        background-position: 50% 60% !important;
    }

    .home .entry-content > .wp-block-kadence-rowlayout:first-of-type .kt-row-layout-inner {
        padding-top: 120px;
        padding-bottom: 120px;
    }

    .home .entry-content > .wp-block-kadence-rowlayout:first-of-type h1,
    .home .entry-content > .wp-block-kadence-rowlayout:first-of-type h2 {
        font-size: clamp(2.8rem, 4vw, 3.4rem);
        line-height: 1.1;
    }
}

