/* ═══════════════════════════════════════════════════════
   Elisabet Alzueta — Shared Stylesheet
   ═══════════════════════════════════════════════════════ */

/* ── Variables ──────────────────────────────────────────── */
:root {
  --primary:       #86471a;
  --primary-light: #a86035;
  --peach:         #e2c0a8;
  --cream:         #efe9e3;
  --rose:          #f5d5d5;
  --lavender:      #e8d2f5;
  --sage:          #d5e8e0;
  --dark:          #3d2b1f;
  --medium:        #7a5c4a;
  --light:         #faf6f3;

  --font-cursive:  'Oooh Baby', cursive;
  --font-heading:  'Julius Sans One', sans-serif;
  --font-body:     'Outfit', sans-serif;

  --radius:        1.2rem;
  --shadow:        0 8px 40px rgba(134,71,26,0.08);
  --shadow-hover:  0 20px 60px rgba(134,71,26,0.14);
  --transition:    0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--dark);
  background: var(--light);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
strong { font-weight: 400; }

/* ── Scroll-reveal ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }

/* ── Nav ────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 1.4rem 2.5rem;
  display: flex; align-items: center; justify-content: space-between;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}
.nav.scrolled {
  background: rgba(250,246,243,0.94);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 2px 20px rgba(134,71,26,0.07);
  padding: 0.9rem 2.5rem;
}
.nav-brand {
  font-family: var(--font-cursive);
  font-size: 1.65rem; color: var(--primary);
}
.nav-links {
  display: flex; gap: 2.2rem; list-style: none; align-items: center;
}
.nav-links a {
  font-size: 0.82rem; font-weight: 400;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--medium); transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: linear-gradient(to right, var(--rose), var(--lavender));
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--primary); }
.nav-links a.active::after { width: 100%; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px; background: none; border: none;
}
.nav-toggle span {
  width: 24px; height: 1.5px;
  background: var(--medium); border-radius: 2px;
  transition: var(--transition);
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.9rem 2.2rem; border-radius: 50px;
  font-family: var(--font-body); font-size: 0.88rem;
  font-weight: 400; letter-spacing: 0.04em;
  cursor: pointer; border: none; transition: var(--transition);
}
.btn-primary {
  background: var(--primary); color: white;
  box-shadow: 0 4px 22px rgba(134,71,26,0.28);
}
.btn-primary:hover {
  background: var(--primary-light);
  box-shadow: 0 8px 36px rgba(134,71,26,0.38);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent; color: var(--primary);
  border: 1.5px solid rgba(226,192,168,0.7);
}
.btn-outline:hover { background: var(--cream); transform: translateY(-2px); }

/* ── Section base ───────────────────────────────────────── */
section { padding: 5.5rem 2.5rem; }
.inner { max-width: 1100px; margin: 0 auto; }
.s-label {
  display: block; font-size: 0.75rem; font-weight: 400;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 0.7rem;
}
.s-title {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 4vw, 3rem);
  color: var(--dark); letter-spacing: 0.04em; line-height: 1.15;
}
.s-title em {
  font-family: var(--font-cursive); font-style: normal;
  font-size: 1.12em; color: var(--primary);
}
.divider {
  width: 56px; height: 2px; border: none; border-radius: 2px;
  background: linear-gradient(to right, var(--rose), var(--lavender));
  margin: 1.4rem 0 2.2rem;
}

/* ── Page hero ──────────────────────────────────────────── */
.page-hero {
  padding: 9rem 2.5rem 5rem;
  position: relative; overflow: hidden;
}
/* Gradient overlay — decorative only, must not intercept clicks */
.page-hero::before {
  pointer-events: none;
}
/* Inner content sits above decorative layers */
.page-hero-inner {
  position: relative;
  z-index: 1;
}
.page-hero-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto;
  align-items: center; gap: 3rem;
}
.page-hero-breadcrumb {
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.7); margin-bottom: 1.2rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.page-hero-breadcrumb a { color: inherit; transition: color 0.2s; }
.page-hero-breadcrumb a:hover { color: white; }
.page-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 4rem);
  color: white; line-height: 1.1; margin-bottom: 1.2rem;
  letter-spacing: 0.02em;
}
.page-hero h1 em {
  font-family: var(--font-cursive); font-style: normal;
  font-size: 1.1em;
}
.page-hero p {
  font-size: 1.1rem; line-height: 1.75;
  color: rgba(255,255,255,0.88); max-width: 540px;
  margin-bottom: 2rem;
}
.page-hero-icon {
  width: 200px; height: 200px; object-fit: contain;
  opacity: 0.9; filter: brightness(0) invert(1) opacity(0.75);
  animation: float-icon 7s ease-in-out infinite alternate;
}
@keyframes float-icon {
  from { transform: translateY(0) rotate(-3deg); }
  to   { transform: translateY(-14px) rotate(3deg); }
}
/* Floating shapes in hero */
.page-hero .petal {
  position: absolute; border-radius: 60% 40% 70% 30% / 40% 60% 40% 60%;
  opacity: 0.12; pointer-events: none;
  animation: float-p 10s ease-in-out infinite alternate;
}
@keyframes float-p {
  from { transform: translate(0,0) rotate(0); }
  to   { transform: translate(12px,-16px) rotate(8deg); }
}

/* ── Content section ────────────────────────────────────── */
.content-section { background: var(--light); }
.content-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: start; margin-top: 3rem;
}
.content-text p {
  font-size: 1rem; line-height: 1.9; color: var(--medium);
  margin-bottom: 1.1rem;
}
.content-text p:first-of-type { font-size: 1.07rem; color: var(--dark); }
.content-text strong { color: var(--dark); }

/* ── Highlight list ─────────────────────────────────────── */
.highlight-section {
  padding: 5.5rem 2.5rem;
}
.check-list {
  list-style: none; margin-top: 2rem;
  display: flex; flex-direction: column; gap: 1rem;
}
.check-list li {
  display: flex; align-items: flex-start; gap: 1rem;
  background: rgba(255,255,255,0.65);
  border: 1px solid rgba(226,192,168,0.2);
  border-radius: 0.85rem; padding: 1rem 1.4rem;
  font-size: 0.95rem; line-height: 1.65; color: var(--medium);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.check-list li:hover { border-color: var(--peach); box-shadow: var(--shadow); }
.check-list li::before {
  content: '✦'; color: var(--peach); font-size: 0.7rem;
  flex-shrink: 0; margin-top: 0.3rem;
}
.check-list strong { color: var(--dark); }

/* ── Work section (¿en qué consiste?) ──────────────────── */
.work-list {
  list-style: none; margin-top: 1.5rem;
  display: flex; flex-direction: column; gap: 0.8rem;
}
.work-list li {
  display: flex; align-items: flex-start; gap: 0.85rem;
  font-size: 0.97rem; line-height: 1.7; color: var(--medium);
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(226,192,168,0.2);
}
.work-list li:last-child { border-bottom: none; }
.work-list li::before {
  content: '→'; color: var(--primary); font-size: 0.85rem;
  flex-shrink: 0; margin-top: 0.15rem;
}

/* ── CTA section ────────────────────────────────────────── */
.cta-section {
  padding: 5.5rem 2.5rem;
  text-align: center;
}
.cta-box {
  max-width: 680px; margin: 0 auto;
  padding: 3.5rem 3rem; border-radius: 2rem;
  border: 1px solid rgba(226,192,168,0.3);
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
.cta-box h2 {
  font-family: var(--font-cursive);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--primary); margin-bottom: 1rem; line-height: 1.3;
}
.cta-box p {
  font-size: 1rem; line-height: 1.8; color: var(--medium); margin-bottom: 1.5rem;
}
.cta-box .btn-group {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
}
.wa-btn {
  display: inline-flex; align-items: center; gap: 0.75rem;
  background: #25d366; color: white;
  border-radius: 50px; padding: 0.85rem 1.8rem;
  font-family: var(--font-body); font-size: 0.92rem;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(37,211,102,0.28);
}
.wa-btn:hover {
  background: #1db954; transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(37,211,102,0.38);
}

/* ── Related services ───────────────────────────────────── */
.related-section { background: var(--cream); padding: 5.5rem 2.5rem; }
.related-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem; margin-top: 2.5rem;
}
.related-card {
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(226,192,168,0.2);
  border-radius: var(--radius); padding: 2rem 1.8rem;
  display: flex; flex-direction: column; gap: 0.8rem;
  transition: var(--transition);
}
.related-card:hover {
  transform: translateY(-5px); box-shadow: var(--shadow-hover);
  border-color: rgba(226,192,168,0.4);
}
.related-card img {
  width: 52px; height: 52px; object-fit: contain;
}
.related-card h3 {
  font-family: var(--font-heading); font-size: 0.95rem;
  letter-spacing: 0.07em; color: var(--primary);
}
.related-card p { font-size: 0.88rem; line-height: 1.7; color: var(--medium); }
.related-card .related-link {
  margin-top: auto; font-size: 0.82rem; color: var(--primary);
  display: flex; align-items: center; gap: 0.3rem;
}

/* ── Footer ─────────────────────────────────────────────── */
footer {
  background: var(--dark); color: rgba(255,255,255,0.5);
  text-align: center; padding: 2.2rem;
  font-size: 0.8rem; line-height: 1.9;
}
footer a { color: rgba(255,255,255,0.75); text-decoration: underline; }

/* ── Scroll-to-top ──────────────────────────────────────── */
.back-top {
  position: fixed; bottom: 2rem; right: 2rem;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: white;
  display: flex; align-items: center; justify-content: center;
  border: none; cursor: pointer; font-size: 1rem;
  box-shadow: 0 4px 20px rgba(134,71,26,0.3);
  opacity: 0; transform: translateY(14px);
  transition: var(--transition); z-index: 100;
}
.back-top.show { opacity: 1; transform: translateY(0); }
.back-top:hover { background: var(--primary-light); transform: translateY(-2px); }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .page-hero-inner { grid-template-columns: 1fr; }
  .page-hero-icon { display: none; }
  .content-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(250,246,243,0.97);
    backdrop-filter: blur(14px);
    padding: 1.5rem 2.5rem; gap: 1.2rem;
    box-shadow: 0 8px 30px rgba(134,71,26,0.08);
  }
}
@media (max-width: 580px) {
  section { padding: 4rem 1.4rem; }
  .page-hero { padding: 8rem 1.4rem 4rem; }
  .cta-box { padding: 2.5rem 1.5rem; }
}
