/* Macondo 2.7 · retoques responsive y accesibilidad. Mantiene escritorio y contenido intactos. */
:root { --mc27-coffee:#432F2E; --mc27-honey:#FFC466; --mc27-paper:#FAF6EF; }

/* Los botones de contorno deben conservar contraste en hover/focus, incluidos los
   estilos heredados de Bootstrap y del tema anterior. */
body .macondo-experiencias-home .macondo-experience-card a.btn.btn-outline-secondary,
body #carta a.btn.btn-outline-secondary {
  background:transparent !important;
  color:#432F2E !important;
  border:1.5px solid #805A43 !important;
  opacity:1;
}
body .macondo-experiencias-home .macondo-experience-card a.btn.btn-outline-secondary:hover,
body .macondo-experiencias-home .macondo-experience-card a.btn.btn-outline-secondary:focus-visible,
body #carta a.btn.btn-outline-secondary:hover,
body #carta a.btn.btn-outline-secondary:focus-visible {
  background:#FFC466 !important;
  color:#432F2E !important;
  border-color:#805A43 !important;
  opacity:1 !important;
  box-shadow:0 5px 14px rgba(67,47,46,.18);
}
body .macondo-experiencias-home .macondo-experience-card a.btn.btn-outline-secondary:hover i,
body .macondo-experiencias-home .macondo-experience-card a.btn.btn-outline-secondary:focus-visible i {color:inherit !important;}

/* Base compartida del encabezado: logo y botones dentro de la misma fila.
   En escritorio conserva el logo centrado por encima de la navegación. */
header.macondo-responsive-header { position:relative; z-index:40; isolation:isolate; }
header.macondo-responsive-header .macondo-topbar { display:flex; align-items:center; justify-content:center; }
header.macondo-responsive-header .macondo-nav-wrap {justify-content:center;}
header.macondo-responsive-header .macondo-brand-link {line-height:0;}

@media (max-width:991.98px) {
  /* Barra compacta: logo izquierda / menú derecha */
  body header.macondo-responsive-header .macondo-topbar {
    display:flex !important;
    flex-direction:row !important;
    justify-content:space-between !important;
    align-items:center !important;
    gap:1rem;
    width:100%;
    padding: .72rem clamp(1.05rem,4vw,1.5rem) !important;
    max-width:100%;
    position:relative;
  }
  body header.macondo-responsive-header a.macondo-brand-link {
    display:inline-flex!important;
    margin:0!important;
    width:122px!important;
    min-width:122px!important;
    max-width:122px!important;
    flex:0 0 122px!important;
    align-items:center;
    justify-content:flex-start;
  }
  body header.macondo-responsive-header a.macondo-brand-link > img.macondo-header-logo {
    width:122px!important;
    min-width:122px!important;
    max-width:122px!important;
    height:auto!important;
    display:block!important;
    object-fit:contain!important;
    margin:0!important;
  }
  body header.macondo-responsive-header button.macondo-menu-toggle {
    display:inline-flex!important;
    align-items:center;
    justify-content:center;
    flex:0 0 auto;
    min-width:98px;
    min-height:42px;
    margin:0!important;
    padding:.46rem .95rem!important;
    background:var(--mc27-honey)!important;
    border:1px solid var(--mc27-honey)!important;
    border-radius:100px;
    color:var(--mc27-coffee)!important;
    font-family:Montserrat,Arial,sans-serif;
    font-weight:700;
    font-size:.79rem;
    line-height:1.2;
    letter-spacing:.045em;
    text-transform:uppercase;
    box-shadow:0 3px 14px rgba(0,0,0,.12);
  }
  header.macondo-responsive-header .macondo-menu-toggle .bi {font-size:1.18rem; line-height:1;}
  header.macondo-responsive-header .macondo-menu-toggle:hover,
  header.macondo-responsive-header .macondo-menu-toggle[aria-expanded="true"] {
    background:#f3b855!important;
    border-color:#f3b855!important;
  }
  /* Se desprende del flujo del documento; abrirlo no desplaza el carrusel. */
  body header.macondo-responsive-header nav.macondo-navbar {
    position:absolute!important;
    top:100%!important;
    left:0!important;
    right:0!important;
    z-index:120;
    margin:0!important;
    padding:0 clamp(.8rem,3vw,1.35rem)!important;
    background:transparent!important;
    border:0!important;
    height:0;
    overflow:visible;
    pointer-events:none;
  }
  body header.macondo-responsive-header nav.macondo-navbar > .container {
    display:flex!important;
    align-items:flex-start;
    justify-content:flex-end!important;
    padding:0!important;
    width:100%;
    max-width:100%;
  }
  body header.macondo-responsive-header nav.macondo-navbar #mainMenu {
    width:min(100%,350px)!important;
    max-width:350px!important;
    flex:0 0 auto!important;
    margin:.55rem 0 0 auto!important;
    padding:clamp(.65rem,2vw,.85rem)!important;
    border:1px solid rgba(255,196,102,.42)!important;
    border-radius:12px!important;
    background:#432F2E!important;
    background-image:none!important;
    box-shadow:0 15px 40px rgba(15,9,8,.38)!important;
    max-height:calc(100dvh - 120px);
    overflow-y:auto;
    pointer-events:auto;
  }
  body header.macondo-responsive-header nav.macondo-navbar #mainMenu:not(.show):not(.collapsing) {display:none!important;}
  body header.macondo-responsive-header nav.macondo-navbar #mainMenu.collapsing {height:0;overflow:hidden;}
  body header.macondo-responsive-header nav.macondo-navbar ul.navbar-nav {
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    gap:0!important;
    padding:0!important;
    margin:0!important;
  }
  body header.macondo-responsive-header nav.macondo-navbar .navbar-nav > li > a {
    display:block!important;
    width:100%;
    text-align:left!important;
    margin:0!important;
    padding:.72rem 1rem!important;
    border:0!important;
    border-radius:7px;
    font-size:.98rem!important;
    line-height:1.25!important;
    letter-spacing:.025em!important;
    color:#FFFDF9!important;
  }
  body header.macondo-responsive-header nav.macondo-navbar .navbar-nav > li > a:hover,
  body header.macondo-responsive-header nav.macondo-navbar .navbar-nav > li.current-menu-item > a,
  body header.macondo-responsive-header nav.macondo-navbar .navbar-nav > li > a:focus-visible {
    background:rgba(255,196,102,.13)!important;
    color:#FFC466!important;
  }
  body header.macondo-responsive-header nav.macondo-navbar .dropdown-menu {position:static!important;transform:none!important;float:none;width:100%;min-width:0;}
}

@media (max-width:767.98px) {
  /* Primeras fotos casi de borde a borde, más verticales y con controles discretos. */
  body.home .eventos-hero-section,body.front-page .eventos-hero-section {
    padding-top:.9rem!important;
    padding-bottom:1.1rem!important;
  }
  body.home .eventos-hero-section .container,
  body.front-page .eventos-hero-section .container {padding:0!important;max-width:100%!important;}
  body.home .eventos-hero-wrapper,
  body.front-page .eventos-hero-wrapper {width:100%!important;padding:0!important;overflow:visible;}
  body.home .eventos-hero-carousel,
  body.front-page .eventos-hero-carousel {
    height:clamp(335px,108vw,510px)!important;
    width:100%;
  }
  body.home .evento-slide,body.front-page .evento-slide {
    width:94vw!important;
    max-width:590px!important;
  }
  body.home .evento-slide-inner,body.front-page .evento-slide-inner,
  body.home .evento-slide-inner a.glightbox,body.front-page .evento-slide-inner a.glightbox {
    width:100%!important;
    max-height:none!important;
  }
  body.home .evento-slide-inner img,body.front-page .evento-slide-inner img {
    display:block;
    width:100%!important;
    max-width:100%!important;
    height:clamp(320px,101vw,485px)!important;
    max-height:none!important;
    object-fit:cover;
    object-position:center;
    border-radius:7px;
  }
  body.home .evento-slide.is-center,body.front-page .evento-slide.is-center {transform:translate(-50%,-50%) scale(1)!important;}
  body.home .evento-slide.is-left,body.front-page .evento-slide.is-left {left:6%!important;transform:translate(-50%,-50%) scale(.78)!important;opacity:.28!important;}
  body.home .evento-slide.is-right,body.front-page .evento-slide.is-right {left:94%!important;transform:translate(-50%,-50%) scale(.78)!important;opacity:.28!important;}
  body.home .eventos-hero-nav,body.front-page .eventos-hero-nav {
    width:32px!important;
    height:32px!important;
    font-size:.86rem!important;
    border:1px solid rgba(255,255,255,.4);
    box-shadow:0 4px 12px rgba(0,0,0,.22);
  }
  body.home .eventos-hero-prev,body.front-page .eventos-hero-prev {left:clamp(5px,2vw,10px)!important;}
  body.home .eventos-hero-next,body.front-page .eventos-hero-next {right:clamp(5px,2vw,10px)!important;}

  /* Densidad tipográfica controlada en móvil (sin sacrificar legibilidad). */
  body {font-size:.95rem;line-height:1.52!important;}
  body :is(p,li) {line-height:1.56!important;}
  body .macondo-front .macondo-section-heading h2.h1 {
    font-size:clamp(1.85rem,7vw,2.5rem)!important;
    line-height:1.16!important;
    letter-spacing:-.023em;
  }
  body .macondo-front .macondo-heading-description {
    font-size:.94rem!important;
    line-height:1.52!important;
    max-width:36ch!important;
  }
  body .macondo-front > section:not(#eventos-hero) {
    padding-top:clamp(3.25rem,12vw,4.75rem)!important;
    padding-bottom:clamp(3.25rem,12vw,4.75rem)!important;
  }
  body .macondo-front .macondo-section-heading {gap:.6rem!important;margin-bottom:1.55rem!important;}
  body .macondo-experiencias-home .macondo-experience-card .card-text {font-size:.94rem!important;line-height:1.55!important;}
  body #macondo-por-dentro .polaroid-caption span {font-size:.89rem!important;line-height:1.28!important;}
  body #donde-estamos .macondo-section-heading,
  body #donde-estamos .macondo-heading-title,
  body #donde-estamos .macondo-section-heading h2 {
    text-align:center!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }
  body #donde-estamos .macondo-section-heading h2 {max-width:100%!important;}
  body #donde-estamos .macondo-address h3 {font-size:clamp(1.6rem,6.2vw,2rem)!important;line-height:1.2!important;}
  body #donde-estamos .macondo-address-intro {font-size:.94rem!important;line-height:1.55!important;}
  body .macondo-location-detail p {line-height:1.45!important;}
  body :is(.macondo-contact-page,.macondo-single-evento,.blog-main) h1 {line-height:1.13!important;}
  body .macondo-contact-page .macondo-contact-header h1 {font-size:clamp(2.25rem,8vw,3.1rem)!important;}
}
@media(prefers-reduced-motion:reduce) {
  body .eventos-hero-carousel .evento-slide {transition:none!important;}
}
