:root {
    --gold: #c0a570;
    --gold2: #8a764c;
    --gold-deep: #645014;
    --ink: #2b2107;
}

body {
    scroll-padding-top: 84px;
    font-size: 20px;
}

h1,
h2,
h3,
h4,
h5,
h5 {
    font-family: "Libre Baskerville", serif;

}


p {
    font-size: 25px;
}

.text-gold {
    color: var(--gold);
}

.lead {
    font-size: 22px;
}

#hero .object-fit-cover {
    object-fit: cover;
    object-position: top center;
    /* se centra horizontalmente y se alinea arriba */
}


#hero .hero-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, .45), rgba(0, 0, 0, .45));
}

#hero .hero-title {
    letter-spacing: .4px;
    text-shadow: 0 4px 18px rgba(0, 0, 0, .45);
    font-size: 60px;
    font-style: italic;
}

@media (min-width: 992px) {
    #hero .hero-title {
        letter-spacing: .4px;
        text-shadow: 0 4px 18px rgba(0, 0, 0, .45);
        font-size: 110px;
        font-style: italic;
    }
}

#hero .hero-desc {
    line-height: 1.6;
    text-shadow: 0 3px 12px rgba(0, 0, 0, .35);
    margin-left: auto;
    margin-right: auto;
    max-width: 48rem;
}

#hero .hero-btn {
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
    transition: transform .18s ease, box-shadow .18s ease;
}

#hero .hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, .35);
}

/* Altura solo a la mitad de la pantalla */
#hero {
    min-height: 90vh;
    /* 50% de la altura */
}

@media (min-width: 1200px) {
    #hero {
        min-height: 80vh;
        /* 50% de la altura */
    }
}


@media (prefers-reduced-motion: reduce) {
    #hero video {
        display: none;
    }

    #hero {
        background: url('../../img/poster-video.webp') center/cover no-repeat, #111;
    }
}


.btn-ghost {
    position: relative;
    display: inline-block;
    padding: 0.75rem 2rem;
    border: 2px solid #fff;
    color: #fff;
    font-weight: 600;
    font-size: 24px;
    text-decoration: none;
    overflow: hidden;
    z-index: 0;
    /* crea contexto propio */
    isolation: isolate;
    /* asegura que ::before quede dentro de este contexto */
}

.btn-ghost::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #fff;
    transform: translateX(-100%);
    /* inicia fuera */
    transition: transform .35s ease;
    /* animación de deslizamiento */
    z-index: 0;
    /* ¡no -1! */
}

.btn-ghost>span {
    position: relative;
    z-index: 1;
    /* texto por encima del fondo */
    transition: color .35s ease;
}

.btn-ghost:hover::before {
    transform: translateX(0);
}

.btn-ghost:hover>span {
    color: var(--gold);
    cursor: pointer;
    /* dorado al hover */
}



.bg-seccion {
    background-image: url('../../img/bg-seccion-caserisimo.webp');
    background-size: contain;
    height: 10vh;
}


/*SECCION SUCURSALES*/

/* Tarjetas de sucursales */
.branch-card {
    aspect-ratio: 4/3;
}

.branch-card img {
    object-fit: cover;
    object-position: center;
    transition: transform .6s ease;
}

.branch-card:hover img {
    transform: scale(1.05);
}

.branch-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, .15) 0%, rgba(0, 0, 0, .45) 70%, rgba(0, 0, 0, .65) 100%);
}

.branch-title h3 {
    text-shadow: 0 6px 24px rgba(0, 0, 0, .45);
}

/* Botón ghost dorado (invertido del blanco) */
.btn-ghost-gold {
    position: relative;
    display: inline-block;
    padding: 0.65rem 1.2rem;
    border: 2px solid var(--gold);
    color: var(--gold);
    font-weight: 600;
    text-decoration: none;
    overflow: hidden;
    z-index: 0;
    isolation: isolate;
    line-height: 1;
}

.btn-ghost-gold::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--gold);
    transform: translateX(-100%);
    transition: transform .35s ease;
    z-index: 0;
    pointer-events: none; /* 👈 clave */
  }

.btn-ghost-gold>span {
    position: relative;
    z-index: 1;
    transition: color .35s ease;
}

.btn-ghost-gold:hover::before {
    transform: translateX(0);
}

.btn-ghost-gold:hover>span {
    color: #fff;
}

/* texto pasa a blanco */

.comedor-card {
    background: #fff;
    border: 2px solid var(--gold);
    max-width: 850px;
    margin: 0 auto;
}

.comedor-card h4 {
    color: var(--gold);
}

/*MENU*/

/* -------- Pizarra (ajustes y tipografías más grandes) -------- */
.chalkboard {
    color: #fff;
    background:
        radial-gradient(1000px 600px at 20% 10%, rgba(255, 255, 255, .06), transparent 60%),
        radial-gradient(800px 500px at 80% 90%, rgba(255, 255, 255, .05), transparent 60%),
        linear-gradient(180deg, #111 0%, #0e0e0e 100%);
    border: 10px solid #2b2b2b;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
    position: relative;
    overflow: visible;
    /* permite que nada se recorte */
}

.chalk-ribbon-in {
    background: #1a1a1a;
    border: 1px dashed rgba(255, 255, 255, .25);
    border-radius: 999px;
    padding: .4rem .9rem;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    position: relative;
}

.chalk-ribbon-badge {
    background: var(--gold);
    color: #111;
    font-weight: 800;
    border-radius: .5rem;
    padding: .25rem .55rem;
    margin-right: .45rem;
}

.chalk-chip {
    display: inline-block;
    color: #fff;
    opacity: .9;
    border: 1px dashed rgba(255, 255, 255, .35);
    border-radius: 999px;
    padding: .2rem .6rem;
    margin-left: .15rem;
}

/* Títulos grandes */
.chalk-eyebrow {
    font-size: 1rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    opacity: .9;
}

.chalk-title {
    font-size: clamp(2.4rem, 6.5vw, 3.4rem);
    font-weight: 800;
    letter-spacing: .01em;
    text-shadow: 0 2px 0 rgba(255, 255, 255, .06), 0 8px 28px rgba(0, 0, 0, .35);
}

.chalk-subtitle {
    opacity: .9;
    font-weight: 700;
    letter-spacing: .1em;
    font-size: 1.05rem;
}

/* Separador */
.chalk-divider {
    position: relative;
    height: 18px;
}

.chalk-divider::before,
.chalk-divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 100%;
    height: 1px;
    transform: translateY(-50%);
    background: linear-gradient(90deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, .4));
}

/* Secciones y texto más grande */
.chalk-section {
    font-weight: 800;
    margin-bottom: .5rem;
    font-size: 1.25rem;
}

.chalk-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.chalk-list li {
    position: relative;
    padding-left: 1.5rem;
    margin: .4rem 0;
    font-size: 1.075rem;
}

.chalk-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #fff;
    opacity: .85;
}

.chalk-list-inline li {
    display: inline-block;
    margin-right: 1.25rem;
}

.chalk-badge {
    display: inline-block;
    margin-left: .45rem;
    font-size: .9rem;
    padding: .12rem .45rem;
    border-radius: .4rem;
    border: 1px dashed rgba(255, 255, 255, .35);
    color: #fff;
    opacity: .95;
}

.chalk-note {
    opacity: .85;
    font-size: .95rem;
}

/* contraste en dorado */

/* -------- Slider lateral -------- */
.slider-fit {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* Altura consistente del carrusel lateral */
#menuSlider .carousel-inner {
    height: 340px;
}

/* móviles */
@media (min-width: 992px) {
    #menuSlider .carousel-inner {
        height: 520px;
    }

    /* desktop al lado de la pizarra */
}

/* Las imágenes llenan el contenedor */
#menuSlider .slider-fit {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    /* ajusta si quieres ver más arriba/abajo */
}


/*CONTACTO*/
/* Tarjeta discreta y elegante */
.contact-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .06);
    position: relative;
}

.contact-card::before {
    content: "";
    position: absolute;
    inset: 0 0 0 auto;
    width: 4px;
    border-radius: 0 .75rem .75rem 0;
    background: var(--gold);
    opacity: .85;
}

.icon-rounded {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: var(--gold);
    box-shadow: 0 6px 18px rgba(212, 175, 55, .35);
}

.link-contact {
    color: #111;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease, color .2s ease;
}

.link-contact:hover {
    color: var(--gold);
    border-color: var(--gold);
}

/*FOOTER*/
/* --- Footer --- */
.footer-section {
    position: relative;
    background: url('../../img/bg-footer.jpg') center/cover no-repeat;
    /* cambia por tu imagen */
    min-height: 200px;
}

.footer-overlay {
    background: rgba(0, 0, 0, .45);
    /* oscurece un poco para legibilidad */
    min-height: 200px;
}

.footer-logo {
    max-width: 220px;
    /* tamaño del logo */
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .45));
}

/*NAVBAR*/
/* Base */
:root {
    --gold: #c0a570;
}

/* --- NAVBAR BASE --- */
#mainNav {
    background: transparent;
    transition: background-color .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
    backdrop-filter: none;
}

#mainNav .nav-link {
    color: #fff;
    /* texto blanco de base (sobre hero) */
    font-weight: 600;
    letter-spacing: .02em;
    position: relative;
    padding: .25rem .5rem;
    transition: color .2s ease, opacity .2s ease;
    opacity: .95;
}

#mainNav .nav-link:hover {
    opacity: 1;
    text-decoration: none;
}

#mainNav .navbar-toggler {
    filter: invert(1);
    /* hamburguesa visible sobre fondo transparente oscuro */
    border: none;
    outline: none;
    box-shadow: none;
}

/* --- LOGOS --- */
#mainNav .navbar-brand {
    position: relative;
    display: inline-block;
    width: 240px;
    /* antes 160px */
    height: 66px;
    /* antes 44px */
}

#mainNav .nav-logo {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 57px;
    /* alto real del logo */
    width: auto;
    display: block;
    margin: 0;
    transition: opacity .25s ease;
}

#mainNav .logo-black {
    opacity: 1;
}

#mainNav .logo-white {
    opacity: 0;
}

/* --- ESTADO SCROLLED --- */
#mainNav.navbar-scrolled {
    background: var(--gold);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .15);
    backdrop-filter: saturate(120%) blur(4px);
}

#mainNav.navbar-scrolled .nav-link {
    color: #fff;
}

#mainNav.navbar-scrolled .navbar-toggler {
    filter: none;
}

#mainNav.navbar-scrolled .logo-black {
    opacity: 0;
}

#mainNav.navbar-scrolled .logo-white {
    opacity: 1;
}

/* --- MENÚ ABIERTO EN MÓVIL --- */
@media (max-width: 991.98px) {
    #mainNav.navbar-open {
        background: rgba(0, 0, 0, .6);
        backdrop-filter: blur(6px);
    }

    #mainNav.navbar-open .nav-link {
        color: #fff;
    }
}

/* --- SUBRAYADO ELEGANTE AL HOVER/ACTIVE --- */
#mainNav .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    height: 2px;
    width: 0;
    background: #fff;
    transition: width .2s ease;
}

#mainNav .nav-link:hover::after {
    width: 100%;
}

#mainNav.navbar-scrolled .nav-link::after {
    background: #fff;
}


/*WHATSAPP*/
/* FAB flotante */
.whats-fab {
    position: fixed;
    left: 18px;
    right: auto;
    bottom: 18px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 0;
    outline: 0;
    cursor: pointer;
    background: #25D366;
    /* verde WhatsApp */
    color: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 1040;
    /* sobre el contenido */
    transition: transform .18s ease, box-shadow .18s ease, opacity .2s ease;
}

.whats-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, .3);
}

.whats-fab .iconify {
    font-size: 30px;
    line-height: 1;
}

/* Modal estilo elegante */
.whats-modal {
    border-radius: 1rem;
    border: 1px solid rgba(0, 0, 0, .06);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
}

.whats-modal .modal-title {
    letter-spacing: .2px;
}

.whats-modal .btn-close {
    filter: none;
}