/* ==========================================================================
   ConectaLocal Central Portal - Design System & Styles (Light Theme)
   Paleta: Azul Oscuro / Marino, Verde Bandera, Naranja y Tonos Claros
   ========================================================================== */

/* --- Design Tokens --- */
:root {
  /* Color Palette (Light Theme Focus) */
  --bg-light: #F8FAFC;
  --bg-white: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F1F5F9;
  --bg-glass-header: rgba(255, 255, 255, 0.95);
  
  /* Brand Core Colors */
  --navy-dark: #0A192F;
  --navy-main: #1E293B;
  --verde-bandera: #006847;
  --verde-light: #10B981;
  --naranja-brand: #FF6B00;
  --naranja-hover: #E66000;
  
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --text-light: #F8FAFC;
  
  /* Gradients */
  --gradient-brand: linear-gradient(135deg, var(--navy-dark) 0%, var(--verde-bandera) 50%, var(--naranja-brand) 100%);
  --gradient-title: linear-gradient(135deg, #0A192F 0%, #006847 60%, #FF6B00 100%);
  --gradient-divider: linear-gradient(90deg, #0A192F 0%, #0F294A 50%, #0A192F 100%);
  
  /* Borders & Shadows */
  --border-light: rgba(15, 23, 42, 0.08);
  --border-hover: rgba(0, 104, 71, 0.3);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 40px -15px rgba(10, 25, 47, 0.12);
  --shadow-orange: 0 8px 20px rgba(255, 107, 0, 0.25);

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --container-max: 1240px;
  --header-height: 80px;
  --radius-lg: 24px;
  --radius-md: 14px;
  --radius-sm: 8px;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  background-color: var(--bg-light);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Typography Utilities --- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy-dark);
}

.text-gradient {
  background: var(--gradient-title);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-orange {
  color: var(--naranja-brand);
}

.text-verde {
  color: var(--verde-bandera);
}

/* Badge Disponible Próximamente */
.coming-soon-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(139, 92, 246, 0.12);
  color: #8B5CF6;
  border: 1px solid rgba(139, 92, 246, 0.3);
  margin-bottom: 0.6rem;
}

/* Badge General para Secciones */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(0, 104, 71, 0.08);
  color: var(--verde-bandera);
  border: 1px solid rgba(0, 104, 71, 0.2);
  margin-bottom: 1rem;
}

.section-badge.badge-naranja {
  background: rgba(255, 107, 0, 0.08);
  color: var(--naranja-brand);
  border-color: rgba(255, 107, 0, 0.2);
}

/* --- TRANSPARENT HEADER --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
  box-shadow: none;
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease, border-bottom 0.4s ease, box-shadow 0.4s ease;
}

.header.scrolled {
  background: var(--bg-glass-header);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 8px 30px rgba(10, 25, 47, 0.08);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.brand-logo:hover .logo-img {
  transform: scale(1.08) rotate(4deg);
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy-dark);
  display: flex;
  align-items: center;
}

.brand-name span {
  color: var(--naranja-brand);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  list-style: none;
  margin-left: auto;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  color: var(--navy-dark);
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
}

.header.scrolled .nav-link {
  background: transparent;
  border-color: transparent;
}

.nav-link svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--naranja-brand);
  background: rgba(255, 107, 0, 0.1);
  border-color: rgba(255, 107, 0, 0.2);
}

.nav-link.active {
  color: var(--verde-bandera);
  background: rgba(0, 104, 71, 0.1);
  border: 1px solid rgba(0, 104, 71, 0.25);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.98rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: var(--naranja-brand);
  color: #FFFFFF;
  box-shadow: var(--shadow-orange);
}

.btn-primary:hover {
  background: var(--naranja-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 107, 0, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--navy-dark);
  border: 2px solid var(--navy-dark);
}

.btn-outline:hover {
  background: var(--navy-dark);
  color: #FFFFFF;
}

.btn-verde {
  background: var(--verde-bandera);
  color: #FFFFFF;
  box-shadow: 0 8px 20px rgba(0, 104, 71, 0.25);
}

.btn-verde:hover {
  background: #005238;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 104, 71, 0.35);
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--navy-dark);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: auto;
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  margin-top: 0;
  padding-top: calc(var(--header-height) + 3rem);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-bottom: 6rem;
}

.hero-bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.10);
  opacity: 0;
  animation: heroBgZoom 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes heroBgZoom {
  0% {
    transform: scale(1.10);
    opacity: 0;
  }

  100% {
    transform: scale(1.0);
    opacity: 1;
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.40) 0%,
      rgba(248, 250, 252, 0.48) 60%,
      rgba(248, 250, 252, 0.82) 100%);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(30px);
  animation: heroContentFadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

@keyframes heroContentFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  font-size: clamp(3rem, 6.5vw, 5.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy-dark);
  margin-bottom: 0.8rem;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 700;
  color: var(--verde-bandera);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 8px rgba(255, 255, 255, 0.8);
}

.hero-paragraph {
  font-size: clamp(1.1rem, 2vw, 1.28rem);
  color: #1E293B;
  max-width: 760px;
  margin: 0 auto 2.5rem auto;
  font-weight: 500;
  line-height: 1.7;
  text-shadow: 0 1px 6px rgba(255, 255, 255, 0.9);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

/* --- DIVIDER BAR --- */
.divider-bar {
  background: var(--gradient-divider);
  color: var(--text-light);
  padding: 2.2rem 0;
  border-top: 3px solid var(--naranja-brand);
  border-bottom: 3px solid var(--verde-bandera);
  box-shadow: 0 10px 30px rgba(10, 25, 47, 0.2);
  position: relative;
  z-index: 10;
}

.divider-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: center;
}

.divider-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  padding: 0.8rem;
  text-align: left;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  transition: var(--transition-fast);
}

.divider-item:last-child {
  border-right: none;
}

.divider-item:hover {
  transform: translateY(-3px);
}

.divider-icon-wrapper {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.icon-comercio {
  background: rgba(0, 104, 71, 0.3);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34D399;
}

.icon-empleo {
  background: rgba(255, 107, 0, 0.25);
  border: 1px solid rgba(255, 107, 0, 0.5);
  color: #FDBA74;
}

.icon-mapa {
  background: rgba(59, 130, 246, 0.25);
  border: 1px solid rgba(59, 130, 246, 0.5);
  color: #93C5FD;
}

.divider-icon-wrapper svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.divider-text-content {
  display: flex;
  flex-direction: column;
}

.divider-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
  margin-bottom: 0.1rem;
}

.divider-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.25;
}

.highlight-doctor-mora {
  color: var(--naranja-brand);
  background: rgba(255, 107, 0, 0.15);
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  border: 1px dashed var(--naranja-brand);
  display: inline-block;
}

/* --- SECCIÓN TUTORIAL VISUAL CON TARJETAS DESPLEGABLES --- */
.tutorial-section {
  padding: 6rem 0;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-light);
}

.tutorial-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.tutorial-tab-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  border: 2px solid var(--border-light);
  background: var(--bg-light);
  color: var(--navy-dark);
  cursor: pointer;
  transition: var(--transition-fast);
}

.tutorial-tab-btn.active-tab-clientes {
  background: var(--naranja-brand);
  color: #FFFFFF;
  border-color: var(--naranja-brand);
  box-shadow: var(--shadow-orange);
}

.tutorial-tab-btn.active-tab-socios {
  background: var(--verde-bandera);
  color: #FFFFFF;
  border-color: var(--verde-bandera);
  box-shadow: 0 8px 20px rgba(0, 104, 71, 0.25);
}

.tutorial-content-pane {
  display: none;
}

.tutorial-content-pane.active {
  display: block;
  animation: fadeInPane 0.5s ease-in-out;
}

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

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  align-items: start;
}

/* Tarjeta Desplegable */
.step-card {
  background: var(--bg-light);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.8rem;
  position: relative;
  cursor: pointer;
  transition: var(--transition-normal);
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 104, 71, 0.4);
  box-shadow: var(--shadow-md);
  background: #FFFFFF;
}

.step-card.is-expanded {
  background: #FFFFFF;
  border-color: var(--naranja-brand);
  box-shadow: var(--shadow-lg);
}

.step-card-socios.is-expanded {
  border-color: var(--verde-bandera);
}

.step-number {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(10, 25, 47, 0.06);
  color: var(--navy-dark);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-card-clientes .step-number {
  background: rgba(255, 107, 0, 0.12);
  color: var(--naranja-brand);
}

.step-card-socios .step-number {
  background: rgba(0, 104, 71, 0.12);
  color: var(--verde-bandera);
}

.step-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.step-icon-wrapper svg {
  width: 30px;
  height: 30px;
  stroke-width: 2.2;
  fill: none;
}

.step-icon-clientes {
  background: rgba(255, 107, 0, 0.1);
  color: var(--naranja-brand);
  border: 1px solid rgba(255, 107, 0, 0.25);
}

.step-icon-socios {
  background: rgba(0, 104, 71, 0.1);
  color: var(--verde-bandera);
  border: 1px solid rgba(0, 104, 71, 0.25);
}

.step-title {
  font-size: 1.45rem;
  margin-bottom: 0.8rem;
  color: var(--navy-dark);
}

.step-description {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

/* Indicador de Despliegue */
.step-expand-trigger {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--naranja-brand);
  margin-top: 0.5rem;
}

.step-card-socios .step-expand-trigger {
  color: var(--verde-bandera);
}

.step-expand-trigger svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

.step-card.is-expanded .step-expand-trigger svg {
  transform: rotate(180deg);
}

/* CORTINILLA DESPLEGABLE CON TUTORIAL Y GALERÍA */
.step-drawer {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.45s ease, opacity 0.4s ease, margin-top 0.3s ease;
  margin-top: 0;
  border-top: 1px dashed transparent;
}

.step-card.is-expanded .step-drawer {
  max-height: 1100px;
  opacity: 1;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top-color: var(--border-light);
}

/* MARCO MOCKUP DE TELÉFONO CELULAR CON GALERÍA */
.phone-mockup {
  width: 100%;
  max-width: 290px;
  margin: 1rem auto 0 auto;
  border-radius: 36px;
  border: 10px solid #1E293B;
  background: #0F172A;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.2);
  position: relative;
  overflow: hidden;
}

.phone-notch {
  width: 90px;
  height: 18px;
  background: #1E293B;
  margin: 0 auto;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  position: relative;
  z-index: 5;
}

.phone-screen {
  background: #FFFFFF;
  min-height: 440px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* --- GALERÍA DESLIZABLE (SLIDER) --- */
.tutorial-gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.slider-container {
  width: 100%;
  height: 440px;
  overflow: hidden;
  position: relative;
  background: #000000;
}

.slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.slide-item {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
}

.slide-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Navegación y Puntos de la Galería */
.slider-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 1.2rem;
}

.slider-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  color: var(--navy-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.slider-arrow:hover {
  background: var(--navy-dark);
  color: #FFFFFF;
  border-color: var(--navy-dark);
}

.slider-dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #CBD5E1;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot.active {
  width: 26px;
  border-radius: 10px;
  background: var(--naranja-brand);
}

.step-card-socios .slider-dot.active {
  background: var(--verde-bandera);
}

/* Caja de Texto Explicativo Acompañante */
.slide-caption-container {
  width: 100%;
  margin-top: 1.2rem;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.4rem;
  text-align: left;
}

.slide-caption {
  display: none;
  font-size: 0.95rem;
  color: var(--navy-dark);
  line-height: 1.6;
}

.slide-caption.active {
  display: block;
  animation: fadeInCaption 0.4s ease-in-out;
}

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

.slide-caption strong {
  color: var(--naranja-brand);
  font-weight: 700;
  display: inline-block;
  margin-right: 0.4rem;
}

.step-card-socios .slide-caption strong {
  color: var(--verde-bandera);
}

/* ==========================================================================
   ESTILOS ESPECÍFICOS PARA LA VISTA "NOSOTROS"
   ========================================================================== */

/* Hero Banner de Nosotros */
.about-hero {
  padding-top: calc(var(--header-height) + 2.5rem);
  padding-bottom: 3rem;
  background: linear-gradient(180deg, #F1F5F9 0%, #FFFFFF 100%);
  text-align: center;
  border-bottom: 1px solid var(--border-light);
}

.about-hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 800;
  margin-bottom: 0.8rem;
  letter-spacing: -0.02em;
}

.about-hero-subtitle {
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  color: var(--verde-bandera);
  font-weight: 700;
  max-width: 800px;
  margin: 0 auto 1.2rem auto;
}

.about-hero-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.6;
}

/* --- SECCIÓN 1: LÍNEA DEL TIEMPO / CRONOLOGÍA (DISEÑO COMPACTO) --- */
.timeline-section {
  padding: 3.5rem 0;
  background: var(--bg-light);
  position: relative;
}

.section-header-center {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 2.2rem auto;
}

.section-title-large {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin-bottom: 0.5rem;
  color: var(--navy-dark);
}

.section-subtitle-text {
  font-size: 1.02rem;
  color: var(--text-secondary);
}

.timeline-container {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: 0.5rem 0;
}

/* Eje central de la línea del tiempo */
.timeline-container::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: linear-gradient(180deg, var(--verde-bandera) 0%, var(--naranja-brand) 100%);
  transform: translateX(-50%);
  border-radius: 3px;
}

/* Bloque individual de evento */
.timeline-item {
  position: relative;
  margin-bottom: 1.4rem;
  width: 50%;
  padding-right: 1.8rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item:nth-child(even) {
  margin-left: 50%;
  padding-right: 0;
  padding-left: 1.8rem;
}

/* Nodo central circular */
.timeline-dot {
  position: absolute;
  top: 1.1rem;
  right: -10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 3px solid var(--verde-bandera);
  box-shadow: 0 0 0 3px rgba(0, 104, 71, 0.15);
  z-index: 5;
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.timeline-item:nth-child(even) .timeline-dot {
  right: auto;
  left: -10px;
  border-color: var(--naranja-brand);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.15);
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.25);
  background: var(--naranja-brand);
}

/* Tarjeta de contenido del hito */
.timeline-card {
  background: #FFFFFF;
  border: 1.5px solid var(--border-light);
  border-radius: 18px;
  padding: 1.25rem 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  position: relative;
}

.timeline-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
}

.timeline-badge {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.82rem;
  background: rgba(0, 104, 71, 0.1);
  color: var(--verde-bandera);
  margin-bottom: 0.4rem;
  border: 1px solid rgba(0, 104, 71, 0.2);
}

.timeline-item:nth-child(even) .timeline-badge {
  background: rgba(255, 107, 0, 0.1);
  color: var(--naranja-brand);
  border-color: rgba(255, 107, 0, 0.2);
}

.timeline-title {
  font-size: 1.18rem;
  margin-bottom: 0.35rem;
  color: var(--navy-dark);
}

.timeline-text {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* --- SECCIÓN 2: MISIÓN Y VISIÓN --- */
.mission-vision-section {
  padding: 6rem 0;
  background: #FFFFFF;
}

.mission-vision-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.mv-card {
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  position: relative;
  transition: var(--transition-normal);
  overflow: hidden;
  border: 2px solid var(--border-light);
  background: var(--bg-light);
}

.mv-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.mv-card-mision {
  border-top: 5px solid var(--naranja-brand);
}

.mv-card-mision:hover {
  border-color: var(--naranja-brand);
  background: #FFFFFF;
}

.mv-card-vision {
  border-top: 5px solid var(--verde-bandera);
}

.mv-card-vision:hover {
  border-color: var(--verde-bandera);
  background: #FFFFFF;
}

.mv-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.8rem;
}

.mv-icon-mision {
  background: rgba(255, 107, 0, 0.12);
  color: var(--naranja-brand);
  border: 1px solid rgba(255, 107, 0, 0.25);
}

.mv-icon-vision {
  background: rgba(0, 104, 71, 0.12);
  color: var(--verde-bandera);
  border: 1px solid rgba(0, 104, 71, 0.25);
}

.mv-icon-wrapper svg {
  width: 32px;
  height: 32px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
}

.mv-title {
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.mv-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* --- SECCIÓN 3: NUESTROS VALORES --- */
.values-section {
  padding: 6rem 0;
  background: var(--bg-light);
  border-top: 1px solid var(--border-light);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.value-card {
  background: #FFFFFF;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.8rem;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.value-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 104, 71, 0.3);
  box-shadow: var(--shadow-md);
}

.value-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  background: rgba(10, 25, 47, 0.05);
  color: var(--navy-dark);
  transition: var(--transition-fast);
}

.value-card:hover .value-icon-box {
  background: var(--naranja-brand);
  color: #FFFFFF;
  transform: scale(1.05);
}

.value-icon-box svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
}

.value-title {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: var(--navy-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.value-description {
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* CTA BANNER FINAL */
.cta-banner-section {
  padding: 5rem 0;
  background: var(--gradient-divider);
  color: #FFFFFF;
  text-align: center;
  border-top: 3px solid var(--naranja-brand);
}

.cta-banner-title {
  color: #FFFFFF;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.cta-banner-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.15rem;
  max-width: 650px;
  margin: 0 auto 2.5rem auto;
}

/* --- FOOTER --- */
.footer {
  padding: 4rem 0 2rem 0;
  background: var(--navy-dark);
  color: var(--text-light);
  border-top: 3px solid var(--naranja-brand);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #25D366 !important;
  font-weight: 600;
  transition: transform var(--transition-fast);
}

.footer-whatsapp-link:hover {
  transform: translateX(4px);
  color: #34D399 !important;
}

.footer-brand-desc {
  color: #94A3B8;
  font-size: 0.95rem;
  margin-top: 1.2rem;
  max-width: 320px;
}

.footer-heading {
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  color: #FFFFFF;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a {
  color: #94A3B8;
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--naranja-brand);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #64748B;
  font-size: 0.9rem;
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 992px) {
  .divider-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .divider-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1.2rem;
    justify-content: flex-start;
  }

  .divider-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .mission-vision-grid {
    grid-template-columns: 1fr;
  }

  .timeline-container::before {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 3.5rem;
    padding-right: 0;
  }

  .timeline-item:nth-child(even) {
    margin-left: 0;
    padding-left: 3.5rem;
  }

  .timeline-dot {
    left: 7px !important;
    right: auto !important;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: #FFFFFF;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border-light);
    transform: translateY(-150%);
    transition: transform 0.35s ease-in-out;
    z-index: 999;
  }

  .nav-menu.open {
    transform: translateY(0);
  }

  .nav-link {
    width: 100%;
    justify-content: flex-start;
    padding: 0.8rem 1rem;
    font-size: 1.1rem;
    background: transparent;
    border-color: transparent;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}