/* ===== MOANA - Custom Styles ===== */

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

:root {
  /* Lavender palette (Logopedia) */
  --lavender-dark: #B8A3CC;
  --lavender: #C9B8D9;
  --lavender-medium: #D5C6E0;
  --lavender-light: #E8DEF0;
  --lavender-bg: #F3EEF8;
  --lavender-extra-light: #F8F5FB;

  /* Beige palette (Psicología) */
  --beige-dark: #D4C4B0;
  --beige: #E8DDD0;
  --beige-medium: #F0E8DE;
  --beige-light: #F5EFE7;
  --beige-bg: #FAF7F3;
  --beige-extra-light: #FDFBF9;

  /* Text colors */
  --text-brown: #5C3D2E;
  --text-brown-light: #7A5C4F;
  --text-purple: #6B5B7B;
  --text-purple-dark: #4A3D5C;
  --text-dark: #333333;
  --text-gray: #666666;
  --text-light: #999999;

  /* Accent */
  --accent-gold: #8B7355;
  --accent-purple: #9B8BB0;

  /* Fonts */
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Lato', sans-serif;
  --font-script: 'Dancing Script', cursive;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.3;
}

.font-script {
  font-family: var(--font-script);
}

/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.nav-logo img {
  height: 50px;
  transition: height 0.3s ease;
}

.navbar.scrolled .nav-logo img {
  height: 40px;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a:hover {
  color: var(--lavender-dark);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--lavender-dark);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  padding: 0.75rem 0;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  margin-top: 12px;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  margin-top: 6px;
}

.dropdown-menu a {
  display: block;
  padding: 0.5rem 1.5rem;
  font-size: 0.85rem;
}

.dropdown-menu a::after {
  display: none;
}

.dropdown-menu a:hover {
  background: var(--lavender-extra-light);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  padding: 5px;
}

.hamburger span {
  width: 25px;
  height: 2px;
  background: var(--text-dark);
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav */
@media (max-width: 1024px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: white;
    flex-direction: column;
    justify-content: flex-start;
    padding: 5rem 2rem 2rem;
    gap: 0;
    transition: right 0.4s ease;
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    overflow-y: auto;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-dropdown .dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    padding: 0 0 0 1rem;
    opacity: 1;
    visibility: visible;
    margin-top: 0;
    display: none;
  }

  .nav-dropdown.open .dropdown-menu {
    display: block;
  }

  .mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .mobile-overlay.active {
    opacity: 1;
    visibility: visible;
  }
}

/* ===== Hero Section ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-lavender {
  background: linear-gradient(180deg, var(--lavender-light) 0%, var(--lavender-extra-light) 100%);
}

.hero-beige {
  background: linear-gradient(180deg, var(--beige-medium) 0%, var(--beige-extra-light) 100%);
}

/* ===== Page Headers ===== */
.page-header {
  padding: 8rem 1rem 3rem;
  text-align: center;
}

.page-header-lavender {
  background: linear-gradient(180deg, var(--lavender-medium) 0%, var(--lavender-light) 100%);
  color: white;
}

.page-header-beige {
  background: linear-gradient(180deg, var(--beige) 0%, var(--beige-light) 100%);
  color: var(--text-brown);
}

.page-header h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: 3px;
  margin-bottom: 0.5rem;
}

.page-header p {
  font-family: var(--font-script);
  font-size: 1.2rem;
  opacity: 0.9;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 25px;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-lavender {
  background: var(--lavender);
  color: var(--text-purple-dark);
  border-color: var(--lavender);
}

.btn-lavender:hover {
  background: var(--lavender-dark);
  border-color: var(--lavender-dark);
  color: white;
}

.btn-outline-lavender {
  background: transparent;
  color: var(--text-purple);
  border-color: var(--lavender);
}

.btn-outline-lavender:hover {
  background: var(--lavender);
  color: var(--text-purple-dark);
}

.btn-beige {
  background: var(--beige-dark);
  color: white;
}

.btn-beige:hover {
  background: var(--accent-gold);
}

.btn-outline-beige {
  background: transparent;
  color: var(--text-brown);
  border-color: var(--beige-dark);
}

.btn-outline-beige:hover {
  background: var(--beige-dark);
  color: white;
}

/* ===== Cards ===== */
.service-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 15px rgba(0,0,0,0.04);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.service-card .icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.5rem;
}

.service-card .icon-lavender {
  background: var(--lavender-light);
  color: var(--text-purple);
}

.service-card .icon-beige {
  background: var(--beige-light);
  color: var(--text-brown);
}

/* ===== Team Cards ===== */
.team-card {
  display: flex;
  gap: 2rem;
  align-items: center;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.3s ease;
}

.team-card:hover {
  transform: translateY(-3px);
}

.team-card img {
  width: 280px;
  height: 320px;
  object-fit: cover;
}

.team-card-info {
  padding: 2rem;
  text-align: center;
  flex: 1;
}

@media (max-width: 768px) {
  .team-card {
    flex-direction: column;
  }
  .team-card img {
    width: 100%;
    height: 250px;
  }
}

/* ===== Testimonials ===== */
.testimonial-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 2px 15px rgba(0,0,0,0.04);
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 4rem;
  color: var(--lavender-light);
  font-family: var(--font-heading);
  line-height: 1;
}

.testimonial-stars {
  color: #F5C842;
  margin-bottom: 0.5rem;
}

/* ===== Info Sections (Logopedia subpages pattern) ===== */
.info-section {
  padding: 4rem 1rem;
}

.info-section h2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: 1.5rem;
  letter-spacing: 2px;
}

.question-list {
  font-family: var(--font-script);
  font-size: 1.15rem;
  line-height: 2;
  text-align: center;
  color: var(--text-dark);
}

.question-list p {
  margin-bottom: 0.25rem;
}

/* ===== Steps / Process ===== */
.step-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.step-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  flex-shrink: 0;
}

.step-number-lavender {
  background: var(--lavender-light);
  color: var(--text-purple);
}

.step-number-beige {
  background: var(--beige-light);
  color: var(--text-brown);
}

/* ===== Help Grid (Psicología pages) ===== */
.help-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem 2rem;
  list-style: disc;
  padding-left: 1.5rem;
}

@media (max-width: 640px) {
  .help-grid {
    grid-template-columns: 1fr;
  }
}

.help-grid li {
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ===== Footer ===== */
.footer {
  background: var(--text-dark);
  color: #ccc;
  padding: 3rem 1rem 1.5rem;
}

.footer a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--lavender);
}

.footer h4 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  margin-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
}

/* ===== Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ===== Scroll to top ===== */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--lavender);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  border: none;
  font-size: 1.2rem;
  z-index: 100;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--lavender-dark);
  transform: translateY(-3px);
}

/* ===== WhatsApp Button ===== */
.whatsapp-btn {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  z-index: 100;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  transition: all 0.3s ease;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* ===== Utility ===== */
.section-divider {
  width: 60px;
  height: 2px;
  background: var(--lavender);
  margin: 0 auto;
}

.section-divider-beige {
  background: var(--beige-dark);
}

.bg-lavender-light { background-color: var(--lavender-bg); }
.bg-lavender-extra-light { background-color: var(--lavender-extra-light); }
.bg-beige-light { background-color: var(--beige-bg); }
.bg-beige-extra-light { background-color: var(--beige-extra-light); }

.text-brown { color: var(--text-brown); }
.text-purple { color: var(--text-purple); }
