/* ==========================================================================
   KATIA ROMERO - PSICOLOGIA CLÍNICA & TCC
   Modern, Welcoming & High-Conversion Stylesheet
   ========================================================================== */

/* Fonts are preloaded in index.html for zero render-blocking */

/* --- CSS Variables & Design Tokens --- */
:root {
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Color Palette */
  --primary: #a84e60;
  --primary-hover: #8f3e4e;
  --primary-light: #fbeff2;
  --primary-glow: rgba(168, 78, 96, 0.18);
  
  --sage: #3d6a58;
  --sage-hover: #2f5344;
  --sage-light: #eef5f1;

  --accent-gold: #c98a42;
  --accent-gold-light: #fbf5ed;

  --bg-body: #fcfbf9;
  --bg-card: #ffffff;
  --bg-subtle: #f6f2ee;
  --bg-dark: #1b242a;
  
  --text-main: #24292e;
  --text-muted: #656d76;
  --text-light: #8c959f;
  
  --border-subtle: #eae5de;
  --border-focus: #a84e60;

  --whatsapp: #25d366;
  --whatsapp-hover: #20ba5a;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 45px rgba(168, 78, 96, 0.1);
  --shadow-float: 0 15px 35px rgba(37, 211, 102, 0.25);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Base & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* --- Topbar Ético --- */
.topbar {
  background-color: var(--bg-dark);
  color: #d1d5db;
  font-size: 0.825rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.topbar-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #fff;
  font-weight: 500;
}
.topbar-badge span {
  background: rgba(168, 78, 96, 0.35);
  color: #fca5a5;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.topbar-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #cbd5e1;
  transition: color var(--transition-fast);
}
.topbar-link:hover {
  color: #fff;
}
.topbar-emergency {
  color: #fca5a5;
  font-weight: 500;
}

/* --- Header & Navbar --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(252, 251, 249, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-sm);
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.brand-avatar {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--primary-light);
  box-shadow: 0 4px 10px rgba(168, 78, 96, 0.15);
}
.brand-text {
  display: flex;
  flex-direction: column;
}
.brand-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.3px;
  line-height: 1.15;
}
.brand-subtitle {
  font-size: 0.775rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
}
.nav-link {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.35rem 0;
  transition: color var(--transition-fast);
}
.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: var(--radius-full);
  transition: width var(--transition-normal);
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-main);
}
.mobile-toggle svg {
  width: 28px;
  height: 28px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px var(--primary-glow);
}
.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px var(--primary-glow);
}
.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.25);
}
.btn-whatsapp:hover {
  background: var(--whatsapp-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}
.btn-outline {
  background: transparent;
  color: var(--text-main);
  border-color: var(--border-subtle);
}
.btn-outline:hover {
  background: var(--bg-subtle);
  border-color: var(--text-muted);
  transform: translateY(-2px);
}
.btn-outline-primary {
  background: transparent;
  color: var(--primary);
  border-color: rgba(168, 78, 96, 0.3);
}
.btn-outline-primary:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  transform: translateY(-2px);
}
.btn-sm {
  padding: 0.5rem 1.15rem;
  font-size: 0.875rem;
}
.btn-lg {
  padding: 0.95rem 2rem;
  font-size: 1.05rem;
}
.btn svg {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  padding: 4.5rem 0 5rem;
  overflow: hidden;
  background: radial-gradient(circle at 10% 20%, rgba(251, 239, 242, 0.6) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(238, 245, 241, 0.6) 0%, transparent 45%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
}
.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  padding: 0.4rem 1rem;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(168, 78, 96, 0.15);
}
.hero-title {
  font-family: var(--font-heading);
  font-size: 3.25rem;
  line-height: 1.18;
  color: var(--text-main);
  letter-spacing: -0.5px;
}
.hero-title .highlight {
  color: var(--primary);
  font-style: italic;
  position: relative;
}
.hero-description {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 580px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}
.hero-proof {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}
.proof-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}
.proof-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--sage-light);
  color: var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
}
.proof-icon svg {
  width: 16px;
  height: 16px;
}

/* Hero Media & Image Card */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 440px;
}
.hero-shape-bg {
  position: absolute;
  inset: -15px -15px 15px 15px;
  border-radius: 36px 80px 36px 80px;
  background: linear-gradient(135deg, var(--primary-light), var(--sage-light));
  z-index: 1;
}
.hero-image-frame {
  position: relative;
  z-index: 2;
  border-radius: 32px 72px 32px 72px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid #ffffff;
  aspect-ratio: 4 / 5;
  background: var(--bg-subtle);
}
.hero-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform var(--transition-slow);
}
.hero-image-frame:hover img {
  transform: scale(1.03);
}

/* Floating Badges on Hero */
.floating-badge {
  position: absolute;
  z-index: 3;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: float 4s ease-in-out infinite;
}
.badge-crp {
  top: 10%;
  left: -20px;
  animation-delay: 0s;
}
.badge-tcc {
  bottom: 8%;
  right: -20px;
  animation-delay: 2s;
}
.floating-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.badge-crp .floating-icon {
  background: var(--primary-light);
  color: var(--primary);
}
.badge-tcc .floating-icon {
  background: var(--sage-light);
  color: var(--sage);
}
.floating-text-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}
.floating-text-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* --- Highlights Pillars Strip --- */
.pillars-strip {
  padding: 3.5rem 0;
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.pillar-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.pillar-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}
.pillar-card:hover .pillar-icon-box {
  transform: scale(1.1);
  background: var(--primary);
  color: #fff;
}
.pillar-content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}
.pillar-content p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --- Section Global Headers --- */
.section {
  padding: 6rem 0;
}
.section-alt {
  background: var(--bg-subtle);
}
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}
.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary);
  margin-bottom: 0.75rem;
  background: var(--primary-light);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
}
.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 1rem;
}
.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* --- About Section --- */
.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 4rem;
}
.about-image-card {
  position: relative;
}
.about-photo-frame {
  position: relative;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid #ffffff;
  aspect-ratio: 4 / 5;
}
.about-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-card-stat {
  position: absolute;
  bottom: -25px;
  right: -20px;
  background: #ffffff;
  padding: 1.25rem 1.75rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-subtle);
  text-align: center;
}
.stat-number {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}
.stat-label {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.25rem;
}
.about-text {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.about-lead {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.6;
}
.about-text p {
  color: var(--text-muted);
  line-height: 1.75;
}
.about-quotes {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--text-main);
  font-size: 0.975rem;
  margin: 0.5rem 0;
}
.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  background: #fff;
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

/* --- Specialties Section --- */
.specialties-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.specialty-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: all var(--transition-normal);
  position: relative;
}
.specialty-card:hover {
  transform: translateY(-6px);
  border-color: rgba(168, 78, 96, 0.3);
  box-shadow: var(--shadow-md);
}
.specialty-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}
.specialty-card:hover .specialty-icon {
  background: var(--primary);
  color: #fff;
  transform: scale(1.05);
}
.specialty-icon svg {
  width: 28px;
  height: 28px;
}
.specialty-card h3 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  color: var(--text-main);
  line-height: 1.3;
}
.specialty-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  flex-grow: 1;
}
.specialty-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}
.specialty-tag {
  font-size: 0.775rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  background: var(--bg-subtle);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
}

/* Specialty Special CTA Card (Career / Vocacional) */
.specialty-card.featured {
  background: linear-gradient(145deg, #ffffff, var(--primary-light));
  border: 2px solid var(--primary);
}
.featured-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
}

/* --- Modalities Section (Online vs Presencial) --- */
.modalities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.modality-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 3rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  transition: all var(--transition-normal);
}
.modality-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.modality-card.highlighted {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}
.modality-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  align-self: flex-start;
}
.badge-online {
  background: var(--sage-light);
  color: var(--sage);
}
.badge-presencial {
  background: var(--primary-light);
  color: var(--primary);
}
.modality-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--text-main);
  line-height: 1.2;
}
.modality-desc {
  color: var(--text-muted);
  font-size: 1.025rem;
  line-height: 1.65;
}
.modality-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 0.5rem 0;
}
.modality-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-main);
}
.modality-features li svg {
  width: 20px;
  height: 20px;
  color: var(--sage);
  flex-shrink: 0;
  margin-top: 2px;
}
.modality-location-box {
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.modality-location-box svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
  flex-shrink: 0;
}

/* Callout Box: 20 Minutos Gratuitos */
.free-call-banner {
  background: linear-gradient(135deg, var(--bg-dark), #2c3842);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  align-items: center;
  gap: 2.5rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.free-call-banner::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(168, 78, 96, 0.4) 0%, transparent 70%);
  border-radius: var(--radius-full);
}
.free-call-content h3 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 0.85rem;
  line-height: 1.25;
}
.free-call-content p {
  color: #cbd5e1;
  font-size: 1.05rem;
  line-height: 1.65;
}
.free-call-actions {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.free-call-guarantee {
  font-size: 0.825rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  justify-content: center;
}

/* --- Myths and Truths Accordion --- */
.accordion-wrapper {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.accordion-item {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-normal);
}
.accordion-item.active {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}
.accordion-header {
  width: 100%;
  padding: 1.4rem 1.75rem;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  text-align: left;
}
.accordion-title-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.accordion-tag-myth {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  background: #fee2e2;
  color: #b91c1c;
  flex-shrink: 0;
}
.accordion-question {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
}
.accordion-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}
.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
  background: var(--primary);
  color: #fff;
}
.accordion-icon svg {
  width: 18px;
  height: 18px;
}
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
}
.accordion-item.active .accordion-body {
  max-height: 1000px;
  transition: max-height 0.5s ease-in-out;
}
.accordion-content {
  padding: 0 1.75rem 1.6rem;
  border-top: 1px dashed var(--border-subtle);
  padding-top: 1.25rem;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 1rem;
}
.accordion-content .truth-highlight {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text-main);
  font-weight: 500;
}
.truth-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  background: #dcfce7;
  color: #15803d;
  flex-shrink: 0;
  margin-top: 2px;
}

/* --- Education & Credentials Section --- */
.credentials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}
.credential-block {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2.75rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}
.credential-block-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}
.credential-block-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.credential-block-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--text-main);
}
.timeline-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.timeline-item {
  position: relative;
  padding-left: 1.75rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 9px;
  height: 9px;
  border-radius: var(--radius-full);
  background: var(--primary);
}
.timeline-item::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 20px;
  bottom: -15px;
  width: 1px;
  background: var(--border-subtle);
}
.timeline-item:last-child::after {
  display: none;
}
.timeline-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}
.timeline-institution {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.35rem;
}
.timeline-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Extension Tags Grid */
.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}
.tag-credential {
  padding: 0.45rem 0.95rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-main);
}

/* --- Booking & Contact Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
}
.contact-form-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 3rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
}
.form-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  margin-bottom: 0.5rem;
}
.form-subtitle {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 0.975rem;
}
.form-group {
  margin-bottom: 1.35rem;
}
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}
.form-control {
  width: 100%;
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-body);
  color: var(--text-main);
  transition: all var(--transition-fast);
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 4px var(--primary-glow);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-help {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 0.35rem;
}

/* Contact Info & Details */
.contact-info-wrap {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.contact-channel-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.channel-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.channel-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.channel-details h5 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
}
.channel-details p {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.channel-details a {
  color: var(--primary);
  font-weight: 600;
}
.channel-details a:hover {
  text-decoration: underline;
}

.map-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  height: 220px;
  background: #e2e8f0;
}
.map-card iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- Footer --- */
.site-footer {
  background: var(--bg-dark);
  color: #94a3b8;
  padding: 5rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 3.5rem;
  margin-bottom: 4rem;
}
.footer-brand h4 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: #ffffff;
  margin-bottom: 0.35rem;
}
.footer-brand .crp-badge {
  color: #f87171;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: block;
}
.footer-brand p {
  line-height: 1.65;
  font-size: 0.925rem;
  color: #cbd5e1;
}
.footer-col h5 {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-links a {
  color: #94a3b8;
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}
.footer-links a:hover {
  color: #ffffff;
}
.footer-emergency-box {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  color: #fca5a5;
  font-size: 0.85rem;
  line-height: 1.5;
}
.footer-emergency-box strong {
  color: #fff;
  display: block;
  margin-bottom: 0.35rem;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
}

/* --- Floating WhatsApp Widget --- */
.whatsapp-widget {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}
.whatsapp-balloon {
  background: #ffffff;
  color: var(--text-main);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-subtle);
  font-size: 0.875rem;
  line-height: 1.4;
  max-width: 250px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  animation: fadeIn 0.4s ease;
}
.whatsapp-balloon::after {
  content: '';
  position: absolute;
  bottom: -7px;
  right: 24px;
  width: 14px;
  height: 14px;
  background: #ffffff;
  border-right: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  transform: rotate(45deg);
}
.balloon-close {
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 0.2rem;
  margin-left: auto;
}
.whatsapp-btn {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: var(--whatsapp);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-float);
  transition: all var(--transition-normal);
  position: relative;
}
.whatsapp-btn:hover {
  transform: scale(1.08);
  background: var(--whatsapp-hover);
}
.whatsapp-btn svg {
  width: 32px;
  height: 32px;
}
.whatsapp-pulse {
  position: absolute;
  inset: -4px;
  border-radius: var(--radius-full);
  background: var(--whatsapp);
  opacity: 0.4;
  animation: pulse 2s infinite;
  z-index: -1;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.35); opacity: 0; }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Modal 20 Minutos --- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}
.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}
.modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 540px;
  width: 100%;
  padding: 2.5rem;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95);
  transition: transform var(--transition-normal);
}
.modal-backdrop.open .modal-card {
  transform: scale(1);
}
.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--bg-subtle);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}
.modal-close:hover {
  background: #fee2e2;
  color: #b91c1c;
}
.modal-header {
  margin-bottom: 1.5rem;
}
.modal-header h3 {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  color: var(--text-main);
  line-height: 1.25;
}
.modal-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.4rem;
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    text-align: center;
  }
  .hero-content {
    align-items: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-proof {
    justify-content: center;
  }
  .hero-title {
    font-size: 2.75rem;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  .about-image-card {
    max-width: 440px;
    margin: 0 auto;
  }
  .specialties-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .modalities-grid {
    grid-template-columns: 1fr;
  }
  .free-call-banner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .free-call-actions {
    align-items: center;
  }
  .credentials-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .topbar {
    display: none;
  }
  .nav-menu {
    position: fixed;
    top: 78px;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    transition: transform var(--transition-normal);
    z-index: 999;
  }
  .nav-menu.open {
    transform: translateY(0);
  }
  .mobile-toggle {
    display: block;
  }
  .nav-actions .btn-sm {
    display: none;
  }
  .hero {
    padding: 3rem 0;
  }
  .hero-title {
    font-size: 2.25rem;
  }
  .specialties-grid {
    grid-template-columns: 1fr;
  }
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  .section-title {
    font-size: 2rem;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .whatsapp-widget {
    bottom: 1.25rem;
    right: 1.25rem;
  }
  .floating-badge {
    display: none;
  }
}
