:root {
      --bg: #ffffff;
      --surface: #f7f7f5;
      --surface-2: #f1f1ee;
      --text: #111111;
      --text-soft: #4f4f4a;
      --muted: #7a7a74;
      --line: #ddddda;
      --line-strong: #c8c8c3;
      --accent: #6f6f69;
      --accent-red: #8f3a3a;
      --accent-red-soft: #b85a5a;
      --accent-red-line: rgba(143, 58, 58, 0.18);
      --max: 1320px;
      --radius: 18px;
      --space-1: 8px;
      --space-2: 16px;
      --space-3: 24px;
      --space-4: 32px;
      --space-5: 48px;
      --space-6: 64px;
      --space-7: 88px;
      --space-8: 112px;
      --shadow: 0 8px 24px rgba(17, 17, 17, 0.04);
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      font-family: Inter, "Helvetica Neue", Arial, sans-serif;
      background: var(--bg);
      color: var(--text);
      line-height: 1.5;
      -webkit-font-smoothing: antialiased;
      text-rendering: optimizeLegibility;
    }

    a {
      color: inherit;
      text-decoration: none;
    }

    .container {
      width: min(calc(100% - 48px), var(--max));
      margin: 0 auto;
    }

    .section {
      padding: var(--space-7) 0;
    }

    .section-tight {
      padding: var(--space-6) 0;
    }

    .eyebrow {
      font-size: 12px;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--muted);
      margin-bottom: 12px;
    }

    .display {
      font-size: clamp(3rem, 4.2vw, 4.6rem);
      line-height: 1.02;
      letter-spacing: -0.045em;
      max-width: 18ch;
    }

    .h2 {
      font-size: clamp(2rem, 4vw, 3rem);
      line-height: 1.04;
      letter-spacing: -0.03em;
      margin-bottom: 20px;
    }

    .h3 {
      font-size: 1.42rem;
      line-height: 1.12;
      letter-spacing: -0.02em;
      margin-bottom: 12px;
    }

    .lead {
      font-size: 1.08rem;
      color: var(--text-soft);
      max-width: 58ch;
      line-height: 1.68;
    }

    .header {
      position: sticky;
      top: 0;
      z-index: 50;
      background: rgba(255, 255, 255, 0.92);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid rgba(221, 221, 218, 0.85);
    }

    .header-inner {
      height: 76px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: var(--space-4);
    }

    .brand {
      display: inline-flex;
      align-items: center;
      height: 34px;
      flex-shrink: 0;
    }

    .brand img {
      height: 100%;
      width: auto;
      display: block;
      filter: brightness(0) contrast(1.05);
    }

    /* Menú responsive - siempre visible */
    .nav {
      display: flex;
      align-items: center;
      gap: 28px;
    }

    .nav a {
      font-size: 0.95rem;
      color: var(--text-soft);
    }

    .nav a:hover,
    .link-inline:hover {
      color: var(--accent-red);
    }

    /* Botón hamburguesa para móvil - oculto por defecto */
    .menu-toggle {
      display: none;
      background: none;
      border: none;
      cursor: pointer;
      width: 32px;
      height: 32px;
      position: relative;
      z-index: 60;
    }

    .menu-toggle span {
      display: block;
      width: 24px;
      height: 2px;
      background: var(--text);
      margin: 5px auto;
      transition: 0.3s;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 12px 18px;
      border-radius: 999px;
      border: 1px solid var(--text);
      font-size: 0.95rem;
      transition: 0.2s ease;
      white-space: nowrap;
    }

    .btn-dark {
      background: var(--text);
      color: #fff !important;
      border-color: var(--text);
    }

    .btn-light {
      background: transparent;
      color: var(--text);
      border-color: var(--line-strong);
    }

    .btn-light:hover {
      border-color: var(--accent-red-soft);
      color: var(--accent-red);
    }

    .hero {
      padding: var(--space-6) 0 var(--space-4);
    }

    .hero-wrap {
      display: grid;
      gap: 40px;
      align-items: start;
    }

    .hero-copy {
      max-width: 1080px;
    }

    .hero-copy .lead {
      margin-top: 22px;
      margin-bottom: 28px;
      max-width: 60ch;
    }

    .hero-actions {
      display: flex;
      gap: var(--space-2);
      flex-wrap: wrap;
    }

    .stats-inline {
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
      background: transparent;
    }

    .stats-inline-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 24px;
      align-items: start;
      padding: 22px 0;
    }

    .stat-inline {
      padding-right: 20px;
    }

    .stat-inline-number {
      font-size: clamp(2.15rem, 4vw, 3.15rem);
      line-height: 1;
      letter-spacing: -0.04em;
      margin-bottom: 8px;
      color: var(--text);
    }

    .stat-inline-label {
      color: var(--text-soft);
      font-size: 0.96rem;
      line-height: 1.42;
    }

    .section-head {
      margin-bottom: 40px;
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
      gap: 48px;
      align-items: start;
    }

    .section-head > div {
      min-width: 0;
    }

    .about-grid {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
      gap: 56px;
      align-items: start;
    }

    .about-body {
      display: grid;
      gap: 16px;
      max-width: 60ch;
    }

    .about-body p {
      color: var(--text-soft);
      line-height: 1.72;
      font-size: 1.03rem;
    }

    .about-body strong {
      color: var(--text);
    }

    .about-pillars {
      display: grid;
      gap: 18px;
    }

    .pillar {
      display: grid;
      grid-template-columns: 40px 1fr;
      gap: 18px;
      padding-top: 16px;
      border-top: 1px solid var(--line);
    }

    .pillar:first-child {
      border-top: none;
      padding-top: 0;
    }

    .pillar-num {
      font-size: 0.85rem;
      color: var(--accent-red);
      letter-spacing: 0.12em;
      font-weight: 600;
      padding-top: 2px;
    }

    .pillar-title {
      font-size: 1.02rem;
      font-weight: 600;
      margin-bottom: 5px;
      letter-spacing: -0.01em;
    }

    .pillar-desc {
      font-size: 0.96rem;
      color: var(--text-soft);
      line-height: 1.56;
    }

    .units-grid,
    .ecosystem-grid {
      display: grid;
      gap: var(--space-3);
      align-items: stretch;
    }

    .units-grid {
      grid-template-columns: repeat(4, 1fr);
    }

    .ecosystem-grid {
      grid-template-columns: repeat(4, 1fr);
    }

    .card {
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      padding: 28px;
      height: 100%;
    }

    .card .label {
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      color: var(--muted);
      margin-bottom: 12px;
    }

    .card p {
      color: var(--text-soft);
      margin-top: 10px;
      line-height: 1.6;
    }

    .unit-logo {
      height: 40px;
      display: flex;
      align-items: center;
      margin-bottom: 22px;
    }

    .unit-logo img {
      max-height: 100%;
      max-width: 210px;
      width: auto;
      object-fit: contain;
      display: block;
    }

    .unit-logo-text {
      font-size: 1.3rem;
      font-weight: 700;
      letter-spacing: -0.02em;
      color: var(--text);
    }

    .link-inline {
      display: inline-block;
      margin-top: 18px;
      color: var(--accent-red);
      font-weight: 500;
    }

    .consultancy {
      background: var(--surface-2);
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
    }

    .consultancy-grid {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
      gap: 48px;
      align-items: start;
    }

    .services {
      display: grid;
      gap: 0;
      background: #fff;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      overflow: hidden;
    }

    .service-item {
      padding: 20px 28px;
      border-top: 1px solid var(--line);
      font-size: 1rem;
      color: var(--text);
      background: #fff;
    }

    .service-item:first-child {
      border-top: none;
    }

	/* Mejorar visibilidad del scroll horizontal en timeline */
	.timeline-wrap {
	  overflow-x: auto;
	  padding-bottom: 16px;
	  margin-bottom: 8px;
	  cursor: grab;
	}

	.timeline-wrap:active {
	  cursor: grabbing;
	}

	/* Personalizar barra de scroll para WebKit (Chrome, Edge, Safari) */
	.timeline-wrap::-webkit-scrollbar {
	  height: 10px;
	}

	.timeline-wrap::-webkit-scrollbar-track {
	  background: var(--line);
	  border-radius: 10px;
	}

	.timeline-wrap::-webkit-scrollbar-thumb {
	  background: var(--accent-red);
	  border-radius: 10px;
	  transition: 0.2s;
	}

	.timeline-wrap::-webkit-scrollbar-thumb:hover {
	  background: var(--accent-red-soft);
	}

	/* Para Firefox */
	.timeline-wrap {
	  scrollbar-width: auto;
	  scrollbar-color: var(--accent-red) var(--line);
	}

	/* Indicador visual de que hay scroll */
	.timeline-wrap::after {
	  content: '';
	  position: sticky;
	  right: 0;
	  top: 0;
	  height: 100%;
	  width: 40px;
	  background: linear-gradient(to right, transparent, rgba(0,0,0,0.05));
	  pointer-events: none;
	  display: none;
	}

	.timeline-wrap.has-scroll::after {
	  display: block;
	}

	/* Mensaje de ayuda para indicar scroll */
	.scroll-hint {
	  text-align: right;
	  font-size: 0.75rem;
	  color: var(--muted);
	  margin-bottom: 12px;
	  display: flex;
	  align-items: center;
	  justify-content: flex-end;
	  gap: 6px;
	}

	.scroll-hint::before {
	  content: '←';
	  font-size: 14px;
	  animation: slideLeftRight 1.5s ease-in-out infinite;
	}

	@keyframes slideLeftRight {
	  0%, 100% {
		transform: translateX(0);
		opacity: 0.5;
	  }
	  50% {
		transform: translateX(-5px);
		opacity: 1;
	  }
	}

	/* Ocultar hint si no hay scroll */
	.scroll-hint.hidden {
	  display: none;
	}

    .timeline {
      min-width: 1100px;
      position: relative;
      margin-top: 28px;
      padding-top: 20px;
    }

    .timeline-line {
      position: absolute;
      top: 26px;
      left: 0;
      right: 0;
      height: 1px;
      background: var(--line-strong);
    }

    .timeline-grid {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 24px;
      align-items: start;
    }

    .milestone {
      position: relative;
      padding-top: 20px;
    }

    .milestone::before {
      content: "";
      position: absolute;
      top: -2px;
      left: 0;
      width: 12px;
      height: 12px;
      border-radius: 50%;
      background: var(--text);
    }

    .milestone .year {
      font-size: 0.95rem;
      color: var(--accent-red);
      margin-bottom: 10px;
      font-weight: 600;
    }

    .milestone p {
      color: var(--text-soft);
      font-size: 0.95rem;
      line-height: 1.5;
    }

    .team-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 24px;
      align-items: stretch;
    }

    .team-card {
      background: var(--surface);
      border: 1px solid var(--line);
      border-top: 2px solid var(--accent-red-line);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      padding: 22px;
      height: 100%;
    }

    .team-card img {
      width: 100%;
      aspect-ratio: 4 / 4.6;
      object-fit: cover;
      border-radius: 14px;
      display: block;
      margin-bottom: 18px;
      background: #ecece8;
    }

    .team-card h3 {
      font-size: 1.08rem;
      line-height: 1.25;
      letter-spacing: -0.01em;
      margin-bottom: 6px;
      color: var(--text);
    }

    .team-card p {
      font-size: 0.95rem;
      line-height: 1.45;
      color: var(--text-soft);
    }

    /* Formulario dentro de la cta */
    .cta-wrap {
      padding-top: 8px;
    }

    .cta {
      background: var(--text);
      color: #fff;
      border-radius: 28px;
      padding: 52px;
      display: grid;
      grid-template-columns: 1fr 1.2fr;
      gap: 48px;
      align-items: start;
    }

    .cta-left p {
      color: rgba(255,255,255,0.72);
      margin-top: 10px;
      max-width: 52ch;
      line-height: 1.7;
    }

    .contact-form {
      background: rgba(255,255,255,0.08);
      border-radius: 24px;
      padding: 28px;
      min-width: 320px;
    }

    .form-group {
      margin-bottom: 18px;
    }

    .form-group label {
      display: block;
      font-size: 0.85rem;
      margin-bottom: 6px;
      color: rgba(255,255,255,0.7);
      letter-spacing: 0.02em;
    }

    .form-group input,
    .form-group textarea {
      width: 100%;
      padding: 12px 16px;
      background: rgba(255,255,255,0.12);
      border: 1px solid rgba(255,255,255,0.2);
      border-radius: 16px;
      font-family: inherit;
      font-size: 0.95rem;
      color: #fff;
      transition: 0.2s ease;
    }

    .form-group input:focus,
    .form-group textarea:focus {
      outline: none;
      border-color: var(--accent-red-soft);
      background: rgba(255,255,255,0.18);
    }

    .form-group input::placeholder,
    .form-group textarea::placeholder {
      color: rgba(255,255,255,0.4);
    }

    .form-group textarea {
      resize: vertical;
      min-height: 100px;
    }

    .btn-submit {
      width: 100%;
      background: var(--accent-red);
      border: none;
      color: white;
      padding: 14px 24px;
      border-radius: 999px;
      font-size: 1rem;
      font-weight: 600;
      cursor: pointer;
      transition: 0.2s ease;
      margin-top: 8px;
    }

    .btn-submit:hover {
      background: var(--accent-red-soft);
      transform: translateY(-2px);
    }

    .footer {
      padding: 32px 0 40px;
      color: var(--muted);
      font-size: 0.92rem;
    }
	/* Botón volver arriba */
	.scroll-top-btn {
	  position: fixed;
	  bottom: 30px;
	  right: 30px;
	  width: 48px;
	  height: 48px;
	  border-radius: 50%;
	  background: var(--accent-red);
	  color: white;
	  border: none;
	  cursor: pointer;
	  display: flex;
	  align-items: center;
	  justify-content: center;
	  font-size: 24px;
	  opacity: 0;
	  visibility: hidden;
	  transition: 0.3s ease;
	  z-index: 99;
	  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
	}

	.scroll-top-btn.show {
	  opacity: 1;
	  visibility: visible;
	}

	.scroll-top-btn:hover {
	  background: var(--accent-red-soft);
	  transform: translateY(-3px);
	}

	.form-message-success {
	  color: #4ade80;
	  background: rgba(74, 222, 128, 0.15);
	  padding: 10px;
	  border-radius: 12px;
	  text-align: center;
	}

	.form-message-error {
	  color: #f87171;
	  background: rgba(248, 113, 113, 0.15);
	  padding: 10px;
	  border-radius: 12px;
	  text-align: center;
	}

	.btn-submit.loading {
	  opacity: 0.7;
	  cursor: not-allowed;
	}

    /* Responsive */
    @media (max-width: 1200px) {
      .units-grid {
        grid-template-columns: repeat(2, 1fr);
      }
      
      .cta {
        grid-template-columns: 1fr;
        gap: 32px;
      }
      
      .contact-form {
        max-width: 500px;
        width: 100%;
      }
    }

    @media (max-width: 1080px) {
      .section-head,
      .about-grid,
      .consultancy-grid {
        grid-template-columns: 1fr;
      }

      .stats-inline-grid,
      .ecosystem-grid,
      .team-grid {
        grid-template-columns: 1fr;
      }

      .display {
        max-width: 100%;
      }
    }

    @media (max-width: 880px) {
      .units-grid {
        grid-template-columns: 1fr;
      }
      
      .nav {
        gap: 16px;
      }
      
      .nav a {
        font-size: 0.85rem;
      }
      
      .btn {
        padding: 8px 14px;
        font-size: 0.85rem;
      }
    }

    @media (max-width: 720px) {
      .container {
        width: min(calc(100% - 32px), var(--max));
      }

      /* Menú móvil - se convierte en hamburguesa pero sigue visible */
      .nav {
        position: fixed;
        top: 76px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 76px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        justify-content: flex-start;
        padding: 40px 24px;
        gap: 28px;
        transition: 0.3s ease;
        z-index: 100;
        box-shadow: 0 4px 24px rgba(0,0,0,0.08);
      }

      .nav.active {
        left: 0;
      }

      .nav a {
        font-size: 1.2rem;
        padding: 12px 18px;
        width: 100%;
        text-align: center;
      }

      .nav .btn {
        margin-top: 16px;
        width: auto;
        display: inline-flex;
      }

      .menu-toggle {
        display: block;
      }

      .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
      }

      .menu-toggle.active span:nth-child(2) {
        opacity: 0;
      }

      .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
      }

      .hero {
        padding-top: 88px;
      }

      .cta {
        padding: 32px 24px;
      }

      .brand {
        height: 28px;
      }

      .display {
        max-width: 100%;
      }

      .section,
      .section-tight {
        padding: 64px 0;
      }

      .stats-inline-grid,
      .units-grid {
        grid-template-columns: 1fr;
        padding: 20px 0;
      }
      
      .contact-form {
        padding: 20px;
        min-width: auto;
      }
      
      .form-group input,
      .form-group textarea {
        padding: 10px 14px;
      }
	  
	  .scroll-top-btn {
		bottom: 20px;
		right: 20px;
		width: 42px;
		height: 42px;
		font-size: 20px;
	  }
    }
    
    @media (max-width: 480px) {
      .contact-form {
        padding: 16px;
      }
      
      .cta {
        padding: 24px 20px;
      }
    }