/* ============================================
   FERNANDO DÍEZ SERRANO · PSICÓLOGO EN ÁVILA
   Shared Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400;1,600&family=Jost:wght@300;400;500&display=swap');

:root {
  --stone:      #ffffff;
  --warm:       #e0f2fc;
  --parchment:  #c6def6;
  --terracota:  #5081be;
  --accent:     #7ebada;
  --dark:       #1a2e4a;
  --mid:        #3a5475;
  --light:      #7ebada;
  --white:      #e5f5fa;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  background: var(--stone);
  color: var(--dark);
  overflow-x: hidden;
  cursor: none;
}

/* ── CUSTOM CURSOR ── */
.cursor-dot {
  position: fixed;
  width: 8px; height: 8px;
  background: var(--terracota);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform .1s, width .25s, height .25s, background .25s;
  mix-blend-mode: multiply;
}
.cursor-ring {
  position: fixed;
  width: 36px; height: 36px;
  border: 1px solid var(--terracota);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform .18s ease, width .25s, height .25s, opacity .25s;
  opacity: .6;
}
body:has(a:hover) .cursor-dot,
body:has(button:hover) .cursor-dot { width: 14px; height: 14px; background: var(--accent); }
body:has(a:hover) .cursor-ring,
body:has(button:hover) .cursor-ring { width: 54px; height: 54px; opacity: .3; }

/* ── SILENCE OVERLAY ── */
.silence-overlay {
  position: fixed; inset: 0;
  background: rgba(26,46,74,.82);
  backdrop-filter: blur(3px);
  z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .8s;
}
.silence-overlay.active { opacity: 1; pointer-events: all; }
.silence-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 300;
  font-style: italic;
  color: var(--white);
  text-align: center;
  line-height: 1.4;
  letter-spacing: .02em;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1s .3s, transform 1s .3s;
}
.silence-overlay.active .silence-text { opacity: 1; transform: none; }

/* ── BREATHING WIDGET ── */
.breathing-widget {
  position: fixed;
  bottom: 2rem; right: 2rem;
  z-index: 500;
  display: flex; flex-direction: column; align-items: center; gap: .7rem;
  opacity: 0;
  transition: opacity .5s;
}
.breathing-widget.visible { opacity: 1; }
.breathing-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--terracota);
  background: var(--stone);
  cursor: none;
  display: flex; align-items: center; justify-content: center;
  color: var(--terracota);
  transition: background .2s;
  box-shadow: 0 2px 12px rgba(80,129,190,.15);
}
.breathing-btn:hover { background: var(--warm); }
.breathing-panel {
  position: absolute;
  bottom: 58px; right: 0;
  width: 200px;
  background: var(--dark);
  border-radius: 4px;
  padding: 1.5rem;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  opacity: 0; pointer-events: none;
  transform: translateY(8px);
  transition: opacity .3s, transform .3s;
}
.breathing-panel.open { opacity: 1; pointer-events: all; transform: none; }
.breath-circle {
  width: 70px; height: 70px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.breath-inner {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .4;
  transition: transform 4s ease-in-out, opacity 4s ease-in-out;
}
.breath-inner.inhale { transform: scale(2); opacity: .8; }
.breath-inner.exhale { transform: scale(1); opacity: .4; }
.breath-label {
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  font-weight: 300;
}

/* ── PROGRESS BAR ── */
.progress-bar {
  position: fixed; top: 0; left: 0;
  height: 2px;
  background: var(--terracota);
  z-index: 1001;
  width: 0%;
  transition: width .1s linear;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem 6vw;
  transition: background .4s, backdrop-filter .4s, box-shadow .4s;
  background: rgba(244,239,232,.96);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(80,129,190,.12);
}
.menu-toggle { display:none; }
nav.scrolled {
  background: rgba(244,239,232,.94);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(80,129,190,.12);
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--dark);
  text-decoration: none;
  letter-spacing: .03em;
  display: flex; align-items: center; gap: .8rem;
}
.nav-logo img {
  height: 36px; width: auto;
  object-fit: contain;
}
.nav-links { display: flex; gap: 2.2rem; list-style: none; align-items: center; }
.nav-links a {
  font-size: .8rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; color: var(--mid);
  transition: color .2s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0; right: 0;
  height: 1px; background: var(--terracota);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s;
}
.nav-links a:hover { color: var(--terracota); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--terracota); }
.nav-cta {
  background: var(--terracota) !important;
  color: #fff !important;
  padding: .55rem 1.4rem !important;
  border-radius: 2px;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--accent) !important; }

/* ── HERO BASE ── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative; overflow: hidden;
}
.hero-left {
  display: flex; flex-direction: column; justify-content: center;
  padding: 14vh 6vw 8vh 8vw;
  position: relative; z-index: 2;
}
.hero-right { position: relative; overflow: hidden; }
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  animation: fadeIn 1.2s .6s forwards;
}
.hero-img-placeholder {
  width: 100%; height: 100%;
  background: var(--warm);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; color: var(--light);
  letter-spacing: .1em; text-transform: uppercase;
}

/* ── TYPOGRAPHY ── */
.hero-tag {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .76rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--terracota); margin-bottom: 1.8rem;
  opacity: 0; animation: fadeUp .8s .2s forwards;
}
.hero-tag::before {
  content: ''; display: block;
  width: 2rem; height: 1px; background: var(--terracota);
}
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 4.5vw, 5.2rem);
  font-weight: 300; line-height: 1.06; color: var(--dark);
  opacity: 0; animation: fadeUp .9s .35s forwards;
}
.hero-title em { font-style: italic; color: var(--terracota); }
.hero-sub {
  margin-top: 1.6rem; font-size: 1rem; font-weight: 300;
  line-height: 1.78; color: var(--mid); max-width: 40ch;
  opacity: 0; animation: fadeUp .9s .5s forwards;
}
.hero-actions {
  display: flex; gap: 1.2rem; margin-top: 2.6rem;
  opacity: 0; animation: fadeUp .9s .65s forwards; flex-wrap: wrap;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--terracota); color: #fff;
  padding: .9rem 2rem; font-size: .82rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; border-radius: 2px;
  transition: background .25s, transform .2s;
  cursor: none;
}
.btn-primary:hover { background: var(--accent); transform: translateY(-2px); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--mid); font-size: .82rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; padding: .9rem 0;
  border-bottom: 1px solid currentColor;
  transition: color .2s; cursor: none;
}
.btn-ghost:hover { color: var(--terracota); }

/* ── SECTION LABELS ── */
.section-tag {
  font-size: .76rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--terracota); margin-bottom: 1rem;
  display: flex; align-items: center; gap: .6rem;
}
.section-tag::before {
  content: ''; width: 1.5rem; height: 1px;
  background: var(--terracota); display: block;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 300; line-height: 1.15; color: var(--dark);
  margin-bottom: 1.4rem;
}
.section-title em { font-style: italic; color: var(--terracota); }
.section-body {
  font-size: .98rem; font-weight: 300;
  line-height: 1.82; color: var(--mid); margin-bottom: 1.1rem;
}

/* ── STATS ── */
.stats {
  background: var(--dark);
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.stat-item {
  padding: 3rem 4vw;
  border-right: 1px solid rgba(255,255,255,.07);
  opacity: 0; transform: translateY(20px);
  transition: opacity .6s, transform .6s;
}
.stat-item:last-child { border-right: none; }
.stat-item.visible { opacity: 1; transform: none; }
.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.2rem; font-weight: 300;
  color: var(--accent); line-height: 1;
}
.stat-label {
  margin-top: .5rem; font-size: .78rem; font-weight: 300;
  letter-spacing: .08em; color: rgba(255,255,255,.45);
  text-transform: uppercase;
}

/* ── CONTENT GRID ── */
.two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
}
.two-col-img {
  position: relative; overflow: hidden; min-height: 520px;
}
.two-col-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.two-col-content {
  padding: 7vw 6vw 7vw 5vw;
  display: flex; flex-direction: column; justify-content: center;
}
.two-col.reverse .two-col-img { order: 2; }
.two-col.reverse .two-col-content { order: 1; padding: 7vw 5vw 7vw 6vw; }

/* ── PHOTO STRIP ── */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.photo-strip-item {
  position: relative; overflow: hidden;
  aspect-ratio: 4/3;
}
.photo-strip-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .6s ease;
}
.photo-strip-item:hover img { transform: scale(1.04); }
.photo-strip-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1.5rem 1.2rem .8rem;
  background: linear-gradient(transparent, rgba(28,24,20,.6));
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.7); font-weight: 300;
  opacity: 0; transition: opacity .3s;
}
.photo-strip-item:hover .photo-strip-caption { opacity: 1; }

/* ── FAQ ── */
.faq-section {
  padding: 8rem 8vw; background: var(--warm);
  display: grid; grid-template-columns: 1fr 2fr; gap: 6rem; align-items: start;
}
.faq-left { position: sticky; top: 7rem; }
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-top: 1px solid rgba(80,129,190,.18); overflow: hidden; }
.faq-item:last-child { border-bottom: 1px solid rgba(80,129,190,.18); }
.faq-q {
  width: 100%; background: none; border: none;
  padding: 1.5rem 0; display: flex; align-items: center;
  justify-content: space-between; gap: 1rem;
  text-align: left; cursor: none;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.22rem; font-weight: 400; color: var(--dark);
  transition: color .2s;
}
.faq-q:hover { color: var(--terracota); }
.faq-q .arrow { min-width: 1.1rem; transition: transform .35s; color: var(--terracota); }
.faq-item.open .faq-q .arrow { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-item.open .faq-a { max-height: 300px; }
.faq-a p {
  padding-bottom: 1.5rem; font-size: .93rem;
  font-weight: 300; line-height: 1.8; color: var(--mid);
}

/* ── PRICE ── */
.price-section {
  background: var(--dark); padding: 7rem 8vw;
  display: flex; align-items: center; gap: 6vw; flex-wrap: wrap;
}
.price-left { flex: 1; min-width: 260px; }
.price-left .section-tag { color: var(--accent); }
.price-left .section-tag::before { background: var(--accent); }
.price-left .section-title { color: #fff; }
.price-left .section-title em { color: var(--accent); }
.price-left p { color: rgba(255,255,255,.5); font-size: .95rem; font-weight: 300; line-height: 1.8; max-width: 40ch; }
.price-card {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  padding: 3rem; min-width: 280px; text-align: center; border-radius: 2px;
}
.price-amount {
  font-family: 'Cormorant Garamond', serif; font-size: 5rem;
  font-weight: 300; color: #fff; line-height: 1;
}
.price-amount sup { font-size: 2rem; vertical-align: super; color: var(--accent); }
.price-period { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.35); margin-top: .4rem; margin-bottom: 2rem; }
.price-features { list-style: none; display: flex; flex-direction: column; gap: .65rem; text-align: left; margin-bottom: 2rem; }
.price-features li { font-size: .88rem; font-weight: 300; color: rgba(255,255,255,.6); display: flex; gap: .8rem; align-items: flex-start; }
.price-features li::before { content: '✓'; color: var(--accent); font-size: .8rem; flex-shrink: 0; }

/* ── CONTACT ── */
.contact-section {
  padding: 8rem 8vw;
  display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; align-items: start;
}
.contact-details { display: flex; flex-direction: column; gap: 1.2rem; margin-top: 2rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-icon { width: 1.1rem; color: var(--terracota); flex-shrink: 0; margin-top: .2rem; }
.contact-item span { font-size: .93rem; font-weight: 300; color: var(--mid); line-height: 1.55; }
.contact-steps-box { background: var(--warm); padding: 3rem; border-radius: 2px; }
.whatsapp-btn {
  display: flex; align-items: center; justify-content: center; gap: .8rem;
  background: #25d366; color: #fff; padding: 1rem 2rem;
  font-size: .85rem; font-weight: 500; letter-spacing: .06em;
  text-transform: uppercase; text-decoration: none; border-radius: 2px;
  transition: opacity .2s, transform .2s; margin-bottom: 2rem; cursor: none;
}
.whatsapp-btn:hover { opacity: .9; transform: translateY(-2px); }
.step { display: flex; gap: 1.1rem; align-items: flex-start; margin-bottom: 1.1rem; }
.step-num {
  font-family: 'Cormorant Garamond', serif; font-size: 1.5rem;
  font-weight: 300; color: var(--terracota); line-height: 1; flex-shrink: 0; width: 1.4rem;
}
.step p { font-size: .9rem; font-weight: 300; line-height: 1.65; color: var(--mid); }

/* ── CRED LIST ── */
.cred-list { margin-top: 1.8rem; display: flex; flex-direction: column; gap: .75rem; list-style: none; }
.cred-list li {
  display: flex; align-items: flex-start; gap: .8rem;
  font-size: .9rem; font-weight: 300; color: var(--mid); line-height: 1.5;
}
.cred-list li::before {
  content: ''; display: block; min-width: 5px; min-height: 5px;
  border-radius: 50%; background: var(--terracota); margin-top: .5rem;
}

/* ── FOOTER ── */
footer {
  background: var(--dark); padding: 2.8rem 8vw;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap;
}
.footer-logo { font-family: 'Cormorant Garamond', serif; font-size: 1.05rem; color: rgba(255,255,255,.4); font-weight: 300; }
.footer-links { display: flex; gap: 1.8rem; list-style: none; }
.footer-links a { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.3); text-decoration: none; transition: color .2s; cursor: none; }
.footer-links a:hover { color: rgba(255,255,255,.65); }
.footer-copy { font-size: .75rem; color: rgba(255,255,255,.2); }

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .65s, transform .65s; }
.reveal.visible { opacity: 1; transform: none; }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:none; } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  body { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none; }
  .hero, .two-col, .contact-section { grid-template-columns: 1fr; }
  .hero-right { min-height: 45vw; }
  .two-col.reverse .two-col-img, .two-col.reverse .two-col-content { order: unset; }
  .stats { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.07); }
  .photo-strip { grid-template-columns: 1fr; }
  .faq-section { grid-template-columns: 1fr; gap: 3rem; }
  .faq-left { position: static; }
  .nav-links { display: none; }
  .price-section { flex-direction: column; }
  .breathing-widget { bottom: 1rem; right: 1rem; }
}


/* ── FIX RESPONSIVE / MOBILE MENU ── */
html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
img, svg, video, canvas { max-width: 100%; height: auto; }
section, header, footer, main, .hero, .two-col, .contact-section, .price-section { max-width: 100%; }
.nav-links { margin: 0; }

@media (max-width: 900px) {
  nav { padding: .85rem 1rem; min-height: 68px; }
  .nav-logo { font-size: .98rem; max-width: calc(100% - 58px); line-height: 1.1; }
  .nav-logo img { height: 32px; }
  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(80,129,190,.24);
    background: rgba(255,255,255,.72);
    color: var(--dark);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    z-index: 1002;
  }
  .menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--dark);
    transition: transform .25s ease, opacity .25s ease;
  }
  nav.nav-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  nav.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
  nav.nav-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .8rem 1rem 1.1rem;
    background: rgba(244,239,232,.98);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 35px rgba(26,46,74,.14);
    border-top: 1px solid rgba(80,129,190,.14);
    z-index: 1001;
  }
  nav.nav-open .nav-links { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    width: 100%;
    padding: .95rem .35rem;
    font-size: .84rem;
    color: var(--dark);
  }
  .nav-cta { text-align: center; margin-top: .45rem; }
  .hero { min-height: auto; padding-top: 68px; }
  .hero-left { padding: 3.5rem 1.25rem 3rem; }
  .hero-title { font-size: clamp(2.45rem, 13vw, 3.7rem); word-break: normal; overflow-wrap: anywhere; }
  .hero-sub, .section-body, p { overflow-wrap: anywhere; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-ghost, .whatsapp-btn { width: 100%; justify-content: center; white-space: normal; text-align: center; }
  .hero-right { min-height: 320px; }
  .section-title { font-size: clamp(2rem, 10vw, 3.2rem); overflow-wrap: anywhere; }
  .contact-steps-box, .price-card { min-width: 0; width: 100%; padding: 2rem 1.25rem; }
  .footer-links { width: 100%; flex-direction: column; gap: .8rem; }
}

/* ── BANNER DE COOKIES ── */
.cookie-consent {
  position: fixed;
  left: 1.2rem;
  right: 1.2rem;
  bottom: 1.2rem;
  max-width: 980px;
  margin: 0 auto;
  padding: 1.15rem 1.25rem;
  background: rgba(244,239,232,.98);
  border: 1px solid rgba(181,113,74,.24);
  box-shadow: 0 20px 60px rgba(26,46,74,.18);
  z-index: 3000;
  display: none;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  backdrop-filter: blur(14px);
}
.cookie-consent.show { display: grid; }
.cookie-consent p {
  margin: 0;
  font-size: .9rem;
  line-height: 1.55;
  color: var(--mid);
  font-weight: 300;
}
.cookie-consent strong { color: var(--dark); font-weight: 500; }
.cookie-actions { display: flex; gap: .7rem; flex-wrap: wrap; justify-content: flex-end; }
.cookie-actions button, .cookie-actions a {
  border: 1px solid rgba(80,129,190,.25);
  background: rgba(255,255,255,.55);
  color: var(--dark);
  padding: .72rem 1rem;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  font-family: 'Jost', sans-serif;
}
.cookie-actions .accept-cookies {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.cookie-actions .reject-cookies {
  background: transparent;
}
@media(max-width:700px){
  .cookie-consent { grid-template-columns: 1fr; left: .8rem; right: .8rem; bottom: .8rem; padding: 1rem; }
  .cookie-actions { justify-content: stretch; }
  .cookie-actions button, .cookie-actions a { flex: 1; text-align: center; }
}
