/* ==========================================================================
   VARIABLES GLOBALES (:root)
   ========================================================================== */
:root {
  --red: #d32f2f;
  --red-hover: #b71c1c;
  --red-light: rgba(211, 47, 47, .08);
  --red-border: rgba(211, 47, 47, .25);
  --dark: #101722;
  --dark-2: #18212d;
  --dark-3: #222d3a;
  --bg: #f3f5f7;
  --white: #ffffff;
  --text: #1e293b;
  --body: #475569;
  --muted: #64748b;
  --line: #d7dde4;
  --container: 1180px;
  --shadow: 0 15px 45px rgba(0, 0, 0, .08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(circle at 90% 10%, rgba(211, 47, 47, .055), transparent 30%);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

.section {
  padding: 110px 0;
}

/* ==========================================================================
   ENCABEZADO DE LA PÁGINA
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 88px;
  z-index: 1000;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  transition: height .3s ease, box-shadow .3s ease, background-color .3s ease;
}

.site-header.scrolled {
  height: 76px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, .08);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

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

.brand-logo {
  width: 175px;
}

.brand-caption {
  font-size: 9px;
  letter-spacing: .14em;
  font-weight: 700;
  color: var(--muted);
  padding-left: 15px;
  border-left: 1px solid var(--line);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  transition: color .25s ease;
}

.main-nav a:hover {
  color: var(--red);
}

.main-nav .nav-button {
  padding: 12px 19px;
  color: #fff;
  background: var(--red);
  border-radius: 7px;
  transition: background .25s ease;
}

.main-nav .nav-button:hover {
  color: #fff;
  background: var(--red-hover);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--dark);
  margin: 4px auto;
  transition: transform .3s ease, opacity .3s ease;
}

.menu-toggle.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

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

  .brand-caption {
    display: none;
  }

  .main-nav {
    position: fixed;
    top: 88px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    background: #fff;
    padding: 18px 24px 26px;
    box-shadow: 0 20px 35px rgba(0, 0, 0, .1);
    border-top: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity .3s ease, transform .3s ease, visibility .3s ease;
  }

  .main-nav a {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .main-nav .nav-button {
    margin-top: 10px;
    width: 100%;
    text-align: center;
    border-bottom: none;
  }

  .main-nav.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
}

/* ==========================================================================
   SECCIÓN HERO
   ========================================================================== */
.hero {
  min-height: 760px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 88px;
  background: var(--dark);
}

.hero-slider {
  position: absolute;
  inset: 0;
}

.hero-slider .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1s ease, transform 3s ease;
}

.hero-slider .slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 12, 19, .94) 0%, rgba(7, 12, 19, .72) 48%, rgba(7, 12, 19, .28) 100%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: .15;
  background-image: linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 70px 70px;
}

.hero-content {
  position: relative;
  z-index: 3;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, .75);
  font-size: 10px;
  letter-spacing: .17em;
  font-weight: 800;
  margin-bottom: 25px;
}

.eyebrow i {
  width: 28px;
  height: 2px;
  background: var(--red);
}

.hero h1 {
  margin: 0;
  color: #fff;
  font-family: Montserrat, Arial, sans-serif;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1.03;
  letter-spacing: -.045em;
}

.hero h1 strong {
  color: #fff;
}

.hero-copy > p {
  max-width: 620px;
  margin: 28px 0;
  color: rgba(255, 255, 255, .75);
  font-size: 16px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 800;
  transition: all .3s ease;
}

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 10px 30px rgba(211, 47, 47, .2);
}

.btn-primary:hover {
  background: var(--red-hover);
  transform: translateY(-2px);
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, .35);
  color: #fff;
}

.btn-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, .08);
}

.hero-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 17px 0;
  background: rgba(7, 12, 19, .6);
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.hero-bottom-inner {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
  color: rgba(255, 255, 255, .6);
  font-size: 10px;
  letter-spacing: .13em;
}

.hero-bottom b {
  color: #fff;
}

/* ==========================================================================
   TITULARES Y ENCABEZADOS DE SECCIÓN
   ========================================================================== */
.section-kicker {
  display: inline-block;
  color: var(--red);
  font-size: 10px;
  letter-spacing: .17em;
  font-weight: 900;
  margin-bottom: 12px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 50px;
}

.section-heading h2 {
  margin: 0;
  max-width: 700px;
  font-family: Montserrat, Arial, sans-serif;
  color: var(--text);
  font-size: clamp(30px, 4vw, 47px);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.section-heading > p {
  max-width: 380px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.centered h2 {
  margin: 0 auto 15px;
}

.centered p {
  margin: 0 auto;
}

/* ==========================================================================
   SECCIÓN DE SERVICIOS Y PROYECTOS (ESTRUCTURA AJUSTADA)
   ========================================================================== */
.services-section {
  padding: 60px 0;
  background-color: #f8fafc;
}

.areas-wrapper {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.area-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.area-header {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 16px;
  margin-bottom: 12px;
  padding: 0;
  background: none;
  border: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
  user-select: none;
}

.area-toggle-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-left: auto;
  flex-shrink: 0;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  color: var(--red, #e63946);
  background: #fff;
  transition: transform .4s cubic-bezier(.16, 1, .3, 1), background .3s ease, border-color .3s ease;
}

.area-header:hover .area-toggle-icon {
  border-color: var(--red, #e63946);
  background: rgba(211, 47, 47, .06);
}

.area-card.open .area-toggle-icon {
  transform: rotate(180deg);
  background: var(--red, #e63946);
  color: #fff;
  border-color: var(--red, #e63946);
}

.projects-list-container {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s ease;
}

.area-card.open .projects-list-container {
  grid-template-rows: 1fr;
}

.projects-list-inner {
  overflow: hidden;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 6px;
}

.area-number {
  color: var(--red, #e63946);
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
}

.area-kicker {
  color: var(--red, #e63946);
  font-size: 11px;
  letter-spacing: 0.12em;
  font-weight: 800;
  text-transform: uppercase;
  display: block;
}

.area-title {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
}

.area-description {
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 24px 0;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
}

.project-item-row {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 24px !important;
  gap: 20px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
}

.project-info {
  display: block !important;
  width: 45% !important;
  min-width: 45% !important;
  max-width: 45% !important;
}

/* Número de proyecto (en rojo) ubicado antes del nombre */
.project-number {
  display: block !important;
  width: max-content !important;
  color: var(--red, #e63946) !important;
  background: rgba(230, 57, 70, 0.08) !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  padding: 4px 8px !important;
  border-radius: 4px !important;
  margin-bottom: 6px !important;
  letter-spacing: 0.08em !important;
}

.project-info h4 {
  font-size: 18px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 0 8px 0 !important;
  line-height: 1.3 !important;
}

.project-info p {
  font-size: 13px !important;
  color: #475569 !important;
  line-height: 1.5 !important;
  margin: 0 0 14px 0 !important;
}

.service-tags {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
}

.service-tags span {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  padding: 3px 8px !important;
  border-radius: 4px !important;
  display: inline-block !important;
}

/* Carrusel de imágenes limpio sin botones flotantes */
.project-slider {
  display: block !important;
  width: 50% !important;
  min-width: 0 !important;
  max-width: 50% !important;
  position: relative !important;
}

.slider-track {
  position: relative !important;
  width: 100% !important;
  height: 380px !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  border: 1px solid #e2e8f0 !important;
  background: #f1f5f9 !important;
}

.slider-arrow {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 5 !important;
  width: 38px !important;
  height: 38px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: none !important;
  border-radius: 50% !important;
  background: rgba(15, 23, 42, .55) !important;
  color: #fff !important;
  font-size: 20px !important;
  line-height: 1 !important;
  cursor: pointer !important;
  transition: background .25s ease, transform .25s ease !important;
}

.slider-arrow:hover {
  background: var(--red, #e63946) !important;
  transform: translateY(-50%) scale(1.08) !important;
}

.slider-arrow.prev { left: 10px !important; }
.slider-arrow.next { right: 10px !important; }

.slide {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: opacity 0.4s ease-in-out !important;
}

.slide.active {
  opacity: 1 !important;
  visibility: visible !important;
}

.slide img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.carousel-dots {
  display: flex !important;
  justify-content: center !important;
  gap: 6px !important;
  margin-top: 8px !important;
}

.dot {
  width: 8px !important;
  height: 8px !important;
  background-color: #cbd5e1 !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  transition: background-color 0.3s ease !important;
  display: inline-block !important;
}

.dot.active {
  background-color: var(--red, #e63946) !important;
  width: 20px !important;
  border-radius: 4px !important;
}

@media (max-width: 850px) {
  .project-item-row {
    flex-direction: column !important;
  }
  .project-info,
  .project-slider {
    width: 100% !important;
    max-width: 100% !important;
  }
  .slider-track {
    height: 300px !important;
  }
}

/* ==========================================================================
   SECCIÓN CERTIFICACIONES V2
   ========================================================================== */
.certs-showcase-v2 {
  position: relative;
  overflow: hidden;
  background: #0f172a;
  clip-path: inset(0 0 0 0);
}

.cert-bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
}

.cert-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(75, 16, 16, 0.8) 100%);
  z-index: 2;
}

.certs-content-wrapper {
  position: relative;
  z-index: 3;
}

.cert-badge-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 50px;
  font-size: 11px;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  background: rgba(220, 38, 38, 0.9) !important;
  color: #ffffff !important;
  border: 1px solid #ef4444 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
  font-weight: 800 !important;
  padding: 8px 18px !important;
}

.certs-showcase-v2 h2 {
  color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8) !important;
}

.certs-showcase-v2 p {
  color: #f1f5f9 !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7) !important;
}

.certs-grid-v2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.cert-card-v2 {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cert-card-v2:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

.cert-ribbon {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 100px;
  height: 100px;
  overflow: hidden;
  z-index: 10;
  pointer-events: none;
}

.cert-ribbon span {
  position: absolute;
  display: block;
  width: 140px;
  padding: 5px 0;
  background-color: var(--red);
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  color: #ffffff;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  left: -15px;
  top: 25px;
  transform: rotate(45deg);
}

.cert-badge-floating {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d32f2f, #9a0007);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(211, 47, 47, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.5);
  border: 2px solid #ffffff;
  transition: transform 0.3s ease;
}

.cert-badge-floating.gold-theme {
  background: linear-gradient(135deg, #d4af37, #aa7c11);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.6);
}

.cert-card-v2:hover .cert-badge-floating {
  transform: scale(1.15) rotate(12deg);
}

.cert-preview-box {
  position: relative;
  height: 200px;
  width: 100%;
  overflow: hidden;
  background: #f1f5f9;
}

.cert-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.cert-card-v2:hover .cert-preview-box img {
  transform: scale(1.05);
}

.cert-zoom-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(4px);
  z-index: 2;
}

.cert-body-v2 {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.cert-tags-v2 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.cert-tags-v2 span {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  text-transform: uppercase;
}

.cert-tags-v2 .tag-red {
  background: #ffffff !important;
  color: #dc2626 !important;
  border: 1px solid #dc2626 !important;
  font-weight: 800 !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08) !important;
}

.cert-tags-v2 .tag-gray {
  background: #f8fafc !important;
  color: #1e293b !important;
  border: 1px solid #cbd5e1 !important;
  font-weight: 700 !important;
}

.cert-body-v2 h3 {
  font-family: Montserrat, sans-serif;
  font-size: 18px;
  line-height: 1.3;
  margin: 0 0 10px 0;
  color: #0f172a !important;
  font-weight: 800 !important;
}

.cert-body-v2 p {
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 20px 0;
  flex-grow: 1;
  color: #334155 !important;
  font-weight: 500 !important;
}

.cert-footer-v2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #e2e8f0;
  padding-top: 14px;
  margin-top: auto;
}

.status-live {
  font-size: 11px;
  font-weight: 800;
  color: #16a34a;
  letter-spacing: 0.05em;
}

.cert-link-btn {
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
}

/* ==========================================================================
   SECCIÓN PROCESO DE TRABAJO
   ========================================================================== */
.process-section {
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

.process-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(211, 47, 47, 0.12), transparent 70%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
  pointer-events: none;
}

.process-section .section-heading h2 {
  color: #ffffff;
}

.process-section .section-heading > p {
  color: rgba(255, 255, 255, 0.65);
}

.process-grid-tech {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
  margin-top: 50px;
}

.process-grid-tech::after {
  content: "";
  position: absolute;
  top: 36px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, 
    rgba(211, 47, 47, 0.2) 0%, 
    rgba(211, 47, 47, 0.8) 50%, 
    rgba(211, 47, 47, 0.2) 100%
  );
  z-index: 1;
}

.tech-step-card {
  position: relative;
  z-index: 2;
  background: rgba(24, 33, 45, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1), background 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.tech-step-card:hover {
  transform: translateY(-8px);
  border-color: rgba(211, 47, 47, 0.5);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(211, 47, 47, 0.15);
  background: rgba(30, 41, 56, 0.85);
}

.step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.step-badge {
  font-family: Montserrat, sans-serif;
  font-size: 14px;
  font-weight: 900;
  color: var(--red);
  background: rgba(211, 47, 47, 0.12);
  border: 1px solid rgba(211, 47, 47, 0.3);
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.05em;
}

.step-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  color: #ffffff;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.tech-step-card:hover .step-icon {
  background: var(--red);
  border-color: var(--red);
  box-shadow: 0 0 15px rgba(211, 47, 47, 0.5);
  color: #ffffff;
}

.step-body h3 {
  color: #ffffff;
  font-family: Montserrat, sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 10px 0;
  letter-spacing: -0.01em;
}

.step-body p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  line-height: 1.65;
  margin: 0 0 20px 0;
}

.step-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 14px;
}

.status-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.3s ease;
}

.tech-step-card:hover .status-tag {
  color: rgba(255, 255, 255, 0.9);
}

.connector-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.tech-step-card:hover .connector-dot {
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
}

/* ==========================================================================
   SECCIÓN SOBRE NOSOTROS
   ========================================================================== */
.about-section {
  position: relative;
  overflow: hidden;
  clip-path: inset(0 0 0 0);
  background: #0f172a;
}

.about-bg-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-size: cover;
  background-position: center;
  z-index: 1;
  pointer-events: none;
}

.about-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(246, 244, 242, .40) 100%);
  z-index: 2;
}

.about-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: center;
}

.about-copy {
  background: rgba(255, 255, 255, .92);
  padding: 40px;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .07);
}

.about-image-wrap {
  position: relative;
}

.about-image-wrap > img {
  width: 100%;
  height: 570px;
  object-fit: cover;
  border-radius: 14px;
}

.about-badge {
  position: absolute;
  left: -20px;
  bottom: 25px;
  background: var(--red);
  color: #fff;
  padding: 20px 24px;
  border-radius: 8px;
  box-shadow: 0 15px 30px rgba(211, 47, 47, .25);
}

.about-badge strong {
  display: block;
  font-family: Montserrat, sans-serif;
  font-size: 21px;
}

.about-badge span {
  display: block;
  font-size: 10px;
  opacity: .8;
}

.about-copy h2 {
  margin: 0 0 20px;
  color: var(--text);
  font-family: Montserrat, sans-serif;
  font-size: 43px;
  line-height: 1.1;
}

.about-copy p {
  line-height: 1.85;
}

.about-copy ul {
  list-style: none;
  padding: 0;
  margin: 25px 0;
}

.about-copy li {
  display: flex;
  gap: 10px;
  margin: 12px 0;
  font-size: 13px;
}

.about-copy li b {
  color: var(--red);
}

/* ==========================================================================
   SECCIÓN DE CONTACTO
   ========================================================================== */
.contact-section {
  background: linear-gradient(135deg, #e9edf1, #f8f9fa);
}

.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 80px;
  align-items: flex-start;
}

.contact-copy h2 {
  margin: 0 0 18px;
  color: var(--text);
  font-family: Montserrat, sans-serif;
  font-size: 45px;
  line-height: 1.08;
}

.contact-copy > p {
  max-width: 500px;
  line-height: 1.8;
}

.contact-details {
  margin-top: 30px;
}

.contact-details > * {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.contact-details span {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .13em;
}

.contact-details strong {
  display: block;
  color: var(--text);
  margin-top: 3px;
  font-size: 13px;
}

.map-container {
  height: 220px;
  margin-top: 15px;
  border-radius: 10px;
  overflow: hidden;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-form.modern-form {
  background: #ffffff;
  padding: 32px;
  border-radius: 16px;
  border: 1px solid rgba(215, 221, 228, 0.7);
  box-shadow: 0 20px 40px rgba(16, 23, 34, 0.06);
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-self: flex-start;
}

.modern-form .form-header {
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.modern-form .form-header h3 {
  margin: 0;
  color: var(--text);
  font-family: Montserrat, sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.modern-form .form-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.modern-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.modern-form .input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modern-form label {
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.modern-form .input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.modern-form .input-wrapper svg {
  position: absolute;
  left: 14px;
  color: var(--muted);
  transition: color 0.25s ease;
  pointer-events: none;
}

.modern-form .textarea-wrapper svg {
  top: 14px;
}

.modern-form input,
.modern-form select,
.modern-form textarea {
  width: 100%;
  padding: 12px 14px 12px 42px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
  box-sizing: border-box;
}

.modern-form select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

.modern-form textarea {
  resize: vertical;
  min-height: 90px;
}

.modern-form input:hover,
.modern-form select:hover,
.modern-form textarea:hover {
  border-color: #cbd5e1;
  background: #ffffff;
}

.modern-form input:focus,
.modern-form select:focus,
.modern-form textarea:focus {
  background: #ffffff;
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(211, 47, 47, 0.12);
}

.modern-form .input-wrapper:focus-within svg {
  color: var(--red);
}

.modern-form .btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
  background: var(--red);
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 20px rgba(211, 47, 47, 0.25);
  margin-top: 4px;
}

.modern-form .btn-submit:hover {
  background: var(--red-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(211, 47, 47, 0.35);
}

.modern-form .btn-submit svg {
  transition: transform 0.25s ease;
}

.modern-form .btn-submit:hover svg {
  transform: translateX(4px);
}

.form-status {
  font-size: 12px;
  margin: 0;
}

.form-status.ok {
  color: #198754;
}

.form-status.err {
  color: var(--red);
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ==========================================================================
   MODAL LIGHTBOX
   ========================================================================== */
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: rgba(8, 13, 20, 0.50);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
}

.image-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-modal-content {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  max-width: 980px;
  width: 100%;
  max-height: 88vh;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  animation: modalUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.lightbox-image-wrap {
  background: #0f1722;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
}

.lightbox-image-wrap img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.lightbox-info-panel {
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  overflow-y: auto;
}

.lightbox-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 10px;
  background: rgba(211, 47, 47, 0.1);
  color: var(--red);
  border: 1px solid rgba(211, 47, 47, 0.25);
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.lightbox-info-panel h3 {
  margin: 0 0 8px 0;
  font-family: Montserrat, sans-serif;
  font-size: 22px;
  color: var(--text);
  line-height: 1.25;
  font-weight: 800;
}

.lightbox-sub {
  margin: 0 0 18px 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  line-height: 1.4;
}

.lightbox-divider {
  height: 1px;
  background: var(--line);
  margin-bottom: 18px;
}

.lightbox-desc {
  margin: 0 0 25px 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--body);
}

/* ==========================================================================
   ANIMACIONES AL SCROLL (aparecen/desaparecen subiendo y bajando)
   ========================================================================== */
.reveal-fade-up,
.reveal-slide-left,
.reveal-slide-right,
.reveal-card,
.reveal-zoom-in {
  opacity: 0;
  transition: opacity .8s cubic-bezier(.16, 1, .3, 1), transform .8s cubic-bezier(.16, 1, .3, 1);
  will-change: opacity, transform;
}

.reveal-fade-up { transform: translateY(42px); }
.reveal-slide-left { transform: translateX(-55px); }
.reveal-slide-right { transform: translateX(55px); }
.reveal-zoom-in { transform: scale(.92); }
.reveal-card { transform: translateY(32px); }

.reveal-fade-up.in-view,
.reveal-slide-left.in-view,
.reveal-slide-right.in-view,
.reveal-zoom-in.in-view,
.reveal-card.in-view {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

/* ==========================================================================
   PIE DE PÁGINA / FOOTER
   ========================================================================== */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  color: rgba(255, 255, 255, .62);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 12% 10%, rgba(211, 47, 47, .14), transparent 45%);
  pointer-events: none;
}

.footer-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 1.1fr;
  gap: 50px;
  padding: 46px 0 30px;
}

.footer-brand-col .footer-logo {
  width: 165px;
  margin-bottom: 22px;
}

.footer-desc {
  max-width: 320px;
  margin: 0 0 22px;
  font-size: 13px;
  line-height: 1.85;
}

.footer-badge {
  display: inline-block;
  padding: 7px 15px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50px;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.footer-title {
  position: relative;
  margin: 0 0 18px;
  padding-bottom: 12px;
  color: #fff;
  font-family: Montserrat, sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .03em;
}

.footer-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background: var(--red);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  font-size: 13px;
  color: rgba(255, 255, 255, .6);
  transition: color .25s ease, padding-left .25s ease;
}

.footer-links a:hover {
  padding-left: 4px;
  color: #fff;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255, 255, 255, .6);
}

.footer-contact-list svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--red);
}

.footer-bottom {
  position: relative;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.footer-bottom-inner {
  display: flex;
  justify-content: center;
}

.copyright {
  margin: 0;
  color: rgba(255, 255, 255, .45);
  font-size: 12px;
  text-align: center;
}

.copyright strong {
  color: rgba(255, 255, 255, .7);
}

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    row-gap: 42px;
    padding: 60px 0 40px;
  }
}

@media (max-width: 560px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   BOTONES FLOTANTES: WHATSAPP Y VOLVER ARRIBA
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  font-size: 26px;
  box-shadow: 0 10px 30px rgba(37, 211, 102, .4);
  transition: transform .3s ease, box-shadow .3s ease;
}

.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 16px 36px rgba(37, 211, 102, .5);
}

.back-top {
  position: fixed;
  right: 26px;
  bottom: 96px;
  z-index: 900;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--dark);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s ease, background .3s ease;
}

.back-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-top:hover {
  background: var(--red);
}