/* ==========================================================================
   TERAPIA REGRESIVA · INSTITUTO A.M.I.
   Design System: Inspirado en www.terapiaregresion.com (Edición Petrol Teal & Slate)
   ========================================================================== */

:root {
  /* Tipografías */
  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  /* Paleta cromática: Petrol Teal, Slate & Indigo Glow */
  --color-primary: #0d9488;         /* Teal 600 */
  --color-primary-dark: #0f766e;    /* Teal 700 */
  --color-primary-darker: #115e59;  /* Teal 800 */
  --color-primary-deep: #042f2e;    /* Teal 950 */
  --color-primary-light: #14b8a6;   /* Teal 500 */
  --color-primary-surface: #f0fdfa; /* Teal 50 */
  --color-primary-border: rgba(13, 148, 136, 0.2);

  --color-accent-indigo: #6366f1;   /* Indigo 500 */
  --color-accent-amber: #f59e0b;    /* Amber 500 */

  /* Slate Neutrals */
  --color-bg-body: #f8fafc;         /* Slate 50 */
  --color-bg-card: #ffffff;
  --color-bg-card-alt: #f1f5f9;     /* Slate 100 */

  --color-text-title: #0f172a;      /* Slate 900 */
  --color-text-body: #475569;       /* Slate 600 */
  --color-text-muted: #64748b;      /* Slate 500 */
  --color-text-light: #94a3b8;      /* Slate 400 */

  /* Bordes & Sombras */
  --color-border-card: #f1f5f9;
  --color-border-card-hover: rgba(13, 148, 136, 0.25);

  --color-whatsapp: #25d366;
  --color-whatsapp-hover: #1eb956;

  /* Geometría www.terapiaregresion.com: ultra redondeada */
  --radius-sm: 1rem;
  --radius-md: 1.5rem;
  --radius-lg: 2rem;
  --radius-card: 2.5rem;
  --radius-card-lg: 3.5rem;
  --radius-pill: 9999px;

  /* Sombras suaves y difusas */
  --shadow-card: 0 20px 40px -15px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 25px 50px -12px rgba(13, 148, 136, 0.15);
  --shadow-primary-btn: 0 20px 35px -10px rgba(13, 148, 136, 0.35);
  --shadow-whatsapp: 0 16px 32px -8px rgba(37, 211, 102, 0.4);

  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color: var(--color-text-title);
  background-color: var(--color-bg-body);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  color: var(--color-text-title);
  background-color: var(--color-bg-body);
  font-family: var(--font-body);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  transition: var(--transition-smooth);
}

.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Tipografía de Encabezados (Plus Jakarta Sans Ultra-bold) */
h1, h2, h3, h4, h5, h6,
.font-premium-heading {
  font-family: var(--font-heading);
  font-weight: 900;
  letter-spacing: -0.025em;
  color: var(--color-text-title);
}

/* Aurora Glow Effect (Idéntica a terapiaregresion.com, adaptada en Teal + Indigo) */
.aurora-glow {
  position: absolute;
  width: 150%;
  height: 150%;
  background: radial-gradient(circle at center, rgba(13, 148, 136, 0.15) 0%, rgba(99, 102, 241, 0.1) 32%, transparent 70%);
  top: -25%;
  left: -25%;
  z-index: 0;
  filter: blur(60px);
  pointer-events: none;
  animation: aurora-spin 18s linear infinite;
}

@keyframes aurora-spin {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.1); }
  100% { transform: rotate(360deg) scale(1); }
}

/* Status Pulse Dot */
.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-primary);
  box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.7);
  animation: pulse-teal 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse-teal {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 7px rgba(13, 148, 136, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(13, 148, 136, 0); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Floating WhatsApp Concierge Widget */
.whatsapp-floating-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: #25d366;
  color: #ffffff;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 16px 36px -6px rgba(37, 211, 102, 0.45);
  font-weight: 900;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: var(--transition-smooth);
}

.whatsapp-floating-btn:hover {
  transform: translateY(-4px) scale(1.03);
  background-color: #1eb956;
  box-shadow: 0 22px 42px -6px rgba(37, 211, 102, 0.6);
  color: #ffffff;
}

.whatsapp-floating-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  flex-shrink: 0;
}

/* Accordion Smooth Styles */
.faq-accordion-item {
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 2rem;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-accordion-item.active {
  border-color: rgba(13, 148, 136, 0.35);
  box-shadow: 0 15px 35px -10px rgba(13, 148, 136, 0.1);
}

.faq-accordion-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.75rem 2rem;
  text-align: left;
  font-weight: 900;
  font-size: 1.125rem;
  color: var(--color-text-title);
  background: none;
  cursor: pointer;
  letter-spacing: -0.01em;
}

.faq-accordion-btn .icon-arrow {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f1f5f9;
  color: #0f172a;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
  font-size: 0.85rem;
}

.faq-accordion-item.active .faq-accordion-btn .icon-arrow {
  transform: rotate(180deg);
  background: var(--color-primary);
  color: #ffffff;
}

.faq-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
  padding: 0 2rem;
  color: var(--color-text-body);
  font-size: 1rem;
  line-height: 1.75;
}

.faq-accordion-item.active .faq-accordion-content {
  padding-bottom: 2rem;
}

/* Module Accordion Styles (Formación) */
.module-item {
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 2.25rem;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.module-item.active {
  border-color: rgba(13, 148, 136, 0.35);
  box-shadow: 0 20px 40px -10px rgba(13, 148, 136, 0.12);
}

.module-header-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.85rem 2.25rem;
  background: none;
  cursor: pointer;
  text-align: left;
}

.module-header-btn .module-arrow {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
}

.module-item.active .module-header-btn .module-arrow {
  transform: rotate(180deg);
  color: #0d9488;
}

.module-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
  padding: 0 2.25rem;
}

.module-item.active .module-content {
  padding-bottom: 2.25rem;
}

/* Subtle fade in keyframes */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
