/* Header & Footer styles (consolidado) */
/* Header base */
.main-header {
  width: 100%;
  margin: 0;
  /* Overlay header with charcoal gradient */
  background: linear-gradient(180deg, #393434 0%, rgba(57,52,52,0.7) 60%, rgba(57,52,52,0.1) 100%);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  min-height: 110px;
}
.main-header .header-content {
  max-width: 1400px;
  margin: 0 auto;
  height: 110px;
  position: relative;
  padding-left: 10px;
  padding-right: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.main-header img { display: block; margin: 0; }

/* Buttons / controls inside header */
.btn-book-now {
  border-radius: 999px;
  background: var(--color-secundario);
  color: #fff;
  font-weight: 600;
  padding: 0.5em 2em;
  border: none;
  transition: background 0.2s;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.btn-book-now:hover { background: #ff8c4a; color: #fff; }

#burger-menu { cursor: pointer; z-index: 20; display:inline-flex; align-items:center; justify-content:center; }
#burger-menu span { display:block; width:40px; height:4px; background:#fff; border-radius:2px; margin-bottom:7px; transition: background 220ms cubic-bezier(0.4,0,0.2,1), transform 220ms cubic-bezier(0.4,0,0.2,1); }

/* Burger hover/focus -> use secondary color with smooth transition */
#burger-menu:hover span, #burger-menu:focus span { background: var(--color-secundario); transform: translateY(-1px); }
#burger-menu:active span { transform: translateY(0); }
#burger-menu:focus { outline: none; }
#burger-menu:focus-visible { outline: 2px dashed var(--color-secundario); outline-offset: 6px; border-radius: 6px; }

/* Mobile / tablet layout adjustments for header */
@media (max-width: 768px) {
  .main-header .header-content { height: 80px; min-height: 80px; padding-left: 10px; padding-right: 10px; }
  .main-header { min-height: 80px; }
  .main-header img { height: 48px !important; }
  /* hide the header "BOOK NOW" on small screens, but keep menu copy visible */
  .main-header .header-content .btn-book-now { display: none !important; }
  .header-content { flex-direction: row !important; }
  .header-logo { order: 0 !important; margin-left: 0 !important; margin-right: 0 !important; padding-left: 0 !important; justify-content: flex-start !important; display: flex !important; width: auto; }
  .header-logo img { margin-left: 0 !important; margin-right: 0 !important; }
  .header-burger { order: 1 !important; margin-left: auto !important; margin-right: 0.7rem !important; padding-right: 0.3rem !important; }
  #burger-menu span { width: 30px !important; }
}
@media (min-width: 769px) {
  .header-content { flex-direction: row !important; }
  .header-burger { order: 0 !important; margin-right: 1.5rem; margin-left: 0; }
  .header-logo { order: 1 !important; justify-content: center !important; margin: 0 auto; }
  .btn-book-now { order: 2 !important; margin-left: 1.5rem; margin-right: 0; display: inline-block !important; }
}

/* Media tweaks to smooth transitions */
.main-header .header-content, .header-logo, .header-burger, .btn-book-now { transition: all 0.35s cubic-bezier(0.4,0,0.2,1); }
@media (max-width: 1024px) and (min-width: 769px) {
  .header-burger { margin-right: 0.7rem; }
  .header-logo { justify-content: flex-start !important; margin-left: 0.5rem; }
  .btn-book-now { margin-left: 0.7rem; }
}
@media (max-width: 900px) and (min-width: 601px) {
  .header-burger { margin-right: 0.3rem; }
  .header-logo { justify-content: flex-start !important; margin-left: 0.2rem; }
  .btn-book-now { margin-left: 0.3rem; }
}
@media (max-width: 600px) { .header-logo { justify-content: flex-start !important; margin-left: 0 !important; } }

/* Sticky behavior (controlled by JS) */
.main-header.stuck{ position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 1200; transform: translateY(0);
  /* Solid charcoal at 90% opacity when stuck (override gradient) */
  background: rgba(57,52,52,0.9);
}
.main-header.stuck.hidden{ transform: translateY(-100%); }
.main-header, .main-header.stuck, .main-header.stuck.hidden{ transition: transform 0.28s cubic-bezier(0.4,0,0.2,1); will-change: transform; transform-origin: top left; }

/* Menu overlay styles */
.menu-overlay{
  position: fixed;
  inset: 0;
  background: rgba(57,52,52,0.9); /* charcoal #393434 at 90% */
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 220ms ease, visibility 220ms ease;
  z-index: 99999; /* ensure overlay sits above header/sticky */
  pointer-events: none;
}
.menu-overlay.open{
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.menu-panel{
  width: min(760px, 90vw);
  max-height: 90vh;
  overflow: auto;
  background: transparent;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.menu-center{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}
.menu-close{
  position: absolute;
  top: 18px;
  right: 22px;
  background: transparent;
  color: #fff;
  border: none;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
}
.menu-nav nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 1.2rem; }
.menu-nav nav ul li a { color: #fff; font-size:1.6rem; text-decoration:none; transition: color 220ms cubic-bezier(0.4,0,0.2,1), transform 220ms cubic-bezier(0.4,0,0.2,1); }
.menu-nav nav ul li a:hover, .menu-nav nav ul li a:focus { color: var(--color-secundario); transform: translateY(-2px); outline: none; }
.menu-nav nav ul li a:focus-visible { outline: 2px dashed var(--color-secundario); outline-offset: 4px; }
.menu-nav nav ul li a.active, .menu-nav nav ul li a[aria-current="page"] { color: var(--color-secundario); font-weight: 700; }
.menu-cta { display: flex; flex-direction: column !important; align-items: center; justify-content: center; gap: 1rem; width: 100%; }
.menu-cta .btn-book-now { order: 1; min-width: 200px; width: 200px; text-align: center; margin: 0 auto; }
.menu-intranet-link { order: 2; display: flex; align-items: center; justify-content: center; gap: 0.4rem; border-radius: 999px; border: 2px solid var(--color-principal); background: transparent; color: var(--color-principal); font-size: 1rem; font-weight: 600; padding: 0.5em 2em; width: 200px; min-width: 200px; text-decoration: none; transition: background 0.2s, color 0.2s; margin: 0 auto; }
.menu-intranet-link:hover { background: var(--color-principal); color: #fff; }

/* Ensure BOOK NOW inside the menu overlay remains visible (override mobile hide) */
.menu-overlay .menu-cta .btn-book-now { display: flex !important; align-items: center; justify-content: center; order: 1; width: 200px; margin: 0 auto; }

@media (max-width: 600px){
  .menu-panel{ width: 100%; padding: 2rem; }
  .menu-nav nav ul { gap: 0.9rem; }
  .menu-nav nav ul li a { font-size: 1.2rem; }
}

/* Footer styles */
.site-footer{ position: relative; color: #fff; overflow: hidden; }
.site-footer .footer-bg{ position: absolute; inset: 0; background-image: url('/assets/img/footer-hacienda-herrera-gray.jpg'); background-size: cover; background-position: center center; opacity: 0.9; z-index: 0; }
.site-footer .footer-overlay{ position: absolute; inset: 0; background: rgba(99,81,79,0.9); z-index:1; }
.site-footer .footer-inner{ position: relative; z-index:2; max-width: 1400px; margin: 0 auto; padding: 3.5rem 1rem; display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 2.5rem; align-items:start; }
.site-footer .footer-col h4{ margin:0 0 1rem 0; color:#fff; font-size:1rem; }
.site-footer .footer-col p, .site-footer .footer-col li, .site-footer .footer-col a{ color: rgba(255,255,255,0.9); text-decoration:none; font-size:16px; line-height:1.6; }
.site-footer .footer-nav nav ul{ list-style:none; padding:0; margin:0; display:grid; grid-template-columns: 1fr 1fr; gap:0.8rem 1.5rem; }
.site-footer .footer-nav nav ul li a{ color: rgba(255,255,255,0.95); text-decoration:none; font-size:16px; line-height:1.6; }
.site-footer .footer-nav nav ul li a:hover{ color: var(--color-secundario); }

/* Footer links: quitar bullets y añadir más espacio entre opciones */
.site-footer .footer-links ul{
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem; /* mayor espaciado entre opciones */
}
.site-footer .footer-links ul li{ margin: 0; }
.site-footer .footer-links ul li a{ display: block; padding: 0.12rem 0; }

/* Hover color para los enlaces en Links of interest */
.site-footer .footer-links ul li a{
  color: rgba(255,255,255,0.95);
  text-decoration: none;
}
.site-footer .footer-links ul li a:hover,
.site-footer .footer-links ul li a:focus{
  color: var(--color-secundario);
  text-decoration: none;
}

.site-footer .socials a{ display:inline-block; width:34px; height:34px; border-radius:6px; background: rgba(255,255,255,0.08); color:#fff; text-align:center; line-height:34px; margin-right:0.5rem; }
.site-footer .footer-contact { display:flex; align-items:center; gap:0.6rem; }
.site-footer .footer-contact i { color: var(--color-secundario); font-size:18px; line-height:1; display:inline-block; vertical-align:middle; }
.site-footer .footer-contact a { color: rgba(255,255,255,0.95); text-decoration:none; }
.site-footer .footer-newsletter{ margin-top:0.6rem; display:flex; gap:0.6rem; }
.site-footer .footer-newsletter input[type="email"]{ flex:1; padding:0.6rem 0.8rem; border-radius:6px; border:1px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.03); color:#fff; }
.site-footer .footer-newsletter .btn{ padding:0.6rem 1rem; border-radius:6px; background:transparent; border:1px solid rgba(255,255,255,0.18); color:#fff; }

/* Newsletter Messages */
.newsletter-message {
  margin-top: 0.6rem;
}

.newsletter-message p {
  margin: 0;
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}

.newsletter-success {
  background: rgba(40, 167, 69, 0.2);
  border: 1px solid rgba(40, 167, 69, 0.5);
  color: #a3f3b8;
}

.newsletter-error {
  background: rgba(220, 53, 69, 0.2);
  border: 1px solid rgba(220, 53, 69, 0.5);
  color: #ffb3b3;
}

.site-footer .footer-bottom{ border-top: 1px solid rgba(255,255,255,0.06); margin-top: 1.5rem; }
.site-footer .footer-bottom-inner{ max-width:1400px; margin:0 auto; padding:1.2rem 1rem; display:flex; justify-content:space-between; align-items:center; color: rgba(255,255,255,0.9); font-size:14px; }

/* Footer bottom: apariencia como en la imagen */
.site-footer .footer-bottom{
  background: rgba(99,81,79,0.95); /* tono marrón sólido para la franja inferior */
  border-top: none; /* eliminamos la línea sutil para un look más uniforme */
  position: relative; /* permitir uso de z-index sobre el overlay */
  z-index: 3; /* situar la franja inferior por encima del footer overlay */
}
.site-footer .footer-bottom-inner{
  padding: 1rem 1rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-footer .footer-bottom-inner span{ color: #ffffff; font-size:12px; }
.site-footer .footer-bottom-inner .powered{ color: #ffffff; font-weight:500; }
.site-footer .footer-bottom-inner .powered a{ color: #ffffff; text-decoration: none; }

/* Asegurar que cualquier enlace en la franja inferior sea visible */
.site-footer .footer-bottom-inner a{ color: #ffffff; }

@media (max-width: 768px){
  .site-footer .footer-bottom-inner{ flex-direction: column; height: auto; padding: 0.8rem 1rem; text-align: center; }
  .site-footer .footer-bottom-inner .powered{ margin-top: 6px; }
}

@media (max-width: 900px){
  .site-footer .footer-inner{ grid-template-columns: 1fr; }
  .site-footer .footer-bottom-inner{ flex-direction:column; gap:0.75rem; text-align:center; }
}

/* On small screens, add subtle separators between stacked footer cols */
@media (max-width: 900px){
  .site-footer .footer-inner .footer-col{ padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid rgba(255,255,255,0.2); }
  .site-footer .footer-inner .footer-col:last-child{ border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
}

/* Placeholder: forzar color blanco en inputs y textarea */
input::placeholder,
textarea::placeholder {
  color: #ffffff;
  opacity: 1; /* asegurar visibilidad en navegadores que aplican opacidad */
}

/* Soporte legacy / prefijos */
input::-webkit-input-placeholder { color: #ffffff; }
textarea::-webkit-input-placeholder { color: #ffffff; }
input:-ms-input-placeholder { color: #ffffff; }
textarea:-ms-input-placeholder { color: #ffffff; }
input::-ms-input-placeholder { color: #ffffff; }
textarea::-ms-input-placeholder { color: #ffffff; }

/* Inputs: tipografía consistente */
input, textarea, select {
  font-size: 14px;
  line-height: 1.4;
}

/* Badges row: MINCETUR + Protegeme side by side */
.footer-badges-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap;
    margin-top: 1.5rem;
}

/* MINCETUR Seal in Footer */
.footer-mincetur-seal {
    margin-top: 0;
    flex: 0 0 auto;
}

.footer-mincetur-seal img {
    display: block;
    height: 80px;
    width: auto;
    background: #fff;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Protegem Button in Footer */
.footer-protegem-btn {
    margin-top: 0;
    flex: 0 0 auto;
}

.protegem-trigger {
    background: #fff;
    border: none;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.protegem-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.protegem-trigger img {
    display: block;
    height: 60px;
    width: auto;
}

@media (max-width: 768px) {
    .footer-badges-row {
        justify-content: center;
    }
}

/* Complaints Book Button in Footer */
.footer-complaints-book {
  margin-top: 1.5rem;
  text-align: left;
}

.complaints-book-link {
  display: inline-block;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
}

.complaints-book-link:hover {
  transform: translateY(-2px);
}

.complaints-book-link img {
  display: block;
  max-width: 126px;
  height: auto;
  margin-bottom: 8px;
}

.complaints-book-text {
  display: block;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.5px;
}

.complaints-book-link:hover .complaints-book-text {
  color: var(--color-secundario);
}

@media (max-width: 768px) {
  .footer-complaints-book {
    text-align: center;
  }
  
  .complaints-book-link img {
    max-width: 105px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Protegem Modal */
.protegem-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.protegem-modal.active {
  opacity: 1;
  visibility: visible;
}

.protegem-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  cursor: pointer;
}

.protegem-modal-content {
  position: relative;
  z-index: 100001;
  max-width: 90vw;
  max-height: 90vh;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.protegem-modal-content img {
  display: block;
  max-width: 100%;
  max-height: calc(90vh - 80px);
  height: auto;
  width: auto;
  margin: 0 auto;
}

.protegem-modal-close {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 40px;
  height: 40px;
  background: #3b6e40;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.protegem-modal-close:hover {
  background: #ee7326;
  transform: rotate(90deg);
}

@media (max-width: 768px) {
  .protegem-modal-content {
    max-width: 95vw;
    padding: 15px;
  }
  
  .protegem-modal-content img {
    max-height: calc(90vh - 60px);
  }
  
  .protegem-modal-close {
    width: 35px;
    height: 35px;
    font-size: 24px;
    top: -12px;
    right: -12px;
  }
}

