/* ===== entre nanas · hoja de estilos ===== */

:root {
  --sage:        #5C7366;
  --sage-dark:   #47594f;
  --olive:       #738561;
  --accent:      #3E6419;
  --cream:       #F1EEE9;
  --cream-2:     #F7F5F1;
  --mint:        #CBDDD0;
  --sand:        #D8BE9E;
  --ink:         #272727;
  --ink-soft:    #5b6b60;
  --white:       #ffffff;
  --radius:      22px;
  --radius-sm:   12px;
  --maxw:        1120px;
  --shadow:      0 18px 40px -24px rgba(39, 39, 39, .35);
  --font-body:   "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head:   "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-script: "Allura", "Cormorant Garamond", cursive;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.5rem); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--sage); color: #fff; padding: .6rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Tipografía ---------- */
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; color: var(--sage-dark); }
h1 { font-size: clamp(2.15rem, 5.4vw, 3.7rem); letter-spacing: .3px; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: .8rem; }
h3 { font-size: 1.3rem; margin-bottom: .4rem; color: var(--sage-dark); }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .72rem;
  font-weight: 500;
  color: var(--olive);
  margin-bottom: .9rem;
}
.eyebrow-light { color: #dfe7dc; }
.h2-light { color: var(--cream); }
.section-sage .eyebrow { color: #cdd8c6; }

.lead { font-size: 1.15rem; max-width: 46ch; }
.section-intro { max-width: 60ch; margin-bottom: 2.4rem; font-size: 1.05rem; }
.pull {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--accent);
  margin-top: 1.2rem;
  line-height: 1.3;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(241, 238, 233, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(92, 115, 102, .16);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--sage-dark); }
.brand-mark { width: 46px; height: auto; }
.brand-name { font-family: var(--font-script); font-size: 1.9rem; line-height: 1; color: var(--sage); }

.site-nav { display: flex; align-items: center; gap: 1.7rem; }
.site-nav a { font-family: var(--font-body); font-weight: 400; font-size: .95rem; color: var(--ink); text-decoration: none; }
.site-nav a:hover { color: var(--accent); }
.nav-cta {
  background: var(--sage); color: #fff !important;
  padding: .55rem 1.1rem; border-radius: 999px; font-weight: 500 !important;
}
.nav-cta:hover { background: var(--sage-dark); }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px auto; background: var(--sage-dark); transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Botones ---------- */
.btn {
  display: inline-block; text-align: center;
  font-family: var(--font-body); font-weight: 500; font-size: .98rem;
  padding: .85rem 1.6rem; border-radius: 999px;
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: transform .12s ease, background .2s ease, color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--sage); color: #fff; }
.btn-primary:hover { background: var(--sage-dark); }
.btn-ghost { border-color: var(--sage); color: var(--sage-dark); }
.btn-ghost:hover { background: var(--sage); color: #fff; }
.btn-block { display: block; width: 100%; margin-top: 1.2rem; }

/* ---------- Secciones ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-sage { background: var(--sage); color: var(--cream); }
.section-sage h3 { color: #fff; }
.section-sage p { color: #e7ece2; }
.section-mint { background: var(--mint); }
.section-mint h3 { color: var(--sage-dark); }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--mint) 0%, var(--cream) 100%); padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
.hero h1 { margin-bottom: 1.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero-media img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Dos columnas ---------- */
.two-col { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(1.6rem, 5vw, 3.5rem); align-items: center; }
.portrait img, .contact-form { border-radius: var(--radius); }
.portrait img { box-shadow: var(--shadow); }
#sobre-mi p + p { margin-top: .9rem; }

/* ---------- Método ---------- */
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; margin-top: 2.5rem; }
.method-grid article { background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--radius-sm); padding: 1.6rem; }

/* ---------- Servicios ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; align-items: start; }
.card {
  background: var(--white); border-radius: var(--radius);
  padding: 2rem 1.7rem; box-shadow: var(--shadow);
  border: 1px solid rgba(92, 115, 102, .12);
  display: flex; flex-direction: column; height: 100%;
}
.card-featured { border: 2px solid var(--sage); position: relative; }
.badge {
  position: absolute; top: -14px; left: 1.7rem;
  background: var(--accent); color: #fff;
  font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  padding: .3rem .8rem; border-radius: 999px; font-weight: 500;
}
.price { font-family: var(--font-head); font-size: 2rem; color: var(--sage-dark); margin: .3rem 0 1rem; font-variant-numeric: lining-nums; }
.price span { font-family: var(--font-body); font-size: .85rem; color: var(--ink-soft); font-weight: 300; }
.card ul { list-style: none; display: grid; gap: .6rem; margin-bottom: auto; }
.card li { position: relative; padding-left: 1.4rem; font-size: .95rem; }
.card li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--olive); }
.note { margin-top: 2rem; text-align: center; color: var(--ink-soft); }

/* ---------- Proceso ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; margin-top: 2.5rem; counter-reset: s; }
.steps li { background: var(--cream-2); border-radius: var(--radius-sm); padding: 1.6rem 1.3rem; }
.step-num {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--sage); color: #fff;
  font-family: var(--font-head); font-size: 1.35rem; margin-bottom: .8rem;
  font-variant-numeric: lining-nums; font-weight: 700;
}

/* ---------- Testimonios ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2rem; }
blockquote {
  background: var(--white); border-radius: var(--radius-sm);
  padding: 1.6rem; box-shadow: var(--shadow);
  border-left: 4px solid var(--sand);
}
blockquote p { font-family: var(--font-head); font-size: 1.15rem; font-style: italic; color: var(--ink); }
blockquote cite { display: block; margin-top: .9rem; font-style: normal; font-size: .85rem; color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq { margin-top: 2rem; max-width: 780px; }
.faq details {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--radius-sm); margin-bottom: .8rem; padding: 0 1.3rem;
}
.faq summary {
  cursor: pointer; padding: 1.1rem 0; font-weight: 400;
  color: var(--cream); list-style: none; display: flex; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-head); font-size: 1.5rem; line-height: 1; color: #cdd8c6; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 1.2rem; color: #e7ece2; }

/* ---------- Contacto ---------- */
.contact-grid { align-items: start; }
.contact-list { list-style: none; margin-top: 1.4rem; display: grid; gap: .7rem; }
.contact-list a { font-weight: 400; color: var(--ink); text-decoration: none; }
.contact-list a:hover { color: var(--accent); }
.contact-form { background: var(--white); padding: clamp(1.5rem, 4vw, 2.2rem); box-shadow: var(--shadow); display: grid; gap: 1rem; }
.contact-form label { display: grid; gap: .35rem; font-size: .9rem; color: var(--ink-soft); font-weight: 400; }
.contact-form .opt { color: #9aa89d; }
.contact-form input, .contact-form textarea {
  font-family: var(--font-body); font-size: 1rem; font-weight: 300;
  padding: .75rem .9rem; border: 1.5px solid #d7ded6; border-radius: 10px;
  background: var(--cream-2); color: var(--ink); width: 100%;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--sage); border-color: var(--sage); background: #fff; }
.contact-form textarea { resize: vertical; }
.check { grid-template-columns: auto 1fr; align-items: start; gap: .6rem !important; }
.check input { width: auto; margin-top: .25rem; }
.form-status { font-size: .9rem; min-height: 1.2em; }
.form-status.ok { color: var(--accent); }
.form-status.err { color: #b3402e; }
.hidden { display: none !important; }

/* ---------- Footer ---------- */
.site-footer { background: var(--sage-dark); color: var(--cream); padding: 3rem 0 2rem; }
.footer-inner { display: grid; gap: 1.4rem; }
.footer-brand { display: flex; align-items: center; gap: .9rem; }
.footer-brand p { font-size: .9rem; line-height: 1.5; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer-nav a { color: #dbe3d7; font-size: .88rem; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-copy { font-size: .8rem; color: #a9b6a9; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 150;
  max-width: 620px; margin-inline: auto;
  background: var(--white); border: 1px solid rgba(92, 115, 102, .2);
  border-radius: var(--radius-sm); box-shadow: var(--shadow);
  padding: 1rem 1.2rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.cookie-banner p { font-size: .85rem; flex: 1 1 260px; }
.cookie-banner .btn { padding: .55rem 1.2rem; font-size: .88rem; }

/* ---------- WhatsApp flotante ---------- */
.whatsapp-fab {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 140;
  width: 54px; height: 54px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 25px -8px rgba(0,0,0,.4);
}
.whatsapp-fab:hover { background: #1da851; }

/* ---------- Páginas legales ---------- */
.legal { padding: clamp(2.5rem, 6vw, 4rem) 0 4rem; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 1.5rem; }
.legal h2 { font-size: 1.4rem; margin: 2rem 0 .6rem; }
.legal p, .legal li { font-size: .98rem; margin-bottom: .7rem; }
.legal ul { padding-left: 1.3rem; }
.legal a { word-break: break-word; }
.back-link { display: inline-block; margin-top: 2.5rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .two-col { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .method-grid, .cards, .steps, .quotes { grid-template-columns: 1fr; }
  .site-nav {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); padding: .5rem 1.2rem 1.4rem;
    border-bottom: 1px solid rgba(92,115,102,.16);
    transition: transform .28s ease;
    max-height: calc(100dvh - 72px); overflow-y: auto;
  }
  .site-nav:not(.open) { transform: translateY(-120%); pointer-events: none; }
  .site-nav.open { transform: translateY(0); }
  .site-nav a { padding: .9rem .2rem; border-bottom: 1px solid rgba(92,115,102,.12); }
  .nav-cta { text-align: center; margin-top: .8rem; border-bottom: 0 !important; }
  .nav-toggle { display: block; }
}

@media (min-width: 620px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps, .quotes, .method-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .quotes, .method-grid { grid-template-columns: repeat(3, 1fr); }
}

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