/* ==========================================================================
   COMPONENTS.CSS
   Componentes de interfaz reutilizables en toda la página.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. HEADER / NAVEGACIÓN
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  padding-block: 0.8rem;
  transition: background-color 0.35s var(--ease-standard), padding 0.35s var(--ease-standard), box-shadow 0.35s var(--ease-standard);
  background-color: rgba(251, 248, 242, 0.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(15, 61, 62, 0.08);

}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.header.is-scrolled {
  background-color: rgba(251, 248, 242, 0.94);
  backdrop-filter: blur(10px);
  padding-block: 0.6rem;
  box-shadow: 0 8px 24px rgba(15, 61, 62, 0.08);
}

.header__logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-cream);
  letter-spacing: 0.01em;
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
}

.header.is-scrolled .header__logo {
  color: var(--color-ocean-deep);
}

.header__logo span {
  font-family: var(--font-body);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 400;
  opacity: 0.75;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.header__links {
  display: flex;
  gap: 1.6rem;
}

.header__links a {
  font-size: 0.85rem;
  font-weight: 500;
  color:var(--color-ink);
  /*color: var(--color-cream);*/
  position: relative;
  padding-block: 0.2rem;
}

.header.is-scrolled .header__links a {
  color: var(--color-ink);
}

.header__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.25s var(--ease-standard);
}

.header__links a:hover::after {
  width: 100%;
}

.header__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.4rem;
}

.header__toggle span {
  width: 22px;
  height: 2px;
  background: var(--color-sand-dark);
  transition: background-color 0.3s;
}

.header.is-scrolled .header__toggle span {
  background: var(--color-ocean-deep);
}


.header__logo-img {
  height: 60px;
  width: auto;
  display: block;
  transition: height 0.3s var(--ease-standard);
}

.header.is-scrolled .header__logo-img { height: 50px; }
.header.is-scrolled .header__logo-img--dark  { display: block; }

/* --------------------------------------------------------------------------
   2. SELECTOR DE IDIOMA
   -------------------------------------------------------------------------- */
.lang-switch {
  display: flex;
  align-items: center;
  /*border: 1px solid rgba(251, 248, 242, 0.5);*/
  border: 1px solid rgba(251, 248, 242, 0.5); 
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
  border-color: var(--color-sand-dark);

}

.header.is-scrolled .lang-switch {
  border-color: var(--color-sand-dark);
}

.lang-switch button {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
 /* color: var(--color-cream);*/
  color: var(--color-ocean-deep);

  transition: background-color 0.25s var(--ease-standard), color 0.25s var(--ease-standard);
}

.header.is-scrolled .lang-switch button {
  /*color: var(--color-ocean-deep);*/
  border-color: var(--color-sand-dark);

}

.lang-switch button[aria-pressed="true"] {
  background-color: var(--color-coral);
  color: var(--color-white);
}

/* --------------------------------------------------------------------------
   3. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--color-cream);
  overflow: hidden;
  background: linear-gradient(160deg, #0B2E2F 0%, #14514F 45%, #1E6A62 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 18% 15%, rgba(232, 114, 76, 0.25), transparent 55%),
    radial-gradient(ellipse at 85% 78%, rgba(220, 234, 230, 0.18), transparent 50%);
  pointer-events: none;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(11, 46, 47, 0.55) 0%, rgba(11, 46, 47, 0.32) 45%, rgba(11, 46, 47, 0.78) 100%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-bottom: var(--space-xl);
  max-width: 780px;
}

.hero h1 {
  font-size: var(--fs-hero);
  color: var(--color-cream);
  font-weight: 500;
}

.hero h1 em {
  font-style: italic;
  color: var(--color-sand-dark);
}

.hero p {
  margin-top: var(--space-sm);
  max-width: 50ch;
  font-size: 1.08rem;
  color: var(--color-ocean-mist);
}

.hero__actions {
  margin-top: var(--space-md);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__scroll-cue {
  position: absolute;
  right: var(--space-md);
  bottom: var(--space-md);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--fs-caption);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-sand-dark);
}

.hero__scroll-cue::after {
  content: "";
  width: 1px;
  height: 42px;
  background: linear-gradient(var(--color-sand-dark), transparent);
  animation: scroll-cue 2.4s ease-in-out infinite;
}

@keyframes scroll-cue {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* --------------------------------------------------------------------------
   4. TIRA DE TESTIMONIOS (marquee continuo, contenido estático en HTML)
   -------------------------------------------------------------------------- */
.marquee {
  background: var(--color-sand-dark);
  padding-block: 1.1rem;
  overflow: hidden;
  white-space: nowrap;
}

.marquee__track {
  display: inline-flex;
  gap: 3rem;
  animation: marquee-scroll 34s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--color-ocean-deep);
}

.marquee__item svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   5. PLACEHOLDERS DE FOTOGRAFÍA
   -------------------------------------------------------------------------- */
.photo-ph {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: rgba(255, 255, 255, 0.85);
  min-height: 220px;
}

.photo-ph svg {
  width: 32px;
  height: 32px;
  opacity: 0.7;
}

/* Cuando un .photo-ph contiene una <img> real (en vez del ícono de cámara),
   la foto llena todo el bloque y se recorta según su aspect-ratio, sin
   deformarse en ningún tamaño de pantalla. El div sigue controlando el
   tamaño/proporción/bordes redondeados — la imagen solo "rellena". */
.photo-ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.photo-ph--mare    { background: linear-gradient(135deg, #123F3D, var(--accent-mare)); }
.photo-ph--terra   { background: linear-gradient(135deg, #5B4A2A, var(--accent-terra)); }
.photo-ph--mykonos { background: linear-gradient(135deg, #163C52, var(--accent-mykonos)); }
.photo-ph--refugio { background: linear-gradient(135deg, #22331F, var(--accent-refugio)); }
.photo-ph--brand   { background: linear-gradient(135deg, #0F3D3E, #1B5C56); }

/* --------------------------------------------------------------------------
   6. FAQ (acordeón)
   -------------------------------------------------------------------------- */
.faq {
  max-width: 820px;
  margin-inline: auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-sand-dark);
}

.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.3rem;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--color-ocean-deep);
}

.faq-item__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  position: relative;
}

.faq-item__icon::before,
.faq-item__icon::after {
  content: "";
  position: absolute;
  background: var(--color-coral);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-standard);
}

.faq-item__icon::before {
  top: 50%; left: 0;
  width: 100%; height: 2px;
  transform: translateY(-50%);
}

.faq-item__icon::after {
  left: 50%; top: 0;
  height: 100%; width: 2px;
  transform: translateX(-50%);
}

.faq-item.is-open .faq-item__icon::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.faq-item__answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s var(--ease-standard);
}

.faq-item__answer p {
  padding-bottom: 1.3rem;
  max-width: 62ch;
  opacity: 0.85;
  font-size: 0.95rem;
}

/* Al cargar, cada respuesta ya es legible en el HTML (accesible sin JS);
   la clase .is-open solo controla la animación de apertura/cierre visual */
.faq-item.is-open .faq-item__answer {
  max-height: 320px;
}

/* --------------------------------------------------------------------------
   7. CTA FINAL / CONTACTO
   -------------------------------------------------------------------------- */
.cta-banner {
  text-align: center;
  padding-block: var(--space-xl);
  background: linear-gradient(160deg, #0B2E2F, #1E6A62);
  color: var(--color-cream);
}

.cta-banner h2 {
  color: var(--color-cream);
  max-width: 22ch;
  margin-inline: auto;
}

.cta-banner p {
  margin-top: var(--space-sm);
  opacity: 0.8;
  max-width: 50ch;
  margin-inline: auto;
}

.cta-banner__actions {
  margin-top: var(--space-md);
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-details {
  margin-top: var(--space-md);
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
  font-size: 0.9rem;
  opacity: 0.85;
}

.contact-details strong {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.7;
  margin-bottom: 0.3rem;
}

/* --------------------------------------------------------------------------
   8. FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background: var(--color-ocean-deep);
  color: var(--color-ocean-mist);
  padding-block: var(--space-lg) var(--space-md);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-md);
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--color-cream);
}

.footer__grid p {
  margin-top: 0.8rem;
  font-size: 0.88rem;
  max-width: 32ch;
  opacity: 0.75;
}

.footer h4 {
  color: var(--color-cream);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.9rem;
}

.footer li + li {
  margin-top: 0.55rem;
}

.footer a {
  font-size: 0.9rem;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.footer a:hover {
  opacity: 1;
}

.footer__social {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.9rem;
}

.footer__social a {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(251, 248, 242, 0.3);
  font-size: 0.7rem;
}

.footer__bottom {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(251, 248, 242, 0.15);
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  opacity: 0.6;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* --------------------------------------------------------------------------
   9. LIGHTBOX (galería ampliada)
   -------------------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: rgba(15, 23, 20, 0.92);
  padding: var(--space-md);
}

.lightbox.is-open {
  display: flex;
}

.lightbox__frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: min(920px, 92vw);
  max-height: 68vh;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-ocean-deep);
}

.lightbox__frame img {
  max-width: 100%;
  max-height: 68vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.lightbox__nav:hover { background: rgba(255, 255, 255, 0.24); }
.lightbox__nav svg { width: 22px; height: 22px; }
.lightbox__nav--prev { left: 1rem; }
.lightbox__nav--next { right: 1rem; }

.lightbox__footer {
  margin-top: 1rem;
  width: min(720px, 92vw);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--color-cream);
}

.lightbox__play {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__play svg { width: 18px; height: 18px; }

.lightbox__caption {
  flex: 1;
  font-size: 0.88rem;
  opacity: 0.85;
  min-height: 1.2em;
}

.lightbox__counter {
  font-size: 0.78rem;
  opacity: 0.6;
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .lightbox__nav { width: 38px; height: 38px; }
  .lightbox__nav--prev { left: 0.4rem; }
  .lightbox__nav--next { right: 0.4rem; }
}


/* --------------------------------------------------------------------------
   10. BOTÓN FLOTANTE DE WHATSAPP
   -------------------------------------------------------------------------- */
.whatsapp-fab {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 250;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--color-whatsapp);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
  transition: transform 0.25s var(--ease-standard);
}

.whatsapp-fab:hover {
  transform: scale(1.07);
}

.whatsapp-fab svg {
  width: 28px;
  height: 28px;
}

.whatsapp-fab::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--color-whatsapp);
  animation: whatsapp-pulse 2.6s ease-out infinite;
  z-index: -1;
}

@keyframes whatsapp-pulse {
  0%   { transform: scale(1);   opacity: 0.55; }
  100% { transform: scale(1.9); opacity: 0; }
}

.whatsapp-fab__tooltip {
  position: fixed;
  right: 5.4rem;
  bottom: 1.9rem;
  z-index: 250;
  background: var(--color-ocean-deep);
  color: var(--color-cream);
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  font-size: 0.82rem;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(6px);
  pointer-events: none;
  transition: opacity 0.25s var(--ease-standard), transform 0.25s var(--ease-standard);
}

.whatsapp-fab__tooltip.is-visible {
  opacity: 1;
  transform: translateX(0);
}
