/* ============================================
   JULIETA ROVE — Psicoanálisis & Terapias Alternativas
   Light elegant theme with lavender accents
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Nunito+Sans:ital,wght@0,300;0,400;0,600;1,300;1,400&display=swap');

/* --- CSS Variables --- */
:root {
  --lavender-primary: #8B7BA8;
  --lavender-light: #A690C4;
  --lavender-soft: #D4C5E3;
  --lavender-pale: #E8E0F0;
  --purple-mid: #6B5B7F;
  --purple-dark: #4A3D5A;
  --cream-bg: #FAF8F5;
  --cream-card: #F5F2ED;
  --beige-warm: #E8E3DC;
  --text-dark: #3D3532;
  --text-soft: #6D635E;
  --text-muted: #9B9189;
  --white-soft: #FEFDFB;
  --lavender-glow: rgba(139, 123, 168, 0.12);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Nunito Sans', 'Segoe UI', sans-serif;
  --max-width: 1140px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 16px;
  --shadow-sm: 0 2px 8px rgba(139, 123, 168, 0.08);
  --shadow-md: 0 4px 16px rgba(139, 123, 168, 0.12);
  --shadow-lg: 0 8px 32px rgba(139, 123, 168, 0.16);
}

body.dark-mode {
  --cream-bg: #141216;
  --cream-card: #1c1a1f;
  --beige-warm: #242129;
  --text-dark: #e8e2ec;
  --text-soft: #b0a8b8;
  --text-muted: #7a7280;
  --white-soft: #f5f0f8;
  --lavender-glow: rgba(123, 63, 142, 0.15);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
}

*, *::before, *::after { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--text-dark);
  background: var(--cream-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

img { 
  max-width: 100%; 
  height: auto; 
  display: block; 
}

a { 
  color: var(--lavender-primary); 
  text-decoration: none; 
  transition: var(--transition); 
}

a:hover { 
  color: var(--purple-mid); 
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.2;
  color: var(--text-dark);
}

h1 { 
  font-size: clamp(2.4rem, 5vw, 3.8rem); 
  letter-spacing: -0.02em; 
}

h2 { 
  font-size: clamp(1.8rem, 3.5vw, 2.6rem); 
  letter-spacing: -0.01em; 
}

h3 { 
  font-size: clamp(1.3rem, 2.5vw, 1.6rem); 
}

h4 { 
  font-size: 1.1rem; 
  font-weight: 400; 
}

p { 
  margin-bottom: 1em; 
}

.text-accent { 
  color: var(--lavender-primary); 
}

.text-muted { 
  color: var(--text-muted); 
}

.text-center { 
  text-align: center; 
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(ellipse at 20% 0%, var(--lavender-glow) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 100%, var(--lavender-glow) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 24px;
  transition: var(--transition);
  background: rgba(250, 248, 245, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(139, 123, 168, 0.15);
}

body.dark-mode .nav {
  background: rgba(20, 18, 22, 0.85);
}

.nav.scrolled {
  background: rgba(250, 248, 245, 0.95);
  border-bottom-color: rgba(139, 123, 168, 0.25);
  box-shadow: var(--shadow-sm);
}

body.dark-mode .nav.scrolled {
  background: rgba(20, 18, 22, 0.95);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo img {
  height: 88px;
  width: auto;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-dark);
  letter-spacing: 0.02em;
}

.nav-logo-text span {
  display: block;
  font-size: 0.65rem;
  font-family: var(--font-body);
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: -2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-soft);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--lavender-primary);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-dark);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-lang {
  font-size: 0.75rem;
  padding: 5px 14px;
  border: 1px solid var(--lavender-soft);
  border-radius: 20px;
  color: var(--lavender-primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-lang:hover {
  background: var(--lavender-pale);
  color: var(--purple-mid);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  margin: 5px 0;
  transition: var(--transition);
  border-radius: 2px;
}

.nav-toggle.open span:nth-child(1) { 
  transform: rotate(45deg) translate(5px, 5px); 
}

.nav-toggle.open span:nth-child(2) { 
  opacity: 0; 
}

.nav-toggle.open span:nth-child(3) { 
  transform: rotate(-45deg) translate(5px, -5px); 
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--lavender-glow) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 720px;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lavender-primary);
  border: 1px solid var(--lavender-soft);
  padding: 6px 20px;
  border-radius: 20px;
  margin-bottom: 32px;
}

.hero h1 {
  margin-bottom: 12px;
}

.hero h1 em {
  font-style: italic;
  color: var(--lavender-primary);
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text-soft);
  margin-bottom: 40px;
}

.hero-text {
  font-size: 1rem;
  color: var(--text-soft);
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.8;
}

.hero-image-container {
  margin: 48px auto 0;
  max-width: 600px;
}

.hero-image-container img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 36px;
  border-radius: 40px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--lavender-primary) 0%, var(--purple-mid) 100%);
  color: var(--white-soft);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--white-soft);
}

.btn-outline {
  background: transparent;
  color: var(--lavender-primary);
  border: 1px solid var(--lavender-soft);
}

.btn-outline:hover {
  background: var(--lavender-pale);
  border-color: var(--lavender-primary);
  color: var(--purple-mid);
}

.btn-whatsapp {
  background: #25D366;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.35);
  color: #fff;
}

.btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

section {
  position: relative;
  z-index: 1;
  padding: 100px 0;
}

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lavender-primary);
  margin-bottom: 16px;
}

.section-title {
  margin-bottom: 20px;
}

.section-intro {
  font-size: 1.05rem;
  color: var(--text-soft);
  max-width: 600px;
  line-height: 1.8;
}

.section-intro.centered {
  margin: 0 auto;
  text-align: center;
}

.divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--lavender-primary), transparent);
  margin: 48px auto;
}

.content-with-image {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin: 60px 0;
}

.content-with-image.reverse {
  grid-template-columns: 1fr 1fr;
}

.content-with-image.reverse .image-side {
  order: -1;
}

.image-side img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  width: 100%;
  height: auto;
  object-fit: cover;
}

.tabs-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.tab-btn {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  padding: 10px 24px;
  border: 1px solid var(--lavender-soft);
  border-radius: 30px;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn:hover {
  border-color: var(--lavender-primary);
  color: var(--text-dark);
}

.tab-btn.active {
  background: var(--lavender-primary);
  border-color: var(--lavender-primary);
  color: var(--white-soft);
}

.tab-panel {
  display: none;
  animation: fadeIn 0.4s ease;
}

.tab-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.service-card {
  background: var(--cream-card);
  border: 1px solid var(--lavender-soft);
  border-radius: var(--radius);
  padding: 48px 40px;
  max-width: 760px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}

.service-card h3 {
  margin-bottom: 8px;
}

.service-card .service-tagline {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--lavender-primary);
  font-size: 1.05rem;
  margin-bottom: 28px;
}

.service-card h4 {
  color: var(--lavender-primary);
  margin-top: 28px;
  margin-bottom: 10px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.service-card p {
  color: var(--text-soft);
  font-size: 0.95rem;
}

.service-card ul {
  list-style: none;
  padding: 0;
}

.service-card ul li {
  padding: 6px 0 6px 20px;
  position: relative;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.service-card ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--lavender-primary);
}

.service-image {
  margin: 32px 0;
  text-align: center;
}

.service-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  max-height: 400px;
  object-fit: cover;
}

.service-cta {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--lavender-soft);
  font-family: var(--font-display);
  font-style: italic;
  color: var(--text-muted);
  font-size: 1rem;
}

.service-cta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--lavender-primary);
}

.service-cta a:hover {
  color: var(--purple-mid);
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.approach-item {
  background: var(--cream-card);
  border: 1px solid var(--lavender-soft);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.approach-item:hover {
  border-color: var(--lavender-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.approach-icon {
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.approach-item h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.approach-item p {
  font-size: 0.9rem;
  color: var(--text-soft);
}

.about-hero {
  padding: 140px 0 80px;
  text-align: center;
}

.about-content {
  max-width: 720px;
  margin: 0 auto;
}

.about-content p {
  font-size: 1.05rem;
  color: var(--text-soft);
  line-height: 1.9;
  margin-bottom: 1.5em;
}

.about-content blockquote {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--lavender-primary);
  border-left: 2px solid var(--lavender-primary);
  padding: 16px 0 16px 28px;
  margin: 40px 0;
  line-height: 1.5;
}

.about-image {
  margin: 40px 0;
  text-align: center;
}

.about-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-width: 500px;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.method-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}

.method-tag {
  font-size: 0.8rem;
  padding: 6px 16px;
  background: var(--lavender-pale);
  border: 1px solid var(--lavender-soft);
  border-radius: 20px;
  color: var(--lavender-primary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--lavender-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--lavender-primary);
  fill: none;
  stroke-width: 1.5;
}

.contact-item h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.contact-item p, 
.contact-item a {
  font-size: 0.95rem;
  color: var(--text-soft);
}

.social-links {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--lavender-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--lavender-pale);
  border-color: var(--lavender-primary);
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: var(--lavender-primary);
}

.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--lavender-soft);
  height: 360px;
  box-shadow: var(--shadow-md);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--lavender-soft);
  padding: 40px 0;
  text-align: center;
}

.footer p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer a {
  color: var(--text-muted);
}

.footer a:hover {
  color: var(--lavender-primary);
}

.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 99;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
  transition: var(--transition);
}

.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.45);
}

.wa-float svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

.theme-toggle-btn {
  position: fixed;
  bottom: 96px;
  right: 28px;
  z-index: 99;
  width: 48px;
  height: 48px;
  background: var(--cream-card);
  border: 1px solid var(--lavender-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.theme-toggle-btn:hover {
  transform: scale(1.05);
  border-color: var(--lavender-primary);
  box-shadow: var(--shadow-lg);
}

.theme-toggle-btn svg {
  width: 20px;
  height: 20px;
  fill: var(--lavender-primary);
  transition: var(--transition);
}

.theme-toggle-btn .sun-icon {
  display: none;
}

body.dark-mode .theme-toggle-btn .moon-icon {
  display: none;
}

body.dark-mode .theme-toggle-btn .sun-icon {
  display: block;
}

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(250, 248, 245, 0.97);
    backdrop-filter: blur(20px);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--lavender-soft);
  }
  body.dark-mode .nav-links.open {
    background: rgba(20, 18, 22, 0.97);
  }
  .hero { min-height: auto; padding: 130px 24px 80px; }
  .content-with-image,
  .content-with-image.reverse {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .content-with-image.reverse .image-side { order: 0; }
  .service-card { padding: 32px 24px; }
  .contact-grid { grid-template-columns: 1fr; }
  .map-container { height: 280px; }
  .tabs-nav { gap: 6px; }
  .tab-btn { padding: 8px 16px; font-size: 0.75rem; }
}

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  section { padding: 64px 0; }
  .approach-grid { grid-template-columns: 1fr; }
  .theme-toggle-btn {
    bottom: 96px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
  .wa-float {
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
  }
}

/* Layout 2/3 texto + 1/3 imagen pequeña */
.content-with-image-small {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: center;
  margin: 60px 0;
}

.content-side-large {
  grid-column: 1;
}

.image-side-small {
  grid-column: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-side-small img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  width: 300px !important;
  max-width: 300px !important;
  height: auto;
  object-fit: cover;
}

@media (max-width: 768px) {
  .content-with-image-small {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .image-side-small img {
    width: 180px !important;
    max-width: 180px !important;
  }
}