/* ═══════════════════════════════════════════════════════════════
   OM SPA — STYLESHEET
   ═══════════════════════════════════════════════════════════════ */

/* ── VARIABLES Y RESET ───────────────────────────────────────── */
:root {
  --color-primary:   #6E5540; /* café mocha (antes café casi negro) */
  --color-secondary: #D9C0AE; /* rosa ceniza */
  --color-accent:    #C9A379; /* dorado arena */
  --color-dark:      #4A3826; /* café oscuro para footer, ya no negro */
  --color-light:     #FFFDF9;
  --bg-cream:        #F5F1E8;

  --font-display: 'Cormorant Garamond', serif;
  --font-script:  'Playfair Display', serif;
  --font-body:    'Jost', sans-serif;

  --max-width: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-primary);
  background: var(--bg-cream);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; border: none; background: none; cursor: pointer; }
section { position: relative; }

.eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 13px;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 14px;
}
.eyebrow-light { color: var(--color-secondary); }

/* ── HEADER ──────────────────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #FFFFFF;
  transition: box-shadow .3s ease;
}
header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.1); }

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header-logo { display: flex; align-items: center; }
.logo-placeholder {
  border: 2px dashed var(--color-secondary);
  color: var(--color-secondary);
  height: 84px;
  width: 168px;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 18px;
}

.header-nav {
  display: flex;
  gap: 32px;
  flex: 1;
  justify-content: center;
}
.header-nav a {
  color: var(--color-primary);
  font-size: 15px;
  letter-spacing: .5px;
  transition: color .2s ease;
}
.header-nav a:hover { color: var(--color-accent); }

.header-social { display: flex; gap: 16px; align-items: center; }
.header-social a { color: var(--color-primary); transition: color .2s ease, transform .2s ease; }
.header-social a:hover { color: var(--color-accent); transform: scale(1.1); }

.header-cta {
  background: var(--color-accent);
  color: var(--color-dark);
  padding: 10px 24px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: filter .2s ease;
}
.header-cta:hover { filter: brightness(0.9); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  transition: transform .3s ease, opacity .3s ease;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ────────────────────────────────────────────────────── */
.hero {
  min-height: 800px;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-cream), var(--color-secondary)), url('images/hero.jpg');
  background-size: cover;
  background-position: center;
  background-blend-mode: multiply;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--bg-cream);
  opacity: .58;
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 24px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.1;
  opacity: 0;
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.4rem);
  color: rgba(43,33,28,0.75);
  margin-top: 24px;
  opacity: 0;
}
.btn-cta {
  display: inline-block;
  margin-top: 40px;
  background: var(--color-accent);
  color: var(--color-dark);
  padding: 16px 40px;
  font-weight: 700;
  border-radius: 30px;
  transition: transform .3s ease;
  opacity: 0;
}
.btn-cta:hover { transform: scale(1.05); }

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-down { animation: fadeDown 0.8s ease forwards; }

/* ── QUIÉNES SOMOS ───────────────────────────────────────────── */
.nosotros { padding: 100px 32px; }
.nosotros-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.nosotros-img-wrap { position: relative; }
.nosotros-img {
  border-radius: 16px;
  object-fit: cover;
  height: 500px;
  width: 100%;
  position: relative;
  z-index: 2;
  box-shadow: 20px 20px 60px rgba(0,0,0,0.25);
}
.nosotros-frame {
  position: absolute;
  inset: 20px -20px -20px 20px;
  background: var(--color-accent);
  border-radius: 16px;
  z-index: 1;
}
.nosotros-placeholder {
  height: 500px;
  border: 2px dashed var(--color-accent);
  color: var(--color-accent);
  border-radius: 16px;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  position: relative;
  z-index: 2;
}

.nosotros-text h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.15;
}
.nosotros-text .lead {
  font-family: var(--font-script);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--color-accent);
  margin-bottom: 20px;
}
.nosotros-text p {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(43,33,28,0.85);
  margin-bottom: 16px;
}

.nosotros-stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(43,33,28,0.15);
}
.stat { display: flex; flex-direction: column; padding-right: 32px; border-right: 1px solid var(--color-accent); }
.stat:last-child { border-right: none; padding-right: 0; }
.stat strong { font-family: var(--font-display); font-size: 2rem; color: var(--color-accent); }
.stat span { font-size: 13px; color: rgba(43,33,28,0.7); }

/* ── SERVICIOS ───────────────────────────────────────────────── */
.servicios {
  background: var(--color-primary);
  padding: 60px 32px 100px;
}
.servicios-header {
  max-width: 700px;
  margin: 0 auto 60px;
  text-align: center;
}
.servicios-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--color-light);
  margin-bottom: 16px;
}
.servicios-header p {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
}

.servicios-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.servicio-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 36px 28px;
  transition: transform .3s ease, background .3s ease;
}
.servicio-card:hover {
  transform: translateY(-6px);
  background: rgba(255,255,255,0.08);
}
.servicio-icon { color: var(--color-accent); margin-bottom: 20px; }
.servicio-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--color-light);
  margin-bottom: 10px;
}
.servicio-card p {
  color: rgba(255,255,255,0.7);
  font-size: .95rem;
  line-height: 1.7;
}

/* ── GALERÍA ─────────────────────────────────────────────────── */
.galeria {
  background: var(--color-secondary);
  padding: 60px 32px 100px;
}
.galeria-header { max-width: 700px; margin: 0 auto 40px; text-align: center; }
.galeria-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 16px;
}
.galeria-header p { color: rgba(43,33,28,0.8); opacity: .85; font-size: 1.05rem; }

.galeria-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.gallery-img {
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
  cursor: pointer;
  border-radius: 6px;
  transition: transform .3s ease, filter .3s ease;
}
.gallery-img:hover { transform: scale(1.03); filter: brightness(1.1); }
.gallery-placeholder {
  aspect-ratio: 4/3;
  border: 2px dashed var(--color-dark);
  color: var(--color-dark);
  border-radius: 6px;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
}

/* ── LIGHTBOX ────────────────────────────────────────────────── */
.lightbox {
  background: rgba(0,0,0,0.92);
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}
.lb-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.lb-close {
  position: absolute;
  top: 20px;
  right: 24px;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background .2s ease;
}
.lb-close:hover { background: rgba(255,255,255,0.1); }

.lb-prev, .lb-next {
  position: absolute;
  width: 44px;
  height: 80px;
  color: #fff;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s ease;
}
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,0.15); }

.lb-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 14px;
}

/* ── TESTIMONIOS ─────────────────────────────────────────────── */
.testimonios { padding: 100px 32px; background: var(--bg-cream); }
.testimonios-header { max-width: 700px; margin: 0 auto 50px; text-align: center; }
.testimonios-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-top: 4px;
}
.testimonios-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.testimonio-card {
  background: var(--color-light);
  border-radius: 12px;
  padding: 32px;
  border-left: 4px solid var(--color-accent);
  box-shadow: 0 8px 24px rgba(43,33,28,0.06);
}
.testimonio-card p {
  font-family: var(--font-script);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 20px;
}
.testimonio-autor { display: flex; flex-direction: column; }
.testimonio-autor strong { font-family: var(--font-display); font-size: 1.1rem; }
.testimonio-autor span { font-size: 13px; color: rgba(43,33,28,0.6); }

/* ── CONTACTO ────────────────────────────────────────────────── */
.contacto { background: var(--color-primary); padding-bottom: 0; }
.contacto-header { text-align: center; padding: 80px 32px 50px; max-width: 700px; margin: 0 auto; }
.contacto-header h2 {
  font-family: var(--font-display);
  color: var(--color-light);
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-top: 4px;
}

.mapa-wrap { width: 100%; }

.contacto-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.datos-lista { display: flex; flex-direction: column; gap: 20px; margin-bottom: 32px; }
.datos-lista li { display: flex; align-items: flex-start; gap: 14px; color: rgba(255,255,255,0.85); }
.datos-lista svg { flex-shrink: 0; color: var(--color-accent); margin-top: 2px; }
.datos-lista a:hover { color: var(--color-accent); }

.redes-contacto { display: flex; gap: 14px; }
.redes-contacto a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--color-light);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, color .2s ease;
}
.redes-contacto a:hover { background: var(--color-accent); color: var(--color-dark); }

.contacto-form form { display: flex; flex-direction: column; gap: 20px; }
.campo { display: flex; flex-direction: column; gap: 6px; }
.campo label { font-size: 14px; color: var(--color-light); }
.campo input, .campo select, .campo textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 8px;
  border: 2px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
  color: var(--color-light);
  font-family: inherit;
  font-size: 15px;
  transition: border-color .2s ease;
}
.campo input:focus, .campo select:focus, .campo textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}
.campo select option { color: #000; }

.btn-whatsapp {
  background: #25D366;
  color: #fff;
  width: 100%;
  padding: 16px;
  border-radius: 8px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: filter .2s ease, transform .2s ease;
}
.btn-whatsapp:hover { filter: brightness(0.9); transform: scale(1.02); }

/* ── FOOTER ──────────────────────────────────────────────────── */
.footer { background: var(--color-dark); color: #E5E5E5; padding: 0 32px; }
.footer-top {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 0 0;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-brand p { color: rgba(255,255,255,0.7); font-size: 14px; line-height: 1.8; margin: 16px 0; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--color-accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, color .2s ease;
}
.footer-social a:hover { background: #fff; color: var(--color-accent); }

.footer-col h4 {
  color: var(--color-accent);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 18px;
  font-weight: 600;
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col li { color: rgba(255,255,255,0.7); font-size: 14px; line-height: 1.6; }
.footer-col a { transition: color .2s ease, padding-left .2s ease; }
.footer-col a:hover { color: #fff; padding-left: 6px; }

.footer-divider { border-top: 1px solid rgba(255,255,255,0.1); margin: 40px 0 24px; max-width: var(--max-width); margin-left: auto; margin-right: auto; }

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-bottom: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.footer-legal a {
  text-decoration: underline;
  margin-left: 24px;
  transition: color .2s ease;
}
.footer-legal a:hover { color: #fff; }

/* ── BOTONES FLOTANTES ───────────────────────────────────────── */
.btn-float {
  position: fixed;
  right: 24px;
  z-index: 999;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .3s ease, opacity .3s ease;
}
.btn-whatsapp-float {
  bottom: 24px;
  width: 56px; height: 56px;
  background: #25D366;
  box-shadow: 0 4px 16px rgba(37,211,102,0.5);
}
.btn-whatsapp-float:hover { transform: scale(1.1); }

.btn-arriba {
  bottom: 90px;
  width: 48px; height: 48px;
  background: var(--color-accent);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}
.btn-arriba:hover { transform: scale(1.1) translateY(-2px); }

.tooltip {
  position: absolute;
  right: 68px;
  background: #333;
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.btn-float:hover .tooltip { opacity: 1; }

/* ── PLACEHOLDERS GENÉRICOS ──────────────────────────────────── */
.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--color-accent);
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: 15px;
  background: rgba(201,163,121,0.06);
}

/* ── ANIMACIONES ─────────────────────────────────────────────── */
@keyframes slideLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal { opacity: 0; }
.reveal.in-view { opacity: 1; animation: fadeUp 0.7s ease forwards; }

.reveal-left { opacity: 0; }
.reveal-left.in-view { opacity: 1; animation: slideLeft 0.8s ease forwards; animation-delay: .2s; }

.reveal-right { opacity: 0; }
.reveal-right.in-view { opacity: 1; animation: slideRight 0.8s ease forwards; animation-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .servicios-grid { grid-template-columns: repeat(2, 1fr); }
  .galeria-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonios-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .header-nav {
    position: fixed;
    top: 0; right: -100%;
    width: 75%; height: 100vh;
    background: #FFFFFF;
    box-shadow: -4px 0 24px rgba(0,0,0,0.08);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 28px;
    padding: 32px;
    transition: right .3s ease;
    z-index: 1001;
  }
  .header-nav.active { right: 0; }
  .header-nav a { font-size: 1.2rem; }
  .header-social { display: none; }
  .header-cta { display: none; }
  .hamburger { display: flex; }
  .header-logo img, .logo-placeholder { height: 96px !important; width: auto; }

  .hero { min-height: 600px; }
  .hero-content { padding: 0 24px; }
  .hero-title { font-size: 2.2rem; }
  .btn-cta { width: 80%; }

  .nosotros { padding: 60px 24px; }
  .nosotros-container { grid-template-columns: 1fr; gap: 32px; }
  .nosotros-img, .nosotros-placeholder { height: 300px; }
  .nosotros-frame { display: none; }
  .nosotros-stats { flex-wrap: wrap; gap: 20px; }
  .stat { border-right: none; padding-right: 0; }

  .servicios { padding: 50px 24px 70px; }
  .servicios-grid { grid-template-columns: 1fr; }

  .galeria { padding: 50px 24px 70px; }
  .galeria-grid { grid-template-columns: 1fr; }

  .testimonios { padding: 60px 24px; }

  .mapa-wrap iframe { height: 280px; }
  .contacto-grid { grid-template-columns: 1fr; padding: 50px 24px; gap: 40px; }

  .footer { padding: 0 24px; }
  .footer-top { grid-template-columns: 1fr; text-align: center; padding-top: 50px; }
  .footer-brand { display: flex; flex-direction: column; align-items: center; }
  .footer-social { justify-content: center; }
  .footer-col ul { align-items: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal a { margin: 0 10px; }

  .tooltip { display: none; }
}
