/* =========================================
   RESET & BASE
   ========================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: #ffffff;
  color: #0a0a0a;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* =========================================
   NAV
   ========================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 20px 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e8e8e8;
  transition: padding 0.3s;
}

.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0a0a0a;
  text-decoration: none;
  letter-spacing: -0.03em;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav__logo-img {
  height: 36px;
  width: auto;
  display: block;
}

.nav__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav__logo-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0a0a0a;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.nav__logo-text em {
  font-style: normal;
  color: #c0392b;
}

.nav__logo-sub {
  font-size: 0.52rem;
  font-weight: 500;
  color: #666;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav__links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__links a {
  text-decoration: none;
  color: #444;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav__links a:hover {
  color: #0a0a0a;
}

.nav__link--active {
  color: #c0392b !important;
  font-weight: 600;
}

.nav__cta {
  background: #0a0a0a !important;
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 100px;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}

.nav__cta:hover {
  background: #333 !important;
}

/* =========================================
   HERO
   ========================================= */
.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
  background-color: #ffffff;
  background-image: url('../imagenes/fotofondoherosreunion.png');
  background-position: center 40%;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.7) 0%,
    rgba(255, 255, 255, 0.45) 50%,
    rgba(255, 255, 255, 1) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(192, 57, 43, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(192, 57, 43, 0.07) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 2;
}

.hero__inner {
  padding: 48px 32px;
  position: relative;
  z-index: 3;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

/* Badge */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #0a0a0a;
  border: 1.5px solid #0a0a0a;
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero__badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0a0a0a;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* Title */
.hero__title {
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #0a0a0a;
  margin-bottom: 18px;
}

.hero__title-rotate {
  display: inline-block;
  transform: rotate(-3deg);
}

.hero__title--accent {
  position: relative;
  display: inline-block;
}

.hero__title--accent::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 3px;
  background: #c0392b;
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  animation: underline-grow 0.8s 0.6s ease forwards;
}

@keyframes underline-grow {
  to { transform: scaleX(1); }
}

/* Subtitle */
.hero__sub {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.7;
  color: #555;
  max-width: 850px;
  margin: 0 auto 28px;
  font-weight: 400;
}

.hero__sub strong {
  color: #0a0a0a;
  font-weight: 600;
}

/* Buttons */
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s;
  cursor: pointer;
}

.btn--primary {
  background: #0a0a0a;
  color: #fff;
  border: 2px solid #0a0a0a;
}

.btn--primary:hover {
  background: #333;
  border-color: #333;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.btn--ghost {
  background: transparent;
  color: #0a0a0a;
  border: 2px solid #d0d0d0;
}

.btn--ghost:hover {
  border-color: #0a0a0a;
  transform: translateY(-2px);
}

.btn svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 2;
  flex-shrink: 0;
}

/* =========================================
   HERO GRAPHIC (decorative rings)
   ========================================= */
.hero__graphic {
  position: absolute;
  right: -5vw;
  top: 50%;
  transform: translateY(-50%);
  width: 52vw;
  max-width: 680px;
  aspect-ratio: 1;
  pointer-events: none;
  z-index: 3;
}

.graphic__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid #e0e0e0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.graphic__ring--1 {
  width: 55%;
  aspect-ratio: 1;
  border-width: 1.5px;
  animation: rotate-slow 30s linear infinite;
}

.graphic__ring--2 {
  width: 78%;
  aspect-ratio: 1;
  animation: rotate-slow 50s linear infinite reverse;
}

.graphic__ring--3 {
  width: 100%;
  aspect-ratio: 1;
  animation: rotate-slow 70s linear infinite;
}

@keyframes rotate-slow {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

.graphic__dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c0392b;
}

.graphic__dot--a {
  top: 12%;
  left: 50%;
  animation: float-dot 6s ease-in-out infinite;
}

.graphic__dot--b {
  top: 60%;
  right: 8%;
  width: 6px;
  height: 6px;
  background: rgba(192, 57, 43, 0.5);
  animation: float-dot 8s ease-in-out infinite 1s;
}

.graphic__dot--c {
  bottom: 18%;
  left: 22%;
  width: 14px;
  height: 14px;
  border: 2px solid #c0392b;
  background: transparent;
  animation: float-dot 7s ease-in-out infinite 2s;
}

@keyframes float-dot {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-14px); }
}

/* =========================================
   ENTRY ANIMATIONS
   ========================================= */
.hero__badge,
.hero__title,
.hero__sub,
.hero__actions {
  opacity: 0;
  transform: translateY(24px);
  animation: fade-up 0.7s ease forwards;
}

.hero__badge   { animation-delay: 0.1s; }
.hero__title   { animation-delay: 0.25s; }
.hero__sub     { animation-delay: 0.4s; }
.hero__actions { animation-delay: 0.55s; }

@keyframes fade-up {
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   SERVICE
   ========================================= */
.service {
  padding: 100px 0 80px;
  background: #ffffff;
}

.service__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.service__header {
  max-width: 720px;
}

.service__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #c0392b;
  margin-bottom: 20px;
}

.service__tag::before {
  content: '';
  width: 20px;
  height: 1.5px;
  background: #c0392b;
  display: block;
}

.service__title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: #0a0a0a;
  margin-bottom: 20px;
}

.service__sub {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #555;
}

/* Stages */
.service__stages-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0a0a0a;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

.service__stages-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.stage {
  background: #fff;
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.25s, box-shadow 0.25s;
}

.stage:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.stage__number {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: #f0d0ce;
  line-height: 1;
}

.stage:hover .stage__number {
  color: #c0392b;
}

.stage__title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0a0a0a;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.stage__text {
  font-size: 0.82rem;
  line-height: 1.65;
  color: #666;
}

/* Bottom grid */
.service__bottom {
  display: block;
}

.service__for,
.service__why {
  background: #fff;
  border-radius: 16px;
  padding: 28px 32px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.service__for .service__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 48px;
}

.service__section-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0a0a0a;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.service__section-title svg {
  width: 18px;
  height: 18px;
  stroke: #c0392b;
  stroke-width: 1.8;
  flex-shrink: 0;
}

.service__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service__list li {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #444;
  padding-left: 20px;
  position: relative;
}

.service__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c0392b;
  opacity: 0.6;
}

/* Price card */
.service__price-card {
  background: #0a0a0a;
  border-radius: 20px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: #fff;
}

.service__price-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #888;
}

.service__price-amount {
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #fff;
}

.service__price-amount span {
  font-size: 0.9rem;
  font-weight: 400;
  color: #888;
  letter-spacing: 0;
}

.service__price-durations {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid #222;
  padding-top: 16px;
}

.service__price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.83rem;
}

.service__price-row span {
  color: #999;
}

.service__price-row strong {
  color: #fff;
  font-weight: 600;
}

.service__price-note {
  font-size: 0.75rem;
  color: #666;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 1024px) {
  .service__stages-list {
    grid-template-columns: repeat(3, 1fr);
  }
  .service__bottom {
    grid-template-columns: 1fr;
  }
  .service__price-card {
    max-width: 400px;
  }
}

@media (max-width: 680px) {
  .service__stages-list {
    grid-template-columns: 1fr 1fr;
  }
  .service__bottom {
    grid-template-columns: 1fr;
  }
  .service__pricing {
    grid-column: auto;
  }
  .service__price-card {
    max-width: 100%;
  }
}

@media (max-width: 420px) {
  .service__stages-list {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   CLIENTS
   ========================================= */
.clients {
  background: #ffffff;
  border-top: 1px solid #e8e8e8;
  padding: 20px 0;
  overflow: hidden;
}

.clients__header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px 16px;
}

.clients__label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #aaa;
}

.clients__marquee {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.clients__track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: marquee 18s linear infinite;
}

.clients__track:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.clients__divider {
  width: 1px;
  height: 24px;
  background: #e0e0e0;
  flex-shrink: 0;
}

.client {
  display: flex;
  justify-content: center;
  padding: 0 40px;
  flex-shrink: 0;
}

.client__name {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #0a0a0a;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
  cursor: default;
  white-space: nowrap;
}

.client__name strong {
  font-size: 0.75rem;
  font-weight: 800;
  color: #0a0a0a;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}

.client__name em {
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: #444;
  transition: color 0.2s;
}

.client:hover .client__name,
.client:hover .client__name strong {
  color: #0a0a0a;
}

.client:hover .client__name em {
  color: #c0392b;
}

.client__name--celeste {
  color: #1a6fd4 !important;
}

.client__name--green {
  color: #aaff00 !important;
}

.client__name--orange {
  color: #ff8c1a !important;
}

/* =========================================
   ABOUT (NOSOTROS)
   ========================================= */
.about {
  background: #ffffff;
  border-top: 1px solid #e8e8e8;
  padding: 40px 0;
}

.about__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.about__top {
  display: flex;
  align-items: center;
  gap: 48px;
}

.about__header {
  max-width: 760px;
  flex: 1;
}

.about__media {
  flex-shrink: 0;
  width: 320px;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}

.about__media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  transform: scale(1.25) translateY(10%);
  transform-origin: center;
}

.about__media-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  text-align: center;
  padding: 14px 16px;
  border-radius: 0 0 20px 20px;
  background: rgba(10, 10, 10, 0.45);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media (max-width: 900px) {
  .about__top {
    flex-direction: column-reverse;
    gap: 28px;
  }

  .about__media {
    width: 100%;
    max-width: 320px;
  }
}

@media (max-width: 600px) {
  .about__media {
    max-width: 220px;
  }
}

.about__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #c0392b;
  margin-bottom: 20px;
}

.about__tag::before {
  content: '';
  width: 20px;
  height: 1.5px;
  background: #c0392b;
  display: block;
}

.about__title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: #0a0a0a;
  margin-bottom: 20px;
}

.about__question {
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  line-height: 1.5;
  color: #1a1a1a;
  font-weight: 600;
  margin-bottom: 16px;
}

.about__question strong {
  color: #c0392b;
  font-weight: 800;
}

.about__sub {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #555;
  font-weight: 400;
}

.about__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.about__card {
  background: #ffffff;
  border: none;
  border-radius: 16px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  transition: transform 0.25s, box-shadow 0.25s;
}

.about__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.about__card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #fdf0ef;
  border: 1px solid #f5c6c2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about__card-icon svg {
  width: 22px;
  height: 22px;
  stroke: #c0392b;
  stroke-width: 1.8;
}

.about__card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0a0a0a;
  letter-spacing: -0.02em;
}

.about__card-text {
  font-size: 0.88rem;
  line-height: 1.7;
  color: #666;
  font-weight: 400;
}

.about__cta {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

/* Proceso conectado: Diagnóstico -> Acompañamiento -> Tecnología a medida */
.process {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 28px;
}

.process__step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 16px 10px;
  background: #fafafa;
  border: 1px solid #ececec;
  border-radius: 12px;
  position: relative;
  transition: transform 0.25s, border-color 0.25s;
}

.process__step:hover {
  transform: translateY(-4px);
  border-color: #e0e0e0;
}

.process__step-num {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 1.1rem;
  font-weight: 900;
  color: #ececec;
  letter-spacing: -0.03em;
  line-height: 1;
}

.process__step-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.process__step-icon svg {
  width: 18px;
  height: 18px;
  stroke: #0a0a0a;
  stroke-width: 1.8;
}

.process__step-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #0a0a0a;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.process__connector {
  flex: 0 0 28px;
  position: relative;
  display: flex;
  align-items: center;
}

.process__connector-line {
  width: 100%;
  height: 1.5px;
  background: #e8e8e8;
}

.process__connector-dot {
  position: absolute;
  top: 50%;
  left: 0;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: #c0392b;
  box-shadow: 0 0 0 4px rgba(192,57,43,0.15);
  opacity: 0;
  animation: process-flow-h 4s ease-in-out infinite;
}

.process__connector--2 .process__connector-dot {
  animation-delay: 2s;
}

@keyframes process-flow-h {
  0%   { left: 0;    opacity: 0; }
  6%   { opacity: 1; }
  44%  { opacity: 1; }
  50%  { left: 100%; opacity: 0; }
  100% { left: 100%; opacity: 0; }
}

@keyframes process-flow-v {
  0%   { top: 0;    opacity: 0; }
  6%   { opacity: 1; }
  44%  { opacity: 1; }
  50%  { top: 100%; opacity: 0; }
  100% { top: 100%; opacity: 0; }
}

@media (max-width: 900px) {
  .process {
    flex-direction: column;
    align-items: center;
  }

  .process__step {
    width: 100%;
  }

  .process__connector {
    flex: 0 0 24px;
    width: 2px;
    justify-content: center;
  }

  .process__connector-line {
    width: 1.5px;
    height: 100%;
    background: #e8e8e8;
  }

  .process__connector-dot {
    left: 50%;
    top: 0;
    margin-top: 0;
    margin-left: -4px;
    animation-name: process-flow-v;
  }
}

/* =========================================
   ERA DE LA INTELIGENCIA ARTIFICIAL
   ========================================= */
.ia {
  background: #fafafa;
  border-top: 1px solid #e8e8e8;
  padding: 64px 0;
}

.ia__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.ia__top {
  display: flex;
  align-items: center;
  gap: 56px;
}

.ia__media {
  flex: 1;
  display: flex;
  justify-content: center;
}

.ia__header {
  flex: 1;
  max-width: 480px;
}

.ia__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #c0392b;
  margin-bottom: 20px;
}

.ia__tag::before {
  content: '';
  width: 20px;
  height: 1.5px;
  background: #c0392b;
  display: block;
}

.ia__title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: #0a0a0a;
  margin-bottom: 20px;
}

.ia__title--accent {
  color: #c0392b;
}

.ia__sub {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #555;
  font-weight: 400;
}

/* Diagrama: IA en el centro, conectada a los 3 ejes */
.ia-diagram {
  position: relative;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  animation: ia-float 6s ease-in-out infinite;
}

.ia-diagram__core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30%;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #c0392b;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  box-shadow: 0 0 0 10px rgba(192, 57, 43, 0.08), 0 16px 36px rgba(192, 57, 43, 0.25);
  z-index: 2;
  animation: ia-core-pulse 3s ease-in-out infinite;
}

.ia-diagram__spoke {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.5px;
  height: 38%;
  background: linear-gradient(to bottom, rgba(192, 57, 43, 0.35), rgba(192, 57, 43, 0));
  transform-origin: top center;
  z-index: 1;
  animation: ia-spoke-flow 3s ease-in-out infinite;
}

.ia-diagram__spoke--1 {
  transform: rotate(180deg);
}

.ia-diagram__spoke--2 {
  transform: rotate(-60deg);
  animation-delay: 0.5s;
}

.ia-diagram__spoke--3 {
  transform: rotate(60deg);
  animation-delay: 1s;
}

.ia-diagram__node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 2;
}

.ia-diagram__node--1 {
  top: 12%;
  left: 50%;
  transform: translate(-50%, -100%);
}

.ia-diagram__node--2 {
  top: 69%;
  left: 83%;
  transform: translate(-50%, 0);
}

.ia-diagram__node--3 {
  top: 69%;
  left: 17%;
  transform: translate(-50%, 0);
}

.ia-diagram__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #c0392b;
  flex-shrink: 0;
  animation: ia-dot-pulse 2.4s ease-in-out infinite;
}

.ia-diagram__node--1 .ia-diagram__dot {
  animation-delay: 0s;
}

.ia-diagram__node--2 .ia-diagram__dot {
  animation-delay: 0.8s;
}

.ia-diagram__node--3 .ia-diagram__dot {
  animation-delay: 1.6s;
}

.ia-diagram__node-label {
  max-width: 110px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #1a1a1a;
  text-align: center;
  line-height: 1.3;
}

@keyframes ia-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes ia-core-pulse {
  0%, 100% { box-shadow: 0 0 0 10px rgba(192, 57, 43, 0.08), 0 16px 36px rgba(192, 57, 43, 0.25); }
  50% { box-shadow: 0 0 0 16px rgba(192, 57, 43, 0.12), 0 16px 36px rgba(192, 57, 43, 0.3); }
}

@keyframes ia-spoke-flow {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.9; }
}

@keyframes ia-dot-pulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.35); opacity: 1; }
}

.ia__cta {
  display: flex;
  margin-top: 28px;
}

@media (max-width: 900px) {
  .ia__top {
    flex-direction: column-reverse;
    gap: 32px;
  }

  .ia__header {
    max-width: 100%;
    text-align: center;
  }

  .ia__media {
    width: 100%;
  }

  .ia__cta {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .ia {
    padding: 40px 0;
  }

  .ia-diagram {
    max-width: 240px;
  }

  .ia-diagram__node-label {
    font-size: 0.78rem;
    max-width: 96px;
  }
}

/* =========================================
   EL CAMBIO (CASOS)
   ========================================= */
.change {
  background: #fafafa;
  border-top: 1px solid #e8e8e8;
  padding: 64px 0;
}

.change__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.change__stack {
  display: flex;
  flex-direction: column;
}

.change__card {
  display: flex;
  align-items: center;
  gap: 48px;
  background: #ffffff;
  border: 1px solid #ececec;
  border-radius: 24px;
  padding: 32px;
  position: sticky;
}

.change__card--1 {
  top: 24px;
  z-index: 1;
}

.change__card--1 .change__title--accent,
.change__card--1 .change__stat-value {
  color: #aaff00;
}

.change__card--2 {
  top: 56px;
  z-index: 2;
  margin-top: 32px;
}

.change__card--3 {
  top: 88px;
  z-index: 3;
  margin-top: 32px;
}

.change__card--3 .change__title--accent,
.change__card--3 .change__tag,
.change__card--3 .change__stat-value {
  color: #1a6fd4;
}

.change__card--3 .change__tag::before {
  background: #1a6fd4;
}

.change__card--3 .change__cta {
  border-bottom-color: #1a6fd4;
}

.change__card--3 .change__cta svg {
  stroke: #1a6fd4;
}

.change__media {
  flex-shrink: 0;
  width: 480px;
  border-radius: 16px;
  overflow: hidden;
}

.change__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 5 / 4;
}

.change__media--logo {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 5 / 4;
  background: #fafafa;
}

.change__media-logo {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0a0a0a;
}

.change__media-logo strong {
  font-weight: 800;
}

.change__content {
  flex: 1;
  max-width: 600px;
}

.change__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #c0392b;
  margin-bottom: 20px;
}

.change__tag::before {
  content: '';
  width: 20px;
  height: 1.5px;
  background: #c0392b;
  display: block;
}

.change__title {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: #0a0a0a;
  margin-bottom: 16px;
}

.change__title--accent {
  color: #c0392b;
}

.change__title--light {
  font-weight: 500;
}

.change__sub {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 28px;
}

.change__features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 20px;
  margin-bottom: 32px;
}

.change__stats {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
}

.change__stat {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fafafa;
  border: 1px solid #ececec;
  border-radius: 14px;
  padding: 20px 24px;
}

.change__stat-value {
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #c0392b;
  flex-shrink: 0;
}

.change__stat-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.4;
}

.change__feature {
  display: flex;
  align-items: center;
  gap: 14px;
}

.change__feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.change__feature-icon svg {
  width: 18px;
  height: 18px;
  stroke: #0a0a0a;
  stroke-width: 1.8;
}

.change__feature-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a1a1a;
}

.change__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0a0a0a;
  text-decoration: none;
  border-bottom: 1.5px solid #c0392b;
  padding-bottom: 4px;
  transition: gap 0.2s;
}

.change__cta:hover {
  gap: 12px;
}

.change__cta svg {
  width: 16px;
  height: 16px;
  stroke: #c0392b;
}

@media (max-width: 900px) {
  .change__card {
    flex-direction: column;
    gap: 28px;
    padding: 20px;
  }

  .change__card--2,
  .change__card--3 {
    margin-top: 28px;
  }

  .change__media {
    width: 100%;
    max-width: 420px;
  }
}

@media (max-width: 600px) {
  .change {
    padding: 24px 0;
  }

  .change__card {
    gap: 12px;
    padding: 10px;
    border-radius: 14px;
  }

  .change__media {
    border-radius: 8px;
    max-width: 100%;
  }

  .change__media img {
    aspect-ratio: 4 / 3;
  }

  .change__tag {
    font-size: 0.6rem;
    margin-bottom: 8px;
  }

  .change__title {
    font-size: 1.15rem;
    margin-bottom: 6px;
  }

  .change__sub {
    font-size: 0.82rem;
    line-height: 1.5;
    margin-bottom: 12px;
  }

  .change__features {
    gap: 8px 10px;
    margin-bottom: 12px;
  }

  .change__stats {
    gap: 8px;
    margin-bottom: 12px;
  }

  .change__stat {
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
  }

  .change__stat-value {
    font-size: 1.6rem;
  }

  .change__stat-label {
    font-size: 0.72rem;
  }

  .change__feature {
    gap: 6px;
  }

  .change__feature-icon {
    width: 26px;
    height: 26px;
    border-radius: 7px;
  }

  .change__feature-icon svg {
    width: 13px;
    height: 13px;
  }

  .change__feature-text {
    font-size: 0.72rem;
  }

  .change__cta {
    font-size: 0.8rem;
  }
}

/* =========================================
   RESULTADOS DE LA DIGITALIZACIÓN
   ========================================= */
.results {
  background: #ffffff;
  border-top: 1px solid #e8e8e8;
  padding: 80px 0;
}

.results__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.results__header {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.results__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #c0392b;
  margin-bottom: 20px;
}

.results__tag::before {
  content: '';
  width: 20px;
  height: 1.5px;
  background: #c0392b;
  display: block;
}

.results__title {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: #0a0a0a;
}

.results__title--accent {
  color: #c0392b;
}

.results__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.result-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 32px 20px;
  text-align: center;
}

.result-card__title {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #0a0a0a;
}

/* Gráficos minimalistas */
.result-graphic {
  width: 100%;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Flujo de proceso */
.result-graphic--flow {
  gap: 0;
}

.result-graphic__node {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d8d8d8;
  flex-shrink: 0;
  animation: result-node-pulse 2.4s ease-in-out infinite;
}

.result-graphic__node:nth-child(1) {
  animation-delay: 0s;
}

.result-graphic__node:nth-child(3) {
  animation-delay: 0.4s;
}

.result-graphic__node--accent {
  background: #c0392b;
  animation-delay: 0.8s;
}

@keyframes result-node-pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.4); opacity: 1; }
}

.result-graphic__line {
  width: 36px;
  height: 1.5px;
  background: linear-gradient(90deg, #e6e6e6 0%, #e6e6e6 40%, #c0392b 50%, #e6e6e6 60%, #e6e6e6 100%);
  background-size: 280% 100%;
  animation: result-line-flow 2.4s linear infinite;
}

.result-graphic__line:nth-child(4) {
  animation-delay: 0.4s;
}

@keyframes result-line-flow {
  0% { background-position: 140% 0; }
  100% { background-position: -140% 0; }
}

/* Barras de operación */
.result-graphic--bars {
  align-items: flex-end;
  gap: 10px;
}

.result-graphic__bar {
  width: 14px;
  border-radius: 4px 4px 0 0;
  background: #e8e8e8;
  transform-origin: bottom;
  animation: result-bar-grow 2.8s ease-in-out infinite;
}

.result-graphic__bar--accent {
  background: #c0392b;
}

.result-graphic__bar:nth-child(1) { animation-delay: 0s; }
.result-graphic__bar:nth-child(2) { animation-delay: 0.2s; }
.result-graphic__bar:nth-child(3) { animation-delay: 0.4s; }
.result-graphic__bar:nth-child(4) { animation-delay: 0.6s; }

@keyframes result-bar-grow {
  0%, 100% { transform: scaleY(0.8); }
  50% { transform: scaleY(1); }
}

/* Anillo de eficiencia */
.result-ring {
  width: 56px;
  height: 56px;
  transform: rotate(-90deg);
}

.result-ring__bg,
.result-ring__progress {
  fill: none;
  stroke-width: 3;
}

.result-ring__bg {
  stroke: #e8e8e8;
}

.result-ring__progress {
  stroke: #c0392b;
  stroke-linecap: round;
  stroke-dasharray: 97.4;
  stroke-dashoffset: 19.5;
  animation: result-ring-fill 3s ease-in-out infinite alternate;
}

@keyframes result-ring-fill {
  0% { stroke-dashoffset: 97.4; }
  100% { stroke-dashoffset: 19.5; }
}

/* Tendencia de utilidades */
.result-trend {
  width: 100%;
  height: 48px;
}

.result-trend__line {
  fill: none;
  stroke: #e0e0e0;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 112;
  animation: result-trend-draw 3s ease-in-out infinite alternate;
}

@keyframes result-trend-draw {
  0% { stroke-dashoffset: 112; }
  100% { stroke-dashoffset: 0; }
}

.result-trend__dot {
  fill: #c0392b;
  animation: result-dot-pulse 1.6s ease-in-out infinite;
}

@keyframes result-dot-pulse {
  0%, 100% { opacity: 1; r: 3.5; }
  50% { opacity: 0.4; r: 5; }
}

@media (prefers-reduced-motion: reduce) {
  .result-graphic__node,
  .result-graphic__line,
  .result-graphic__bar,
  .result-ring__progress,
  .result-trend__line,
  .result-trend__dot,
  .ia-diagram,
  .ia-diagram__core,
  .ia-diagram__spoke,
  .ia-diagram__dot {
    animation: none;
  }
}

@media (max-width: 1024px) {
  .results__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 24px;
  }
}

@media (max-width: 600px) {
  .results {
    padding: 56px 0;
  }

  .results__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.about__team {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 48px;
  padding-top: 16px;
  border-top: 1px solid #e8e8e8;
}

.team-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  flex: 1;
}

.team-member__avatar {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: #ffffff;
  border: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.10);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.25s, transform 0.25s;
}

.team-member:hover .team-member__avatar {
  box-shadow: 0 8px 28px rgba(192, 57, 43, 0.18);
  transform: translateY(-3px);
}

.team-member__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  display: none;
  transform: scale(1.15);
}

.team-member__photo[src]:not([src=""]) {
  display: block;
  filter: grayscale(100%);
  transition: filter 0.3s;
}

.team-member__photo--down {
  object-position: center 65% !important;
  transform: scale(1.35) !important;
}

.team-member__photo--gonzalo {
  object-position: center 76% !important;
  transform: scale(1.35) !important;
}

.team-member__photo--far {
  transform: scale(1) !important;
  object-position: center 20% !important;
}

.team-member__photo--zoom-out {
  transform: scale(0.95) !important;
}

.team-member__linkedin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #0A66C2;
  text-decoration: none;
  padding: 5px 12px;
  border: 1px solid #c8d8f8;
  border-radius: 100px;
  background: #e8f0fe;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.team-member__linkedin:hover {
  background: #d0e4fd;
  border-color: #0A66C2;
  transform: translateY(-1px);
}

.team-member__linkedin svg {
  width: 13px;
  height: 13px;
  fill: #0A66C2;
  flex-shrink: 0;
}

.team-member:hover .team-member__photo[src]:not([src=""]) {
  filter: grayscale(0%);
}

.team-member__photo[src]:not([src=""]) ~ .team-member__initials {
  display: none;
}

.team-member__initials {
  font-size: 1.4rem;
  font-weight: 800;
  color: #aaa;
  letter-spacing: -0.03em;
  user-select: none;
}

.team-member__name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0a0a0a;
  letter-spacing: -0.02em;
  text-align: center;
}

.team-member__role {
  font-size: 0.75rem;
  font-weight: 500;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  white-space: nowrap;
  line-height: 1.4;
}

.team-member__bio {
  font-size: 0.78rem;
  color: #999;
  text-align: center;
  max-width: 160px;
  line-height: 1.5;
  font-style: italic;
}

.team-member__edu {
  font-size: 0.7rem;
  color: #bbb;
  text-align: center;
  max-width: 160px;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .about__cards {
    grid-template-columns: 1fr;
  }

  .about__team {
    gap: 32px;
    flex-wrap: wrap;
  }
}

/* =========================================
   MISSION
   ========================================= */
.mission {
  background: #ffffff;
  border-top: 1px solid #e8e8e8;
  padding: 56px 0 24px;
}

.mission__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

/* Left */
.mission__left {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mission__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #c0392b;
}

.mission__tag::before {
  content: '';
  width: 20px;
  height: 1.5px;
  background: #c0392b;
  display: block;
}

.mission__title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: #0a0a0a;
}

/* Right */
.mission__right {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.mission__text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #555;
  font-weight: 400;
}

.mission__text strong {
  color: #0a0a0a;
  font-weight: 600;
}

/* Stats */
.mission__stats {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid #e8e8e8;
  width: 100%;
  margin-top: 32px;
}

.mission__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 160px;
  padding: clamp(16px, 3vw, 28px) clamp(16px, 3vw, 32px);
  border-right: 1px solid #e8e8e8;
  gap: 6px;
  text-align: center;
}

.mission__stat:last-child {
  border-right: none;
}

@media (max-width: 600px) {
  .mission__stats {
    flex-direction: column;
  }

  .mission__stat {
    border-right: none;
    border-bottom: 1px solid #e8e8e8;
    padding: 20px 24px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    gap: 0;
  }

  .mission__stat:last-child {
    border-bottom: none;
  }
}

.stat__num {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 900;
  color: #0a0a0a;
  letter-spacing: -0.04em;
  line-height: 1;
  white-space: nowrap;
}

.stat__num em {
  font-style: normal;
  font-size: 0.9em;
  color: #c0392b;
  font-weight: 700;
}

.stat__desc {
  font-size: 0.82rem;
  color: #888;
  font-weight: 400;
  text-align: right;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.4;
  max-width: 220px;
}

/* =========================================
   NICHES
   ========================================= */
.niches {
  padding: 24px 0 48px;
  background: #ffffff;
}

.niches__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.niches__header {
  text-align: left;
  margin-bottom: 28px;
}

.niches__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c0392b;
  margin-bottom: 16px;
}

.niches__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  color: #0a0a0a;
  margin-bottom: 16px;
}

.niches__title--accent {
  color: #0a0a0a;
}

.niches__sub {
  font-size: 1.05rem;
  color: #888;
  max-width: 520px;
  line-height: 1.7;
}

.niches__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.niche-card {
  background: #ffffff;
  border: none;
  border-radius: 20px;
  padding: 24px 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.25s, transform 0.25s;
}

.niche-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.13);
  transform: translateY(-4px);
}

.niche-card--featured {
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.niche-card--featured:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.13);
}

.niche-card__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 14px;
  margin-bottom: 14px;
  color: #c0392b;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.10);
}

.niche-card--featured .niche-card__icon {
  background: #ffffff;
}

.niche-card__icon svg {
  width: 24px;
  height: 24px;
}

.niche-card__title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0a0a0a;
  margin-bottom: 12px;
}

.niche-card__text {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .niches__cards {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   INDUSTRIES
   ========================================= */
.industries {
  padding: 80px 0;
  background: #f9f9f9;
}

.industries__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.industries__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #c0392b;
  margin-bottom: 16px;
}

.industries__tag::before {
  content: '';
  width: 20px;
  height: 1.5px;
  background: #c0392b;
  display: block;
}

.industries__title {
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #0a0a0a;
  margin-bottom: 16px;
}

.industries__sub {
  font-size: 1rem;
  line-height: 1.8;
  color: #555;
  max-width: 640px;
  margin-bottom: 40px;
}

.industries__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.industry-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.25s, box-shadow 0.25s;
}

.industry-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.industry-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #fdf0ef;
  border: 1px solid #f5c6c2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.industry-card__icon svg {
  width: 24px;
  height: 24px;
  stroke: #c0392b;
  stroke-width: 1.8;
}

.industry-card__name {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0a0a0a;
  letter-spacing: -0.03em;
}

.industry-card__text {
  font-size: 0.88rem;
  line-height: 1.7;
  color: #666;
}

@media (max-width: 720px) {
  .industries__grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   CONTACT
   ========================================= */
.contact {
  background: #ffffff;
  border-top: 1px solid #e8e8e8;
  padding: 80px 0 0;
}

.contact__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* Left */
.contact__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #c0392b;
  margin-bottom: 20px;
}

.contact__tag::before {
  content: '';
  width: 20px;
  height: 1.5px;
  background: #c0392b;
  display: block;
}

.contact__left {
  display: flex;
  flex-direction: column;
}

.contact__title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: #0a0a0a;
  margin-bottom: 16px;
}

.contact__sub {
  font-size: 0.95rem;
  color: #888;
  line-height: 1.6;
}

/* Right */
.contact__right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact__item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  text-decoration: none;
  background: #fafafa;
  transition: all 0.25s;
}

.contact__item:hover {
  border-color: #c0392b;
  background: #fff5f5;
  transform: translateX(4px);
}

.contact__item-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #f0f0f0;
  border: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.25s;
}

.contact__item:hover .contact__item-icon {
  border-color: #c0392b;
}

.contact__item-icon svg {
  width: 18px;
  height: 18px;
  stroke: #c0392b;
  stroke-width: 2;
}

.contact__item-icon--linkedin {
  background: #e8f0fe;
  border-color: #c8d8f8;
}

.contact__item-icon--linkedin svg {
  stroke: none;
  fill: #0A66C2;
  width: 20px;
  height: 20px;
}

.contact__item-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.contact__item-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #555;
}

.contact__item-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: #0a0a0a;
}

.contact__item-arrow {
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.25s;
}

.contact__item:hover .contact__item-arrow {
  opacity: 1;
  transform: translateX(0);
}

.contact__item-arrow svg {
  width: 16px;
  height: 16px;
  stroke: #c0392b;
  stroke-width: 2;
}

/* Footer bar */
.contact__footer {
  border-top: 1px solid #e8e8e8;
  padding: 20px 32px;
  max-width: 100%;
}

.contact__copy {
  display: block;
  text-align: center;
  font-size: 0.78rem;
  color: #aaa;
  letter-spacing: 0.04em;
}

.contact__copy strong {
  color: #888;
  font-weight: 600;
}

@media (max-width: 900px) {
  .contact__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* =========================================
   FULLWIDTH IMAGE
   ========================================= */
.fullwidth-img {
  width: 100%;
  line-height: 0;
}

.fullwidth-img img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
  .hero__graphic {
    opacity: 0.25;
    right: -15vw;
  }

  .hero__inner {
    padding: 80px 24px;
  }
}

@media (max-width: 900px) {
  .mission__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .mission__left {
    position: static;
  }
}


/* =========================================
   MODAL
   ========================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.modal-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: #fff;
  border-radius: 24px;
  padding: 40px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.25s;
}

.modal-overlay.is-open .modal {
  transform: translateY(0);
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: #f0f0f0;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  transition: background 0.2s;
}

.modal__close:hover {
  background: #e0e0e0;
}

.modal__header {
  margin-bottom: 28px;
}

.modal__tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c0392b;
  margin-bottom: 10px;
}

.modal__title {
  font-size: 1.6rem;
  font-weight: 900;
  color: #0a0a0a;
  margin-bottom: 8px;
}

.modal__sub {
  font-size: 0.9rem;
  color: #777;
  line-height: 1.6;
}

.modal__services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}

.service-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1.5px solid #e8e8e8;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.service-check input {
  display: none;
}

.service-check:has(input:checked) {
  border-color: #c0392b;
  background: #fff5f5;
}

.service-check__box {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  border-radius: 8px;
  color: #888;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}

.service-check:has(input:checked) .service-check__box {
  background: rgba(192, 57, 43, 0.1);
  color: #c0392b;
}

.service-check__box svg {
  width: 16px;
  height: 16px;
}

.service-check__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #333;
  line-height: 1.3;
}

.modal__fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.modal__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #555;
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}

.modal__input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #e8e8e8;
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #0a0a0a;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.modal__input:focus {
  border-color: #c0392b;
}

.modal__phone {
  display: flex;
  align-items: center;
  border: 1.5px solid #e8e8e8;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.modal__phone:focus-within {
  border-color: #c0392b;
}

.modal__phone-prefix {
  padding: 12px 14px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0a0a0a;
  background: #f5f5f5;
  border-right: 1.5px solid #e8e8e8;
  white-space: nowrap;
}

.modal__input--phone {
  border: none;
  border-radius: 0;
  flex: 1;
}

.modal__input--phone:focus {
  border-color: transparent;
}

.modal__submit {
  width: 100%;
  padding: 14px;
  background: #0a0a0a;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s, transform 0.2s;
}

.modal__submit:hover {
  background: #333;
  transform: translateY(-1px);
}

.modal__submit svg {
  width: 18px;
  height: 18px;
}

.modal__success {
  text-align: center;
  padding: 40px 20px;
  font-size: 1.1rem;
  font-weight: 500;
  color: #0a0a0a;
  line-height: 1.6;
}

@media (max-width: 480px) {
  .modal__services {
    grid-template-columns: 1fr;
  }

  .modal {
    padding: 28px 20px;
  }
}

/* Hamburger button */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s;
  z-index: 200;
}

.nav__hamburger:hover {
  background: #f0f0f0;
}

.nav__hamburger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: #0a0a0a;
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
  transform-origin: center;
}

.nav__hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__hamburger.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav__hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu panel */
.nav__mobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  z-index: 150;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav__mobile.is-open {
  opacity: 1;
  pointer-events: auto;
}

.nav__mobile-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid #e0e0e0;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.nav__mobile-close:hover {
  background: #f0f0f0;
  border-color: #0a0a0a;
}

.nav__mobile-close svg {
  width: 20px;
  height: 20px;
  stroke: #0a0a0a;
  stroke-width: 2;
}

.nav__mobile-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 0 32px;
}

.nav__mobile-links li a {
  display: block;
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: #0a0a0a;
  text-decoration: none;
  letter-spacing: -0.03em;
  padding: 12px 0;
  transition: color 0.2s;
}

.nav__mobile-links li a:hover {
  color: #c0392b;
}

.nav__mobile-links .nav__link--active {
  color: #c0392b;
}

.nav__mobile-links .nav__cta {
  margin-top: 16px;
  background: #0a0a0a;
  color: #fff !important;
  padding: 14px 40px;
  border-radius: 100px;
  font-size: 1rem !important;
  font-weight: 600;
}

.nav__mobile-links .nav__cta:hover {
  background: #333;
  color: #fff !important;
}

@media (max-width: 600px) {
  .nav__links {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .nav__mobile {
    display: flex;
  }

  .hero__graphic {
    display: none;
  }

  .hero__title {
    font-size: clamp(1.6rem, 7.5vw, 2.6rem);
  }

  .hero__actions {
    flex-direction: column;
  }

  .btn {
    justify-content: center;
  }
}

/* =========================================
   CASOS DE ÉXITO
   ========================================= */
.cases {
  background: #f7f7f5;
  border-top: 1px solid #e8e8e8;
  padding: 80px 0;
}

.cases--page {
  min-height: calc(100vh - 200px);
  padding-top: 100px;
}

.cases__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.cases__header {
  margin-bottom: 56px;
}

.cases__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c0392b;
  margin-bottom: 16px;
}

.cases__tag::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: #c0392b;
}

.cases__title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #0a0a0a;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 12px;
}

.cases__sub {
  font-size: 1rem;
  color: #666;
  margin: 0;
}

/* Grid */
.cases__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

/* Card horizontal (ocupa toda la fila) */
.case-card--horizontal {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.case-card--horizontal .case-card__left {
  display: flex;
  flex-direction: column;
  border-right: 1px solid #f0f0f0;
}

.case-card--horizontal .case-card__header {
  border-bottom: 1px solid #f0f0f0;
}

.case-card--horizontal .case-card__body {
  flex: 1;
}

.case-card__right {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  background: #f7f7f5;
}

/* Slider */
.case-slider {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  margin-top: 10px;
  flex: 1;
}

.case-slider__track {
  display: flex;
  transition: transform 0.35s ease;
  height: 100%;
}

.case-slider__img {
  min-width: 100%;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: contain;
  background: #f0f0f0;
  cursor: pointer;
  border-radius: 8px;
}

.case-slider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.85);
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: background 0.2s;
  z-index: 2;
}

.case-slider__btn:hover {
  background: #fff;
}

.case-slider__btn svg {
  width: 18px;
  height: 18px;
  color: #0a0a0a;
}

.case-slider__btn--prev { left: 10px; }
.case-slider__btn--next { right: 10px; }

.case-slider__dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.case-slider__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.2s;
}

.case-slider__dot--active {
  background: #fff;
}

@media (max-width: 860px) {
  .case-card--horizontal {
    grid-template-columns: 1fr;
  }

  .case-card--horizontal .case-card__left {
    border-right: none;
    border-bottom: 1px solid #f0f0f0;
  }

}

/* Card */
.case-card {
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  overflow: hidden;
}

.case-card__header {
  padding: 18px 20px 14px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.case-card__client {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.case-card__client-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0a0a0a;
  letter-spacing: -0.02em;
}

.case-card__client-name strong {
  color: #1a73e8;
}

.case-card__industry {
  font-size: 0.68rem;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.case-card__badge {
  font-size: 0.65rem;
  font-weight: 600;
  color: #c0392b;
  background: #fdf0ef;
  border: 1px solid #f5c6c2;
  border-radius: 20px;
  padding: 3px 10px;
  white-space: nowrap;
}

/* Body */
.case-card__body {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.case-card__desc {
  font-size: 0.82rem;
  color: #444;
  line-height: 1.6;
  margin: 0;
}

/* Modules */
.case-card__modules {
  background: #f7f7f5;
  border-radius: 8px;
  padding: 12px 14px;
}

.case-card__modules-title {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #999;
  display: block;
  margin-bottom: 10px;
}

.case-card__module-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 16px;
}

.case-card__module-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  color: #333;
}

.case-card__module-list li svg {
  width: 13px;
  height: 13px;
  color: #c0392b;
  flex-shrink: 0;
}

/* Apps */
.case-card__apps {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.case-app {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  background: #fff;
}

.case-app__icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}

.case-app__icon svg {
  width: 16px;
  height: 16px;
}

.case-app__icon--mobile {
  background: #c0392b;
}

.case-app__icon--ai {
  background: linear-gradient(135deg, #6c3fc5, #3b82f6);
}

.case-app__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.case-app__name {
  font-size: 0.8rem;
  font-weight: 700;
  color: #0a0a0a;
}

.case-app__desc {
  font-size: 0.75rem;
  color: #666;
  line-height: 1.5;
}

/* Galería */
.case-card__gallery {
  background: #f7f7f5;
  border-radius: 8px;
  padding: 12px 14px;
}

.case-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.case-gallery__img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid #e8e8e8;
  transition: transform 0.2s, box-shadow 0.2s;
}

.case-gallery__img:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.lightbox--open {
  display: flex;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 88vh;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

.lightbox__close {
  position: fixed;
  top: 20px;
  right: 24px;
  background: rgba(255,255,255,0.15);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}

.lightbox__close:hover {
  background: rgba(255,255,255,0.28);
}

.lightbox__close svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 680px) {
  .cases__grid {
    grid-template-columns: 1fr;
  }

  .case-card__module-list {
    grid-template-columns: 1fr;
  }

  .case-card__header {
    flex-direction: column;
  }

  .cases__title {
    font-size: 1.6rem;
  }
}
