@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');

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

:root {
  --bg: #faf9f7;
  --text: #2c2c2c;
  --text-light: #6b6b6b;
  --accent: #c9a87c;
  --accent-dark: #b8956a;
  --white: #ffffff;
  --border: #e8e4df;
  --card-bg: #ffffff;
  --section-alt: #f4f1ed;
}

[data-theme="dark"] {
  --bg: #121212;
  --text: #f0f0f0;
  --text-light: #aaaaaa;
  --accent: #d4af37;
  --accent-dark: #c9a87c;
  --white: #1a1a1a;
  --border: #333333;
  --card-bg: #1e1e1e;
  --section-alt: #1a1a1a;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background:
    radial-gradient(ellipse 600px 600px at 20% 30%, rgba(201,168,124,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 500px 500px at 80% 70%, rgba(201,168,124,0.1) 0%, transparent 70%),
    radial-gradient(ellipse 400px 400px at 50% 50%, rgba(184,149,106,0.08) 0%, transparent 70%);
  animation: bgFloat 15s ease-in-out infinite alternate;
  z-index: -2;
  pointer-events: none;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: 
    radial-gradient(1px 1px at 10% 20%, rgba(201,168,124,0.8) 1px, transparent 0),
    radial-gradient(1px 1px at 30% 60%, rgba(201,168,124,0.6) 1px, transparent 0),
    radial-gradient(2px 2px at 50% 40%, rgba(201,168,124,0.7) 1px, transparent 0),
    radial-gradient(1.5px 1.5px at 70% 80%, rgba(201,168,124,0.5) 1px, transparent 0),
    radial-gradient(1px 1px at 90% 10%, rgba(201,168,124,0.9) 1px, transparent 0),
    radial-gradient(2px 2px at 80% 30%, rgba(201,168,124,0.4) 1px, transparent 0),
    radial-gradient(1px 1px at 40% 80%, rgba(201,168,124,0.8) 1px, transparent 0),
    radial-gradient(1.5px 1.5px at 60% 10%, rgba(201,168,124,0.6) 1px, transparent 0);
  background-size: 150px 150px;
  animation: sparkles 20s linear infinite;
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
}
@keyframes bgFloat {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); }
  50% { transform: translate(40px, -30px) rotate(2deg) scale(1.05); }
  100% { transform: translate(-30px, 40px) rotate(-2deg) scale(0.95); }
}
@keyframes sparkles {
  0% { background-position: 0px 0px; }
  100% { background-position: 150px 150px; }
}

/* CUSTOM CURSOR */
@media (pointer: fine) {
  body { cursor: none; }
  .custom-cursor {
    position: fixed;
    top: 0; left: 0;
    width: 30px; height: 30px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.25s ease-out, height 0.25s ease-out, background-color 0.25s ease-out, border-color 0.25s ease-out;
  }
  .custom-cursor-dot {
    position: fixed;
    top: 0; left: 0;
    width: 6px; height: 6px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
  }
  .custom-cursor.hover {
    width: 50px; height: 50px;
    background-color: rgba(201,168,124,0.15);
    border-color: transparent;
  }
  .custom-cursor-dot.hover {
    width: 0px; height: 0px;
    background-color: transparent;
  }
}

/* NAV */
nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  background: rgba(250,249,247,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.06); }
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  height: 64px;
}
.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; font-weight: 600;
  color: var(--text); text-decoration: none;
  letter-spacing: -0.5px;
}
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--text-light);
  font-size: 0.875rem; font-weight: 500;
  letter-spacing: 0.5px; text-transform: uppercase;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--accent); }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; }
.menu-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--text); margin: 5px 0;
  transition: 0.3s;
}

.theme-btn {
  background: none; border: none; cursor: pointer; position: relative;
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  color: var(--text); padding: 0.5rem; border-radius: 50%;
  transition: transform 0.3s, color 0.3s, background 0.3s;
}
.theme-btn:hover { background: var(--section-alt); color: var(--accent); }
.theme-btn svg { width: 22px; height: 22px; position: absolute; transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55); }

.sun-icon { opacity: 0; transform: scale(0.5) rotate(-90deg); }
.moon-icon { opacity: 1; transform: scale(1) rotate(0); }

[data-theme="dark"] .sun-icon { opacity: 1; transform: scale(1) rotate(0); }
[data-theme="dark"] .moon-icon { opacity: 0; transform: scale(0.5) rotate(90deg); }

/* HERO */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 6rem 2rem 4rem;
  background: linear-gradient(165deg, var(--bg) 0%, var(--section-alt) 100%);
  position: relative;
  overflow: hidden;
}
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  opacity: 0.5;
  pointer-events: none;
}
.hero::before {
  width: 350px; height: 350px;
  top: 10%; right: -80px;
  background: radial-gradient(circle, rgba(201,168,124,0.12) 0%, transparent 70%);
  animation: heroBlob1 15s ease-in-out infinite;
}
.hero::after {
  width: 280px; height: 280px;
  bottom: 15%; left: -60px;
  background: radial-gradient(circle, rgba(201,168,124,0.08) 0%, transparent 70%);
  animation: heroBlob2 18s ease-in-out infinite;
}
@keyframes heroBlob1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 20px) scale(1.15); }
}
@keyframes heroBlob2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(25px, -25px) scale(1.1); }
}
.hero-content { max-width: 650px; }
.hero-label {
  display: inline-block;
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.5rem;
  padding: 0.4rem 1.2rem;
  border: 1px solid var(--accent);
  border-radius: 30px;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 600; line-height: 1.15;
  margin-bottom: 1.5rem; color: var(--text);
}
.hero p {
  font-size: 1.1rem; color: var(--text-light);
  margin-bottom: 2.5rem; line-height: 1.7;
}
.btn {
  display: inline-block; padding: 0.9rem 2.5rem;
  background: var(--accent); color: var(--white);
  text-decoration: none; border: none; cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  border-radius: 4px;
  transition: background 0.3s, transform 0.2s;
}
.btn:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-outline {
  background: transparent; color: var(--accent);
  border: 1.5px solid var(--accent); margin-left: 1rem;
}
.btn-outline:hover { background: var(--accent); color: var(--white); }

/* MARQUEE ANIMADO */
.marquee-wrapper {
  background: var(--accent);
  color: var(--white);
  padding: 1.2rem 0;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 20px rgba(201,168,124,0.15);
  z-index: 10;
}
.marquee {
  display: flex;
  white-space: nowrap;
  animation: scrollMarquee 25s linear infinite;
  gap: 3rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-style: italic;
  letter-spacing: 1.5px;
}
.marquee span {
  display: inline-block;
}
@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* SECTIONS */
section { padding: 5rem 2rem; }
.section-alt { background: var(--section-alt); }
.container { max-width: 1100px; margin: 0 auto; }
.section-header {
  text-align: center; margin-bottom: 3.5rem;
}
.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 1rem;
}
.section-header p {
  color: var(--text-light); max-width: 500px;
  margin: 0 auto; font-size: 1rem;
}
.divider {
  width: 50px; height: 2px; background: var(--accent);
  margin: 1rem auto 0;
}

/* SERVICIOS */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.service-card {
  background: var(--card-bg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(201,168,124,0.05) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s;
  z-index: -1;
}
.service-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  transition: height 0.4s;
}
.service-card:hover {
  transform: translateY(-10px) !important;
  box-shadow: 0 20px 40px rgba(201,168,124,0.15);
  border-color: rgba(201,168,124,0.3);
}
.service-card:hover::before {
  opacity: 1;
}
.service-icon {
  width: 64px;
  height: 64px;
  background: rgba(201,168,124,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--accent);
  transition: all 0.4s ease;
}
.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 10px 20px rgba(201,168,124,0.3);
}
.service-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
  font-weight: 600;
  color: var(--text);
}
.service-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* TESTIMONIOS (Reseñas) */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 2rem; }
.review-card { background: var(--card-bg); padding: 2.5rem 2rem; border-radius: 16px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); text-align: center; border: 1px solid var(--border); transition: transform 0.3s, box-shadow 0.3s; }
.review-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(201,168,124,0.15); border-color: var(--accent); }
.stars { color: #f59e0b; font-size: 1.5rem; margin-bottom: 1rem; letter-spacing: 2px; }
.review-card p { font-style: italic; color: var(--text-light); margin-bottom: 1.5rem; line-height: 1.6; }
.review-card h4 { color: var(--accent); font-weight: 600; font-size: 1.1rem; }

/* CARRUSEL */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  max-width: 900px;
  margin: 0 auto;
}
.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.carousel-slide {
  min-width: 33.333%;
  padding: 0 0.5rem;
  cursor: pointer;
  flex-shrink: 0;
}
.carousel-slide img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.4s;
}
.carousel-slide img:hover {
  transform: scale(1.03);
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  border: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  transition: background 0.3s, transform 0.2s;
  z-index: 2;
}
.carousel-btn:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-50%) scale(1.1);
}
.carousel-prev { left: 0.75rem; }
.carousel-next { right: 0.75rem; }
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 1.25rem;
}
.carousel-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}
.carousel-dot.active {
  background: var(--accent);
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .carousel-slide { min-width: 50%; }
}

/* LIGHTBOX */
.lightbox {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.9); z-index: 200;
  align-items: center; justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 90vw; max-height: 85vh;
  border-radius: 8px; object-fit: contain;
}
.lightbox-close {
  position: absolute; top: 1.5rem; right: 2rem;
  background: none; border: none;
  color: white; font-size: 2rem; cursor: pointer;
}

/* RESERVAS */
.booking-form {
  max-width: 600px; margin: 0 auto;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block; font-size: 0.8rem;
  font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--text-light);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 6px; font-family: 'Inter', sans-serif;
  font-size: 0.95rem; color: var(--text);
  background: var(--bg);
  transition: border-color 0.3s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--accent);
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-btn {
  width: 100%; padding: 1rem;
  margin-top: 0.5rem;
}

/* CONFIRMACIÓN */
.booking-success {
  display: none; text-align: center; padding: 3rem 1.5rem;
}
.booking-success.show { display: block; }
.booking-success .check {
  width: 60px; height: 60px;
  border-radius: 50%; background: #d4edda;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.8rem; margin-bottom: 1rem;
}
.booking-success h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; margin-bottom: 0.5rem;
}
.booking-success p { color: var(--text-light); }

/* CONTACTO */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item {
  display: flex; align-items: flex-start; gap: 1rem;
}
.contact-item .icon {
  width: 44px; height: 44px;
  background: var(--section-alt);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}
.contact-item h4 { font-size: 0.95rem; margin-bottom: 0.2rem; }
.contact-item p { font-size: 0.875rem; color: var(--text-light); }
.contact-item a { color: var(--accent); text-decoration: none; }

/* FOOTER */
footer {
  background: #1c1c1c;
  color: rgba(255,255,255,0.6);
  padding: 0;
  font-size: 0.85rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding: 3.5rem 2rem 2.5rem;
}
.footer-brand p {
  margin-top: 0.75rem;
  line-height: 1.6;
  max-width: 280px;
}
footer .logo-footer {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; color: white;
}
footer .logo-footer span { color: var(--accent); }
.footer-links, .footer-social { display: flex; flex-direction: column; }
.footer-links h4, .footer-social h4 {
  color: white;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1rem;
}
.footer-links a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--accent); }
.social-icons {
  display: flex;
  gap: 0.75rem;
}
.social-icons a {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5);
  transition: all 0.3s;
}
.social-icons a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  transform: translateY(-3px);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.25rem 2rem;
  text-align: center;
  font-size: 0.8rem;
}

/* WHATSAPP FLOTANTE */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 60px; height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  z-index: 90;
  transition: transform 0.3s, box-shadow 0.3s;
  animation: whatsapp-pulse 2s infinite;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37,211,102,0.5);
}
@keyframes whatsapp-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 4px 30px rgba(37,211,102,0.6); }
}

/* BOTON VOLVER ARRIBA */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 5.5rem;
  width: 44px; height: 44px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 15px rgba(201,168,124,0.3);
  z-index: 90;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s, background 0.3s;
  pointer-events: none;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.back-to-top:hover {
  background: var(--accent-dark);
  transform: translateY(-3px);
}

/* HERO ANIMACIONES */
.hero-label {
  animation: fadeInUp 0.8s ease both;
}
.hero h1 {
  animation: fadeInUp 0.8s 0.2s ease both;
}
.hero p {
  animation: fadeInUp 0.8s 0.4s ease both;
}
.hero-actions {
  animation: fadeInUp 0.8s 0.6s ease both;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}

/* SCROLL REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.reveal.active .service-card:nth-child(1) { animation: fadeInUp 0.6s 0.1s both; }
.reveal.active .service-card:nth-child(2) { animation: fadeInUp 0.6s 0.2s both; }
.reveal.active .service-card:nth-child(3) { animation: fadeInUp 0.6s 0.3s both; }
.reveal.active .service-card:nth-child(4) { animation: fadeInUp 0.6s 0.4s both; }
.reveal.active .service-card:nth-child(5) { animation: fadeInUp 0.6s 0.5s both; }
.reveal.active .service-card:nth-child(6) { animation: fadeInUp 0.6s 0.6s both; }
.reveal.active .service-card:nth-child(7) { animation: fadeInUp 0.6s 0.7s both; }

.service-card { opacity: 0; } /* Hide initially for stagger */

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links { 
    display: none; position: absolute;
    top: 64px; left: 0; width: 100%;
    background: var(--bg);
    flex-direction: column;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    gap: 1rem;
  }
  .nav-links.open { display: flex; }
  .menu-toggle { display: block; }
  .form-row { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-actions { display: flex; flex-direction: column; gap: 0.75rem; align-items: center; }
  .btn-outline { margin-left: 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .whatsapp-float { bottom: 1rem; right: 1rem; width: 54px; height: 54px; }
  .back-to-top { right: 4.5rem; bottom: 1rem; }
}
