/* ============================================
   RAÍZ VITAL — ESTILOS GLOBALES
   Estética: orgánico-editorial de lujo
   ============================================ */

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

:root {
  --sage-50:  #f4f7f4;
  --sage-100: #e6ede6;
  --sage-200: #cddccd;
  --sage-400: #7da27d;
  --sage-600: #436843;
  --sage-700: #375537;
  --sage-800: #2d452d;
  --sage-900: #1e2f1e;
  --cream-50:  #fdfcf8;
  --cream-100: #faf7f0;
  --cream-200: #f4ede0;
  --cream-300: #eadeca;
  --earth-200: #e5dbd0;
  --earth-400: #a8916e;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background-color: var(--cream-50);
  color: var(--sage-900);
  -webkit-font-smoothing: antialiased;
}

/* ============================================
   TIPOGRAFÍA
   ============================================ */

.font-display { font-family: 'Cormorant Garamond', serif; }

h1, h2, h3 { font-family: 'Cormorant Garamond', serif; }

/* ============================================
   HEADER FIJO
   ============================================ */

.header-fixed {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  transition: background 0.4s, box-shadow 0.4s;
}

.header-scrolled {
  background: rgba(253, 252, 248, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(30,47,30,0.08);
}

.header-top {
  background: transparent;
}

.main-content {
  padding-top: 5rem;
}

/* ============================================
   ANIMACIONES
   ============================================ */

.fade-in {
  animation: fadeInUp 0.7s ease both;
}

.fade-in-delay-1 { animation-delay: 0.1s; }
.fade-in-delay-2 { animation-delay: 0.2s; }
.fade-in-delay-3 { animation-delay: 0.35s; }
.fade-in-delay-4 { animation-delay: 0.5s; }

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

.page-enter {
  animation: pageEnter 0.5s ease both;
}

@keyframes pageEnter {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Hero parallax zoom suave */
.hero-img {
  animation: slowZoom 18s ease-in-out infinite alternate;
}
@keyframes slowZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}

/* ============================================
   LÍNEAS DECORATIVAS
   ============================================ */

.divider-leaf {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--sage-400);
}

.divider-leaf::before,
.divider-leaf::after {
  content: '';
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.4;
}

/* ============================================
   BOTONES
   ============================================ */

.btn-sage {
  display: inline-block;
  background: var(--sage-700);
  color: white;
  padding: 0.875rem 2.5rem;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}
.btn-sage:hover {
  background: var(--sage-800);
  transform: translateY(-1px);
}

.btn-outline-sage {
  display: inline-block;
  background: transparent;
  color: var(--sage-700);
  padding: 0.875rem 2.5rem;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  border: 1px solid var(--sage-400);
  cursor: pointer;
  transition: all 0.3s;
}
.btn-outline-sage:hover {
  background: var(--sage-700);
  color: white;
  border-color: var(--sage-700);
}

.btn-cream {
  display: inline-block;
  background: var(--cream-100);
  color: var(--sage-800);
  padding: 0.875rem 2.5rem;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}
.btn-cream:hover {
  background: white;
}

/* ============================================
   TARJETAS DE SERVICIO
   ============================================ */

.servicio-card {
  background: white;
  border: 1px solid var(--cream-300);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}
.servicio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(30,47,30,0.10);
}

/* ============================================
   FORMULARIOS
   ============================================ */

.input-field {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--earth-200);
  padding: 0.6rem 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  color: var(--sage-900);
  outline: none;
  transition: border-color 0.25s;
}
.input-field:focus {
  border-color: var(--sage-600);
}
.input-field::placeholder {
  color: #a8a8a8;
  font-size: 0.8rem;
}

.select-field {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--earth-200);
  padding: 0.6rem 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  color: var(--sage-900);
  outline: none;
  appearance: none;
  cursor: pointer;
  transition: border-color 0.25s;
}
.select-field:focus {
  border-color: var(--sage-600);
}

.field-label {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 500;
  color: var(--sage-600);
  margin-bottom: 0.25rem;
}

/* ============================================
   TEXTURA FONDO SUAVE
   ============================================ */

.bg-texture {
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(125,162,125,0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(168,145,110,0.05) 0%, transparent 50%);
}

/* ============================================
   BADGE PRECIO
   ============================================ */

.precio-badge {
  display: inline-block;
  background: var(--sage-100);
  color: var(--sage-700);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
}

/* ============================================
   SCROLL SUAVE ENTRE SECCIONES
   ============================================ */

.section-spacing {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

@media (max-width: 768px) {
  .section-spacing {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

/* ============================================
   NAV MOBILE
   ============================================ */

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--cream-50);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.mobile-menu.open {
  transform: translateX(0);
}
