/* Xilone Araiza · Psicóloga clínica — Estilos principales */

:root {
  --bg: #fdf6f3;
  --bg-alt: #f8e8e2;
  --rose-soft: #f5d4d4;
  --rose: #e8a8a8;
  --rose-deep: #c97a7a;
  --heart: #d65555;
  --ink: #3a2a28;
  --ink-soft: #6b5550;
  --cream: #fffaf7;
  --line: #e8d5cd;
  --serif: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --serif-display: "Cormorant Garamond", "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max-w: 1200px;
  --radius: 4px;
  --radius-lg: 12px;
  --shadow-soft: 0 8px 30px rgba(58, 42, 40, 0.06);
  --shadow-card: 0 2px 12px rgba(58, 42, 40, 0.05);
}

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

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rose-deep); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--heart); }
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* NAV */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(253, 246, 243, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; gap: 16px; }
.nav-brand { display: flex; align-items: baseline; gap: 10px; font-family: var(--serif-display); }
.nav-brand-name { font-size: 22px; font-weight: 500; color: var(--ink); letter-spacing: 0.5px; }
.nav-brand-role { font-size: 13px; color: var(--rose-deep); font-style: italic; letter-spacing: 1px; text-transform: lowercase; }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { color: var(--ink-soft); font-size: 14px; font-weight: 500; letter-spacing: 0.3px; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { background: var(--ink); color: var(--cream) !important; padding: 10px 22px; border-radius: 999px; font-size: 14px; font-weight: 500; transition: all 0.2s ease; }
.nav-cta:hover { background: var(--heart); color: var(--cream) !important; transform: translateY(-1px); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: all 0.3s ease; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); flex-direction: column; padding: 24px; gap: 18px; border-bottom: 1px solid var(--line); transform: translateY(-110%); transition: transform 0.3s ease; align-items: flex-start; }
  .nav-links.active { transform: translateY(0); }
}

/* HERO */
.hero { padding: 80px 0 100px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; top: -100px; right: -100px; width: 400px; height: 400px; background: radial-gradient(circle, var(--rose-soft) 0%, transparent 70%); opacity: 0.6; z-index: 0; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.hero-eyebrow { font-size: 13px; text-transform: uppercase; letter-spacing: 2px; color: var(--rose-deep); margin-bottom: 24px; font-weight: 500; display: block; }
.hero-title { font-family: var(--serif-display); font-size: clamp(38px, 5.5vw, 64px); line-height: 1.05; font-weight: 400; color: var(--ink); margin-bottom: 24px; letter-spacing: -0.5px; }
.hero-title em { font-style: italic; color: var(--rose-deep); font-weight: 400; }
.hero-description { font-size: 18px; color: var(--ink-soft); margin-bottom: 36px; max-width: 480px; line-height: 1.7; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 32px; }
.btn-primary, .btn-secondary { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: 999px; font-size: 15px; font-weight: 500; letter-spacing: 0.3px; border: none; cursor: pointer; transition: all 0.25s ease; font-family: var(--sans); }
.btn-primary { background: var(--ink); color: var(--cream); }
.btn-primary:hover { background: var(--heart); color: var(--cream); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(214, 85, 85, 0.3); }
.btn-secondary { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--cream); }
.hero-badges { display: flex; gap: 20px; flex-wrap: wrap; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-soft); letter-spacing: 0.3px; }
.hero-badge::before { content: "✦"; color: var(--heart); font-size: 12px; }
.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-logo-frame { position: relative; padding: 50px; background: var(--cream); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); max-width: 460px; width: 100%; }
.hero-logo-frame img { width: 100%; height: auto; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 50px 0 70px; }
  .hero-logo-frame { padding: 30px; max-width: 340px; }
}

/* Sección común */
section { padding: 90px 0; position: relative; }
.section-label { font-size: 13px; text-transform: uppercase; letter-spacing: 2.5px; color: var(--rose-deep); font-weight: 500; margin-bottom: 16px; display: block; }
.section-title { font-family: var(--serif-display); font-size: clamp(32px, 4vw, 48px); line-height: 1.15; font-weight: 400; color: var(--ink); margin-bottom: 24px; letter-spacing: -0.3px; }
.section-title em { font-style: italic; color: var(--rose-deep); font-weight: 400; }
.section-description { font-size: 17px; color: var(--ink-soft); max-width: 640px; line-height: 1.7; }

/* About */
.about { background: var(--bg-alt); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }
.about-content p { margin-bottom: 18px; font-size: 16px; color: var(--ink-soft); line-height: 1.75; }
.about-credentials { background: var(--cream); padding: 36px; border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.credential { padding: 18px 0; border-bottom: 1px solid var(--line); }
.credential:last-child { border-bottom: none; }
.credential-label { font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--rose-deep); margin-bottom: 4px; display: block; }
.credential-value { font-family: var(--serif-display); font-size: 19px; color: var(--ink); font-weight: 500; }

@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; gap: 36px; } }

/* Servicios */
.services-header { margin-bottom: 60px; max-width: 720px; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.service-card { background: var(--cream); padding: 36px 30px; border-radius: var(--radius-lg); border: 1px solid var(--line); transition: all 0.3s ease; position: relative; overflow: hidden; }
.service-card::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--rose-soft), var(--rose), var(--rose-deep)); transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon { width: 48px; height: 48px; background: var(--bg-alt); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; font-size: 22px; color: var(--rose-deep); }
.service-title { font-family: var(--serif-display); font-size: 22px; font-weight: 500; color: var(--ink); margin-bottom: 12px; }
.service-description { font-size: 15px; color: var(--ink-soft); line-height: 1.65; }

/* Áreas */
.areas { background: var(--bg-alt); }
.areas-header { text-align: center; margin-bottom: 50px; }
.areas-header .section-description { margin-left: auto; margin-right: auto; }
.areas-list { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 900px; margin: 0 auto; }
.area-tag { background: var(--cream); padding: 12px 22px; border-radius: 999px; font-size: 14px; color: var(--ink); border: 1px solid var(--line); transition: all 0.2s ease; }
.area-tag:hover { background: var(--rose-soft); border-color: var(--rose); transform: translateY(-2px); }

/* Testimonios */
.testimonials-header { margin-bottom: 60px; max-width: 720px; }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; margin-bottom: 24px; }
.testimonial-card { background: var(--cream); padding: 36px; border-radius: var(--radius-lg); border: 1px solid var(--line); position: relative; }
.testimonial-card::before { content: '"'; position: absolute; top: 12px; left: 24px; font-family: var(--serif-display); font-size: 80px; color: var(--rose-soft); line-height: 1; }
.testimonial-quote { font-family: var(--serif-display); font-size: 18px; font-style: italic; color: var(--ink); line-height: 1.6; margin-bottom: 24px; margin-top: 16px; position: relative; }
.testimonial-author { font-size: 14px; color: var(--ink); font-weight: 500; }
.testimonial-context { font-size: 13px; color: var(--rose-deep); font-style: italic; }
.testimonials-note { font-size: 12px; color: var(--ink-soft); text-align: center; font-style: italic; opacity: 0.7; }

/* Blog (home) */
.blog-section { background: var(--bg-alt); }
.blog-section-header { display: flex; justify-content: space-between; align-items: end; margin-bottom: 50px; flex-wrap: wrap; gap: 20px; }
.blog-section-header-content { max-width: 600px; }
.view-all-link { font-size: 14px; font-weight: 500; letter-spacing: 0.5px; border-bottom: 1px solid var(--rose-deep); padding-bottom: 2px; color: var(--rose-deep); }
.articles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.article-card { background: var(--cream); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); transition: all 0.3s ease; display: flex; flex-direction: column; color: var(--ink); }
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); color: var(--ink); }
.article-card-image { width: 100%; height: 200px; background: var(--bg-alt); background-size: cover; background-position: center; }
.article-card-image-placeholder { display: flex; align-items: center; justify-content: center; color: var(--rose); font-family: var(--serif-display); font-size: 60px; font-style: italic; background: linear-gradient(135deg, var(--rose-soft), var(--bg-alt)); }
.article-card-body { padding: 28px; display: flex; flex-direction: column; flex-grow: 1; }
.article-card-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: 12px; color: var(--ink-soft); flex-wrap: wrap; }
.article-card-category { background: var(--rose-soft); color: var(--rose-deep); padding: 4px 12px; border-radius: 999px; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; font-weight: 500; }
.article-card-title { font-family: var(--serif-display); font-size: 22px; font-weight: 500; color: var(--ink); margin-bottom: 12px; line-height: 1.3; }
.article-card-excerpt { font-size: 14px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 18px; flex-grow: 1; }
.article-card-link { font-size: 13px; font-weight: 500; letter-spacing: 0.5px; color: var(--rose-deep); align-self: start; }
.article-card-link::after { content: " →"; transition: transform 0.2s ease; display: inline-block; }
.article-card:hover .article-card-link::after { transform: translateX(4px); }

/* Newsletter */
.newsletter-card { background: linear-gradient(135deg, var(--rose-soft), var(--bg-alt)); border-radius: var(--radius-lg); padding: 60px; text-align: center; max-width: 800px; margin: 0 auto; position: relative; overflow: hidden; }
.newsletter-card::before { content: "✦"; position: absolute; top: 30px; left: 50%; transform: translateX(-50%); font-size: 24px; color: var(--heart); }
.newsletter-card .section-label, .newsletter-card .section-title { display: block; }
.newsletter-card .section-title { margin-left: auto; margin-right: auto; max-width: 600px; }
.newsletter-form { display: flex; gap: 12px; max-width: 480px; margin: 28px auto 16px; flex-wrap: wrap; }
.newsletter-input { flex: 1; min-width: 200px; padding: 14px 20px; border: 1px solid var(--line); border-radius: 999px; background: var(--cream); font-size: 15px; font-family: var(--sans); color: var(--ink); }
.newsletter-input:focus { outline: none; border-color: var(--rose-deep); }
.newsletter-privacy { font-size: 12px; color: var(--ink-soft); font-style: italic; }
.newsletter-success { margin-top: 16px; padding: 14px 20px; background: var(--cream); border-radius: var(--radius-lg); color: var(--ink); font-size: 14px; display: none; }
.newsletter-success.active { display: block; }

@media (max-width: 600px) { .newsletter-card { padding: 40px 24px; } }

/* FAQ */
.faq { background: var(--bg-alt); }
.faq-header { margin-bottom: 50px; max-width: 720px; }
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { background: var(--cream); border-radius: var(--radius-lg); margin-bottom: 12px; overflow: hidden; border: 1px solid var(--line); }
.faq-question { width: 100%; padding: 22px 28px; background: none; border: none; text-align: left; cursor: pointer; font-family: var(--sans); font-size: 16px; font-weight: 500; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-question::after { content: "+"; font-size: 24px; color: var(--rose-deep); font-weight: 300; transition: transform 0.2s ease; flex-shrink: 0; }
.faq-item.active .faq-question::after { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; padding: 0 28px; color: var(--ink-soft); line-height: 1.7; }
.faq-item.active .faq-answer { max-height: 500px; padding: 0 28px 22px; }

/* Contacto */
.contact { background: var(--ink); color: var(--cream); }
.contact .section-label { color: var(--rose); }
.contact .section-title { color: var(--cream); }
.contact .section-title em { color: var(--rose); }
.contact .section-description { color: rgba(255, 250, 247, 0.75); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.contact-info { padding: 30px 0; }
.contact-method { display: flex; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(255, 250, 247, 0.1); color: var(--cream); }
.contact-method:last-child { border-bottom: none; }
.contact-method:hover { color: var(--rose); }
.contact-method-icon { width: 44px; height: 44px; border-radius: 50%; background: rgba(232, 168, 168, 0.15); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 18px; }
.contact-method-label { font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--rose); margin-bottom: 2px; display: block; }
.contact-method-value { font-size: 16px; }
.contact-cta { background: var(--cream); padding: 50px; border-radius: var(--radius-lg); text-align: center; color: var(--ink); }
.contact-cta-title { font-family: var(--serif-display); font-size: 28px; font-weight: 500; margin-bottom: 16px; }
.contact-cta-description { color: var(--ink-soft); margin-bottom: 28px; font-size: 15px; }

@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

/* Footer */
.footer { background: var(--ink); color: rgba(255, 250, 247, 0.6); padding: 36px 0; border-top: 1px solid rgba(255, 250, 247, 0.08); font-size: 13px; text-align: center; }
.footer-social { display: flex; gap: 18px; justify-content: center; margin-bottom: 18px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(232, 168, 168, 0.1); display: flex; align-items: center; justify-content: center; color: var(--rose); transition: all 0.2s ease; }
.footer-social a:hover { background: var(--rose); color: var(--ink); }
.footer-social svg { width: 18px; height: 18px; }

/* Animaciones */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
