/* ==============================================
   Centro Logros — Complete Redesign
   Inspired by zambranokids.org layout
   Palette: Pastel purple, celeste, lila
   ============================================== */

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Nunito:wght@300;400;500;600;700&display=swap');

/* ── Variables ── */
:root {
  --primary: #7B2D8E;
  --primary-light: #9B4DCA;
  --primary-pastel: #C4A1D8;
  --secondary: #5BC0EB;
  --secondary-light: #7DD3FC;
  --accent: #F5A623;
  --accent-hover: #E09515;
  --cta: #F5A623;
  --bg: #FFFFFF;
  --bg-light: #F7F3FA;
  --bg-purple: #7B2D8E;
  --bg-dark: #2D1B3D;
  --text-dark: #2D1B3D;
  --text-body: #4A3B5C;
  --text-muted: #7A6B8A;
  --text-white: #FFFFFF;
  --border-light: #E8DFF0;
  --shadow-sm: 0 2px 8px rgba(123, 45, 142, 0.08);
  --shadow-md: 0 4px 20px rgba(123, 45, 142, 0.12);
  --shadow-lg: 0 8px 40px rgba(123, 45, 142, 0.15);
  --font-heading: 'Fredoka', sans-serif;
  --font-body: 'Nunito', sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 300ms ease;
}

/* ── Reset ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  line-height: 1.3;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font-body);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==============================================
   TOP BAR
   ============================================== */
.topbar {
  background: var(--bg-dark);
  padding: 8px 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
}

.topbar__inner {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  align-items: center;
}

.topbar__item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--transition);
}

.topbar__item:hover {
  color: var(--secondary-light);
}

.topbar__item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ==============================================
   NAVBAR
   ============================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.navbar__logo img {
  height: 65px;
  width: auto;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar__link {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-dark);
  padding: 10px 20px;
  border-radius: 8px;
  transition: all var(--transition);
  cursor: pointer;
}

.navbar__link:hover {
  color: var(--primary);
  background: var(--bg-light);
}

.navbar__link--cta {
  background: var(--cta);
  color: var(--text-dark);
  font-weight: 600;
}

.navbar__link--cta:hover {
  background: var(--accent-hover);
  color: var(--text-dark);
}

/* Hamburger (mobile only) */
.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  z-index: 1100;
}

.hamburger__line {
  width: 26px;
  height: 3px;
  background: var(--primary);
  border-radius: 4px;
  transition: all var(--transition);
}

.hamburger.active .hamburger__line:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger.active .hamburger__line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger__line:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.98);
  z-index: 1050;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu__link {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  padding: 16px 40px;
  border-radius: var(--radius);
  transition: all var(--transition);
}

.mobile-menu__link:hover {
  background: var(--bg-light);
  color: var(--primary);
}

/* ==============================================
   HERO
   ============================================== */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-light) 0%, #EDE0F5 100%);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 60px 0;
}

.hero__content {
  z-index: 2;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(123, 45, 142, 0.1);
  border-radius: 100px;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero__badge svg {
  width: 18px;
  height: 18px;
}

.hero__title {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero__title span {
  color: var(--primary);
}

.hero__subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 500px;
  line-height: 1.8;
}

.hero__buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 100px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
}

.btn--cta {
  background: var(--cta);
  color: var(--text-dark);
  box-shadow: 0 4px 16px rgba(245, 166, 35, 0.35);
}

.btn--cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(245, 166, 35, 0.45);
}

.btn--outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn--outline:hover {
  background: var(--primary);
  color: white;
}

.btn svg {
  width: 20px;
  height: 20px;
}

.hero__image {
  position: relative;
  z-index: 1;
}

.hero__image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.hero__image::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background: var(--secondary);
  border-radius: 50%;
  opacity: 0.2;
  z-index: -1;
}

.hero__image::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: -15px;
  width: 80px;
  height: 80px;
  background: var(--primary-pastel);
  border-radius: 50%;
  opacity: 0.3;
  z-index: -1;
}

/* Stats mini-bar */
.hero__stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.hero__stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
}

.hero__stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==============================================
   SECTION HEADER
   ============================================== */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header__label {
  display: inline-block;
  padding: 6px 18px;
  background: rgba(123, 45, 142, 0.08);
  color: var(--primary);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.section-header__title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 16px;
}

.section-header__title span {
  color: var(--primary);
}

.section-header__desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ==============================================
   ABOUT
   ============================================== */
.about {
  padding: 80px 0;
  background: var(--bg);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about__image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.about__content h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 16px;
}

.about__content h2 span {
  color: var(--primary);
}

.about__content p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 16px;
  color: var(--text-body);
}

/* ==============================================
   SERVICES
   ============================================== */
.services {
  padding: 80px 0;
  background: var(--bg-light);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  display: flex !important;
  flex-direction: column !important;
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all var(--transition);
  cursor: pointer;
  /* Will-change for smoother animations */
  will-change: transform, opacity;
}
.service-card__desc { flex-grow: 1; }
.service-card__link { margin-top: auto; }

.service-card:hover {
  animation-play-state: paused !important;
  transform: translateY(-8px) scale(1.02) !important;
  box-shadow: var(--shadow-lg) !important;
  border-color: var(--primary-pastel) !important;
  z-index: 2;
}

/* Staggered entrance and continuous float */
@keyframes float-card-container {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); box-shadow: var(--shadow-md); border-color: var(--primary-pastel); }
}

.services__grid .service-card.reveal.visible {
  transition-delay: calc((var(--item-index, 1) - 1) * 0.15s);
  animation: float-card-container 4s ease-in-out calc(((var(--item-index, 1) - 1) * 0.15s) + 0.6s) infinite;
}

.service-card__icon {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: transform var(--transition);
  background: var(--icon-bg, var(--bg-light));
  border: 2px solid var(--icon-border, transparent);
  overflow: hidden;
}

.cartoon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  animation: float-cartoon 4s ease-in-out infinite;
  transform-origin: center bottom;
}

@keyframes float-cartoon {
  0% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}

@keyframes wiggle-cartoon {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(5deg); }
  75% { transform: rotate(-5deg); }
}

.service-card:hover .service-card__icon {
  transform: scale(1.05);
}

.service-card:hover .cartoon-img {
  animation: wiggle-cartoon 0.5s ease-in-out forwards;
}

/* Note: Background colors and animation delays are now handled by inline CSS variables 
   (--item-index, --icon-bg, --icon-border) on the .service-card element, making the layout completely scalable. */

.services__cta {
  text-align: center;
  margin-top: 48px;
}

/* ==============================================
   BENEFITS (split section)
   ============================================== */
.benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
}

.benefits__content {
  background: var(--bg-purple);
  color: var(--text-white);
  padding: 64px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.benefits__content h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--text-white);
  margin-bottom: 24px;
}

.benefits__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.benefits__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.benefits__item-icon {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.benefits__item-icon svg {
  width: 16px;
  height: 16px;
  color: var(--secondary-light);
}

.benefits__item h4 {
  color: var(--text-white);
  font-size: 1rem;
  margin-bottom: 4px;
}

.benefits__item p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
}

.benefits__image {
  background: url('../img/hero-therapy.png') center/cover no-repeat;
  min-height: 400px;
}

/* ==============================================
   EDITORIAL TESTIMONIALS (Refined Layout)
   ============================================== */
.editorial-testimonials {
  padding: 0;
  background: var(--bg);
  overflow: hidden;
  margin-top: 40px;
}

.editorial-grid {
  display: grid;
  grid-template-columns: 2fr 2.5fr 1.5fr 2fr;
  grid-auto-rows: minmax(360px, auto);
  max-width: 1440px;
  margin: 0 auto;
}

.ed-item {
  display: flex;
  flex-direction: column;
}

.ed-image {
  position: relative;
  overflow: hidden;
}

.ed-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ed-blue-box {
  background-color: var(--primary); /* Brand Purple */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
}

.ed-blue-box h2 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  color: var(--bg-light);
  line-height: 1.1;
  font-family: var(--font-heading);
}

.ed-yellow-box {
  background-color: var(--accent); /* Brand Action Yellow/Orange */
}

.ed-pink-box {
  background-color: var(--secondary); /* Brand Celeste/Blue */
}

.ed-text {
  padding: 40px 32px;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ed-text p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #444;
  margin-bottom: 24px;
}

.ed-author {
  font-weight: 700;
  font-size: 0.85rem;
  color: #111;
  font-family: var(--font-heading);
}

.ed-empty {
  display: none; /* Can just leave them empty for grid spacing */
}

/* For spaces that are actually empty in desktop */
@media (min-width: 993px) {
  .ed-empty { display: block; }
}

/* Tablet Responsive */
@media (max-width: 992px) {
  .editorial-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: min-content;
  }
  
  .ed-yellow-box, .ed-pink-box {
    display: none; /* Hide decorative boxes on smaller screens to save space */
  }

  .ed-blue-box {
    grid-column: 1 / -1;
    min-height: 250px;
  }
}

/* Mobile Responsive */
@media (max-width: 576px) {
  .editorial-grid {
    grid-template-columns: 1fr;
  }
  
  .ed-image {
    min-height: 300px;
  }
}

/* ==============================================
   GOOGLE REVIEWS WIDGET
   ============================================== */
.google-reviews {
  padding: 60px 0;
}

.google-reviews__card {
  transition: transform var(--transition);
}

.google-reviews__card:hover {
  transform: translateY(-4px);
}

.google-reviews__rating {
  flex-direction: column;
}

.google-reviews__rating img {
  margin-bottom: 8px;
}

/* ==============================================
   FAQ
   ============================================== */
.faq {
  padding: 80px 0;
  background: var(--bg-light);
}

.faq__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: start;
}

.faq__intro h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 12px;
}

.faq__intro h2 span {
  color: var(--primary);
}

.faq__intro p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid var(--border-light);
}

.faq-item__question {
  width: 100%;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
  text-align: left;
  cursor: pointer;
  transition: color var(--transition);
}

.faq-item__question:hover {
  color: var(--primary);
}

.faq-item__question svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--primary);
}

.faq-item.active .faq-item__question svg {
  transform: rotate(180deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0;
}

.faq-item.active .faq-item__answer {
  max-height: 300px;
  padding-bottom: 20px;
}

.faq-item__answer p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ==============================================
   CTA BANNER
   ============================================== */
.cta-banner {
  padding: 64px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--bg-dark) 100%);
  text-align: center;
  color: var(--text-white);
}

.cta-banner h2 {
  color: var(--text-white);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 16px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ==============================================
   FOOTER
   ============================================== */
.footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 24px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer__brand img {
  height: 70px;
  margin-bottom: 16px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.footer__brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer h4 {
  color: var(--text-white);
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__link {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.footer__link:hover {
  color: var(--secondary-light);
}

.footer__link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.footer__socials {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer__social {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  transition: all var(--transition);
}

.footer__social:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
}

.footer__social svg {
  width: 18px;
  height: 18px;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.8rem;
}

/* ==============================================
   ANIMACIONES ESPECIALES (HEARTBEAT)
   ============================================== */
@keyframes heartbeat {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
  14% { transform: scale(1.15); box-shadow: 0 0 0 10px rgba(220, 38, 38, 0); }
  28% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
  42% { transform: scale(1.15); box-shadow: 0 0 0 10px rgba(220, 38, 38, 0); }
  70% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

@keyframes heartbeat-card-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

.heartbeat-icon {
  animation: heartbeat 2s infinite !important;
}

/* ==============================================
   FLOATING BUTTONS (WhatsApp & CTA)
   ============================================== */
.floating-cta-btn {
  position: fixed;
  bottom: 28px;
  left: 28px;
  background: var(--secondary);
  color: #fff;
  padding: 12px 24px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
  transition: all 0.3s ease;
  animation: pulse-wa 2.5s infinite;
  text-decoration: none;
}

.floating-cta-btn:hover {
  transform: scale(1.05);
  color: #fff;
  text-decoration: none;
}

.floating-cta-btn svg {
  color: #fff;
}

@media (max-width: 768px) {
  .floating-cta-btn {
    bottom: 20px;
    left: 20px;
    padding: 10px 16px;
    font-size: 0.9rem;
  }
}

.whatsapp-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  animation: pulse-wa 2s infinite;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
}

.whatsapp-btn svg {
  width: 30px;
  height: 30px;
  color: white;
}

.scroll-top {
  position: fixed;
  bottom: 100px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--primary);
  color: white;
}

.scroll-top svg {
  width: 20px;
  height: 20px;
}

@keyframes pulse-wa {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  }

  70% {
    box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* ==============================================
   SERVICE CARD LINK
   ============================================== */
.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
  transition: all var(--transition);
}

.service-card__link:hover {
  gap: 10px;
}

.service-card__link svg {
  width: 16px;
  height: 16px;
}

/* ==============================================
   PROCESS STEPS
   ============================================== */
.process {
  padding: 80px 0;
  background: var(--bg);
}

.process__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.process-step {
  text-align: center;
  padding: 32px 24px;
  position: relative;
}

.process-step__number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 16px rgba(123, 45, 142, 0.25);
}

.process-step__title {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.process-step__desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.process-step::after {
  content: '→';
  position: absolute;
  right: -20px;
  top: 56px;
  font-size: 1.5rem;
  color: var(--primary-pastel);
  font-weight: 700;
}

.process-step:last-child::after {
  display: none;
}

/* ==============================================
   COUNTERS
   ============================================== */
.counters {
  padding: 64px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--bg-dark) 100%);
}

.counters__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
  color: white;
}

.counter__number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  display: block;
}

.counter__label {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ==============================================
   PAGE HERO (sub-pages)
   ============================================== */
.page-hero {
  background: linear-gradient(135deg, var(--bg-light) 0%, #EDE0F5 100%);
  padding: 48px 0 56px;
}

.page-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.page-hero__breadcrumb a {
  color: var(--primary);
  font-weight: 600;
  transition: opacity var(--transition);
}

.page-hero__breadcrumb a:hover {
  opacity: 0.7;
}

.page-hero__breadcrumb svg {
  width: 14px;
  height: 14px;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 12px;
}

.page-hero h1 span {
  color: var(--primary);
}

.page-hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 700px;
  line-height: 1.8;
}

.page-hero__actions {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}

/* ==============================================
   SERVICE DETAIL
   ============================================== */
.service-detail {
  padding: 80px 0;
}

.service-detail__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.service-detail__content h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 16px;
}

.service-detail__content h2 span {
  color: var(--primary);
}

.service-detail__content p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 16px;
  color: var(--text-body);
}

.service-detail__sidebar {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border-light);
  position: sticky;
  top: 100px;
}

.service-detail__sidebar h3 {
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.service-detail__sidebar ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-detail__sidebar li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.6;
}

.service-detail__sidebar li svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 3px;
}

.service-detail__sidebar .btn {
  width: 100%;
  margin-top: 24px;
  justify-content: center;
}

/* Who is it for */
.service-audience {
  padding: 64px 0;
  background: var(--bg-light);
}

.service-audience__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.audience-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}

.audience-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.audience-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(123, 45, 142, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--primary);
}

.audience-card__icon svg {
  width: 24px;
  height: 24px;
}

.audience-card h4 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.audience-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==============================================
   CONTACT PAGE
   ============================================== */
.contact-section {
  padding: 80px 0;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 14px 18px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-dark);
  transition: border-color var(--transition);
  outline: none;
  background: var(--bg);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(123, 45, 142, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-info-card {
  padding: 24px;
  background: var(--bg-light);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-info-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(123, 45, 142, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}

.contact-info-card__icon svg {
  width: 22px;
  height: 22px;
}

.contact-info-card h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.contact-info-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.contact-info-card a {
  color: var(--primary);
  font-weight: 600;
}

/* Nosotros page */
.mission-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.mission-card {
  padding: 32px 28px;
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  text-align: center;
  transition: all var(--transition);
}

.mission-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.mission-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.mission-card__icon svg {
  width: 28px;
  height: 28px;
}

.mission-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.mission-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Active nav link */
.navbar__link--active {
  color: var(--primary);
}

/* Other services navigation */
.other-services {
  padding: 80px 0;
  background: var(--bg-light);
}

.other-services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

/* ==============================================
   ANIMATIONS
   ============================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==============================================
   RESPONSIVE
   ============================================== */
@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .hero__subtitle {
    margin: 0 auto 32px;
  }

  .hero__buttons {
    justify-content: center;
  }

  .hero__stats {
    justify-content: center;
  }

  .hero__image {
    max-width: 500px;
    margin: 0 auto;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about__image {
    max-width: 500px;
    margin: 0 auto;
  }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .benefits {
    grid-template-columns: 1fr;
  }

  .benefits__image {
    min-height: 300px;
  }

  .testimonials__grid {
    grid-template-columns: 1fr 1fr;
  }

  .faq__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .process__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .process-step::after {
    display: none;
  }

  .counters__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-detail__grid {
    grid-template-columns: 1fr;
  }

  .service-detail__sidebar {
    position: static;
  }

  .service-audience__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact__grid {
    grid-template-columns: 1fr;
  }

  .mission-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .other-services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .topbar__inner {
    gap: 16px;
    font-size: 0.8rem;
  }

  .navbar__links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .navbar__inner {
    height: 68px;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .testimonials__grid {
    grid-template-columns: 1fr;
  }

  .benefits__content {
    padding: 40px 24px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero__stats {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }

  .counters__grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .service-audience__grid {
    grid-template-columns: 1fr;
  }

  .mission-cards {
    grid-template-columns: 1fr;
  }

  .other-services__grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .page-hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 375px) {
  .topbar {
    display: none;
  }

  .hero__title {
    font-size: 1.8rem;
  }

  .whatsapp-btn {
    width: 52px;
    height: 52px;
    bottom: 20px;
    right: 20px;
  }

/* ==============================================
   CALL TO ACTION (CTA) ENHANCEMENTS
   ============================================== */

/* Pulse Animation for Main CTAs */
@keyframes pulse-cta {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 166, 35, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(245, 166, 35, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(245, 166, 35, 0);
  }
}

.btn--pulse {
  animation: pulse-cta 2s infinite;
}

.btn--pulse:hover {
  animation: none;
}

/* Mobile Sticky CTA */
.mobile-floating-cta {
  display: none; /* hidden on desktop */
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 400px;
  z-index: 999;
}

.mobile-floating-cta .btn {
  width: 100%;
  box-shadow: var(--shadow-lg);
  font-size: 1.1rem;
  padding: 16px 24px;
}

/* Show floating CTA only on small screens */
@media (max-width: 768px) {
  .mobile-floating-cta {
    display: block;
  }
  
  /* Add padding to body to prevent content from being hidden behind sticky CTA */
  body {
    padding-bottom: 80px;
  }
}
}

/* ==============================================
   APPOINTMENT MODAL (FIREBASE)
   ============================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(4px);
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #fff;
  width: 100%;
  max-width: 500px;
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition);
  padding: 4px;
}

.modal-close:hover {
  color: var(--primary);
}

.modal-header {
  text-align: center;
  margin-bottom: 24px;
}

.modal-header h2 {
  color: var(--primary);
  font-size: 1.8rem;
  margin-bottom: 8px;
  font-family: var(--font-heading);
}

.modal-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  background: #fff;
  border: 1px solid #dadce0;
  color: #3c4043;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  margin-bottom: 20px;
  font-family: var(--font-body);
}

.btn-google:hover {
  background: #f8f9fa;
  border-color: #d2e3fc;
}

.modal-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.modal-divider::before,
.modal-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-light);
}

.modal-divider span {
  padding: 0 10px;
}

.modal-form .form-group {
  margin-bottom: 16px;
  text-align: left;
}

.modal-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.modal-form input,
.modal-form select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: #f9f9fc;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.modal-form input:focus,
.modal-form select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(103, 58, 183, 0.1);
  background: #fff;
}

.modal-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 576px) {
  .modal-form .form-row {
    grid-template-columns: 1fr;
  }
  .modal-content {
    padding: 30px 20px;
  }
}

/* ==============================================
   WHY CHOOSE US
   ============================================== */
.why-us {
  padding: 80px 0;
  background: var(--bg);
}

.why-us__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.why-us__card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}

.why-us__card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-pastel);
}

.why-us__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.why-us__card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.why-us__card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 992px) {
  .why-us__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .why-us__grid {
    grid-template-columns: 1fr;
  }
}

/* ==============================================
   FORM VALIDATION
   ============================================== */
.modal-form input.invalid,
.modal-form select.invalid,
.contact-form input.invalid,
.contact-form select.invalid,
.contact-form textarea.invalid {
  border-color: #EF4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

.modal-form input.invalid::placeholder,
.contact-form input.invalid::placeholder {
  color: rgba(239, 68, 68, 0.5);
}