/* =============================================
   La Serenísima — Premium Design System
   ============================================= */

:root {
  /* Earth palette */
  --earth:        #BBBEAE;
  --earth-light:  #D4D6CA;
  --earth-dark:   #9A9D8E;
  --olive:        #5C6647;
  --olive-light:  #7A8567;
  --olive-dark:   #4A5540;
  --cream:        #F7F5F0;
  --cream-dark:   #EDEAE3;
  --white:        #FDFCFA;
  --charcoal:     #2C2B28;
  --charcoal-soft:#3D3A35;
  --warm-gray:    #8A8680;
  --gold:         #A69076;

  /* Typography */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Jost', system-ui, sans-serif;

  /* Spacing scale */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  8rem;
  --space-2xl: 12rem;

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 0.6s;
}

/* Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--charcoal-soft);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

ul {
  list-style: none;
}

.container {
  width: min(1200px, 90vw);
  margin: 0 auto;
}

/* =============================================
   Typography
   ============================================= */

.section-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--olive-light);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--charcoal);
  letter-spacing: -0.01em;
}

.lead {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--charcoal-soft);
  margin-bottom: var(--space-md);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--olive);
  border-bottom: 1px solid var(--earth);
  padding-bottom: 4px;
  transition: color var(--duration) var(--ease-out),
              border-color var(--duration) var(--ease-out);
}

.link-arrow::after {
  content: '→';
  transition: transform var(--duration) var(--ease-out);
}

.link-arrow:hover {
  color: var(--olive-dark);
  border-color: var(--olive);
}

.link-arrow:hover::after {
  transform: translateX(4px);
}

/* =============================================
   Navigation
   ============================================= */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 0;
  transition: background var(--duration) var(--ease-out),
              padding var(--duration) var(--ease-out),
              backdrop-filter var(--duration) var(--ease-out);
}

.nav--scrolled {
  background: rgba(247, 245, 240, 0.92);
  backdrop-filter: blur(12px);
  padding: 1rem 0;
  border-bottom: 1px solid var(--earth-light);
}

.nav__inner {
  width: min(1200px, 90vw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--white);
  transition: color var(--duration) var(--ease-out);
}

.nav--scrolled .nav__logo {
  color: var(--charcoal);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav__links a {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--duration) var(--ease-out);
}

.nav--scrolled .nav__links a {
  color: var(--charcoal-soft);
}

.nav__links a:hover {
  color: var(--white);
}

.nav--scrolled .nav__links a:hover {
  color: var(--olive);
}

.nav__cta {
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  padding: 0.6rem 1.5rem !important;
  transition: background var(--duration) var(--ease-out),
              border-color var(--duration) var(--ease-out) !important;
}

.nav__cta:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.7) !important;
}

.nav--scrolled .nav__cta {
  border-color: var(--olive) !important;
  color: var(--olive) !important;
}

.nav--scrolled .nav__cta:hover {
  background: var(--olive);
  color: var(--white) !important;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--white);
  transition: background var(--duration) var(--ease-out);
}

.nav--scrolled .nav__toggle span {
  background: var(--charcoal);
}

/* =============================================
   Hero
   ============================================= */

.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: heroZoom 20s var(--ease-out) forwards;
}

@keyframes heroZoom {
  to { transform: scale(1); }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(44, 43, 40, 0.35) 0%,
    rgba(44, 43, 40, 0.15) 40%,
    rgba(44, 43, 40, 0.45) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 0 var(--space-md);
}

.hero__eyebrow {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: var(--space-md);
  animation: fadeUp 1s var(--ease-out) 0.3s both;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  line-height: 1;
  margin-bottom: var(--space-md);
  animation: fadeUp 1s var(--ease-out) 0.5s both;
}

.hero__subtitle {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 300;
  font-style: italic;
  opacity: 0.9;
  line-height: 1.6;
  margin-bottom: var(--space-lg);
  animation: fadeUp 1s var(--ease-out) 0.7s both;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  animation: fadeUp 1s var(--ease-out) 0.9s both;
}

.hero__book {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--charcoal);
  background: var(--cream);
  padding: 0.9rem 2.5rem;
  transition: background var(--duration) var(--ease-out),
              color var(--duration) var(--ease-out);
}

.hero__book:hover {
  background: var(--white);
}

.hero__scroll {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: color var(--duration) var(--ease-out);
}

.hero__scroll:hover {
  color: var(--white);
}

.hero__scroll svg {
  animation: bounce 2s ease-in-out infinite;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* =============================================
   Intro
   ============================================= */

.intro {
  padding: var(--space-2xl) 0;
  background: var(--cream);
}

.intro__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.intro__body p {
  margin-bottom: var(--space-md);
  color: var(--warm-gray);
}

.intro__body p:last-child {
  margin-bottom: 0;
}

/* =============================================
   Full-bleed Image
   ============================================= */

.fullbleed {
  position: relative;
  height: 70vh;
  min-height: 400px;
  overflow: hidden;
}

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

.fullbleed__caption {
  position: absolute;
  bottom: var(--space-lg);
  left: var(--space-lg);
  color: var(--white);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.8;
}

/* =============================================
   Amenities
   ============================================= */

.amenities {
  padding: var(--space-2xl) 0;
  background: var(--white);
}

.amenities .section-title {
  margin-bottom: var(--space-xl);
}

.amenities__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.amenity {
  padding-top: var(--space-md);
  border-top: 1px solid var(--earth-light);
}

.amenity__number {
  display: block;
  font-family: var(--font-serif);
  font-size: 0.85rem;
  color: var(--earth-dark);
  margin-bottom: var(--space-sm);
}

.amenity h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: var(--space-sm);
}

.amenity p {
  font-size: 0.9rem;
  color: var(--warm-gray);
  line-height: 1.7;
}

/* =============================================
   Cabins
   ============================================= */

.cabins {
  padding: var(--space-2xl) 0;
  background: var(--cream);
}

.cabins .section-title {
  margin-bottom: var(--space-xl);
}

.cabins__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.cabin {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-lg);
  align-items: center;
  width: min(1200px, 90vw);
  margin: 0 auto;
}

.cabin--reverse {
  direction: rtl;
}

.cabin--reverse > * {
  direction: ltr;
}

.cabin__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.cabin__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}

.cabin__media:hover img {
  transform: scale(1.04);
}

.cabin__info {
  padding: var(--space-md) 0;
}

.cabin__tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--olive-light);
  border: 1px solid var(--earth);
  padding: 0.35rem 0.85rem;
  margin-bottom: var(--space-sm);
}

.cabin__info h3 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--charcoal);
  margin-bottom: var(--space-md);
}

.cabin__features {
  margin-bottom: var(--space-md);
}

.cabin__features li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.9rem;
  color: var(--warm-gray);
  margin-bottom: 0.5rem;
}

.cabin__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 5px;
  height: 1px;
  background: var(--earth-dark);
}

/* =============================================
   Gallery
   ============================================= */

.gallery {
  padding: var(--space-2xl) 0 var(--space-xl);
  background: var(--white);
}

.gallery .section-title {
  margin-bottom: var(--space-xl);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  width: 100%;
}

.gallery__item {
  aspect-ratio: 1;
  overflow: hidden;
}

.gallery__item--wide {
  grid-column: span 2;
  aspect-ratio: 2 / 1;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}

.gallery__item:hover img {
  transform: scale(1.05);
}

/* =============================================
   Tapalpa
   ============================================= */

.tapalpa {
  background: var(--cream);
}

.tapalpa__hero {
  position: relative;
  height: 60vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.tapalpa__hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tapalpa__hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(44, 43, 40, 0.4);
}

.tapalpa__hero-text {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
}

.tapalpa__hero-text h2 {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 300;
  margin-bottom: var(--space-sm);
}

.tapalpa__hero-text p {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 300;
  font-style: italic;
  opacity: 0.9;
}

.tapalpa__hero-text .section-eyebrow {
  color: rgba(255, 255, 255, 0.7);
}

.tapalpa__places {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  padding: var(--space-xl) 0 var(--space-2xl);
}

.place {
  padding: var(--space-md) 0;
  border-top: 1px solid var(--earth);
}

.place h3 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: var(--space-sm);
}

.place p {
  font-size: 0.9rem;
  color: var(--warm-gray);
  line-height: 1.7;
}

/* =============================================
   Contact
   ============================================= */

.contact {
  padding: var(--space-2xl) 0;
  background: var(--olive-dark);
  color: var(--cream);
}

.contact .section-eyebrow {
  color: var(--earth);
}

.contact .section-title {
  color: var(--white);
}

.contact .lead {
  color: var(--earth-light);
  margin-bottom: var(--space-md);
}

.btn-booking {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--olive-dark);
  background: var(--cream);
  padding: 1rem 2.5rem;
  margin-bottom: var(--space-lg);
  transition: background var(--duration) var(--ease-out);
}

.btn-booking:hover {
  background: var(--white);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact__link {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: opacity var(--duration) var(--ease-out);
}

a.contact__link:hover {
  opacity: 0.75;
}

.contact__label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--earth);
}

.contact__link span:last-child {
  font-size: 1.05rem;
  color: var(--white);
}

/* Form */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--earth);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(187, 190, 174, 0.25);
  padding: 0.85rem 1rem;
  outline: none;
  transition: border-color var(--duration) var(--ease-out);
  -webkit-appearance: none;
  border-radius: 0;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--earth);
}

.form-group select {
  cursor: pointer;
  color: rgba(255, 255, 255, 0.6);
}

.form-group select option {
  background: var(--olive-dark);
  color: var(--white);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-primary {
  align-self: flex-start;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--olive-dark);
  background: var(--cream);
  border: none;
  padding: 1rem 2.5rem;
  cursor: pointer;
  transition: background var(--duration) var(--ease-out),
              color var(--duration) var(--ease-out);
}

.btn-primary:hover {
  background: var(--white);
}

/* =============================================
   Footer
   ============================================= */

.footer {
  padding: var(--space-lg) 0;
  background: var(--charcoal);
  color: var(--warm-gray);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  text-align: center;
}

.footer__logo {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--cream);
  letter-spacing: 0.04em;
}

.footer__brand p {
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

.footer__links {
  display: flex;
  gap: var(--space-md);
}

.footer__links a {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color var(--duration) var(--ease-out);
}

.footer__links a:hover {
  color: var(--cream);
}

.footer__copy {
  font-size: 0.75rem;
  opacity: 0.5;
}

/* =============================================
   Scroll Reveal
   ============================================= */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease-out),
              transform 0.8s var(--ease-out);
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   Responsive
   ============================================= */

@media (max-width: 1024px) {
  .amenities__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .cabin,
  .cabin--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .contact__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .tapalpa__places {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --space-xl: 5rem;
    --space-2xl: 7rem;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--cream);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: right var(--duration) var(--ease-out);
  }

  .nav__links--open {
    right: 0;
  }

  .nav__links a {
    color: var(--charcoal) !important;
    font-size: 0.9rem;
  }

  .nav__cta {
    border-color: var(--olive) !important;
    color: var(--olive) !important;
  }

  .nav__logo {
    color: var(--white);
    z-index: 101;
  }

  .nav--scrolled .nav__logo,
  .nav--menu-open .nav__logo {
    color: var(--charcoal);
  }

  .amenities__grid {
    grid-template-columns: 1fr;
  }

  .gallery__grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery__item--wide {
    grid-column: span 2;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .fullbleed__caption {
    left: var(--space-md);
    bottom: var(--space-md);
  }
}

@media (max-width: 480px) {
  .gallery__grid {
    grid-template-columns: 1fr;
  }

  .gallery__item--wide {
    grid-column: span 1;
    aspect-ratio: 4 / 3;
  }
}


/* Botón flotante WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 65px;
    height: 65px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.5);
    background-color: #20b858;
}

/* Efecto de pulso */
.whatsapp-float::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #25D366;
    border-radius: 50%;
    z-index: -1;
    animation: pulse 2s infinite;
    opacity: 0.4;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.4; }
    70% { transform: scale(1.6); opacity: 0; }
    100% { transform: scale(1.8); opacity: 0; }
}

/* Icono de Font Awesome (si no lo tienes, usa la versión alternativa abajo) */
.fab.fa-whatsapp {
    font-size: 38px;
}


.btn-enviar {
    background-color: #25D366;
    color: white;
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
}
.btn-enviar:hover {
    background-color: #20b858;
    transform: translateY(-2px);
}
