/* La Yateria — copia fiel del diseño del sitio en WordPress/Divi.
   Escritorio > 980px · tableta 768–980px · teléfono ≤ 767px */

:root {
  --navy: #010154;
  --f-light: "Helvetica Neue Light", Helvetica, Arial, Lucida, sans-serif;
  --f-reg: "Helvetica Neue", Helvetica, Arial, Lucida, sans-serif;
  --f-med: "Helvetica Neue Medium", "Helvetica Neue", Helvetica, Arial, Lucida, sans-serif;
  --f-bold: "Helvetica Neue Bold", "Helvetica Neue", Helvetica, Arial, Lucida, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: #fff; color: var(--navy);
  font: 500 14px/1.7 var(--f-light);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, h5 { margin: 0; padding-bottom: 10px; font-weight: 500; color: inherit; }
/* Título grande: el mismo en todo el sitio; crece con la pantalla hasta 120 px
   y se achica lo justo para que "Avistamiento" quepa completo en su columna. */
h1, .h1 { font: 500 min(120px, 6.2vw)/1 var(--f-med); }
h2, h4 { font: 500 20px/1.4 var(--f-reg); }
/* Textos que se ven como subtítulo pero no son encabezados (para un orden correcto de títulos) */
.kicker, .lead { margin: 0; padding-bottom: 10px; font: 500 20px/1.4 var(--f-reg); }
h3 { font: 500 30px/1 var(--f-reg); }
ul { margin: 0; padding: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.row { width: 90%; margin: 0 auto; }
.txt { overflow-wrap: break-word; word-wrap: break-word; }
/* Los títulos nunca parten una palabra: su tamaño se ajusta al ancho de pantalla */
h1, h2, h3, .h1, .boat__lead, .foot__phone, .land__phone { overflow-wrap: normal; word-wrap: normal; hyphens: manual; }
/* El teléfono siempre en un renglón; su tamaño se ajusta a la pantalla */
.foot__phone, .land__phone { white-space: nowrap; }

/* Botón con contorno (estilo "Reserva aquí") */
.btn {
  display: inline-block; padding: 9px 15px; border: 2px solid var(--navy); border-radius: 100px;
  font: 500 15px/1.7 var(--f-med); letter-spacing: 2px; text-transform: uppercase;
  color: var(--navy); text-decoration: none; background: transparent;
  transition: background-color .3s, color .3s;
}
.btn { white-space: nowrap; } /* el texto del botón nunca se parte */
.btn:hover { background: var(--navy); color: #fff; }
.txt .btn { margin-top: 17px; }

/* Precarga con el ancla */
.preloader {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: #fff;
  transition: opacity .5s, visibility .5s;
}
.preloader img { width: 80px; height: 80px; }
.is-loaded .preloader { opacity: 0; visibility: hidden; }
html:not(.js) .preloader { display: none; }

/* Animación de entrada del texto */
.js [data-anim] { opacity: 0; transform: translateY(40px); transition: opacity 1s ease, transform 1s ease; }
.js [data-anim].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-anim] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Menú superior */
.topnav { position: absolute; top: 0; left: 0; right: 0; z-index: 10; padding: 27px 0; }
.topnav ul { list-style: none; display: flex; justify-content: center; }
.topnav li { width: 136px; text-align: center; }
.topnav a {
  display: inline-block; padding: 3.6px 12px; color: #fff; text-decoration: none;
  font: 500 12px/1.7 var(--f-med); letter-spacing: 2px; text-transform: uppercase;
}
.topnav a:hover { opacity: .7; }
/* Cambio de idioma: esquina derecha, alineado con el menú (solo en inicio) */
.topnav__lang { position: absolute; top: 27px; right: 5%; }

/* Portada con video */
.hero { position: relative; overflow: hidden; background: var(--navy); padding: 351px 0; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__logo { position: relative; width: 80%; max-width: 1080px; margin: 0 auto; }
.hero__logo img { width: 55%; margin: 0 auto; }

/* Bloque de bienvenida */
.intro { padding-top: 180px; }
.intro__text { position: relative; z-index: 2; } /* el título va encima de la foto */
.intro__media { margin-top: -135px; padding-bottom: 134px; display: flex; justify-content: flex-end; }
.intro__media img { width: 60%; aspect-ratio: 770 / 516; object-fit: cover; }

/* Franja de logotipos */
.logos__row { list-style: none; display: flex; justify-content: space-between; }
.logos__row li { width: 200px; max-width: 18%; }
.logos__row img { width: 100%; aspect-ratio: 1; object-fit: contain; }

/* Flota */
.fleet { padding: 90px 0 162px; }
.fleet__head { display: flex; align-items: flex-end; }
.fleet__head .txt { width: 75%; }
.fleet__book { width: 25%; text-align: right; padding-bottom: 27px; }
.fleet__two, .fleet__three { display: grid; column-gap: 5.53%; }
/* minmax(0,1fr): columnas siempre iguales, sin importar el largo del nombre */
.fleet__two { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 45px; }
.fleet__three { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-top: 72px; }
.card { text-align: center; }
.card__img { display: block; overflow: hidden; }
.card__img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .6s ease; }
.card__img--tall img { aspect-ratio: 380 / 496; }
.card__img:hover img { transform: scale(1.03); }
.card h3 { margin-top: 35px; font-size: min(30px, 2.2vw); white-space: nowrap; } /* nombre en un solo renglón */
.card h3 strong { font-weight: 700; }
.divider { height: 23px; margin: 18px 0 0; border: 0; border-top: 1px solid rgba(12, 113, 195, .15); }
.card__btn { margin-top: 12px; }
/* El botón bajo el trimarán del centro queda centrado aunque sea más ancho que la foto */
.card__btn--desk { display: block; width: max-content; margin-left: 50%; transform: translateX(-50%); }
.card__btn--phone { display: none; }

/* Parallax suave como el de Divi: la foto es más alta que la franja y avanza
   al 30% de la velocidad del scroll (site.js le da el alto y el movimiento). */
.parallax { position: relative; overflow: hidden; height: 563px; }
.parallax__bg {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background-image: var(--bg-l); background-size: cover; background-position: center top;
  will-change: transform;
}

/* Preguntas frecuentes (inicio) */
.faq { padding: 0 0 180px; }
.faq__list { margin-top: 45px; }
.ftable__wrap { max-width: 100%; overflow-x: auto; }
.ftable { width: 100%; border-collapse: collapse; margin: 0 0 17px; font: 500 17px/1.4 var(--f-reg); }
.ftable th, .ftable td { padding: 10px 12px; text-align: left; border-bottom: 1px solid rgba(1, 1, 84, .15); }
.ftable thead th { font-family: var(--f-med); }
.ftable a { color: inherit; }

/* Actividades */
.acts { padding: 180px 0; }
.act { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.act + .act { margin-top: 134px; }
.act__text { width: 93%; }
.act--flip .act__text { grid-column: 2; grid-row: 1; justify-self: end; width: 86%; text-align: right; }
.act--flip .act__media { grid-column: 1; grid-row: 1; }

/* Galería que se desvanece */
.slider { position: relative; aspect-ratio: 641 / 430; overflow: hidden; background: #eef3f6; }
.slider__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.slider__slide.is-active { opacity: 1; z-index: 1; }
.slider__slide img { width: 100%; height: 100%; object-fit: cover; }
.slider__dots { position: absolute; left: 0; right: 0; bottom: 20px; z-index: 2; display: flex; justify-content: center; gap: 10px; }
.slider__dots button {
  width: 7px; height: 7px; padding: 0; border: 0; border-radius: 7px; cursor: pointer;
  background: rgba(255, 255, 255, .5);
}
.slider__dots button.is-active { background: #fff; }

/* Pie de página / contacto */
.foot { background: var(--navy); color: #fff; }
.foot__inner {
  padding-top: 90px; text-align: center;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0) 50%, rgba(0, 255, 233, .5) 100%), var(--bg-l);
  background-size: cover; background-position: center;
}
.foot__logo { width: 20%; margin: 0 auto; }
.foot__body { margin-top: 378px; }
.foot h3 { font-size: 30px; letter-spacing: 1px; }
.foot h4 { font-size: 20px; letter-spacing: 1px; }
.foot__phone {
  display: inline-block; padding: 0 60px; color: #fff; text-decoration: none;
  font: 700 60px/1.7 var(--f-bold);
}
.social { list-style: none; display: flex; justify-content: center; gap: 8px; padding: 4px 0; }
.social a { display: grid; place-items: center; width: 50px; height: 50px; color: currentColor; }
.social svg { width: 20px; height: 20px; fill: currentColor; }
.social a:hover { opacity: .7; }
.foot__copy { margin: 0; padding: 45px 0 18px; font: 500 12px/1.7 var(--f-reg); letter-spacing: 1px; }
.foot__copy a, .land__copy a { margin-left: 8px; text-decoration: underline; }

/* Página de embarcación: portada */
/* Portada del barco: las 2 fotos de la derecha siempre completas (3:2) y la grande ocupa el mismo alto */
.bhero { display: grid; grid-template-columns: 2fr 1fr; }
.bhero__main { background-image: var(--bg-l); background-size: cover; background-position: center; }
.bhero__side { display: grid; grid-template-rows: auto auto; min-height: 0; }
.bhero__cell { position: relative; overflow: hidden; min-height: 0; aspect-ratio: 3 / 2; }
.bhero__cell > img { width: 100%; height: 100%; object-fit: cover; }
.bhero__cell .slider { position: absolute; inset: 0; aspect-ratio: auto; }

/* Página de embarcación: contenido */
.boat { padding: 180px 0; }
.boat__intro { display: flex; align-items: center; }
.boat__logo { width: 25%; padding-right: 90px; }
.boat__logo img { width: 100%; }
.boat__text { width: 75%; }
.boat__text h2, .boat__lead { margin: 0; padding-bottom: 10px; font: 500 60px/1 var(--f-reg); }
.boat__acc, .boat__btns { display: grid; grid-template-columns: 1fr 3fr; margin-top: 45px; }
.boat__acc > * { grid-column: 2; }
.boat__btns { grid-template-columns: 1fr 2fr 1fr; align-items: center; }
.boat__btns .btn:first-child { grid-column: 2; justify-self: start; }
.boat__btns .btn:last-child { grid-column: 3; justify-self: end; }

/* Acordeón */
.acc__item { border-top: 1px solid rgba(1, 1, 84, .15); padding: 20px; }
.acc__item:last-child { border-bottom: 1px solid rgba(1, 1, 84, .15); }
.acc__item summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; }
.acc__item summary::-webkit-details-marker { display: none; }
.acc__item .acc__title { padding: 0 50px 0 0; font: 500 20px/1 var(--f-med); }
.acc__icon { width: 16px; height: 16px; flex: none; transition: transform .3s; }
.acc__item[open] .acc__icon { transform: rotate(45deg); }
.acc__body { padding-top: 20px; font: 500 17px/1.4 var(--f-reg); }
.acc__body ul { padding: 0 0 17px 1em; }
.acc__body p { margin: 0; padding-bottom: 17px; }
.acc__body > :last-child { padding-bottom: 0; }

/* Landing /renta-de-yates-en-mazatlan/ */
.land { padding-top: 45px; }
.land__text { position: relative; z-index: 2; } /* el título va encima de la foto */
.land__row { display: flex; align-items: flex-start; }
.land__contact { width: 38.2%; padding-top: 90px; }
.land__contact img { width: 122px; margin-bottom: 17px; }
.land__phone { display: inline-block; color: var(--navy); text-decoration: none; font: 700 min(60px, 4.1vw)/1.7 var(--f-bold); }
.land__contact .social { justify-content: flex-start; margin-left: -15px; }
/* Video junto al contacto: 60% del alto de la pantalla, como en el sitio original */
.land__photo {
  display: block; width: 58.8%; margin-left: auto; margin-top: -125px; height: 60vh; min-height: 360px;
  object-fit: cover; background: var(--navy);
}
.land__end { padding: 180px 0 0; text-align: center; }
.land__copy { margin: 0; padding: 26px 0 18px; font: 500 12px/1.7 var(--f-reg); letter-spacing: 1px; }

/* 404 */
.nf { padding: 180px 0; }

/* ---------- Tableta ---------- */
@media (max-width: 980px) {
  h1, .h1 { font-size: min(80px, 8.2vw); }
  .txt { text-align: center; }
  .hero { padding: 360px 0; }
  .intro__media { margin-top: 0; padding-bottom: 0; }
  .intro__media img { width: 100%; }
  .intro__text { padding-bottom: 45px; }
  .logos { padding: 52px 0; }
  .fleet__head { display: block; }
  .fleet__head .txt, .fleet__book { width: 100%; text-align: center; }
  .fleet__book { padding: 18px 0 0; }
  .fleet__two, .fleet__three { grid-template-columns: minmax(0, 1fr); row-gap: 30px; }
  .fleet__two { padding-top: 18px; }
  .fleet__three { padding-top: 36px; }
  .card h3 { margin-top: 29px; font-size: min(30px, 8.2vw); }
  .card__btn--desk { display: none; }
  .card__btn--phone { display: inline-block; margin-top: 30px; }
  .parallax { height: 400px; }
  .parallax__bg { background-image: var(--bgp-s); }
  .act { grid-template-columns: 1fr; }
  .act__text, .act--flip .act__text { grid-column: 1; grid-row: 1; width: 100%; justify-self: stretch; text-align: center; }
  .act__media, .act--flip .act__media { grid-column: 1; grid-row: 2; margin-top: 44px; }
  .act + .act { margin-top: 135px; }
  .foot__inner { background-image: linear-gradient(180deg, rgba(255, 255, 255, 0) 50%, rgba(0, 255, 233, .5) 100%), var(--bg-m); }
  .foot__logo { width: 30%; }
  .foot__phone { font-size: 45px; padding: 0 20px; }
  .bhero { grid-template-columns: 1fr; height: auto; }
  .bhero__main { aspect-ratio: 440 / 419; }
  .bhero__side { grid-template-rows: none; }
  .bhero__cell { aspect-ratio: 3 / 2; }
  .boat { padding: 0 0 90px; }
  .boat__intro { display: block; }
  .boat__logo { width: 45%; padding: 0; margin: 0 auto; }
  .boat__text { width: 100%; }
  .boat__text h2, .boat__lead { font-size: 40px; }
  .boat__acc, .boat__btns { grid-template-columns: 1fr; }
  .boat__acc > *, .boat__btns .btn:first-child, .boat__btns .btn:last-child { grid-column: 1; justify-self: center; }
  .boat__acc > * { justify-self: stretch; }
  .boat__btns { row-gap: 27px; }
  /* En tableta y celular el video va arriba del logotipo */
  .land__row { display: flex; flex-direction: column; }
  .land__contact { width: 100%; padding-top: 45px; }
  .land__phone { font-size: 60px; }
  .land__contact img { margin: 0 auto 17px; }
  .land__contact .social { justify-content: center; margin-left: 0; }
  .land__photo { order: -1; width: 100%; margin-top: 45px; height: 40vh; min-height: 260px; }
}

/* ---------- Teléfono ---------- */
@media (max-width: 767px) {
  h1, .h1 { font-size: min(50px, 13.5vw); }
  .topnav { padding: 18px 0 30px; }
  .topnav li { width: auto; flex: 1 1 0; }
  /* En celular el idioma va junto al menú, como un elemento más */
  .topnav--lang { display: flex; align-items: center; }
  .topnav--lang nav { flex: 1 1 auto; }
  .topnav__lang { position: static; flex: 0 0 auto; }
  .topnav a { padding: 3.6px 8px; letter-spacing: 1.5px; }
  .hero__logo img { width: 70%; }
  .intro { padding-top: 90px; }
  .logos { display: none; }
  .parallax { height: 239px; }
  .foot__inner { background-image: linear-gradient(180deg, rgba(255, 255, 255, 0) 50%, rgba(0, 255, 233, .5) 100%), var(--bgv-s); }
  .foot__logo { width: 50%; }
  .foot__body { margin-top: 315px; }
  .foot h4 { font-size: 15px; }
  .foot__phone { font-size: min(35px, 10.5vw); padding: 0; }
  .boat__text h2, .boat__lead { font-size: 25px; }
  .land__phone { font-size: min(35px, 10.5vw); }
  .land__photo { height: 30vh; min-height: 220px; }
}

/* Celulares muy angostos: botones un poco más compactos para que quepan en un renglón */
@media (max-width: 380px) {
  .btn { letter-spacing: 1px; padding: 9px 12px; }
}

@media (max-width: 767px) {
  .faq { padding-bottom: 90px; }
  .faq__list { margin-top: 27px; }
  .ftable { font-size: 14px; }
  .ftable th, .ftable td { padding: 8px 4px; }
  .faq .acc__item { padding: 20px 0; }
}
