/* ========================================
   About Page Styles - Complete Rewrite
   Optimized for all screen sizes
   ======================================== */

/* ============ Page Container ============ */
.about-page {
  background: var(--bg-primary);
  min-height: 100vh;
}

/* ============ About Hero Section ============ */
.about-hero {
  padding: 140px 0 8rem; /* Top padding accounts for fixed nav */
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--surface-secondary) 50%, var(--color-primary-50) 100%);
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .about-hero {
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--surface-secondary) 50%, var(--color-primary-900) 100%);
}

.about-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.03;
  background-image:
    radial-gradient(circle at 25% 25%, var(--color-primary) 2px, transparent 2px),
    radial-gradient(circle at 75% 75%, var(--color-accent) 1px, transparent 1px);
  background-size: 60px 60px, 40px 40px;
  background-position: 0 0, 30px 30px;
  pointer-events: none;
}

.about-hero__content {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
}

.about-hero__text {
  text-align: center;
}

.about-hero__title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.about-hero__subtitle {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto;
}

/* ============ Profile Image ============ */
.profile-image {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 0 auto;
}

.profile-image__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--border-primary);
  box-shadow: var(--shadow-xl);
}

.profile-image__overlay {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface-primary);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-secondary);
  box-shadow: var(--shadow-sm);
}

.profile-image__status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
}

.status-indicator {
  width: 6px;
  height: 6px;
  background: var(--color-success);
  border-radius: 50%;
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ============ Story Section ============ */
.about-story {
  padding: 8rem 0;
  text-align: center;
}

/* Story Lead Hero */
.story-lead-hero {
  background: linear-gradient(135deg, var(--surface-secondary) 0%, var(--color-primary-50) 100%);
  padding: 4rem 3rem;
  border-radius: 20px;
  margin: 3rem auto 4rem;
  max-width: 1000px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .story-lead-hero {
  background: linear-gradient(135deg, var(--surface-secondary) 0%, var(--color-primary-900) 100%);
}

.story-lead-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.03;
  background-image:
    radial-gradient(circle at 25% 25%, var(--color-primary) 2px, transparent 2px),
    radial-gradient(circle at 75% 75%, var(--color-accent) 1px, transparent 1px);
  background-size: 50px 50px, 30px 30px;
  background-position: 0 0, 25px 25px;
  pointer-events: none;
}

.section-header {
  margin-bottom: 3rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.story-text {
  max-width: 1000px;
  margin: 0 auto 4rem;
  padding: 0 2rem;
}

.story-paragraph {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  text-align: justify;
}

.story-paragraph--lead {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  position: relative;
  z-index: 2;
  line-height: 1.6;
}

.story-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  text-align: left;
}

.story-list li {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  position: relative;
  color: var(--text-secondary);
  line-height: 1.8;
}

.story-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: bold;
}

.story-list li strong {
  color: var(--text-primary);
  font-weight: 600;
}

.story-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.stat-card {
  background: var(--bg-secondary);
  padding: 2rem 1.5rem;
  border-radius: 16px;
  text-align: center;
  border: 1px solid var(--border-primary);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

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

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============ Skills Section ============ */
.about-skills {
  padding: 8rem 0;
  background: var(--bg-secondary);
  text-align: center;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.skill-category {
  background: var(--bg-primary);
  padding: 3rem;
  border-radius: 20px;
  border: 1px solid var(--border-primary);
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
  text-align: left;
}

.skill-category:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.skill-category__title {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2rem;
}

.skill-category__icon {
  color: var(--color-primary);
  stroke-width: 2;
}

.skill-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.skill-item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.skill-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1rem;
}

.skill-bar {
  height: 8px;
  background: var(--border-primary);
  border-radius: 4px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
  border-radius: 4px;
  transition: width 1s ease-in-out;
}

/* ============ Timeline Section ============ */
.about-timeline {
  padding: 8rem 0;
  text-align: center;
}

.timeline {
  max-width: 800px;
  margin: 4rem auto 0;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-primary);
}

.timeline-item {
  position: relative;
  padding-left: 80px;
  margin-bottom: 3rem;
}

.timeline-marker {
  position: absolute;
  left: 21px;
  top: 10px;
  width: 20px;
  height: 20px;
  background: var(--color-primary);
  border-radius: 50%;
  border: 4px solid var(--bg-primary);
  box-shadow: var(--shadow-md);
}

.timeline-content {
  background: var(--bg-secondary);
  padding: 2.5rem;
  border-radius: 16px;
  border: 1px solid var(--border-primary);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  text-align: left;
}

.timeline-content:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.timeline-date {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.timeline-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.timeline-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background: var(--color-primary);
  color: var(--text-inverse);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============ Mission & Vision Section - Estilo mejorado ============ */
.about-mission-vision {
  padding: 8rem 0;
  background: linear-gradient(135deg,
    var(--color-primary-50) 0%,
    var(--bg-primary) 50%,
    var(--color-accent-light)05 100%
  );
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .about-mission-vision {
  background: linear-gradient(135deg,
    var(--color-primary-900) 0%,
    var(--bg-primary) 50%,
    var(--surface-secondary) 100%
  );
}

/* Patrón decorativo mejorado */
.about-mission-vision::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 30%, var(--color-primary) 2px, transparent 2px),
    radial-gradient(circle at 80% 70%, var(--color-accent) 2px, transparent 2px);
  background-size: 70px 70px, 85px 85px;
  background-position: 0 0, 35px 35px;
  opacity: 0.03;
  pointer-events: none;
}

/* Blobs decorativos animados */
.about-mission-vision::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  top: 50%;
  right: -200px;
  transform: translateY(-50%);
  background: radial-gradient(circle, var(--color-accent)12 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
  animation: mission-blob 10s ease-in-out infinite;
}

@keyframes mission-blob {
  0%, 100% { transform: translateY(-50%) scale(1); }
  50% { transform: translateY(-50%) scale(1.2) translateX(-50px); }
}

.mission-vision-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  margin: 4rem auto;
  max-width: 1100px;
  position: relative;
  z-index: 2;
}

.mission-card,
.vision-card {
  background: var(--surface-primary);
  border: 2px solid var(--border-primary);
  border-radius: 28px;
  padding: 3.5rem 3rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

/* Barra superior animada */
.mission-card::before,
.vision-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
  transform: scaleX(0);
  transition: transform 0.4s ease;
  transform-origin: left;
}

.vision-card::before {
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
}

/* Elemento decorativo de esquina */
.mission-card::after,
.vision-card::after {
  content: '';
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, var(--color-primary)08 0%, transparent 70%);
  border-radius: 50%;
  transition: all 0.4s ease;
  opacity: 0;
}

.vision-card::after {
  background: radial-gradient(circle, var(--color-accent)08 0%, transparent 70%);
}

.mission-card:hover,
.vision-card:hover {
  transform: translateY(-12px);
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(5, 150, 105, 0.1) inset;
  border-color: var(--color-primary);
}

.vision-card:hover {
  border-color: var(--color-accent);
}

.mission-card:hover::before,
.vision-card:hover::before {
  transform: scaleX(1);
}

.mission-card:hover::after,
.vision-card:hover::after {
  opacity: 1;
  bottom: -30px;
  right: -30px;
}

.mission-card__icon,
.vision-card__icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 2rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 10px 25px rgba(5, 150, 105, 0.3),
    0 0 0 8px var(--surface-primary),
    0 0 0 10px rgba(5, 150, 105, 0.15);
  transition: all 0.4s ease;
  position: relative;
}

/* Resplandor detrás del icono */
.mission-card__icon::before,
.vision-card__icon::before {
  content: '';
  position: absolute;
  inset: -15px;
  background: radial-gradient(circle, var(--color-primary)25 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.vision-card__icon {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  box-shadow:
    0 10px 25px rgba(245, 158, 11, 0.3),
    0 0 0 8px var(--surface-primary),
    0 0 0 10px rgba(245, 158, 11, 0.15);
}

.vision-card__icon::before {
  background: radial-gradient(circle, var(--color-accent)25 0%, transparent 70%);
}

.mission-card:hover .mission-card__icon,
.vision-card:hover .vision-card__icon {
  transform: scale(1.15) rotate(-8deg);
}

.mission-card:hover .mission-card__icon::before,
.vision-card:hover .vision-card__icon::before {
  opacity: 1;
}

.mission-card__icon svg,
.vision-card__icon svg {
  color: white;
  stroke-width: 2;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.mission-card__title,
.vision-card__title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  position: relative;
  display: inline-block;
}

/* Subrayado decorativo */
.mission-card__title::after,
.vision-card__title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.vision-card__title::after {
  background: var(--color-accent);
}

.mission-card:hover .mission-card__title::after,
.vision-card:hover .vision-card__title::after {
  width: 60%;
}

.mission-card__text,
.vision-card__text {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.8;
  font-weight: 500;
}

/* Purpose Highlight - Mejorado */
.purpose-highlight {
  max-width: 850px;
  margin: 4rem auto 0;
  background: var(--surface-primary);
  border: 4px solid var(--color-primary);
  border-radius: 28px;
  padding: 3rem;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  box-shadow:
    0 20px 50px rgba(5, 150, 105, 0.2),
    0 0 0 1px rgba(5, 150, 105, 0.1) inset,
    0 0 80px rgba(5, 150, 105, 0.1);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.purpose-highlight:hover {
  transform: translateY(-4px);
  box-shadow:
    0 25px 60px rgba(5, 150, 105, 0.25),
    0 0 0 1px rgba(5, 150, 105, 0.15) inset,
    0 0 100px rgba(5, 150, 105, 0.15);
}

/* Barra superior gradiente */
.purpose-highlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg,
    var(--color-primary) 0%,
    var(--color-accent) 50%,
    var(--color-primary) 100%
  );
  animation: purpose-shine 3s linear infinite;
  background-size: 200% 100%;
}

@keyframes purpose-shine {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Elemento decorativo de fondo */
.purpose-highlight::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -80px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--color-accent)08 0%, transparent 70%);
  border-radius: 50%;
  transform: translateY(-50%);
}

.purpose-highlight__icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 8px 20px rgba(245, 158, 11, 0.35),
    0 0 40px rgba(245, 158, 11, 0.15);
  position: relative;
  transition: all 0.3s ease;
}

.purpose-highlight:hover .purpose-highlight__icon {
  transform: scale(1.1) rotate(-5deg);
}

/* Resplandor pulsante */
.purpose-highlight__icon::before {
  content: '';
  position: absolute;
  inset: -12px;
  background: radial-gradient(circle, var(--color-accent)20 0%, transparent 70%);
  border-radius: 50%;
  animation: icon-pulse 2s ease-in-out infinite;
}

@keyframes icon-pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.1); }
}

.purpose-highlight__icon svg {
  color: white;
  stroke-width: 2.5;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.15));
}

.purpose-highlight__content {
  flex: 1;
  text-align: left;
  position: relative;
  z-index: 2;
}

.purpose-highlight__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
  position: relative;
  display: inline-block;
}

/* Subrayado decorativo */
.purpose-highlight__title::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: 2px;
}

.purpose-highlight__text {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
  .about-mission-vision {
    padding: 5rem 0;
  }

  .about-mission-vision::after {
    width: 400px;
    height: 400px;
    right: -150px;
  }

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

  .mission-card,
  .vision-card {
    padding: 2.5rem 2rem;
  }

  .mission-card__icon,
  .vision-card__icon {
    width: 80px;
    height: 80px;
  }

  .mission-card__icon svg,
  .vision-card__icon svg {
    width: 40px;
    height: 40px;
  }

  .mission-card__title,
  .vision-card__title {
    font-size: 1.5rem;
  }

  .mission-card__text,
  .vision-card__text {
    font-size: 1.125rem;
  }

  .purpose-highlight {
    flex-direction: column;
    text-align: center;
    padding: 2.5rem 2rem;
    gap: 1.5rem;
  }

  .purpose-highlight__content {
    text-align: center;
  }

  .purpose-highlight__icon {
    width: 72px;
    height: 72px;
  }

  .purpose-highlight__title {
    font-size: 1.375rem;
  }

  .purpose-highlight__text {
    font-size: 1.125rem;
  }

  .purpose-highlight::after {
    display: none;
  }
}

/* ============ Values Section ============ */
.about-values {
  padding: 8rem 0;
  background: var(--bg-secondary);
  text-align: center;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-top: 4rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.value-card {
  background: var(--bg-primary);
  padding: 3rem;
  border-radius: 20px;
  border: 1px solid var(--border-primary);
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.value-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  color: var(--text-inverse);
}

.value-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.value-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ============ CTA Section ============ */
.about-cta {
  padding: 8rem 0;
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
}

.cta-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

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

.cta-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============ Responsive Design ============ */

/* Large Desktop (>1440px) */
@media (min-width: 1440px) {
  .about-hero {
    padding-top: 160px;
    padding-bottom: 10rem;
  }

  .about-hero__content {
    max-width: 1400px;
    gap: 5rem;
  }

  .story-content,
  .timeline,
  .skills-grid,
  .values-grid {
    max-width: 1400px;
  }
}

/* Tablet (≤1024px) */
@media (max-width: 1024px) {
  .about-hero__content {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .story-stats {
    grid-template-columns: repeat(2, 1fr);
    max-width: 500px;
    margin: 0 auto;
  }
}

/* Mobile (≤768px) */
@media (max-width: 768px) {
  .about-hero {
    padding-top: 110px;
    padding-bottom: 4rem;
  }

  .about-story,
  .about-skills,
  .about-timeline,
  .about-values,
  .about-cta {
    padding: 4rem 0;
  }

  .story-lead-hero {
    padding: 2.5rem 2rem;
    margin: 2rem auto 3rem;
  }

  .story-paragraph--lead {
    font-size: 1.2rem;
  }

  .profile-image {
    width: 250px;
    height: 250px;
  }

  .profile-image__status {
    font-size: 0.65rem;
  }

  .skill-category,
  .value-card {
    padding: 2rem;
  }

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

  .timeline-item {
    padding-left: 60px;
  }

  .timeline-marker {
    left: 11px;
  }

  .timeline-content {
    padding: 2rem;
  }

  .story-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stat-card {
    padding: 1.5rem;
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }
}

/* Small Mobile (≤480px) */
@media (max-width: 480px) {
  .about-hero {
    padding-top: 100px;
    padding-bottom: 3rem;
  }

  .about-story,
  .about-skills,
  .about-timeline,
  .about-values,
  .about-cta {
    padding: 3rem 0;
  }

  .profile-image {
    width: 200px;
    height: 200px;
  }

  .profile-image__overlay {
    padding: 0.3rem 0.6rem;
  }

  .profile-image__status {
    font-size: 0.6rem;
    gap: 0.3rem;
  }

  .status-indicator {
    width: 5px;
    height: 5px;
  }

  .skill-category,
  .value-card,
  .timeline-content {
    padding: 1.5rem;
  }

  .skills-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .value-icon {
    width: 60px;
    height: 60px;
  }

  .timeline-tags {
    gap: 0.25rem;
  }

  .tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
  }
}

/* ============ Dark Mode ============ */
[data-theme="dark"] .about-hero,
[data-theme="dark"] .about-cta {
  background: transparent;
}

[data-theme="dark"] .about-hero::before,
[data-theme="dark"] .about-cta::before {
  opacity: 0.2;
}

[data-theme="dark"] .skill-category,
[data-theme="dark"] .value-card,
[data-theme="dark"] .timeline-content,
[data-theme="dark"] .stat-card {
  background: var(--bg-tertiary);
  border-color: var(--border-secondary);
}

[data-theme="dark"] .skill-bar {
  background: var(--border-secondary);
}

[data-theme="dark"] .timeline::before {
  background: var(--border-secondary);
}

[data-theme="dark"] .profile-image__overlay {
  background: var(--bg-tertiary);
  border-color: var(--border-secondary);
}

/* ============ Story Subheading ============ */
.story-subheading {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--text-primary);
  margin: 3rem 0 1.5rem;
  text-align: left;
  border-left: 5px solid var(--color-primary);
  padding-left: 1.25rem;
  position: relative;
  display: inline-block;
}

.story-subheading::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), transparent);
  border-radius: 2px;
}

/* ============ Story Table - Mejorada ============ */
.story-table {
  width: 100%;
  margin: 2.5rem auto;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 16px;
  overflow: visible;
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.07),
    0 10px 20px rgba(0, 0, 0, 0.1);
  background: var(--bg-primary);
  border: 1px solid var(--border-primary);
  table-layout: fixed;
  box-sizing: border-box;
}

.story-table thead {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: white;
  position: relative;
}

.story-table thead::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    var(--color-accent),
    var(--color-primary-light),
    var(--color-accent)
  );
}

.story-table th {
  padding: 1rem 0.75rem;
  text-align: left;
  font-weight: 700;
  font-size: clamp(0.875rem, 2vw, 0.95rem);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.story-table th:first-child {
  padding-left: 1rem;
}

.story-table th:last-child {
  padding-right: 1rem;
}

.story-table tbody {
  background: var(--bg-secondary);
}

.story-table td {
  padding: 1rem 0.75rem;
  border-bottom: 1px solid var(--border-primary);
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: clamp(0.875rem, 1.8vw, 0.95rem);
  vertical-align: top;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-break: break-word;
}

.story-table td:first-child {
  padding-left: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.story-table td:last-child {
  padding-right: 1rem;
}

.story-table tbody tr {
  transition: all 0.3s ease;
  position: relative;
}

.story-table tbody tr::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--color-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.story-table tbody tr:hover {
  background: var(--surface-secondary);
  transform: scale(1.01);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.story-table tbody tr:hover::before {
  opacity: 1;
}

.story-table tbody tr:last-child td {
  border-bottom: none;
}

/* Emojis en las tablas */
.story-table td:first-child {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
}

/* Los anchos de columnas se definen con <colgroup> en el HTML */

/* TABLA SIEMPRE EN FORMATO TARJETAS (TODOS LOS TAMAÑOS DE PANTALLA) */
/* Tabla responsive - Modo tarjetas */
.story-table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 2rem auto;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  max-width: 900px;
}

.story-table thead {
  display: none; /* Ocultar encabezados siempre */
}

.story-table,
.story-table tbody,
.story-table tr,
.story-table td {
  display: block;
}

.story-table tbody tr {
  margin-bottom: 1.5rem;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.story-table tbody tr:hover {
  transform: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.story-table tbody tr::before {
  display: none;
}

.story-table td {
  padding: 1rem 1.25rem;
  border: none;
  border-bottom: 1px solid var(--border-primary);
  text-align: left;
  position: relative;
}

.story-table td:first-child,
.story-table td:last-child {
  padding: 1rem 1.25rem;
}

.story-table td:last-child {
  border-bottom: none;
}

/* Agregar etiquetas antes de cada celda */
.story-table td:before {
  content: attr(data-label);
  font-weight: 700;
  color: var(--color-primary);
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Dark mode adjustments */
[data-theme="dark"] .story-table {
  background: var(--bg-tertiary);
  border-color: var(--border-secondary);
}

[data-theme="dark"] .story-table tbody {
  background: var(--bg-tertiary);
}

[data-theme="dark"] .story-table tbody tr:hover {
  background: var(--surface-primary);
}

[data-theme="dark"] .story-table td {
  border-color: var(--border-secondary);
}

/* ============ Story Quote/Blockquote - Mejorada ============ */
.story-quote {
  background: linear-gradient(135deg,
    rgba(5, 150, 105, 0.08) 0%,
    var(--surface-secondary) 100%
  );
  border-left: 6px solid var(--color-primary);
  border-radius: 16px;
  padding: 2.5rem 3rem 2.5rem 3.5rem;
  margin: 3rem auto;
  max-width: 950px;
  position: relative;
  box-shadow:
    0 4px 12px rgba(5, 150, 105, 0.15),
    0 0 0 1px rgba(5, 150, 105, 0.1) inset;
  overflow: hidden;
  transition: all 0.3s ease;
}

.story-quote:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 20px rgba(5, 150, 105, 0.2),
    0 0 0 1px rgba(5, 150, 105, 0.15) inset;
}

[data-theme="dark"] .story-quote {
  background: linear-gradient(135deg,
    rgba(5, 150, 105, 0.12) 0%,
    var(--surface-secondary) 100%
  );
}

.story-quote::before {
  content: '💡';
  position: absolute;
  top: -15px;
  left: 25px;
  font-size: 4rem;
  opacity: 0.15;
  line-height: 1;
  filter: grayscale(0.3);
}

.story-quote::after {
  content: '';
  position: absolute;
  top: 0;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(5, 150, 105, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.story-quote p {
  color: var(--text-secondary);
  font-size: clamp(1rem, 2vw, 1.1rem);
  line-height: 1.8;
  margin: 0 0 1rem 0;
  text-align: left;
  position: relative;
  z-index: 1;
}

.story-quote p:last-child {
  margin-bottom: 0;
}

.story-quote strong {
  color: var(--text-primary);
  font-weight: 700;
}

/* Icono especial en el primer párrafo del quote */
.story-quote p:first-child strong {
  color: var(--color-primary);
  font-size: 1.15em;
}

/* ============ Responsive - Mobile First ============ */

/* Tablets y pantallas medianas */
@media (max-width: 1024px) {
  .story-table th,
  .story-table td {
    padding: 1.25rem 1rem;
  }

  .story-table th:first-child,
  .story-table td:first-child {
    padding-left: 1.5rem;
  }

  .story-table th:last-child,
  .story-table td:last-child {
    padding-right: 1.5rem;
  }
}

/* Tablets - solo ajustes de padding, NO afectar tablas */
@media (max-width: 768px) {
  .story-text {
    padding: 0 1.5rem;
  }

  .story-subheading {
    margin: 2.5rem 0 1.25rem;
    padding-left: 1rem;
    border-left-width: 4px;
    font-size: 1.25rem;
  }

  .story-subheading::after {
    width: 80%;
    height: 2px;
    bottom: -6px;
  }

  /* Las tablas ya están en modo tarjeta por el media query de 1023px */
}

/* Tablets y Móviles - Ajustes adicionales de estilo */
@media (max-width: 1023px) {
  .story-quote {
    padding: 2rem 2rem 2rem 2.5rem;
    margin: 2.5rem auto;
    border-left-width: 5px;
    border-radius: 12px;
  }

  .story-quote::before {
    font-size: 3rem;
    top: -10px;
    left: 15px;
  }

  .story-quote::after {
    width: 150px;
    height: 150px;
    right: -30px;
  }

  .story-quote p {
    font-size: 1rem;
  }
}

/* Móviles pequeños */
@media (max-width: 480px) {
  .story-text {
    padding: 0 1rem;
  }

  .story-subheading {
    font-size: 1.125rem;
    margin: 2rem 0 1rem;
    padding-left: 0.875rem;
    border-left-width: 3px;
  }

  .story-subheading::after {
    height: 2px;
    bottom: -4px;
  }

  .story-table {
    margin: 1.5rem auto;
  }

  .story-table tbody tr {
    margin-bottom: 1.25rem;
    border-radius: 10px;
  }

  .story-table td {
    padding: 0.875rem 1rem;
    font-size: 0.9rem;
  }

  .story-table td:first-child,
  .story-table td:last-child {
    padding: 0.875rem 1rem;
  }

  .story-table td:before {
    font-size: 0.8rem;
    margin-bottom: 0.4rem;
  }

  .story-quote {
    padding: 1.75rem 1.5rem 1.75rem 2rem;
    margin: 2rem auto;
    border-left-width: 4px;
    border-radius: 10px;
  }

  .story-quote::before {
    font-size: 2.5rem;
    top: -8px;
    left: 12px;
  }

  .story-quote p {
    font-size: 0.95rem;
    line-height: 1.7;
  }
}

/* ============ Accessibility ============ */
@media (prefers-reduced-motion: reduce) {
  .status-indicator,
  .skill-progress,
  .stat-card,
  .skill-category,
  .value-card,
  .timeline-content,
  .mission-card,
  .vision-card,
  .mission-card__icon,
  .vision-card__icon,
  .purpose-highlight::before,
  .purpose-highlight__icon::before,
  .about-mission-vision::after {
    animation: none;
    transition: none;
  }

  .mission-card:hover,
  .vision-card:hover,
  .mission-card:hover .mission-card__icon,
  .vision-card:hover .vision-card__icon,
  .purpose-highlight:hover,
  .purpose-highlight:hover .purpose-highlight__icon {
    transform: none;
  }
}
