/* ==========================================================================
   Zinnia – Nutrir & Florecer
   Hoja de estilos principal
   ========================================================================== */

/* ---------- Variables ---------- */
:root {
  --olive: #565A42;
  --olive-deep: #414632;
  --beige: #F3E1D6;
  --cream: #FAF4EE;
  --gold: #C7A765;
  --white-warm: #FFFDFC;
  --text-dark: #292A27;

  --font-heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --font-script: 'Caveat', cursive;

  --header-height: 90px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --shadow-soft: 0 20px 45px -22px rgba(41, 42, 39, 0.28);
  --shadow-card: 0 14px 34px -18px rgba(41, 42, 39, 0.22);
  --transition: 0.35s ease;
  --container-width: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white-warm);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

button { font: inherit; cursor: pointer; border: none; background: none; }

input, textarea, select { font: inherit; color: inherit; }

svg { display: block; }

section[id] { scroll-margin-top: var(--header-height); }

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--olive-deep);
  font-weight: 600;
  line-height: 1.15;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p { color: var(--text-dark); }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  padding: 15px 32px;
  border-radius: 999px;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-icon { width: 18px; height: 18px; color: currentColor; flex-shrink: 0; }

.btn-primary {
  background: var(--olive);
  color: var(--white-warm);
  box-shadow: 0 12px 26px -12px rgba(86, 90, 66, 0.55);
}
.btn-primary:hover { background: var(--olive-deep); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--olive-deep);
  border: 1.5px solid var(--olive);
}
.btn-outline:hover { background: var(--olive); color: var(--white-warm); transform: translateY(-2px); }

.btn-outline-gold {
  background: transparent;
  color: var(--olive-deep);
  border: 1.5px solid var(--gold);
}
.btn-outline-gold:hover { background: var(--gold); color: var(--white-warm); transform: translateY(-2px); }

.btn-whatsapp {
  background: var(--gold);
  color: var(--white-warm);
  box-shadow: 0 12px 26px -12px rgba(199, 167, 101, 0.6);
}
.btn-whatsapp:hover { background: #b3924f; transform: translateY(-2px); }

.btn-submit { width: 100%; margin-top: 8px; }

/* ---------- Section headings ---------- */
.section-heading { max-width: 640px; margin-bottom: 48px; }
.section-heading.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-heading .tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  position: relative;
  padding-bottom: 10px;
}
.section-heading .tag::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 42px;
  height: 2px;
  background: var(--gold);
}
.section-heading.center .tag::after { left: 50%; transform: translateX(-50%); }
.section-heading.light h2, .section-heading .tag-light { color: var(--white-warm); }
.section-heading .tag-light::after { background: var(--gold); }
.section-subtext { margin-top: 14px; color: var(--olive-deep); opacity: 0.85; }

.script-quote {
  font-family: var(--font-script);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  color: var(--gold);
  margin-top: 20px;
  line-height: 1.3;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: rgba(255, 253, 252, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--transition), border-color var(--transition), background var(--transition);
}
.site-header.is-scrolled {
  background: rgba(255, 253, 252, 0.97);
  border-color: rgba(86, 90, 66, 0.12);
  box-shadow: 0 8px 24px -18px rgba(41, 42, 39, 0.35);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo-link { flex-shrink: 0; display: block; }
.logo-img { height: 56px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 32px; }
.nav-list { display: flex; align-items: center; gap: 30px; }
.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--olive-deep);
  position: relative;
  padding: 6px 0;
  transition: color var(--transition);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-link:hover, .nav-link.is-active { color: var(--gold); }
.nav-link:hover::after, .nav-link.is-active::after { width: 100%; }

.btn-nav-cta { display: none; }
.header-actions { display: flex; align-items: center; gap: 18px; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--beige);
  flex-shrink: 0;
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--olive-deep);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(41, 42, 39, 0.35);
  z-index: 998;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  padding: 76px 0 100px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--white-warm) 0%, var(--cream) 100%);
}

.hero-decor {
  position: relative;
  flex: 1 1 300px;
  min-width: 0;
  max-width: 500px;
  opacity: 0.95;
  pointer-events: none;
}
.hero-svg { width: 100%; height: auto; display: block; max-width: 100%; }
.zinnia-flower { animation: spin-slow 60s linear infinite; transform-origin: 250px 250px; }
@keyframes spin-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 64px);
}
.hero-content { flex: 1 1 380px; min-width: 0; max-width: 620px; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-script);
  font-size: 1.7rem;
  color: var(--gold);
  margin-bottom: 6px;
}

.hero h1 { margin-bottom: 22px; }
.hero h1 em { font-style: italic; color: var(--gold); }

.hero-text {
  font-size: 1.08rem;
  color: var(--olive-deep);
  max-width: 480px;
  margin-bottom: 36px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 18px; }

/* ---------- Section divider (organic wave) ---------- */
.section-divider { display: block; line-height: 0; }
.section-divider svg { width: 100%; height: 70px; display: block; }

/* ==========================================================================
   SOBRE ZINNIA
   ========================================================================== */
.about { padding: 110px 0; background: var(--white-warm); }

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 90px;
}

.about-text p:first-child { font-size: 1.08rem; color: var(--olive-deep); }

.about-decor {
  position: relative;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.leaf-big { width: 90px; height: 180px; color: var(--beige); }
.leaf-big.leaf-1 { color: var(--olive); opacity: 0.85; transform: rotate(-18deg); position: relative; left: 20px; }
.leaf-big.leaf-2 { color: var(--gold); opacity: 0.55; transform: rotate(20deg) scale(0.8); position: relative; left: -40px; top: 20px; }
.about-decor .sparkle-deco { position: absolute; top: 10%; right: 12%; width: 26px; height: 26px; color: var(--gold); }

.soledad-card {
  display: flex;
  align-items: center;
  gap: 48px;
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 52px;
  box-shadow: var(--shadow-soft);
}

.soledad-mark {
  position: relative;
  flex-shrink: 0;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--white-warm);
  border: 1.5px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}
.soledad-leaf { position: absolute; width: 42px; height: 84px; color: var(--olive); opacity: 0.25; top: 12px; }
.soledad-initial {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  color: var(--olive-deep);
  font-weight: 600;
}

.soledad-text h3 { margin-bottom: 14px; }
.soledad-text p { max-width: 620px; margin-bottom: 22px; }

.credentials { display: flex; flex-wrap: wrap; gap: 12px; }
.credentials li {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--olive-deep);
  background: var(--white-warm);
  border: 1px solid rgba(199, 167, 101, 0.5);
  border-radius: 999px;
  padding: 9px 18px;
}

/* ==========================================================================
   SERVICIOS
   ========================================================================== */
.services { padding: 100px 0 110px; background: var(--beige); }

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 560px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); }
}

.service-card {
  background: var(--white-warm);
  border-radius: var(--radius-md);
  padding: 42px 30px;
  text-align: left;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-soft); }

.service-icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: var(--olive);
}
.service-icon svg { width: 30px; height: 30px; }

.service-card h3 { margin-bottom: 12px; }
.service-card p { font-size: 0.94rem; color: var(--olive-deep); opacity: 0.9; }

/* ==========================================================================
   FILOSOFÍA
   ========================================================================== */
.philosophy {
  position: relative;
  padding: 110px 0;
  background: linear-gradient(160deg, var(--olive-deep) 0%, var(--olive) 100%);
  overflow: hidden;
}
.philosophy-decor { position: absolute; inset: 0; pointer-events: none; }
.philosophy-decor .sparkle-deco { position: absolute; color: var(--gold); opacity: 0.5; }
.sparkle-a { width: 30px; height: 30px; top: 8%; left: 8%; }
.sparkle-b { width: 22px; height: 22px; bottom: 12%; right: 10%; }

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}

.philosophy-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--gold);
}
.philosophy-icon svg { width: 36px; height: 36px; }

.philosophy-item h3 { color: var(--white-warm); margin-bottom: 12px; }
.philosophy-item p { color: var(--cream); opacity: 0.85; font-size: 0.95rem; max-width: 300px; margin: 0 auto; }

/* ==========================================================================
   TURNOS / FORMULARIO
   ========================================================================== */
.appointment { padding: 110px 0; background: var(--white-warm); }

.appointment-form {
  max-width: 780px;
  margin: 0 auto;
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-soft);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group-full { margin-bottom: 20px; }

.form-group label { font-size: 0.84rem; font-weight: 600; color: var(--olive-deep); }

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
  border: 1.5px solid rgba(86, 90, 66, 0.25);
  background: var(--white-warm);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 16px;
  color: var(--text-dark);
  transition: border-color var(--transition);
  width: 100%;
  max-width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.form-group textarea { resize: vertical; min-height: 100px; }

.form-checkbox { flex-direction: row; align-items: flex-start; gap: 12px; }
.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--olive);
  flex-shrink: 0;
}
.form-checkbox label { font-weight: 400; font-size: 0.86rem; }

.form-note { min-height: 20px; font-size: 0.85rem; color: #a3453a; margin-bottom: 10px; }
.form-note.is-visible { font-weight: 600; }

/* ==========================================================================
   INSTAGRAM
   ========================================================================== */
.instagram {
  position: relative;
  padding: 90px 0;
  background: var(--beige);
  text-align: center;
  overflow: hidden;
}
.instagram-decor { position: absolute; inset: 0; pointer-events: none; }
.leaf-ig { position: absolute; width: 70px; height: 140px; color: var(--gold); opacity: 0.25; left: -10px; bottom: -20px; transform: rotate(-25deg); }

.instagram-inner { position: relative; z-index: 1; max-width: 640px; }
.instagram-inner h2 { margin-bottom: 30px; }

/* ==========================================================================
   CTA / CONTACTO
   ========================================================================== */
.cta-block {
  padding: 100px 0;
  background: var(--olive-deep);
  text-align: center;
}
.cta-inner { max-width: 620px; }
.cta-block h2 { color: var(--white-warm); margin-bottom: 16px; }
.cta-block p { color: var(--cream); opacity: 0.85; margin-bottom: 32px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--olive-deep); color: var(--cream); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 48px;
  padding: 70px 0 50px;
  border-bottom: 1px solid rgba(255, 253, 252, 0.12);
}

.footer-logo { height: 52px; width: auto; margin-bottom: 16px; filter: brightness(0) invert(1); opacity: 0.92; }
.footer-tagline { font-family: var(--font-script); font-size: 1.4rem; color: var(--gold); }
.footer-location { font-size: 0.86rem; color: var(--white-warm); opacity: 0.75; margin-top: 6px; }

.footer-links h3, .footer-contact h3 {
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.footer-links ul, .footer-contact ul { display: flex; flex-direction: column; gap: 12px; }
.footer-links a, .footer-contact a {
  font-size: 0.9rem;
  opacity: 0.85;
  transition: opacity var(--transition), color var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.footer-links a:hover, .footer-contact a:hover { opacity: 1; color: var(--gold); }
.footer-icon { width: 18px; height: 18px; flex-shrink: 0; }
.footer-mp { font-size: 0.9rem; opacity: 0.85; }

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding: 24px 0;
  font-size: 0.8rem;
}
.footer-bottom-inner p { color: var(--white-warm); }
.footer-credit a { color: var(--white-warm); text-decoration: underline; text-underline-offset: 3px; }
.footer-credit a:hover { color: var(--gold); }

/* ==========================================================================
   WHATSAPP FLOTANTE
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 30px -10px rgba(41, 42, 39, 0.45);
  z-index: 900;
  transition: transform var(--transition), background var(--transition), opacity var(--transition);
  animation: float-bob 3.4s ease-in-out infinite;
}
.whatsapp-float:hover { transform: scale(1.08); background: #b3924f; }
.whatsapp-float svg { width: 30px; height: 30px; }
@keyframes float-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* Se aparta cuando el botón "Enviar por WhatsApp" del formulario está visible,
   para que nunca lo tape ni compita con él. */
.whatsapp-float.is-yielding {
  opacity: 0;
  transform: translateY(16px) scale(0.85);
  pointer-events: none;
  animation: none;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 991px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-decor { height: 160px; }
  .soledad-card { flex-direction: column; text-align: center; padding: 40px 28px; }
  .credentials { justify-content: center; }
  .philosophy-grid { grid-template-columns: 1fr; gap: 48px; max-width: 380px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(320px, 84vw);
    background: var(--white-warm);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 40px;
    padding: 40px;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    z-index: 999;
    box-shadow: -20px 0 50px -20px rgba(41, 42, 39, 0.3);
  }
  .main-nav.is-open { transform: translateX(0); }
  .nav-list { flex-direction: column; align-items: flex-start; gap: 24px; }
  .nav-link { font-size: 1.1rem; }
  .btn-nav-cta { display: inline-flex; }
  .btn-header-cta { display: none; }
  .menu-toggle { display: flex; }
  .nav-overlay:not([hidden]) { display: block; }
}

@media (min-width: 861px) {
  .nav-overlay { display: none !important; }
}

@media (max-width: 767px) {
  .hero { padding: 56px 0 80px; text-align: left; }
  .hero-inner { flex-direction: column; gap: 8px; }
  .hero-content { max-width: 100%; flex: none; width: 100%; order: 1; }
  .hero-decor { flex: none; width: min(78vw, 340px); max-width: 100%; margin: 32px auto 0; order: 2; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }

  .about, .services, .philosophy, .appointment, .instagram, .cta-block { padding: 70px 0; }
  .soledad-mark { width: 120px; height: 120px; }

  .form-row { grid-template-columns: 1fr; gap: 0; margin-bottom: 0; }
  .form-row .form-group { margin-bottom: 20px; }
  .appointment-form { padding: 32px 24px; }

  .footer-grid { grid-template-columns: 1fr; text-align: left; padding: 56px 0 36px; }
  .footer-bottom-inner { flex-direction: column; text-align: left; }

  .whatsapp-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  .whatsapp-float svg { width: 26px; height: 26px; }
}

@media (max-width: 480px) {
  .logo-img { height: 46px; }
  .btn { padding: 14px 24px; font-size: 0.86rem; }
  h1 { font-size: 2.1rem; }
}
