/* ============================================================
   Cabañas Del Ángel — Capilla del Monte, Córdoba
   Premium Serrano Landing Page Stylesheet
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  /* Backgrounds */
  --bg-primary: #FBF9F6;
  --bg-dark: #1A1209;
  --bg-section-alt: #F0EBE3;
  --bg-warm: #E8DFD2;

  /* Accents */
  --accent-gold: #C4930A;
  --accent-gold-light: #E2B93B;
  --accent-gold-glow: rgba(196, 147, 10, .25);
  --accent-green: #2D5016;
  --accent-green-light: #4A7C30;

  /* Text */
  --text-primary: #2C1810;
  --text-secondary: #6B5744;
  --text-light: #F5F0EB;

  /* WhatsApp */
  --whatsapp: #25D366;
  --whatsapp-dark: #128C7E;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', 'Segoe UI', system-ui, sans-serif;

  /* Layout */
  --container-max: 1200px;
  --header-height: 72px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-card: 0 2px 12px rgba(44, 24, 16, .06), 0 8px 32px rgba(44, 24, 16, .08);
  --shadow-card-hover: 0 8px 28px rgba(44, 24, 16, .12), 0 16px 48px rgba(44, 24, 16, .10);
  --shadow-hero-text: 0 2px 8px rgba(0,0,0,.5), 0 0 40px rgba(0,0,0,.15);
  --transition-base: .3s cubic-bezier(.4, 0, .2, 1);
}

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

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
}

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

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

ul, ol { list-style: none; }

/* ---------- Utility ---------- */
.container {
  width: 90%;
  max-width: var(--container-max);
  margin-inline: auto;
}

/* ---------- Typography ---------- */
.section-header {
  margin-bottom: 48px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-title::after {
  content: '';
  display: block;
  width: 70px;
  height: 3.5px;
  margin: 16px auto 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-gold-light));
  box-shadow: 0 0 12px var(--accent-gold-glow);
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.08rem;
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.7;
}

.section-subtitle strong {
  color: var(--accent-gold);
  font-weight: 700;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 36px;
  border: none;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: filter var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
  color: #fff;
  box-shadow: 0 4px 20px rgba(196, 147, 10, .35);
}

.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(196, 147, 10, .45);
}

.btn-whatsapp {
  background: linear-gradient(135deg, var(--whatsapp-dark), var(--whatsapp));
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 211, 102, .35);
}

.btn-whatsapp:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(37, 211, 102, .45);
}

.btn-lg {
  padding: 18px 48px;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s ease-out, transform .8s ease-out;
}

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

/* ============================
   HEADER
   ============================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  transition: background-color var(--transition-base), box-shadow var(--transition-base), backdrop-filter var(--transition-base);
}

.site-header.scrolled {
  background-color: rgba(26, 18, 9, .95);
  box-shadow: 0 2px 20px rgba(0, 0, 0, .25);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: -0.01em;
  z-index: 1001;
}

.logo-accent {
  color: var(--accent-gold-light);
}

/* Nav Menu — desktop */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  font-size: .92rem;
  font-weight: 500;
  color: var(--text-light);
  padding: 8px 14px;
  border-radius: 6px;
  transition: color var(--transition-base), background var(--transition-base);
  position: relative;
}

.nav-link:hover {
  color: var(--accent-gold-light);
  background: rgba(255, 255, 255, .08);
}

.nav-cta {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
  color: #fff !important;
  border-radius: 50px;
  padding: 8px 22px;
  font-weight: 600;
  margin-left: 8px;
}

.nav-cta:hover {
  background: linear-gradient(135deg, var(--accent-gold-light), var(--accent-gold));
  color: #fff !important;
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--text-light);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================
   HERO — Full-screen with real photo
   ============================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-light);
  overflow: hidden;
}

/* Background photo — absolutely positioned, fills section */
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  z-index: 0;
}

/* Subtle overlay — just enough contrast for white text, NOT hiding the photo */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(26, 18, 9, .35) 0%,
    rgba(26, 18, 9, .18) 40%,
    rgba(26, 18, 9, .25) 70%,
    rgba(26, 18, 9, .50) 100%
  );
  z-index: 1;
}

/* Hero content — ABOVE the overlay */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
}

/* Title — large, crisp, immediate visibility (no reveal animation) */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  text-shadow: var(--shadow-hero-text);
  opacity: 1 !important;
  transform: none !important;
}

.hero-title-accent {
  display: block;
  color: var(--accent-gold-light);
  font-style: italic;
  font-size: 1.1em;
  text-shadow: var(--shadow-hero-text), 0 0 60px var(--accent-gold-glow);
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  max-width: 550px;
  margin: 0 auto 40px;
  line-height: 1.6;
  font-weight: 400;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .4);
  opacity: 1 !important;
  transform: none !important;
}

/* Hero CTA button */
.hero-cta {
  margin-bottom: 24px;
}

.hero-cta.btn-whatsapp {
  font-size: 1.1rem;
  padding: 16px 40px;
  box-shadow: 0 6px 28px rgba(37, 211, 102, .4);
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: scrollBounce 2.5s ease-in-out infinite;
  color: var(--text-light);
  opacity: .7;
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ============================
   GALLERY
   ============================ */
.gallery {
  padding-block: 80px;
  background-color: var(--bg-section-alt);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-card);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.25, .46, .45, .94);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 18, 9, .35), transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
  border-radius: var(--radius-md);
}

.gallery-item:hover::after {
  opacity: 1;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .93);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-sm);
  object-fit: contain;
  box-shadow: 0 8px 60px rgba(0, 0, 0, .6);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, .12);
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  backdrop-filter: blur(6px);
  transition: background var(--transition-base), transform var(--transition-base);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, .28);
  transform: scale(1.1);
}

.lightbox-close {
  top: 20px;
  right: 20px;
}

.lightbox-prev {
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev:hover { transform: translateY(-50%) scale(1.1); }

.lightbox-next {
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next:hover { transform: translateY(-50%) scale(1.1); }

.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .7);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}

/* ============================
   AMENITIES / SERVICIOS
   ============================ */
.amenities {
  padding-block: 80px;
  background-color: var(--bg-primary);
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.amenity-card {
  background: #fff;
  border: 1px solid rgba(44, 24, 16, .06);
  border-radius: var(--radius-md);
  padding: 30px 20px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.amenity-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--accent-gold-glow);
}

.amenity-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-green), var(--accent-green-light));
  color: #fff;
  box-shadow: 0 4px 16px rgba(45, 80, 22, .25);
}

.amenity-icon svg {
  width: 26px;
  height: 26px;
}

.amenity-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.amenity-desc {
  font-size: .9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ============================
   LOCATION / UBICACIÓN
   ============================ */
.location {
  padding-block: 80px;
  background-color: var(--bg-section-alt);
}

.location-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.location-map {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 16 / 10;
}

.location-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.location-info {
  padding: 8px 0;
}

.location-address {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 28px;
  padding: 20px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.location-address svg {
  flex-shrink: 0;
  color: var(--accent-gold);
  margin-top: 2px;
}

.location-address strong {
  color: var(--text-primary);
  font-size: 1.1rem;
}

.location-attractions h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.location-attractions ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.location-attractions li {
  font-size: .98rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================
   CONTACT / CONTACTO
   ============================ */
.contact {
  padding-block: 80px;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-section-alt) 100%);
}

.contact-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  width: 100%;
  max-width: 500px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 28px 32px;
}

.contact-method svg {
  flex-shrink: 0;
  color: var(--accent-gold);
}

.whatsapp-icon-contact {
  color: var(--whatsapp) !important;
}

.contact-method h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.contact-link {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary) !important;
  transition: color var(--transition-base);
}

.contact-link:hover {
  color: var(--accent-gold) !important;
}

.contact-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(44, 24, 16, .1), transparent);
  margin: 0 32px;
}

/* ============================
   FOOTER
   ============================ */
.site-footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding-block: 56px 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  text-align: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
}

.footer-tagline {
  font-size: .95rem;
  opacity: .6;
}

.footer-contact h4,
.footer-social h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--accent-gold-light);
}

.footer-contact p {
  margin-bottom: 8px;
  font-size: .92rem;
  opacity: .75;
}

.footer-contact a {
  transition: color var(--transition-base), opacity var(--transition-base);
}

.footer-contact a:hover {
  color: var(--accent-gold-light);
  opacity: 1;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 50px;
  background: rgba(255, 255, 255, .08);
  font-size: .92rem;
  transition: background var(--transition-base), transform var(--transition-base), color var(--transition-base);
}

.social-link:hover {
  background: var(--accent-gold);
  transform: translateY(-2px);
  color: #fff;
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  text-align: center;
  font-size: .82rem;
  opacity: .45;
}

/* ============================
   WHATSAPP FLOATING WIDGET
   ============================ */
.whatsapp-widget {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 4px 24px rgba(37, 211, 102, .45);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  animation: whatsappPulse 2.5s infinite;
}

.whatsapp-widget:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 32px rgba(37, 211, 102, .6);
  animation: none;
}

.whatsapp-widget svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.whatsapp-tooltip {
  position: absolute;
  right: 72px;
  white-space: nowrap;
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transform: translateX(8px);
  transition: opacity var(--transition-base), transform var(--transition-base);
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
}

.whatsapp-widget:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

@keyframes whatsappPulse {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); }
  70%  { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ============================
   RESPONSIVE — 768px
   ============================ */
@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }

  .location-content {
    grid-template-columns: 1.3fr 1fr;
    gap: 40px;
    align-items: start;
  }

  .contact-card {
    flex-direction: row;
  }

  .contact-method {
    flex: 1;
  }

  .contact-divider {
    width: 1px;
    height: auto;
    margin: 28px 0;
    background: linear-gradient(180deg, transparent, rgba(44, 24, 16, .1), transparent);
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
    text-align: left;
    gap: 40px;
  }
}

/* ============================
   RESPONSIVE — 1024px
   ============================ */
@media (min-width: 1024px) {
  .gallery,
  .amenities,
  .location,
  .contact {
    padding-block: 120px;
  }

  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }

  .amenities-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
  }

  .hero-title {
    font-size: clamp(4rem, 7vw, 6rem);
  }
}

/* ============================
   MOBILE NAV — below 768px
   ============================ */
@media (max-width: 767px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    inset: 0;
    background: rgba(26, 18, 9, .97);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    transform: translateX(100%);
    transition: transform .4s cubic-bezier(.4, 0, .2, 1);
    z-index: 1000;
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-menu .nav-link {
    font-size: 1.25rem;
    padding: 12px 24px;
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 8px;
  }

  .location-attractions ul {
    grid-template-columns: 1fr;
  }
}

/* ============================
   SELECTION & SCROLLBAR
   ============================ */
::selection {
  background: var(--accent-gold-light);
  color: #fff;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-gold);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold-light);
}
