@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --navy: #181A31;
  --teal: #30B5AC;
  --ink: #202238;
  --muted: #606060;
  --cream: #f8f8f3;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'DM Sans', Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
}

button, a, summary {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 3px solid #167e7b;
  outline-offset: 5px;
}

/* ==========================================
   HEADER Y NAVEGACIÓN
   ========================================== */
header {
  height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 6%;
  background: #fff;
  border-bottom: 1px solid #e9ebe7;
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand img {
  width: 125px;
  height: 95px;
  object-fit: contain;
}

nav {
  display: flex;
  gap: 34px;
  font-size: 17px;
}

nav a:hover {
  color: #30B5AC;
}

/* Botón hamburguesa (Oculto por defecto en escritorio) */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--navy);
  padding: 4px;
}

/* ==========================================
   BOTONES GENERALES
   ========================================== */
.button {
  display: inline-flex;
  align-items: center;
  gap: 30px;
  padding: 18px 25px;
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border: 0;
  border-radius: 7px;
  transition: transform .2s, background .2s;
}

.button:hover {
  background: #096c6a;
  transform: translateY(-2px);
}

.button.small {
  padding: 14px 20px;
  font-size: 17px;
}

/* ==========================================
   HERO / SECCIÓN PRINCIPAL
   ========================================== */
.hero {
  max-width: 1440px;
  min-height: 650px;
  margin: auto;
  padding: 72px 6% 66px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  overflow: hidden;
  gap: 40px;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 700;
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 0 0 24px;
}

.eyebrow > span {
  width: 7px;
  height: 7px;
  background: var(--teal);
  border-radius: 50%;
}

h1, h2, h3 {
  font-family: 'Manrope', Arial, sans-serif;
}

h1 {
  font-size: clamp(42px, 4.5vw, 70px);
  letter-spacing: -3px;
  line-height: 1.12;
  margin: 0 0 25px;
  font-weight: 800;
}

em {
  font-family: Georgia, serif;
  font-weight: 400;
  color: #30B5AC;
}

h1 em {
  font-size: 1.13em;
}

.lead {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 28px;
}

.hero-note {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 35px;
  font-size: 16px;
  font-weight: 700;
}

.hero-note div > span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  margin-top: 4px;
}

.compass {
  font-size: 38px;
  color: var(--teal);
}

.hero-art {
  position: relative;
  min-height: 510px;
}

.orbit {
  position: absolute;
  inset: 20px -30px 15px 5px;
  border: 1px dashed #b5cfca;
  border-radius: 50%;
  transform: rotate(-20deg);
}

.photo {
  position: absolute;
  overflow: hidden;
  border-radius: 140px 140px 16px 16px;
  box-shadow: 0 20px 45px #1b1c3420;
  border: 7px solid #fff;
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo.large {
  width: 64%;
  height: 460px;
  top: 0;
  right: 3%;
  transform: rotate(7deg);
}

.photo.large > span {
  position: absolute;
  bottom: 24px;
  left: 14px;
  background: #fff;
  padding: 10px 14px;
  border-radius: 30px;
  font-size: 12px;
}

.photo.front {
  width: 45%;
  height: 300px;
  left: 0;
  bottom: 4px;
  transform: rotate(-9deg);
  border-radius: 90px 90px 14px 14px;
}

.travel-stamp {
  position: absolute;
  top: 35px;
  left: 0;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: #d9ede1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 9px;
  letter-spacing: 1px;
  transform: rotate(-12deg);
}

.travel-stamp strong {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 19px;
  letter-spacing: 0;
  margin: 6px 0;
}

.travel-stamp span {
  font-size: 23px;
  color: #168d89;
}

.vertical-label {
  position: absolute;
  right: -26px;
  top: 165px;
  writing-mode: vertical-rl;
  letter-spacing: 2px;
  font-size: 9px;
}

.ribbon {
  background: var(--navy);
  color: white;
  display: flex;
  gap: 35px;
  justify-content: center;
  padding: 25px 20px;
  font-size: 15px;
  flex-wrap: wrap;
}

.ribbon b {
  color: var(--teal);
}

/* ==========================================
   SECCIONES Y TARJETAS
   ========================================== */
.section {
  padding: 86px 6%;
  max-width: 1440px;
  margin: auto;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 25px;
}

h2 {
  font-size: clamp(32px, 3.2vw, 47px);
  letter-spacing: -1.8px;
  line-height: 1.2;
  margin: 0;
}

.section-heading > p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.filters {
  display: flex;
  gap: 10px;
  margin: 35px 0 27px;
  flex-wrap: wrap;
}

.filters button {
  border: 1px solid #d6dcd8;
  border-radius: 30px;
  padding: 10px 18px;
  background: transparent;
  color: var(--ink);
  font-size: 18px;
}

.filters .active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.card[hidden] {
  display: none;
}

.card-image {
  width: 100%;
  height: 305px;
  display: block;
  position: relative;
  padding: 0;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #d9e6df;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}

.card-image:hover img {
  transform: scale(1.05);
}

.card-image > span {
  position: absolute;
  top: 14px;
  left: 12px;
  background: #fffffff2;
  padding: 7px 9px;
  border-radius: 20px;
  font-size: 8px;
  letter-spacing: 1px;
}

.card-image i {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-style: normal;
}

.card-body h3 {
  font-size: 19px;
  margin: 18px 0 8px;
  letter-spacing: -.6px;
}

.card-body p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  min-height: 38px;
}

.text-link {
  font-size: 16px;
  font-weight: 700;
  padding: 10px 0;
  border: 0;
  background: none;
  display: inline-flex;
  gap: 20px;
  align-items: center;
}

.text-link:hover {
  color: #30B5AC;
}

.availability {
  text-align: center;
  color: var(--muted);
  font-size: 18px;
  margin: 35px 0 0;
}

/* ==========================================
   SECCIÓN NOSOTROS (ABOUT)
   ========================================== */
.about {
  background: #e9eeE6;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
  max-width: none;
}

.about-pictures {
  height: 410px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  max-width: 520px;
  margin: auto;
}

.about-pictures img {
  width: 48%;
  height: 335px;
  object-fit: cover;
  border-radius: 100px 100px 9px 9px;
}

.about-pictures img:nth-child(2) {
  transform: translateY(35px);
  border-radius: 9px 9px 100px 100px;
}

.picture-label {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: #fff;
  padding: 13px 18px;
  font-size: 11px;
  transform: rotate(-5deg);
  box-shadow: 0 8px 20px #0001;
}

.about-copy {
  max-width: 510px;
}

.about-copy > p:not(.eyebrow) {
  font-size: 14px;
  color: #59625e;
  line-height: 1.9;
}

.about-copy h2 {
  margin-bottom: 24px;
}

/* ==========================================
   PASOS Y PREGUNTAS (FAQ)
   ========================================== */
.steps {
  text-align: center;
}

.steps .eyebrow {
  justify-content: center;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: left;
  margin-top: 44px;
  gap: 55px;
}

.step-grid > div {
  border-top: 1px solid #d6dcd8;
  padding-top: 22px;
}

.step-grid span {
  color: #168d89;
  font-size: 13px;
}

.step-grid h3 {
  font-size: 19px;
}

.step-grid p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.faq {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 70px;
  padding-top: 30px;
}

.questions details {
  border-bottom: 1px solid #d6dcd8;
  padding: 22px 0;
}

.questions summary {
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

.questions summary:after {
  content: '+';
  color: #168d89;
  font-size: 18px;
}

.questions details[open] summary:after {
  content: '−';
}

.questions p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
}

.questions a {
  text-decoration: underline;
}

/* ==========================================
   CTA Y FOOTER
   ========================================== */
.cta {
  margin: 0 6% 70px;
  background: #afe0d8;
  border-radius: 16px;
  padding: 55px 7%;
  position: relative;
  overflow: hidden;
}

.cta h2 {
  font-size: 54px;
}

.cta > p:not(.eyebrow) {
  font-size: 14px;
  margin: 22px 0;
}

.cta-star {
  position: absolute;
  right: 8%;
  top: 55px;
  font-size: 230px;
  line-height: 1;
  color: #1b1c34;
  transform: rotate(15deg);
}

footer {
  padding: 28px 6%;
  border-top: 1px solid #ddd;
  display: flex;
  align-items: center;
  gap: 30px;
  background: #fff;
  font-size: 16px;
}

footer p {
  line-height: 1.8;
}

footer p span {
  color: var(--muted);
}

footer > a:last-child {
  margin-left: auto;
}

/* ==========================================
   MODAL (DIALOG)
   ========================================== */
dialog {
  border: 0;
  border-radius: 18px;
  padding: 45px;
  max-width: 530px;
  width: calc(100% - 32px);
  color: var(--ink);
  background: var(--cream);
}

dialog::backdrop {
  background: #141b2cc9;
  backdrop-filter: blur(5px);
}

dialog h2 {
  font-size: 36px;
}

dialog > p:not(.eyebrow) {
  line-height: 1.8;
  color: var(--muted);
}

.dialog-note {
  font-size: 13px;
  line-height: 1.8;
  padding: 18px;
  background: #e6eee8;
  border-radius: 10px;
  margin: 25px 0;
}

.close {
  position: absolute;
  right: 15px;
  top: 10px;
  border: 0;
  background: none;
  font-size: 30px;
  color: var(--ink);
}

/* ==========================================
   BOTÓN FLOTANTE DE WHATSAPP
   ========================================== */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 900;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px #1b1c3433;
  transition: transform .3s ease, box-shadow .3s ease;
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
}

/* Anillo de pulso alrededor del botón (no interfiere con la sombra base) */
.whatsapp-float::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 #25d36699;
  animation: whatsapp-pulse 2.4s ease-out infinite;
  pointer-events: none;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 30px #1b1c3440;
}

@keyframes whatsapp-pulse {
  70% {
    box-shadow: 0 0 0 18px #25d36600;
  }
  100% {
    box-shadow: 0 0 0 0 #25d36600;
  }
}

@media(max-width: 650px) {
  .whatsapp-float {
    width: 52px;
    height: 52px;
    right: 16px;
    bottom: 16px;
  }
  .whatsapp-float svg {
    width: 27px;
    height: 27px;
  }
}

/* Desactivar la animación de pulso para usuarios que prefieren menos movimiento */
@media(prefers-reduced-motion: reduce) {
  .whatsapp-float::after {
    animation: none;
  }
}

/* ==========================================
   MEDIA QUERIES (RESPONSIVE)
   ========================================== */
@media(min-width: 1500px) {
  .about {
    padding-left: calc((100% - 1268px)/2);
    padding-right: calc((100% - 1268px)/2);
  }
}

@media(max-width: 950px) {
  nav {
    gap: 18px;
  }
  .hero {
    gap: 15px;
  }
  .hero-art {
    min-height: 460px;
  }
  .photo.large {
    height: 400px;
  }
  .photo.front {
    height: 255px;
  }
  .travel-stamp {
    width: 105px;
    height: 105px;
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .card-image {
    height: 370px;
  }
  .about {
    gap: 30px;
  }
  .cta-star {
    font-size: 160px;
    right: 4%;
    top: 100px;
  }
  .hero h1 {
    letter-spacing: -2px;
  }
}

@media(max-width: 650px) {
  header {
    height: 84px;
    padding: 9px 5%;
  }

  .brand img {
    width: 82px;
    height: 65px;
  }

  /* Mostrar botón hamburguesa en móviles */
  .menu-toggle {
    display: block;
  }

  /* Ocultar menú de navegación por defecto y estructurarlo como desplegable */
  header nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #1b1c34;
    flex-direction: column;
    padding: 1.5rem 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 1000;
  }

  /* Estilos de los enlaces dentro del menú móvil desplegado */
  header nav a {
    color: #fff;
    font-size: 16px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  /* Clase que activa el menú móvil mediante JavaScript */
  header nav.is-active {
    display: flex;
  }

  .button.small {
    font-size: 11px;
    padding: 12px;
    gap: 10px;
  }
  .hero {
    padding: 38px 6% 35px;
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .hero h1 {
    font-size: 45px;
  }
  .lead {
    font-size: 14px;
  }
  .hero-note {
    margin-top: 22px;
  }
  .hero-art {
    height: 390px;
    min-height: 390px;
    max-width: 390px;
    width: 100%;
    margin: auto;
  }
  .photo.large {
    height: 355px;
    width: 60%;
    right: 5%;
  }
  .photo.front {
    height: 240px;
    width: 44%;
    left: 4%;
  }
  .travel-stamp {
    top: 15px;
    left: 9%;
  }
  .vertical-label {
    right: -5px;
    top: 100px;
  }
  .ribbon {
    gap: 15px;
    font-size: 10px;
    padding: 18px 15px;
  }
  .ribbon span:last-child, .ribbon b:last-of-type {
    display: none;
  }
  .section {
    padding: 55px 6%;
  }
  .section-heading {
    display: block;
  }
  .section-heading > p br {
    display: none;
  }
  .eyebrow {
    font-size: 9px;
    margin-bottom: 18px;
  }
  .filters {
    gap: 7px;
    margin-top: 25px;
  }
  .filters button {
    font-size: 10px;
    padding: 9px 12px;
  }
  .cards {
    gap: 15px;
  }
  .card-image {
    height: 235px;
  }
  .card-image > span {
    font-size: 7px;
    top: 9px;
    left: 7px;
    padding: 6px;
  }
  .card-body h3 {
    font-size: 16px;
  }
  .card-body p {
    font-size: 11px;
  }
  .text-link {
    font-size: 11px;
    gap: 8px;
  }
  .about {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .about-pictures {
    height: 340px;
  }
  .about-pictures img {
    height: 285px;
  }
  .about-copy h2 {
    font-size: 34px;
  }
  .step-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }
  .step-grid h3 {
    margin: 10px 0;
  }
  .step-grid p {
    margin: 0;
  }
  .faq {
    grid-template-columns: 1fr;
    gap: 15px;
    padding-top: 10px;
  }
  .cta {
    margin: 0 5% 35px;
    padding: 35px 7%;
  }
  .cta h2 {
    font-size: 39px;
  }
  .cta-star {
    font-size: 80px;
    right: 12px;
    top: 85px;
    opacity: .18;
  }
  .cta .button {
    font-size: 12px;
    position: relative;
    z-index: 1;
  }
  footer {
    flex-wrap: wrap;
    gap: 15px;
  }
  footer > a:last-child {
    margin-left: 0;
    width: 100%;
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 15px;
  }
  dialog {
    padding: 38px 24px;
  }
  .desktop {
    display: none;
  }
}

@media(prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}