/* --------------------------------- */
/*      Contact Header Banner        */
/* --------------------------------- */
.contact-header {
  position: relative;
  background: url('../images/contacto_header.jpg') center/cover no-repeat;
  height: 55vh;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0px 0px 0px 0px;
  padding: 0px 0px 0px 0px;
  
  
}
.contact-header h1 {
  color: #fff;
  font-size: 3rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* --------------------------------- */
/*    Sección Where to Find Us       */
/* --------------------------------- */
.contact-location-wrapper {
  background-color: #ffffff;
}

/* Contenedor más uniforme y con padding lateral */
.contact-location {
  display: grid;
  grid-template-columns: 1fr 1px 0.9fr; /* texto | divisor | imagen */
  align-items: center;
  gap: 2.1rem;
  max-width: 1300px;
  margin: 0 auto;
  padding: 100px 0px 100px 0px; /* antes 80px 0; añade margen lateral */
}

.loc-text { flex: 1; }
.loc-text .subtitle {
  color: #dd5903;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  
}
.loc-text h2 {
  font-size: 2.4rem;      /* un pelín más controlado */
  line-height: 1.2;
  margin: 0.8rem 0 1rem;
  
}

.about-terms-line {
  width: 60px;
  height: 3px;
  background: #dd5903;
  margin-bottom: 1.8rem;
}

.loc-text p {
  max-width: 480px;       /* un poco más ancho para equilibrar con la imagen */
  line-height: 1.8;
  color: #555;
  margin-bottom: 1.8rem; /* ritmo vertical consistente */
}

/* Lista de iconos de contacto */
.contact-info-list {
  list-style: none;
  padding: 0;
  margin-bottom: 1.35rem;
}
.contact-info-list li {
  display: flex;
  align-items: center;
  margin-bottom: 1.25rem;
  color: #333;
}
.contact-info-list li i {
  margin-right: 0.75rem;
  color: #dd5903;
  width: 1.2rem;
  text-align: center;
}

/* Enlace con subrayado fluido (se ajusta al ancho del texto) */
.get-directions2 {
  font-size: 1.05rem;
  position: relative;
  display: inline-block;
  color: #000000;
  text-decoration: none;
  padding-bottom: 0.45em;
  z-index: 1;
}
.get-directions2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  transform: scaleX(1);
  transform-origin: right center;
  width: 100%;           /* se adapta al texto */
  height: 2px;
  background: #dd5903;
  transition: transform 0.35s ease;
}
.get-directions2:hover::after {
  transform: scaleX(0);  /* encoge de derecha a izquierda */
}

/* Divider vertical */
.loc-divider {
  width: 2px;
  background: #eee;
  height: 100%;
  min-height: 340px;     /* evita que quede demasiado corto */
}


/* Imagen ligeramente más pequeña y con límites fluidos */
.loc-image {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}
.loc-image img {
  width: clamp(450px, 60%, 610px); /* antes ~80%; ahora ~60% y con tope */
  max-width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* Responsive */
@media (max-width: 992px) {
  .contact-location {
    grid-template-columns: 1fr; /* apila elementos */
    gap: 1.75rem;
  }
  .loc-divider {
    display: none;
  }
  .loc-image {
    justify-content: center; /* centra la imagen en móvil/tablet */
    margin-top: 0.5rem;
  }
  .loc-image img {
    width: min(70%, 420px);  /* un poco más pequeña también en tablet */
  }
}

@media (max-width: 600px) {
  .loc-text h2 { font-size: 2rem; }
  .loc-image img { width: 85%; }  /* buen equilibrio en pantallas pequeñas */
}




/* --------------------------------- */
/*  Sección Contact Details (2 col)  */
/* --------------------------------- */
.contact-wrapper {
  background-color: #faf9f8;
}


.contact-details {
  display: flex;
  gap: 3rem;
  max-width: 1300px;
  margin: 4rem auto;           /* separa del bloque superior */
  padding: 60px 0px 60px 0px;
  
}

.contact-info {
  flex: 1;
  color: #2e2e2e;                 /* tono más claro */
  line-height: 1.6;
}

.contact-info .subtitle {
  color: #dd5903;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.contact-info h2 {
  font-size: 2.5rem;
  margin: 0.5rem 0 0.3rem;
  color: #333;
}

.contact-info p {
  margin-bottom: 1rem;
  max-width: 500px;
  
}

.contact-info a {
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.contact-info a:hover {
  border-color: #ff8c00;
}

.get-directions3 {
  font-size: 1.1rem;
  position: relative;
  display: inline-block;   /* importante: que mida sólo el texto */
  color: #000000;
  text-decoration: none;
  padding-bottom: 0.5em;   /* deja espacio para la línea */
  /* opcional: aumenta el z-index si el contenedor tiene borde superior */
  z-index: 1;
}

/* Pseudo-elemento centrado y separado del borde */
.get-directions3::after {
  content: '';
  position: absolute;
  left: 50%;               /* punto de partida horizontal */
  bottom: 0;               /* justo en la base del enlace */
  transform: translateX(-50%) scaleX(1);
  transform-origin: left center;
  width: 140px;            /* ancho de la línea */
  height: 2px;
  background: #dd5903;
  transition: transform 0.4s ease;
}

/* Al hacer hover encogemos la línea de derecha a izquierda */
.get-directions3:hover::after {
  transform: translateX(-50%) scaleX(0);
}

/* Quitar subrayado nativo y pseudo-subrayados */
.get-directions3,
.get-directions3:link,
.get-directions3:visited,
.get-directions3:hover,
.get-directions3:focus,
.get-directions3:active {
  text-decoration: none !important;
  border-bottom: 0 !important;
  background-image: none;
  box-shadow: none;
  outline: none; /* opcional: quita halo de foco; si quieres accesibilidad, usa :focus-visible */
  -webkit-text-decoration-skip: none;
  text-decoration-skip-ink: none;
}




/* Link estilo subrayado */
.link-underline {
  display: inline-block;
  margin-top: 1rem;
  text-transform: uppercase;
  font-weight: 500;
  border-bottom: 2px solid #dd5903;
  color: #333;
  text-decoration: none;
  padding-bottom: 2px;
}

/* Ajustes del formulario dentro de este layout */
.contact-form-wrapper {
 flex: 1;
 
}

.contact-form-wrapper .form-fields {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 1.9rem 2rem;
  margin-bottom: 1.5rem;
}

.contact-form-wrapper .field {
  position: relative;
}

.contact-form-wrapper .field--full {
  grid-column: 1 / -1;
}

.contact-form-wrapper .field label {
  display: block;
  font-size: 1.05rem;
  color: #333;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.contact-form-wrapper .field input,
.contact-form-wrapper .field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid #ccc;
  padding: 0.4rem 0;
  font-size: 0.90rem;
  color: #333;
  outline: none;
  transition: border-color 0.3s;
}

.contact-form-wrapper .field input:focus,
.contact-form-wrapper .field textarea:focus {
  border-bottom-color: #000000;
}

.contact-form-wrapper .field textarea {
  min-height: 120px;
  resize: none;
}

.horario { 
  display: grid; 
  gap: 0.1rem; 
  margin-bottom: 30px; 
  margin-top: 30px;  
  max-width: 500px;        /* separación entre bloque título y bloque lista */
}

.horario-titulo { 
  margin-bottom: 15px; 
  line-height: 1.2; 
}

.horario-lista {
  list-style: none;
 margin: 0;
  padding: 0;
}

.horario-lista li {
  display: grid;
  grid-template-columns: 1fr auto; /* día a la izquierda, hora a la derecha */
  gap: .15rem;
  padding: .15rem 0;
  line-height: 1.15; 
   margin-bottom: 5px;
}

.horario-lista .dia { font-weight: 500; }
.horario-lista .hora { opacity: .95; }

/* (Opcional) en pantallas estrechas, apila el texto */
@media (max-width: 480px) {
  .horario-lista li { grid-template-columns: 1fr; }
  .horario-lista .hora { margin-left: 0; }
}





/* Oculta cualquier placeholder en el formulario de contacto */
.contact-form-wrapper .field input::placeholder,
.contact-form-wrapper .field textarea::placeholder {
  color: transparent;
}

/* Anula el fondo de autocompletar
   usando el mismo color que el fondo de tu .contact-form-wrapper */
   .contact-form-wrapper input:-webkit-autofill,
   .contact-form-wrapper textarea:-webkit-autofill {
     -webkit-box-shadow: inset 0 0 0px 1000px #fafafa !important;
     box-shadow: inset 0 0 0px 1000px #fafafa !important;
     -webkit-text-fill-color: #333 !important; /* mantiene el color del texto */
   }
   
   /* Para Firefox */
   .contact-form-wrapper input:-moz-autofill,
   .contact-form-wrapper textarea:-moz-autofill {
     box-shadow: inset 0 0 0px 1000px #fafafa !important;
     -moz-text-fill-color: #333 !important;
   }
   


/* Estilo base: outline naranja, fondo transparente */
.contact-form-wrapper .btn--submit {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background-color: #dd5903;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border: none;            /* quita el borde por defecto */
  outline: none;           /* quita el outline en foco */
  border-radius: 0px;
  transition: background-color 0.3s ease;
  cursor: pointer;
   font-size: 0.85rem;
  letter-spacing: 0.03em;
  font-family: 'Montserrat', sans-serif;
}

/* Hover: fondo naranja, texto blanco */
.contact-form-wrapper .btn--submit:hover {
  background-color: #e07b00;
  
}

.contact-form-wrapper .btn--submit:focus {
  box-shadow: none;
}


/* Responsive */
@media (max-width: 992px) {
  .contact-details {
    flex-direction: column;
  }
  .contact-form-wrapper {
    margin-top: 2rem;
  }
  .contact-form-wrapper .form-fields {
    grid-template-columns: 1fr;
  }
}

.error{
  color:#c0392b;
  font-size:.9rem;
  margin:.25rem 0 0;
}

.form-success{
  background:#e8f6ec;
  color:#216e39;
  padding:.75rem 1rem;
  border-left:4px solid #2ea44f;
  margin-bottom:1rem;
}




.alert-success {
    background: #e6ffed;
    border: 1px solid #a3e4b1;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
  }
  


/* Mapa a pantalla completa de izquierda a derecha */
.mapa-fullbleed {
  position: relative;
  width: 100vw;
  /* centrar y “sacar” del contenedor para ocupar todo el ancho */
  left: 50%;
  transform: translateX(-50%);
  aspect-ratio: 16 / 4;              /* responsive */
  background: #eaeaea;               /* color de fondo mientras carga */
}

/* El iframe ocupa todo el contenedor */
.mapa-fullbleed iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
  border-radius: 0;                  /* esquinas cuadradas */
  
}



/* Evita scroll horizontal por el full-bleed */
body { overflow-x: clip; }

/* Más alto en móvil si prefieres */
@media (max-width: 560px) {
  .mapa-fullbleed { aspect-ratio: 4 / 3; }
}






/* --------------------------------- */
/*   Sección Newsletter full-width   */
/* --------------------------------- */
.newsletter-section {
  position: relative;
  background: url('../images/newsletter_bg.jpg') center/cover no-repeat;
  padding: 6rem 1rem 4rem;
  color: #fff;
  text-align: center;
  overflow: hidden;
}

/* Capa semitransparente si la necesitas */
.newsletter-overlay {
  position: absolute;
  top:0; left:0; right:0; bottom:0;
  background: rgba(0,0,0,0.4);
  z-index: 1;
}

.newsletter-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

/* Texto */
.newsletter-content .subtitle {
  color: #dd5903;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.newsletter-content h2 {
  font-size: 2.5rem;
  margin: 0.5rem 0 1rem;
  color: #fff;
}

.newsletter-content p {
  font-size: 1rem;
  line-height: 1.6;
  color: #eee;
  margin-bottom: 2rem;
}
/* === Overrides newsletter (poner al final del CSS) === */

/* 1) Input con padding interno */
.newsletter-input-group {
  display: flex;
  flex-direction: column;    /* apila input y botón */
  align-items: stretch;
  max-width: 500px;
  margin: 0 auto 1rem;       /* mismo ancho centrado */
}

.newsletter-input-group input[type="email"] {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.7);
  /* margen interno del texto */
  padding: .6rem .75rem;
  font-size: 1rem;
  color: #fff;
  outline: none;
  transition: border-color .3s ease;
}

.newsletter-input-group input[type="email"]:focus {
  border-bottom-color: #dd5903;
}

/* 2) Flecha debajo (no absoluta) */
.newsletter-input-group .newsletter-submit {
  position: static;          /* quita el absolute */
  transform: none;
  margin-top: .05rem;        /* separa del input */
  align-self: flex-end;      /* a la derecha; usa center si la prefieres centrada */
  background: none;
  border: none;
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0.05rem .5rem;
  transition: color .3s ease;
}

.newsletter-input-group .newsletter-submit:hover {
  color: #ff8c00;
}

/* 3) Checkbox alineado a la izquierda en la misma “columna” que el input */
.newsletter-privacy {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  max-width: 500px;          /* mismo ancho que el input */
  margin: .25rem auto 0;     /* mismo centrado; el inicio queda alineado a la izq */
  font-size: .85rem;
  color: #eee;
}

.newsletter-privacy input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  cursor: pointer;
  margin-top: .15rem;        /* alinea con la primera línea del texto */
}

.newsletter-privacy a {
  color: #dd5903;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}

.newsletter-privacy a:hover {
  border-color: #ff8c00;
}


/* Responsive */
@media (max-width: 600px) {
  .newsletter-content h2 {
    font-size: 2rem;
  }
  .newsletter-input-group {
    max-width: 100%;
  }
}

.form-messages { margin:.75rem 0; }
.msg { font-size:.95rem; padding:.6rem .8rem; border-radius:8px; }
.msg.success { background:#e8f7ec; color:#0f5d2f; }
.msg.error { background:#fde8e8; color:#8a1c1c; }
.msg.info { background:#eef2ff; color:#273e74; }

.form-messages { position: relative; }
.form-messages .msg {
  position: relative;
  padding-right: 2rem;           /* hueco para el botón cerrar */
  opacity: 1;
  transform: translateY(0);
  transition: opacity .35s ease, transform .35s ease;
}

.form-messages .msg.is-fading {
  opacity: 0;
  transform: translateY(-4px);
}

/* Botón “cerrar” (opcional) */
.form-messages .msg .msg-close {
  position: absolute;
  top: .35rem;
  right: .5rem;
  border: 0;
  background: transparent;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  color: inherit;
}
.form-messages .msg .msg-close:focus { outline: 2px solid currentColor; outline-offset: 2px; }

/* ==== CONTACTO — FIXES RESPONSIVE Y ALINEACIÓN ==== */

/* Contenedores con padding lateral seguro y ancho controlado */
.contact-location,
.contact-details{
  max-width: 1300px;
  margin-inline: auto;
  padding-inline: 16px; /* respiro lateral en todas las pantallas */
}

/* ===== Where to find us (texto | divider | imagen) ===== */
.contact-location{
  display: grid;
  grid-template-columns: minmax(0,1fr) 1px minmax(0,1.05fr);
  align-items: center;
  column-gap: clamp(20px, 4vw, 48px);
  row-gap: 20px;
  padding-block: clamp(48px, 7vw, 100px);
}
.loc-text{ min-width: 0; }
.loc-text .subtitle{
  color:#dd5903; text-transform:uppercase; letter-spacing:.06em; font-size:.9rem;
}
.loc-text h2{
  margin:.6rem 0 .9rem; line-height:1.2; font-size: clamp(1.8rem, 3.2vw, 2.4rem);
}
.loc-text p{
  max-width: 62ch; line-height: 1.7; color:#555; margin-bottom: 1.25rem;
}

.about-terms-line{ width:60px; height:3px; background:#dd5903; margin-bottom:1.2rem; }

.contact-info-list{ list-style:none; padding:0; margin:0 0 1.25rem 0; }
.contact-info-list li{
  display:flex; align-items:center; gap:.6rem; margin-bottom:.85rem; color:#333;
}
.contact-info-list li i{ color:#dd5903; width:1.1rem; text-align:center; }

/* Divider vertical */
.loc-divider{ width:2px; background:#eee; height:100%; min-height:320px; }

/* Imagen */
.loc-image{ display:flex; justify-content:flex-end; min-width:0; }
.loc-image img{
  width: min(100%, 600px);
  max-width: 100%;
  height: auto;
  display:block;
  object-fit: cover;
}

/* Enlace decorado */
.get-directions2{
  position:relative; display:inline-block; color:#000; text-decoration:none;
  padding-bottom:.45em; font-size:1.05rem;
}
.get-directions2::after{
  content:""; position:absolute; left:0; right:0; bottom:0; height:2px; background:#dd5903;
  transform-origin:right center; transform:scaleX(1); transition:transform .35s ease;
}
.get-directions2:hover::after{ transform:scaleX(0); }

/* Responsive: apilar */
@media (max-width: 992px){
  .contact-location{
    grid-template-columns: 1fr;
    padding-block: clamp(36px, 6vw, 64px);
    row-gap: 16px;
  }
  .loc-divider{ display:none; }
  .loc-image{ justify-content:center; }
  .loc-image img{ width:min(100%, 460px); }
  .loc-text p{ max-width: 65ch; }
}
@media (max-width: 560px){
  .loc-text h2{ font-size: clamp(1.6rem, 7vw, 2rem); }
}

/* ===== Contact details (texto | formulario) ===== */
.contact-wrapper{ background:#faf9f8; }

.contact-details{
  display:grid;
  grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr);
  column-gap: clamp(24px, 4vw, 56px);
  row-gap: 24px;
  padding-block: clamp(48px, 7vw, 100px);
  margin-block: 0; /* ya está controlado con padding */
}

.contact-info{ min-width:0; color:#2e2e2e; line-height:1.6; }
.contact-info .subtitle{
  color:#dd5903; text-transform:uppercase; font-size:.85rem; letter-spacing:.05em;
}
.contact-info h2{
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  margin:.5rem 0 .3rem; color:#333;
}
.contact-info p{ margin-bottom: .9rem; max-width: 62ch; }
.get-directions3{
  position:relative; display:inline-block; color:#000; text-decoration:none; padding-bottom:.5em;
}
.get-directions3::after{
  content:""; position:absolute; left:50%; bottom:0; width:140px; height:2px; background:#dd5903;
  transform:translateX(-50%) scaleX(1); transform-origin:left center; transition:transform .4s ease;
}
.get-directions3:hover::after{ transform:translateX(-50%) scaleX(0); }

/* Horario */
.horario{ display:grid; gap:.25rem; margin: 24px 0 30px; max-width: 62ch; }
.horario-lista{ list-style:none; margin:0; padding:0; }
.horario-lista li{
  display:grid; grid-template-columns: 1fr auto; gap:.25rem;
  padding:.15rem 0; line-height:1.2; margin-bottom:4px;
}
@media (max-width: 480px){
  .horario-lista li{ grid-template-columns: 1fr; }
}

/* Formulario */
.contact-form-wrapper{ min-width:0; }
.contact-form-wrapper .form-fields{
  display:grid;
  grid-template-columns: repeat(2, minmax(220px,1fr));
  gap: 1.25rem 1.75rem;
  margin-bottom: 1.5rem;
}
.contact-form-wrapper .field{ position:relative; }
.contact-form-wrapper .field--full{ grid-column: 1 / -1; }
.contact-form-wrapper .field label{
  display:block; font-size:1.02rem; color:#333; font-weight:500; margin-bottom:.45rem;
}
.contact-form-wrapper .field input,
.contact-form-wrapper .field textarea{
  width:100%; background:transparent; border:none; border-bottom:1px solid #ccc;
  padding:.45rem 0; font-size:.95rem; color:#333; outline:none; transition:border-color .25s ease;
}
.contact-form-wrapper .field input:focus,
.contact-form-wrapper .field textarea:focus{ border-bottom-color:#000; }
.contact-form-wrapper .field textarea{ min-height:120px; resize:none; }

/* Botón enviar */
.btn-primary.btn--submit{
  display:inline-block; margin-top:1rem; padding:.75rem 1.5rem;
  background:#dd5903; color:#fff; border:none; border-radius:0;
  font: 600 .85rem/1 'Montserrat', sans-serif; letter-spacing:.03em;
  cursor:pointer; transition: background-color .3s ease;
}
.btn-primary.btn--submit:hover{ background:#e07b00; }

/* Responsive: 1 columna en tablet/móvil */
@media (max-width: 992px){
  .contact-details{ grid-template-columns: 1fr; padding-block: clamp(36px, 6vw, 72px); }
  .contact-form-wrapper{ margin-top: .5rem; }
  .contact-form-wrapper .form-fields{ grid-template-columns: 1fr; }
  .btn-primary.btn--submit{ width: 100%; }
}

/* Evitar desbordes horizontales por el mapa full-bleed */
body{ overflow-x: clip; }

.mapa-fullbleed iframe{
  width:100%;
  min-height:360px;
  height:520px;
  border:0;
  display:block;
}




