/* 
   ALAIA - Bienestar Corporativo desde el Arte
   Design System & Stylesheet (Startup Aesthetic: Clean, Minimal, Editorial)
*/

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..700;1,9..144,300..700&family=Inter:wght@300;400;500;600;700&display=swap');

/* --- Root Variables --- */
:root {
  --primary: #26454d;
  --primary-rgb: 38, 69, 77;
  --accent-lavender: #c6b6d6;
  --accent-lavender-rgb: 198, 182, 214;
  --accent-gold: #d4a136;
  --accent-gold-rgb: 212, 161, 54;
  --accent-terracotta: #be542d;
  --accent-terracotta-rgb: 190, 84, 45;
  --bg-neutral: #f6f1e5;
  --bg-white: #ffffff;
  --text-dark: #1a3036;
  --text-muted: #526e75;
  --text-light: #ffffff;
  
  --font-heading: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
  
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --border-radius-xl: 32px;
  
  --border-color: rgba(38, 69, 77, 0.08);
  --border-color-focus: rgba(38, 69, 77, 0.2);
  --shadow-subtle: 0 4px 30px rgba(0, 0, 0, 0.02);
  --shadow-medium: 0 10px 40px rgba(38, 69, 77, 0.04);
  --shadow-premium: 0 20px 50px rgba(38, 69, 77, 0.08);
  
  --max-width: 1200px;
}

/* --- Reset & Base Styles --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-neutral);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.15;
  color: var(--primary);
}

h1 {
  font-size: clamp(1.9rem, 3.5vw, 2.7rem);
  font-variation-settings: "SOFT" 50, "WONK" 1;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-variation-settings: "SOFT" 30;
  letter-spacing: -0.01em;
  margin-bottom: 1.2rem;
}

h3 {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-variation-settings: "SOFT" 20;
}

p {
  font-size: 1.05rem;
  color: var(--text-muted);
  font-weight: 300;
}

strong {
  font-weight: 600;
  color: var(--primary);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

/* --- Layout Utilities --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 8rem 0;
  position: relative;
  overflow: hidden;
}

.section-dark {
  background-color: var(--primary);
  color: var(--bg-neutral);
}

.section-dark h2, 
.section-dark h3, 
.section-dark strong {
  color: var(--bg-neutral);
}

.section-dark p {
  color: rgba(246, 241, 229, 0.7);
}

.grid {
  display: grid;
  gap: 2.5rem;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.text-center { text-align: center; }
.margin-bottom-sm { margin-bottom: 1rem; }
.margin-bottom-md { margin-bottom: 2rem; }
.margin-bottom-lg { margin-bottom: 4rem; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
  gap: 0.5rem;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--bg-neutral);
}

.btn-primary:hover {
  background-color: #1c3339;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(38, 69, 77, 0.15);
}

.btn-secondary {
  background-color: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-secondary:hover {
  background-color: rgba(38, 69, 77, 0.05);
  transform: translateY(-2px);
}

.btn-accent {
  background-color: var(--accent-gold);
  color: var(--primary);
  font-weight: 600;
}

.btn-accent:hover {
  background-color: #c0912c;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(212, 161, 54, 0.2);
}

.btn-terracotta {
  background-color: var(--accent-terracotta);
  color: var(--bg-neutral);
  font-weight: 600;
}

.btn-terracotta:hover {
  background-color: #bd593c;
  transform: translateY(-2px);
}

.btn-white {
  background-color: var(--bg-white);
  color: var(--primary);
  box-shadow: var(--shadow-subtle);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

/* --- Header / Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(246, 241, 229, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.header.scrolled {
  background-color: rgba(198, 182, 214, 0.95); /* Lila de la marca (#c6b6d6) */
  box-shadow: var(--shadow-subtle);
  border-bottom-color: rgba(38, 69, 77, 0.08);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  transition: height var(--transition-smooth);
}

.header.scrolled .nav-wrapper {
  height: 56px;
}

.logo img {
  height: 24px;
  width: auto;
  display: block;
  transition: height var(--transition-smooth);
}

.header.scrolled .logo img {
  height: 20px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
  opacity: 0.8;
  position: relative;
  padding: 0.5rem 0;
  white-space: nowrap;
}

.nav-link:hover {
  opacity: 1;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--primary);
  transition: var(--transition-fast);
}

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

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.nav-portal-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.8rem;
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--primary);
  border-radius: var(--border-radius-sm);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.nav-portal-link .login-icon {
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.nav-portal-link:hover {
  background-color: rgba(38, 69, 77, 0.04);
  color: var(--accent-terracotta);
  transform: translateY(-1px);
}

.nav-portal-link:hover .login-icon {
  transform: translateX(2px); /* Desplazamiento sutil interactivo hacia la derecha */
}

/* Hamburger Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  border-radius: 2px;
  transition: var(--transition-fast);
}

/* --- Hero Section --- */
.hero {
  padding-top: 11rem;
  padding-bottom: 8rem;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background-color: #c5b5d5;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 4rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(198, 182, 214, 0.22);
  border: 1px solid rgba(198, 182, 214, 0.45);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.45rem 1rem;
  border-radius: 30px;
  margin-bottom: 1.2rem;
}

.hero-badge .badge-dot {
  width: 7px;
  height: 7px;
  background-color: var(--accent-terracotta);
  border-radius: 50%;
  display: inline-block;
  margin-right: 0.5rem;
}

.hero-content h1 {
  margin-bottom: 1rem;
  color: var(--primary);
}

.hero-subtitle-h2 {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--primary);
  margin-bottom: 1.5rem;
  max-width: 530px;
}

.hero-content .subtitle {
  font-size: 1.02rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  color: rgba(38, 69, 77, 0.8);
  max-width: 530px;
}

.hero-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-bottom: 2.5rem;
  max-width: 530px;
}

.h-feature-item {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}

.h-feature-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(198, 182, 214, 0.2);
  color: var(--accent-terracotta);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(198, 182, 214, 0.3);
}

.h-feature-text strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 0.2rem;
}

.h-feature-text span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  width: 100%;
  height: 480px;
  background-color: rgba(38, 69, 77, 0.03);
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-medium);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  opacity: 0.9;
  transition: var(--transition-smooth);
}

.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-overlay-info {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 1.2rem;
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.5);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  box-shadow: var(--shadow-subtle);
  pointer-events: none;
}

.pulsing-dot {
  width: 10px;
  height: 10px;
  background-color: var(--accent-terracotta);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero-overlay-info span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--primary);
}

/* --- Section Headers --- */
.section-header {
  max-width: 900px;
  margin: 0 auto 5rem auto;
}

.section-header p {
  max-width: 820px;
  margin: 0 auto;
}

.section-tag {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-terracotta);
  display: block;
  margin-bottom: 1rem;
}

/* --- Section 2: Pains (Tus Desafíos) --- */
.desafios-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 3.5rem;
  align-items: stretch;
}

.desafios-visual {
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-medium);
  height: 100%;
}

.desafios-visual-img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
  display: block;
}

.pain-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 2.2rem 2rem;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.pain-card:hover {
  transform: translateY(-5px);
  border-color: rgba(38, 69, 77, 0.15);
  box-shadow: var(--shadow-medium);
}

.pain-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(190, 84, 45, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--accent-terracotta);
}

.pain-card h3 {
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
}

/* --- Section 3: Solutions (Talleres) --- */
.territories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.2rem;
  margin-bottom: 4rem;
  align-items: stretch;
}

.territory-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 2.2rem 1.8rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  z-index: 1;
}

.territory-img-wrapper {
  width: 100%;
  height: 130px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(38, 69, 77, 0.05);
  position: relative;
}

.territory-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.territory-card:hover .territory-card-img {
  transform: scale(1.06);
}

.territory-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0;
  transition: var(--transition-smooth);
}

/* Individual accent colors for territories */
.territory-1::before { background-color: rgba(198, 182, 214, 0.2); }
.territory-2::before { background-color: rgba(212, 161, 54, 0.15); }
.territory-3::before { background-color: rgba(190, 84, 45, 0.12); }
.territory-4::before { background-color: rgba(198, 182, 214, 0.2); }
.territory-5::before { background-color: rgba(212, 161, 54, 0.15); }

.territory-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
  border-color: transparent;
}

.territory-card:hover::before {
  opacity: 1;
}

.territory-num {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--primary);
  opacity: 0.2;
  margin-bottom: 1rem;
  font-style: italic;
  transition: var(--transition-smooth);
}

.territory-card:hover .territory-num {
  opacity: 0.6;
  transform: scale(1.05);
}

.territory-card h3 {
  font-size: 1.2rem;
  line-height: 1.3;
  margin-bottom: 0.8rem;
}

.territory-meta {
  margin-top: auto;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.territory-meta span {
  display: block;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 0.2rem;
}

/* Ritual del Té Block */
.tea-ritual {
  background-color: #e5dfd2; /* slightly darker neutral */
  border-radius: var(--border-radius-xl);
  padding: 4.5rem;
  margin-top: 5rem;
  border: 1px solid rgba(38, 69, 77, 0.05);
  display: flex;
  align-items: center;
  gap: 4rem;
}

.tea-ritual-content {
  flex: 1.2;
}

.tea-ritual-content h3 {
  font-size: 2rem;
  margin-bottom: 1.2rem;
  color: var(--primary);
}

.tea-ritual-visual {
  flex: 0.8;
  display: flex;
  justify-content: center;
  align-items: center;
}

.tea-ritual-photo-img {
  width: 260px;
  height: 260px;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid var(--bg-neutral);
  box-shadow: var(--shadow-medium);
  animation: floatImg 6s ease-in-out infinite;
}

@keyframes floatImg {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.steam {
  animation: floatSteam 4s ease-in-out infinite;
  opacity: 0;
}

.steam-1 { animation-delay: 0s; }
.steam-2 { animation-delay: 1.5s; }
.steam-3 { animation-delay: 0.8s; }

/* --- Section 4: Benefits (Diferenciales) --- */
.benefits-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 5rem;
  align-items: flex-start;
}

.benefits-sticky {
  position: sticky;
  top: 120px;
}

.benefits-image-wrapper {
  width: 100%;
  height: 280px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-medium);
  margin-top: 2rem;
}

.benefits-visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.benefit-item {
  display: flex;
  gap: 1.8rem;
  align-items: center;
}

.benefit-number {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--accent-gold);
  line-height: 1;
}

.benefit-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(212, 161, 54, 0.08); /* Fondo oro muy suave translúcido */
  color: var(--accent-gold);
}

.benefit-text h3 {
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
}

/* --- Section 5: Success Cases --- */
.stats-row {
  display: flex;
  justify-content: space-around;
  gap: 2rem;
  margin-bottom: 6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 4rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 6vw, 4.5rem);
  color: var(--accent-lavender);
  display: block;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  opacity: 0.8;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 0; /* Sin margen inferior ya que no hay logos */
}

#casos {
  padding-bottom: 5.5rem; /* Sección más compacta y balanceada */
}

.testimonial-card {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--border-radius-lg);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-quote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--accent-lavender);
}

.author-name {
  font-size: 0.95rem;
  font-weight: 600;
  display: block;
}

.author-role {
  font-size: 0.85rem;
  opacity: 0.6;
  display: block;
}

.logos-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  opacity: 0.5;
}

.logo-item svg, .logo-item img {
  height: 30px;
  fill: currentColor;
}

/* --- Section 6: Diagnostic Test (Formulario Interactivo) --- */
.test-container {
  max-width: 750px;
  margin: 0 auto;
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-xl);
  padding: 4.5rem 4rem;
  box-shadow: var(--shadow-medium);
}

.test-progress {
  height: 4px;
  width: 100%;
  background-color: rgba(38, 69, 77, 0.05);
  border-radius: 2px;
  margin-bottom: 3.5rem;
  position: relative;
  overflow: hidden;
}

.test-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 33.33%;
  background-color: var(--primary);
  transition: var(--transition-smooth);
}

.test-step {
  display: none;
}

.test-step.active {
  display: block;
  animation: fadeIn 0.4s ease forwards;
}

.test-step h3 {
  font-size: 1.6rem;
  margin-bottom: 2rem;
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.option-btn {
  background-color: var(--bg-neutral);
  border: 1px solid transparent;
  padding: 1.25rem 2rem;
  border-radius: var(--border-radius-md);
  text-align: left;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.98rem;
  transition: var(--transition-fast);
  color: var(--text-dark);
  font-weight: 400;
}

.option-btn:hover {
  background-color: var(--bg-white);
  border-color: var(--primary);
}

.option-btn.selected {
  background-color: var(--primary);
  color: var(--bg-neutral);
}

.test-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.test-result-box {
  text-align: center;
}

.result-badge {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background-color: rgba(198, 182, 214, 0.3);
  color: var(--primary);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.test-result-box h4 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.test-result-box p {
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}

.result-meta-info {
  background-color: var(--bg-neutral);
  padding: 1.5rem;
  border-radius: var(--border-radius-md);
  margin-bottom: 2.5rem;
  font-size: 0.9rem;
}

/* --- Section 7: Blog --- */
.blog-card {
  background-color: var(--bg-white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
  border-color: rgba(38, 69, 77, 0.12);
}

.blog-img {
  width: 100%;
  height: 220px;
  background-color: rgba(38, 69, 77, 0.05);
  position: relative;
  overflow: hidden;
}

.blog-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-style: italic;
  opacity: 0.5;
  color: var(--primary);
  background: linear-gradient(135deg, var(--accent-lavender) 0%, var(--bg-neutral) 100%);
}

.blog-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent-terracotta);
  letter-spacing: 0.1em;
  margin-bottom: 0.8rem;
}

.blog-content h3 {
  font-size: 1.3rem;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.blog-content p {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.blog-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.blog-link svg {
  transition: var(--transition-fast);
}

.blog-card:hover .blog-link svg {
  transform: translateX(3px);
}

/* --- Footer & Form --- */
.footer {
  background-color: var(--primary);
  color: var(--bg-neutral);
  padding: 4rem 0 2rem 0;
  border-top: 1px solid rgba(246, 241, 229, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  margin-bottom: 5rem;
}

.footer-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.footer-logo img {
  height: 42px;
  margin-bottom: 2rem;
}

.footer-description {
  font-size: 1.15rem;
  margin-bottom: 3rem;
  max-width: 420px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1rem;
}

.contact-item svg {
  width: 20px;
  color: var(--accent-gold);
}

.footer-form-wrapper {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-lg);
  padding: 2.8rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.footer-form-wrapper:hover {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.footer-form-wrapper h3 {
  color: var(--bg-neutral);
  font-size: 1.6rem;
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.footer-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.footer-form-wrapper .form-group input {
  padding: 0.85rem 1.1rem;
  font-size: 0.92rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-gold);
  opacity: 0.9;
  transition: color var(--transition-fast);
}

.form-group input, 
.form-group textarea {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.85rem 1.1rem;
  border-radius: var(--border-radius-sm);
  color: var(--bg-neutral);
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: all var(--transition-fast) ease-in-out;
}

.form-group input::placeholder, 
.form-group textarea::placeholder {
  color: rgba(246, 241, 229, 0.35);
}

.form-group input:focus, 
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-gold);
  background-color: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 3px rgba(212, 161, 54, 0.15);
}

.footer-form-wrapper .form-group:focus-within label {
  color: var(--bg-neutral);
}

.lead-form button {
  margin-top: 0.8rem;
  padding: 0.95rem 1.5rem;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.lead-form button:active {
  transform: translateY(0);
  background-color: #aa8025;
  box-shadow: 0 4px 10px rgba(212, 161, 54, 0.12);
}

.footer-bottom {
  border-top: 1px solid rgba(246, 241, 229, 0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  opacity: 0.6;
}

/* --- Hero Collage Zone --- */
#hero-collage-zone {
  position: relative;
  width: 100%;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
}

.collage-main-wrapper {
  width: 85%;
  height: 90%;
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-premium);
  position: absolute;
  right: 0;
  top: 5%;
  z-index: 1;
}

.collage-img-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.collage-sub-wrapper {
  position: absolute;
  bottom: 0%;
  left: -20px;
  width: 200px;
  height: 200px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 8px solid var(--bg-neutral);
  box-shadow: var(--shadow-premium);
  z-index: 2;
  transition: var(--transition-smooth);
}

.collage-sub-wrapper:hover {
  transform: scale(1.05) translateY(-5px);
  z-index: 3;
}

.collage-img-sub,
.collage-video-sub {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Hero Floating Wellness Cards --- */
.hero-floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--border-radius-md);
  padding: 0.75rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: max-content; /* Se ajusta dinámicamente al texto */
  max-width: 260px; /* Limita la anchura máxima */
  min-width: 200px; /* Limita la anchura mínima */
  box-sizing: border-box;
  box-shadow: 0 10px 25px rgba(38, 69, 77, 0.08);
  pointer-events: none;
  z-index: 10;
  overflow: hidden; /* Oculta el texto que se desplaza hacia arriba/abajo en la transición */
  transition: transform var(--transition-smooth);
}

.h-card-emoji {
  font-size: 1.4rem;
  line-height: 1;
}

.h-card-info {
  display: flex;
  flex-direction: column;
}

.h-card-num {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
}

.h-card-lbl {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.1rem;
  white-space: normal; /* Permite saltos si es muy largo */
  line-height: 1.25;
}

.h-card-satisfaction {
  top: 15%;
  left: -50px;
}

.h-card-stress {
  bottom: 25%;
  right: -30px;
}

.h-card-video-wrapper {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(38, 69, 77, 0.15);
  background-color: var(--primary);
}

.h-card-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Transiciones para el carrusel dinámico en las tarjetas flotantes */
.h-card-content-wrapper {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.h-card-content-wrapper.slide-exit {
  transform: translateY(-25px);
  opacity: 0;
}

.h-card-content-wrapper.slide-enter {
  transform: translateY(25px);
  opacity: 0;
  transition: none !important;
}


/* Responsividad para las tarjetas flotantes en móviles */
@media (max-width: 768px) {
  .hero-floating-card {
    padding: 0.5rem 0.8rem;
  }
  .h-card-emoji {
    font-size: 1.1rem;
  }
  .h-card-num {
    font-size: 0.9rem;
  }
  .h-card-lbl {
    font-size: 0.6rem;
  }
  .h-card-satisfaction {
    left: -15px;
    top: 10%;
  }
  .h-card-stress {
    right: -15px;
    bottom: 20%;
  }

}

/* --- Solutions Showcase (Pestañas) --- */
.solutions-showcase {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-top: 3.5rem;
  width: 100%;
}

.solutions-tabs {
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.5rem;
  background-color: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  cursor: pointer;
  font-family: var(--font-body);
  transition: var(--transition-smooth);
  color: var(--text-dark);
  font-weight: 500;
  width: auto;
}

.tab-btn:hover {
  border-color: rgba(38, 69, 77, 0.2);
  background-color: rgba(38, 69, 77, 0.02);
}

.tab-btn.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--bg-neutral);
  box-shadow: var(--shadow-medium);
}

.tab-num {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  opacity: 0.4;
  font-style: italic;
}

.tab-btn.active .tab-num {
  opacity: 0.8;
}

.tab-title {
  font-size: 0.9rem;
  line-height: 1.2;
}

.solutions-content-panel {
  background-color: var(--bg-white);
  border-radius: var(--border-radius-xl);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-medium);
  padding: 0;
  min-height: auto;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.solutions-tabs-wrapper {
  display: flex;
  justify-content: center;
  padding: 2rem 3rem 0 3rem; /* Margen superior interno que alinea con el grid de abajo */
  width: 100%;
}

.solutions-tabs {
  display: flex;
  flex-direction: row;
  background-color: rgba(38, 69, 77, 0.05); /* Píldora de fondo integrada */
  border-radius: 100px;
  padding: 0.35rem;
  gap: 0.25rem;
  border: none;
  width: 100%; /* Estira al ancho completo de la tarjeta */
  overflow-x: auto;
  scrollbar-width: none;
}

.solutions-tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  background-color: transparent;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.86rem;
  flex: 1; /* Estira todos los botones para que ocupen partes iguales */
  text-align: center;
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--primary);
  opacity: 0.8;
}

.tab-btn.active {
  background-color: var(--bg-white);
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(38, 69, 77, 0.08); /* Sombra elegante de píldora activa */
}


.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.5s ease forwards;
}

/* Nuevo layout de contenido 100% de ancho */
.tab-content-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.tab-content-body {
  padding: 3.5rem 4rem 4rem 4rem;
}

/* Cabecera interna en cuadrícula (Título + Imagen) */
.tab-content-header-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: center;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 2rem;
}

.tab-header-text {
  display: flex;
  flex-direction: column;
}

.tab-header-visual {
  width: 320px;
  height: 180px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
}

.tab-header-visual:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.tab-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tab-content-header h3 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.tab-tagline {
  font-size: 1.2rem;
  color: var(--accent-terracotta);
  font-weight: 500;
  font-style: italic;
}

.tab-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
  width: 100%;
}

.detail-column h4 {
  font-size: 1.05rem;
  color: var(--primary);
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-left: 3px solid var(--accent-terracotta);
  padding-left: 0.8rem;
  font-weight: 700;
}

.detail-column-content {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--body-text);
}

.detail-column-content p {
  margin-bottom: 0.8rem;
}

.detail-column-content p:last-child {
  margin-bottom: 0;
}

.tab-content-cta {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  border-top: 1px solid var(--border-color);
  padding-top: 2.2rem;
}

.tab-content-cta .btn {
  background-color: var(--accent-terracotta);
  color: var(--bg-neutral);
}

.tab-content-cta .btn:hover {
  background-color: #a24320; /* Terracota más oscura en hover */
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(190, 84, 45, 0.25);
}

.territory-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background-color: rgba(198, 182, 214, 0.3);
  color: var(--primary);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tab-content-text h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.tab-workshops {
  font-size: 1.02rem;
  color: var(--accent-terracotta);
  margin-bottom: 1.2rem;
  font-weight: 500;
}

.tab-description {
  font-size: 1.05rem;
  margin-bottom: 1.8rem;
  line-height: 1.6;
  color: var(--primary);
  font-weight: 500;
}

/* Acordeón Minimalista */
.territory-accordion {
  margin-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.accordion-item {
  border-bottom: 1px solid var(--border-color);
  padding: 0.8rem 0;
}

.accordion-header {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.accordion-title-text {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary);
  letter-spacing: 0.02em;
}

.accordion-icon {
  width: 18px;
  height: 18px;
  position: relative;
  transition: transform 0.3s ease;
  color: var(--accent-terracotta);
}

.accordion-icon::before,
.accordion-icon::after {
  content: '';
  position: absolute;
  background-color: currentColor;
  transition: transform 0.3s ease;
}

/* Línea horizontal del + */
.accordion-icon::before {
  top: 8px;
  left: 3px;
  width: 12px;
  height: 2px;
}

/* Línea vertical del + */
.accordion-icon::after {
  top: 3px;
  left: 8px;
  width: 2px;
  height: 12px;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-item.active .accordion-icon::after {
  transform: scaleY(0); /* Desvanece la vertical para formar el - */
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-body-content {
  padding: 0.8rem 0 1rem 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--body-text);
}

.accordion-body-content p {
  margin-bottom: 0.8rem;
}

.accordion-body-content p:last-child {
  margin-bottom: 0;
}

.accordion-label {
  font-weight: 700;
  color: var(--primary);
  display: inline-block;
  min-width: 120px;
}

.tab-content-visual {
  width: 270px;
  height: 270px;
  border-radius: 60% 40% 50% 50% / 40% 50% 50% 60%;
  overflow: hidden;
  border: 2px solid var(--border-color);
  box-shadow: 0 15px 35px rgba(38, 69, 77, 0.12);
  justify-self: center;
  align-self: center;
  transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tab-content-visual:hover {
  border-radius: 50% 50% 40% 60% / 50% 40% 60% 50%;
  transform: scale(1.03) rotate(2deg);
  box-shadow: 0 20px 45px rgba(38, 69, 77, 0.18);
}

.tab-visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.tab-content-visual:hover .tab-visual-img {
  transform: scale(1.08);
}

/* --- WhatsApp Floating Button --- */
.whatsapp-float {
  position: fixed;
  bottom: 2.5rem;
  right: 2.5rem;
  width: 60px;
  height: 60px;
  background-color: var(--primary);
  color: var(--bg-neutral);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(38, 69, 77, 0.2);
  z-index: 999;
  transition: var(--transition-smooth);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-5px);
  background-color: #1a3036;
  color: var(--accent-gold);
  box-shadow: 0 12px 40px rgba(38, 69, 77, 0.35);
}

.whatsapp-tooltip {
  position: absolute;
  right: 75px;
  background-color: var(--primary);
  color: var(--bg-neutral);
  padding: 0.6rem 1rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: var(--shadow-medium);
  opacity: 0;
  pointer-events: none;
  transform: translateX(10px);
  transition: var(--transition-smooth);
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* --- Booking Calendar Modal --- */
.booking-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.booking-modal.active {
  display: flex;
  animation: modalFadeIn 0.3s ease forwards;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.booking-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(26, 48, 54, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.booking-modal-card {
  position: relative;
  background-color: var(--bg-neutral);
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--border-radius-xl);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-premium);
  padding: 3.5rem;
  z-index: 2;
  animation: cardSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cardSlideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.booking-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2.2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--primary);
  opacity: 0.5;
  line-height: 1;
  transition: var(--transition-fast);
}

.booking-close-btn:hover {
  opacity: 1;
}

.booking-header {
  text-align: center;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.booking-header h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.booking-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
  align-items: start;
}

/* Calendar */
.booking-calendar-wrapper {
  background-color: var(--bg-white);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  box-shadow: var(--shadow-subtle);
}

.calendar-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
}

.calendar-nav button {
  background: transparent;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--primary);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition-fast);
}

.calendar-nav button:hover {
  background-color: rgba(38, 69, 77, 0.05);
}

.calendar-current-month {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.5;
  margin-bottom: 0.8rem;
}

.calendar-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition-fast) ease;
  color: var(--text-dark);
  border: 2px solid transparent;
  user-select: none;
}

.calendar-day.empty {
  cursor: default;
  pointer-events: none;
}

.calendar-day.disabled {
  opacity: 0.18;
  cursor: not-allowed;
  pointer-events: none;
  font-weight: 400;
}

.calendar-day.available {
  font-weight: 700;
  color: var(--primary);
  background-color: rgba(198, 182, 214, 0.12);
  border-color: rgba(198, 182, 214, 0.4);
}

.calendar-day.available:hover {
  background-color: var(--accent-lavender);
  color: var(--primary);
  transform: scale(1.1);
  box-shadow: 0 4px 10px rgba(198, 182, 214, 0.25);
}

.calendar-day.selected {
  background-color: var(--primary) !important;
  color: var(--bg-neutral) !important;
  border-color: var(--primary) !important;
  font-weight: 700;
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(38, 69, 77, 0.25);
}

/* Día de hoy */
.calendar-day.today {
  border: 2px solid var(--accent-terracotta);
  background-color: rgba(190, 84, 45, 0.04);
  color: var(--accent-terracotta);
  font-weight: 700;
}

/* Shimmer mientras carga desde Google Calendar */
@keyframes shimmerPulse {
  0%   { background-color: #e8e2d4; opacity: 0.6; }
  50%  { background-color: #d4cfc5; opacity: 0.9; }
  100% { background-color: #e8e2d4; opacity: 0.6; }
}
.calendar-day.loading-shimmer {
  animation: shimmerPulse 1.2s ease-in-out infinite;
  color: transparent !important;
  cursor: default;
  pointer-events: none;
  border-radius: 50%;
}


/* Times Grid */
.booking-times-wrapper {
  background-color: var(--bg-white);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  box-shadow: var(--shadow-subtle);
  min-height: 310px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-fast) ease;
}

.times-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: var(--primary);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.6rem;
  letter-spacing: 0.02em;
}

.times-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.time-slot-btn {
  padding: 0.65rem 0.3rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  background-color: var(--bg-neutral);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  color: var(--text-dark);
}

.time-slot-btn:hover {
  border-color: var(--primary);
  background-color: rgba(38, 69, 77, 0.03);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(38, 69, 77, 0.06);
}

.time-slot-btn.selected {
  background-color: var(--accent-gold) !important;
  color: var(--primary) !important;
  border-color: var(--accent-gold) !important;
  font-weight: 700;
  transform: translateY(1px);
  box-shadow: 0 2px 6px rgba(212, 161, 54, 0.18) !important;
}

.no-times-message {
  margin: auto;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 180px;
}

/* Form */
.booking-form-wrapper {
  background-color: var(--bg-white);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-color);
  padding: 2.2rem;
  box-shadow: 0 10px 30px rgba(38, 69, 77, 0.05);
  animation: fadeIn 0.4s ease forwards;
  transition: border-color var(--transition-fast) ease;
}

.booking-form-wrapper h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--primary);
  letter-spacing: 0.02em;
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.booking-form label {
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  opacity: 0.85;
  transition: color var(--transition-fast) ease;
}

.booking-form input {
  background-color: var(--bg-neutral);
  border: 1px solid rgba(38, 69, 77, 0.08);
  padding: 0.85rem 1.1rem;
  border-radius: var(--border-radius-sm);
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: all var(--transition-fast) ease-in-out;
}

.booking-form input:focus {
  outline: none;
  border-color: var(--accent-terracotta);
  background-color: var(--bg-white);
  box-shadow: 0 0 0 3px rgba(190, 84, 45, 0.12);
}

.booking-form .form-group:focus-within label {
  color: var(--accent-terracotta);
  opacity: 1;
}

/* Success Panel */
.booking-success-view {
  text-align: center;
  padding: 2rem 0;
  animation: fadeIn 0.5s ease forwards;
}

.success-icon {
  width: 72px;
  height: 72px;
  background-color: rgba(38, 69, 77, 0.08);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
}

.success-icon svg {
  width: 36px;
  height: 36px;
}

.booking-success-view h3 {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

.booking-success-view p {
  max-width: 500px;
  margin: 0 auto 2rem auto;
  font-size: 1.05rem;
  color: var(--text-muted);
}

.booking-summary-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  max-width: 420px;
  margin: 0 auto 2.5rem auto;
  text-align: left;
  box-shadow: var(--shadow-subtle);
}

.booking-summary-card p {
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}

.booking-summary-card p:last-child {
  margin-bottom: 0;
}

/* --- ALAIA Pulso --- */
.platform-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 5rem;
  align-items: center;
}

.platform-text h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--primary);
  margin-bottom: 1rem;
}

.platform-benefits-list {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  margin: 2.5rem 0;
}

.p-benefit-item {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}

.p-benefit-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: rgba(198, 182, 214, 0.15);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(198, 182, 214, 0.3);
}

.p-benefit-item h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--primary);
}

.p-benefit-item p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* --- Collage de la Plataforma --- */
.platform-collage-container {
  position: relative;
  width: 100%;
  height: 480px;
  margin: 0 auto;
}

/* Estilo Base de las Tarjetas */
.p-card {
  position: absolute;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 20px 40px rgba(38, 69, 77, 0.12);
  border: 1.5px solid rgba(38, 69, 77, 0.08);
  padding: 1.5rem;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.p-card:hover {
  transform: translateY(-10px) scale(1.03) !important;
  box-shadow: 0 30px 60px rgba(38, 69, 77, 0.2);
  z-index: 10;
}

/* Tarjeta Principal (Historial de Clima) - Fondo Oscuro de Alto Contraste */
.p-card-main {
  background-color: var(--primary);
  color: var(--bg-neutral);
  width: 320px;
  top: 60px;
  right: 20px;
  z-index: 1;
}

.p-card-main .p-card-meta {
  font-size: 0.75rem;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.p-card-main .db-badge-online {
  font-size: 0.7rem;
  font-weight: 600;
  color: #27c93f;
  background-color: rgba(39, 201, 63, 0.15);
  padding: 0.15rem 0.5rem;
  border-radius: 50px;
  float: right;
  display: flex;
  align-items: center;
  gap: 4px;
}

.p-card-main .db-badge-online::before {
  content: '';
  width: 6px;
  height: 6px;
  background-color: #27c93f;
  border-radius: 50%;
  display: inline-block;
}

.p-card-main .p-card-title {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.p-card-main .db-bars-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  height: 120px;
  padding-top: 1rem;
  border-bottom: 1px solid rgba(246, 241, 229, 0.15);
}

.p-card-main .db-bar-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 18%;
}

.p-card-main .db-bar-column span {
  font-size: 0.68rem;
  opacity: 0.6;
}

.p-card-main .db-bar {
  width: 12px;
  background-color: rgba(246, 241, 229, 0.2);
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
}

.p-card-main .db-bar.active {
  background: linear-gradient(to top, var(--accent-gold), var(--accent-lavender));
}

/* Tarjeta Flotante: Cohesión Colectiva (Acento Dorado) */
.p-card-cohesion {
  background-color: var(--bg-white);
  width: 180px;
  top: 10px;
  left: 20px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem;
}

.p-card-radial-wrapper {
  position: relative;
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}

.p-card-radial {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.p-card-radial .radial-bg {
  fill: none;
  stroke: rgba(38, 69, 77, 0.05);
  stroke-width: 3.5;
}

.p-card-radial .radial-val {
  fill: none;
  stroke-width: 3.5;
  stroke-linecap: round;
  transition: stroke-dasharray 0.3s ease;
}

.radial-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
}

.p-card-info {
  display: flex;
  flex-direction: column;
}

.p-card-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.p-card-cohesion .db-trend {
  font-size: 0.85rem;
  font-weight: 600;
  color: #27c93f;
  margin-top: 0.1rem;
}

/* Tarjeta Flotante: Nivel de Estrés (Acento Terracota) */
.p-card-stress {
  background-color: var(--bg-white);
  width: 190px;
  bottom: 30px;
  right: 50px;
  z-index: 4;
  padding: 1.2rem;
}

.stress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

.stress-val {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent-terracotta);
}

.stress-graph {
  height: 35px;
  width: 100%;
  margin-bottom: 0.5rem;
}

.stress-wave {
  width: 100%;
  height: 100%;
}

.stress-status {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent-terracotta);
  background-color: rgba(190, 84, 45, 0.08);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  display: inline-block;
}

/* Tarjeta Flotante: Tests Psicologicos (Lavanda Cristal) */
.p-card-survey {
  background-color: rgba(198, 182, 214, 0.25);
  border-color: rgba(198, 182, 214, 0.4);
  width: 250px;
  bottom: 80px;
  left: 10px;
  z-index: 2;
}

.survey-meta {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--primary);
  opacity: 0.6;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.4rem;
}

.survey-question {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--primary);
  display: block;
  margin-bottom: 0.8rem;
}

.survey-options {
  display: flex;
  gap: 0.6rem;
}

.survey-opt {
  font-size: 0.75rem;
  padding: 0.3rem 0.8rem;
  background-color: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(38, 69, 77, 0.1);
  border-radius: 50px;
  color: var(--primary);
  cursor: pointer;
}

.survey-opt.active {
  background-color: var(--primary);
  color: var(--bg-neutral);
  border-color: var(--primary);
}

/* Micro-animaciones de flotado continuo (Solo se activan tras completarse la revelación inicial) */
.revealed.animate-float-slow {
  animation: platformFloat 8s ease-in-out infinite;
  animation-delay: 1.2s;
}

.revealed.animate-float-medium {
  animation: platformFloat 6s ease-in-out infinite;
  animation-delay: 2.2s;
}

.revealed.animate-float-fast {
  animation: platformFloat 5s ease-in-out infinite;
  animation-delay: 1.7s;
}

.revealed.animate-float-slowest {
  animation: platformFloat 10s ease-in-out infinite;
  animation-delay: 2.7s;
}

@keyframes platformFloat {
  0% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0); }
}

/* --- Compact Blog --- */
#blog {
  background-color: var(--bg-white);
}

.blog-horizontal-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 5rem;
  align-items: center;
}

.blog-header-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.blog-header-col h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  margin-bottom: 1rem;
}

.blog-list-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.blog-card-compact {
  display: flex;
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  padding: 1.2rem;
  gap: 1.5rem;
  align-items: center;
  transition: var(--transition-smooth);
}

.blog-card-compact:hover {
  transform: translateY(-4px);
  border-color: rgba(38, 69, 77, 0.15);
  box-shadow: var(--shadow-medium);
}

.blog-img-compact {
  width: 120px;
  height: 120px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  flex-shrink: 0;
}

.blog-compact-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-content-compact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}

.blog-content-compact h3 {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--primary);
  margin-bottom: 0.3rem;
}

/* --- Scroll Reveal Animations --- */
.reveal-up,
.reveal-left,
.reveal-right,
.reveal-scale {
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal-up {
  transform: translateY(40px);
}

.reveal-left {
  transform: translateX(-40px);
}

.reveal-right {
  transform: translateX(40px);
}

.reveal-scale {
  transform: scale(0.95);
}

/* Activated state */
.reveal-up.revealed,
.reveal-left.revealed,
.reveal-right.revealed,
.reveal-scale.revealed {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* Staggered transition delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* --- Animations --- */
@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(190, 84, 45, 0.4);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(190, 84, 45, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(190, 84, 45, 0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes floatSteam {
  0% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0;
  }
  15% {
    opacity: 0.4;
  }
  50% {
    transform: translateY(-20px) translateX(5px) scale(1.1);
    opacity: 0.6;
  }
  85% {
    opacity: 0.1;
  }
  100% {
    transform: translateY(-40px) translateX(2px) scale(0.9);
    opacity: 0;
  }
}
@media (max-width: 1024px) {
  .solutions-tabs-wrapper {
    padding: 1.5rem 1rem 0 1rem;
    width: 100%;
  }
  .solutions-tabs {
    justify-content: flex-start;
    padding: 0.25rem;
    overflow-x: auto;
    scrollbar-width: none;
    display: flex;
    width: 100%;
  }
  .tab-btn {
    padding: 0.55rem 1.2rem;
    font-size: 0.8rem;
    flex-shrink: 0;
  }
  .tab-content-body {
    padding: 2.2rem 1.8rem;
  }
  .tab-content-header-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
  }
  .tab-header-visual {
    width: 100%;
    max-width: 320px;
    height: 180px;
    justify-self: left;
  }
  .tab-details-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .blog-horizontal-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .platform-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  .desafios-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .desafios-visual-img {
    min-height: 360px;
    height: 380px;
  }
  .territories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-visual {
    height: 380px;
  }
  .benefits-layout {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .benefits-sticky {
    position: static;
  }
  .benefits-image-wrapper {
    height: 320px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
}

@media (max-width: 900px) {
  .nav-menu {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  .nav-cta {
    display: none;
  }
}

@media (max-width: 768px) {
  .tab-content-body {
    padding: 1.5rem;
  }
  .tab-content-header h3 {
    font-size: 1.6rem;
  }
  .hero-subtitle-h2 {
    font-size: 1.15rem;
    margin-bottom: 1.2rem;
  }
  .platform-collage-container {
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: static;
    margin-top: 2rem;
  }
  .p-card {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    transform: none !important;
    animation: none !important;
    box-shadow: 0 10px 20px rgba(38, 69, 77, 0.08) !important;
  }
  .blog-card-compact {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 1rem;
  }
  .blog-content-compact {
    align-items: center;
  }
  .footer-form-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .territories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .tea-ritual {
    flex-direction: column;
    padding: 3rem 2rem;
    gap: 2.5rem;
    text-align: center;
  }
  .tea-ritual-visual {
    order: -1;
  }
  .test-container {
    padding: 3rem 2rem;
  }
  .stats-row {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  /* Booking Modal Mobile Optimization */
  .booking-modal {
    padding: 0.75rem;
  }
  
  .booking-modal-card {
    padding: 2.5rem 1.25rem 2rem 1.25rem;
    max-height: 94vh;
    border-radius: var(--border-radius-lg);
  }
  
  .booking-close-btn {
    top: 0.85rem;
    right: 1rem;
    font-size: 2rem;
  }
  
  .booking-header {
    margin-bottom: 1.5rem;
  }
  
  .booking-header h3 {
    font-size: 1.35rem;
  }
  
  .booking-header p {
    font-size: 0.88rem;
    line-height: 1.5;
  }
  
  .booking-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
  }
  
  .booking-calendar-wrapper {
    padding: 1rem;
  }
  
  .calendar-nav {
    margin-bottom: 0.8rem;
  }
  
  .calendar-nav button {
    font-size: 1.5rem;
  }
  
  .calendar-current-month {
    font-size: 1.05rem;
  }
  
  .calendar-weekdays {
    font-size: 0.72rem;
    margin-bottom: 0.5rem;
  }
  
  .calendar-day {
    font-size: 0.82rem;
  }
  
  .booking-times-wrapper {
    padding: 1rem;
    min-height: auto;
  }
  
  .times-title {
    font-size: 0.88rem;
    margin-bottom: 0.8rem;
    padding-bottom: 0.4rem;
  }
  
  .times-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
  }
  
  .time-slot-btn {
    padding: 0.55rem 0.2rem;
    font-size: 0.78rem;
  }
  
  .booking-form-wrapper {
    padding: 1.25rem;
  }
  
  .booking-form-wrapper h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  
  .booking-form {
    gap: 0.9rem;
  }
  
  .form-row-2 {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }
  
  .booking-form label {
    font-size: 0.72rem;
  }
  
  .booking-form input {
    padding: 0.75rem 0.9rem;
    font-size: 0.88rem;
  }
  
  .booking-success-view {
    padding: 1rem 0;
  }
  
  .success-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
  }
  
  .success-icon svg {
    width: 28px;
    height: 28px;
  }
  
  .booking-success-view h3 {
    font-size: 1.6rem;
  }
  
  .booking-success-view p {
    font-size: 0.92rem;
    margin-bottom: 1.5rem;
  }
  
  .booking-summary-card {
    padding: 1.25rem;
    margin-bottom: 1.5rem;
  }
  
  .booking-summary-card p {
    font-size: 0.88rem;
  }
}

@media (max-width: 480px) {
  .hero-features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .territories-grid {
    grid-template-columns: 1fr;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
  }
}

/* --- Mobile experience hardening --- */
.mobile-nav-backdrop {
  display: none;
}

@media (max-width: 900px) {
  .nav-wrapper {
    gap: 0.55rem;
  }

  .nav-cta {
    display: flex;
    margin-left: auto;
    min-width: 0;
  }

  .nav-portal-link {
    min-height: 40px;
    padding: 0.5rem 0.7rem;
    border: 1px solid rgba(38, 69, 77, 0.16);
    background: rgba(255, 255, 255, 0.42);
    border-radius: 999px;
    white-space: nowrap;
  }

  .menu-toggle {
    display: inline-flex;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    padding: 0.7rem;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 1px solid rgba(38, 69, 77, 0.15);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.42);
    position: relative;
    z-index: 1002;
  }

  .menu-toggle:focus-visible,
  .nav-portal-link:focus-visible,
  .nav-link:focus-visible {
    outline: 3px solid rgba(190, 84, 45, 0.42);
    outline-offset: 3px;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

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

  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .nav-menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    position: fixed;
    z-index: 1001;
    top: 78px;
    left: 1rem;
    right: 1rem;
    width: auto;
    max-height: calc(100dvh - 96px);
    overflow-y: auto;
    padding: 0.7rem;
    margin: 0;
    border: 1px solid rgba(38, 69, 77, 0.12);
    border-radius: 1.25rem;
    background: rgba(246, 241, 229, 0.98);
    box-shadow: 0 18px 42px rgba(26, 48, 54, 0.18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-0.75rem) scale(0.98);
    transform-origin: top right;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  }

  .header.scrolled .nav-menu {
    top: 64px;
  }

  .nav-menu.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .nav-link {
    display: block;
    padding: 0.85rem 0.95rem;
    border-radius: 0.8rem;
    font-size: 0.96rem;
    opacity: 1;
  }

  .nav-link:hover,
  .nav-link:focus-visible {
    background: rgba(198, 182, 214, 0.35);
  }

  .nav-link::after {
    display: none;
  }

  .mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 990;
    border: 0;
    background: rgba(26, 48, 54, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open .mobile-nav-backdrop {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 768px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  main,
  .footer,
  .container,
  .hero-grid,
  .desafios-layout,
  .benefits-layout,
  .testimonials-grid,
  .platform-grid,
  .blog-horizontal-layout,
  .footer-grid,
  .solutions-content-panel,
  .tab-content-body {
    min-width: 0;
    max-width: 100%;
  }

  .container {
    width: 100%;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .section {
    padding: 4.5rem 0;
  }

  .reveal-left,
  .reveal-right {
    transform: translateY(24px);
  }

  .tab-content-cta {
    margin-top: 2rem;
    padding-top: 1.5rem;
  }

  .tab-content-cta .btn,
  .hero-actions .btn,
  .lead-form .btn {
    width: 100%;
    max-width: 100%;
    min-height: 50px;
    padding: 0.8rem 1rem;
    white-space: normal;
    line-height: 1.3;
    text-align: center;
  }

  .footer {
    padding: 3.5rem 0 1.5rem;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
    margin-bottom: 2.5rem;
  }

  .footer-info,
  .footer-info-top,
  .footer-form-wrapper,
  .lead-form,
  .footer-form-grid,
  .form-group,
  .form-consent-group {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .footer-logo img {
    height: 34px;
    margin-bottom: 1.3rem;
  }

  .footer-description {
    max-width: none;
    margin-bottom: 2rem;
    font-size: 1rem;
  }

  .contact-item {
    align-items: flex-start;
    gap: 0.75rem;
    overflow-wrap: anywhere;
  }

  .contact-item svg {
    flex: 0 0 20px;
    margin-top: 0.2rem;
  }

  .social-details {
    flex-wrap: wrap;
    row-gap: 0.8rem !important;
  }

  .footer-form-wrapper {
    padding: 1.5rem;
    border-radius: 1.25rem;
  }

  .footer-form-wrapper h3 {
    font-size: 1.45rem;
    overflow-wrap: anywhere;
  }

  .footer-form-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 1rem;
  }

  .footer-form-grid #form-group-message {
    grid-column: auto !important;
  }

  .footer-form-wrapper .form-group input,
  .footer-form-wrapper .form-group textarea {
    width: 100%;
    min-width: 0;
  }

  .form-consent-group {
    align-items: flex-start !important;
  }

  .form-consent-group label {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding-top: 1.5rem;
  }

  .footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem 1rem;
  }

  .footer-links a {
    margin-right: 0 !important;
  }

  .whatsapp-float {
    right: 1rem;
    bottom: max(1rem, env(safe-area-inset-bottom));
    width: 56px;
    height: 56px;
    z-index: 1100;
  }
}

@media (max-width: 390px) {
  .logo img {
    height: 21px;
  }

  .nav-portal-link {
    gap: 0.3rem;
    padding: 0.45rem 0.55rem;
    font-size: 0.74rem;
  }

  .nav-portal-link .login-icon {
    width: 13px;
    height: 13px;
  }

  .menu-toggle {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
  }
}

