/* ==========================================================================
   Nosotros CSS - Más Vending (Warm, Commercial & Vibrant Brand Identity)
   Tipografía Unificada: Montserrat (Títulos/Encabezados) + Inter (Textos/UI)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Montserrat:wght@500;600;700;800;900&display=swap');

:root {
  --mv-red: #ED1C24;
  --mv-red-dark: #C41219;
  --mv-orange: #F58220;
  --mv-yellow: #FFC20E;
  --mv-bg-warm: #FDFBF8;
  --mv-bg-card: #FFFFFF;
  --mv-border: #EAE3DA;
  --mv-border-light: #F2ECE4;
  --mv-text: #1A1A1A;
  --mv-text-muted: #52525B;
  --mv-shadow-warm: 0 10px 30px -8px rgba(237, 28, 36, 0.12);
  --mv-shadow-soft: 0 4px 16px rgba(31, 28, 26, 0.06);

  /* Sistema Tipográfico Unificado */
  --font-heading: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  background-color: #FFFFFF;
  background-image: url('/masvending/assets/img/fondos/patron-marca-agua.svg');
  background-repeat: repeat;
  background-attachment: fixed;
}

body,
.nosotros-container,
.nosotros-grid,
.historia-content,
.valor-card {
  font-family: var(--font-body);
}

p,
.nosotros-hero-desc,
.historia-text,
.valor-desc,
.pilar-desc {
  font-family: var(--font-body);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6,
.nosotros-hero-title,
.seccion-title,
.historia-title,
.valor-title,
.stat-num,
.nosotros-badge {
  font-family: var(--font-heading) !important;
  font-weight: 700;
}

.nosotros-hero {
  background-color: #FFFFFF;
  background-image: url('/masvending/assets/img/fondos/patron-marca-agua.svg');
  background-repeat: repeat;
  color: var(--mv-text);
  padding: 64px 24px 72px;
  text-align: center;
  position: relative;
  border-bottom: 1px solid var(--mv-border-light);
  overflow: hidden;
}

.nosotros-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 194, 14, 0.2) 0%, rgba(245, 130, 32, 0.1) 50%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.nosotros-hero-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 16px;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: -0.02em;
  color: var(--mv-text);
  position: relative;
  z-index: 1;
}

.nosotros-hero-title span {
  color: var(--mv-red);
  background: linear-gradient(135deg, var(--mv-red) 0%, var(--mv-orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nosotros-hero-subtitle {
  font-size: 1.1rem;
  color: var(--mv-text-muted);
  max-width: 740px;
  margin: 0 auto;
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

/* Interactive Timeline */
.timeline-container {
  position: relative;
  max-width: 920px;
  margin: 56px auto;
  padding: 20px 0;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: linear-gradient(180deg, var(--mv-yellow) 0%, var(--mv-orange) 50%, var(--mv-red) 100%);
  transform: translateX(-50%);
  border-radius: 2px;
}

@media (max-width: 768px) {
  .timeline-line {
    left: 24px;
  }
}

.timeline-item {
  position: relative;
  margin-bottom: 44px;
  display: flex;
  justify-content: flex-end;
  padding-right: 36px;
  width: 50%;
}

.timeline-item:nth-child(even) {
  align-self: flex-end;
  justify-content: flex-start;
  padding-left: 36px;
  padding-right: 0;
  margin-left: 50%;
}

@media (max-width: 768px) {
  .timeline-item,
  .timeline-item:nth-child(even) {
    width: 100%;
    margin-left: 0;
    padding-left: 58px;
    padding-right: 0;
    justify-content: flex-start;
  }
}

.timeline-dot {
  position: absolute;
  top: 16px;
  right: -10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--mv-red);
  border: 4px solid #FFFFFF;
  box-shadow: 0 0 0 2px var(--mv-orange);
  z-index: 2;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -10px;
  right: auto;
}

@media (max-width: 768px) {
  .timeline-dot,
  .timeline-item:nth-child(even) .timeline-dot {
    left: 14px;
    right: auto;
  }
}

.timeline-card {
  background: #FFFFFF;
  border: 1px solid var(--mv-border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--mv-shadow-soft);
  transition: all 0.25s ease;
  width: 100%;
}

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

.timeline-step-badge {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--mv-red);
  background: #FFF4E5;
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 8px;
  border: 1px solid rgba(245, 130, 32, 0.2);
}

.timeline-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--mv-text);
  margin-bottom: 8px;
}

.timeline-desc {
  font-size: 0.9rem;
  color: var(--mv-text-muted);
  line-height: 1.6;
}

/* Values Grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 40px 0;
}

.value-card {
  background: #FFFFFF;
  border: 1px solid var(--mv-border);
  border-radius: 18px;
  padding: 28px;
  transition: all 0.25s ease;
  box-shadow: var(--mv-shadow-soft);
}

.value-card:hover {
  border-color: var(--mv-orange);
  transform: translateY(-4px);
  box-shadow: var(--mv-shadow-warm);
}

.value-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: inline-block;
  background: #FFF4E5;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.value-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--mv-text);
  margin-bottom: 8px;
}

.value-desc {
  font-size: 0.9rem;
  color: var(--mv-text-muted);
  line-height: 1.6;
}
