/* ============ index.css (home) ============ */

/* ==== HERO ==== */
.hero {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  padding: 20px;
}
.background-video {
  width: 100%;
  height: 100vh;
  object-fit: cover;
  pointer-events: none;
}
.hero-content h1 {
  font-size: 5em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
  font-family: var(--font-title);
}
.hero-content p {
  font-size: 1.8em;
  font-weight: 400;
  letter-spacing: 1px;
}
.hero-ctas {
  display:flex; gap:1rem; justify-content:center; margin-top:1rem; flex-wrap:wrap;
}

/* ==== FRASE FIJA ==== */
.frase-fija {
  padding: 40px 20px 30px;
  text-align: center;
}
.frase-fija h2 {
  font-size: 50px;
  font-weight: 700;
  color: var(--main-color);
  letter-spacing: 1px;
  max-width: 900px;
  margin: 0 auto 20px;
}
.frase-fija p {
  font-size: 1.1em;
  color: #333;
  max-width: 800px;
  margin: 0 auto 1rem auto;
  line-height: 1.6;
  font-weight: 400;
}
section.frase-fija p { margin-bottom: 1rem !important; }

/* ==== SECCIONES GENERALES ==== */
.section {
  padding: 40px 20px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  border-bottom: 1px solid #eee;
}
.section h2 {
  font-size: 50px;
  color: var(--main-color);
  margin-bottom: 10px;
}
.section p {
  font-size: 1.1em;
  color: #333;
}

/* ==== RECUADRO VERTICAL PARA ATV ==== */
.atv-info-box {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}
.atv-card-vertical {
  width: 100%;
  max-width: 400px;
  background-color: #ffffff;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
}
.atv-card-vertical img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  margin-bottom: 20px;
}
.atv-card-vertical h2 {
  font-family: var(--font-text);
  font-size: 1.5em;
  color: var(--main-color);
  margin-bottom: 10px;
}
.atv-card-vertical .price {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--main-color);
  margin-bottom: 20px;
}
.atv-card-vertical .price span {
  display: block;
  font-size: 0.8em;
  font-weight: normal;
  color: #777;
}
.atv-card-vertical ul {
  list-style-type: disc;
  padding-left: 20px;
  text-align: left;
  font-size: 1em;
  color: #333;
}
.atv-card-vertical ul li { margin-bottom: 10px; }

/* ==== SECCIÓN DE UBICACIÓN ==== */
.location-section {
  padding: 6rem 2rem;
  background-color: var(--background-light, #f9f9f9);
}
.location-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 4rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}
.location-text {
  flex: 1.4;
  min-width: 0;
  max-width: 850px;
  font-family: var(--font-text);
  color: #333;
}
.location-text h2 {
  font-family: var(--font-title);
  font-size: 50px;
  font-weight: 700;
  color: var(--main-color);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  letter-spacing: 0.3px;
}
.location-text p {
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.9;
  color: #444;
  max-width: 100%;
  margin-bottom: 1rem;
}
.map-container {
  flex: 1;
  max-width: 700px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* ==== SECCIÓN DE SURF ==== */
.surf-container {
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
  align-items: flex-start;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

.surf-media {
  flex: 1;
  display: flex;
  justify-content: center;
}

.surf-video {
  position: relative;
  width: min(360px, 92vw);
  aspect-ratio: 9 / 16;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.surf-text {
  flex: 1.4;
  min-width: 0;
  max-width: 1000px;
  text-align: left;
}

.surf-text h2 {
  font-family: var(--font-title);
  font-size: 50px;
  font-weight: 700;
  color: var(--main-color);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  letter-spacing: 0.3px;
}

.surf-text p,
.surf-text .btn {
  text-align: left;
}

.surf-info-box {
  padding: 6rem 2rem; 
}

/* ==== VIDEO ==== */
.v9x16 {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-toggle {
  position: absolute;
  bottom: 10px;
  right: 10px;
  padding: 8px 12px;
  font-size: 16px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

/* ==== MODAL LIST ==== */

/* 1) Asegúrate de tener lang="es" en <html> para guiones automáticos */
html { word-break: normal; }

/* 2) Contenedor del modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;            /* .is-open => display:block o flex */
  align-items: center;
  justify-content: center;
  padding: 16px;            /* respiración en móviles */
  background: rgba(0,0,0,.55);
  overscroll-behavior: contain;
}

/* 3) Caja del diálogo */
.modal__dialog {
  width: min(920px, 100%);
  max-height: 90vh;         /* evita que crezca más que la pantalla */
  border-radius: 14px;
  background: #fff;
  overflow: hidden;         /* recorta bordes redondeados */
  box-shadow: 0 10px 40px rgba(0,0,0,.2);
  display: flex;
  flex-direction: column;
}

/* 4) Encabezado */
.modal__header {
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal__title {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.2;
  margin: 0;
  /* claves para cortar textos largos */
  overflow-wrap: anywhere;  /* corta cadenas largas/URLs */
  word-break: break-word;
  hyphens: auto;            /* guiones en palabras largas (necesita lang="es") */
}

/* 5) Cuerpo con scroll interno controlado */
.modal__body {
  padding: 16px 20px;
  overflow: auto;                  /* el scroll vive aquí, no en la página */
  -webkit-overflow-scrolling: touch;
  max-height: calc(90vh - 56px - 64px); /* 90vh menos header y footer aprox */
  overscroll-behavior: contain;
  line-height: 1.5;
}

/* Texto del cuerpo: evita desbordes horizontales */
.modal__body p,
.modal__body li,
.modal__body span,
.modal__body a {
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

/* Imágenes y videos dentro del modal */
.modal__body img,
.modal__body video {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

/* Listas y bloques */
.modal__body ul, .modal__body ol { padding-left: 1.2rem; }
.modal__body h1, .modal__body h2, .modal__body h3 { 
  font-size: clamp(16px, 2.2vw, 20px);
  margin: 1em 0 .5em;
}

/* 6) Footer */
.modal__footer {
  padding: 14px 20px;
  border-top: 1px solid #eee;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* 7) Botón cerrar pegado a la esquina sin mover layout */
.modal__close {
  margin-left: auto;
  border: 0;
  background: #f2f2f2;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
}

/* 8) Evitar scroll del body cuando el modal está abierto */
body.modal-open { overflow: hidden; }

/* 9) Micro-fix iOS/Android que a veces mete scroll lateral */
.modal__body::-webkit-scrollbar { width: 10px; }
.modal__body::-webkit-scrollbar-thumb { background: #ddd; border-radius: 10px; }

/* 10) Si tienes tarjetas/Badges con textos largos en ATV/Surf */
.badge, .pill, .tag {
  max-width: 100%;
  white-space: normal;       /* NO "nowrap" */
  overflow-wrap: anywhere;
}


/* ==== RECOMENDACIONES ==== */
.recomendaciones {
  background-color: #f5f5f5;
  padding: 6rem 2rem;
}
.reco-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 4rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: left;
}
.reco-imagen { flex: 1; max-width: 600px; overflow: hidden; }
.reco-imagen img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.reco-imagen img:hover { transform: scale(1.08); }
.reco-texto {
  flex: 1.4;
  min-width: 0;
  max-width: 850px;
  font-family: var(--font-text);
  color: #333;
}
.reco-texto h2 {
  font-family: var(--font-title);
  font-size: 50px;
  font-weight: 700;
  color: var(--main-color);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  letter-spacing: 0.3px;
}
.reco-texto p {
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.9;
  color: #444;
  max-width: 100%;
  margin-bottom: 1rem;
}
