:root{
  --bg:#ffffff;
  --bg-soft:#f5f5f5;
  --text:#000000;
  --muted:#000000;
  --red:#c70000;
  --stroke:#e0e0e0;
  --radius:14px;
  --shadow:0 12px 40px rgba(0,0,0,.14);
  --grad: linear-gradient(90deg, #c70000, #ff3b3b);
}

@font-face {
  font-family: "Army";
  src:
    url("../fonts/Army-Regular.woff2") format("woff2"),
    url("../fonts/Army-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

*{box-sizing:border-box}

html {
  width: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 110px;
}

body {
  width: 100%;
  overflow-x: hidden;
}

body{
  margin:0;
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Arial;
  background: var(--bg);
  color:var(--text);
  line-height:1.55;
}

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

.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

/* NAV */
nav{
  position:sticky;
  top:0;
  z-index:40;
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--stroke);
}

.nav-wrap{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px 4%;
}

.brand{
  display:flex;
  align-items:center;
  gap:18px;
  white-space: nowrap;

}

.brand-title {
  font-family: "Army", system-ui, sans-serif;
  letter-spacing: 2px;
}

.brand span,
.hero-title h1 {
  font-family: "Army", system-ui, sans-serif;
  letter-spacing: 14px;
  color: var(--red);
  -webkit-text-fill-color: var(--red);
}

.logo-text {
  font-family: "Army", sans-serif;
  font-size: 4rem;
  letter-spacing: 3px;
  color: var(--red);
  -webkit-text-fill-color: var(--red);
}

.logo{
  display:flex;
  align-items:center;
  gap:16px;          /* ← espacio entre logo e texto */
  white-space: nowrap;
}

.logo span{
  font-size: 2.7rem;  /* ← tamaño del texto SIVSA */
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1;
  display:inline-block;
  color: var(--red); /* ← ESTO lo vuelve rojo */
  -webkit-background-clip: text;
  -webkit-text-fill-color: red;
}

.logo img{
  height:62px;   /* cambia solo esto */
  width:auto;
  object-fit:contain;
  border-radius:8px;
}

.nav-links{
  display:flex;
  gap:28px;
  font-size: 1.15rem;
  margin-left:auto;
}

.btn{
  padding:14px 22px;
  font-size: 1.1rem;
  border-radius:12px;
  border:1px solid var(--stroke);
  background:#ffffff;
  color:#000000;
  transition:all .25s ease;
}

/* efecto hover rojo para cualquier botón */
.btn:hover {
  background: var(--grad);
  border-color: transparent;
  box-shadow: var(--shadow);
}

/* botón rojo fijo (formularios / CTA) */
.btn-red{
  background:var(--grad);
  border:none;
  font-weight:600;
  box-shadow:var(--shadow);
}

/* leve efecto al pasar el mouse por el botón rojo */
.btn-red:hover{
  filter: brightness(1.08);
}

/* HERO */
.hero {
  position: relative;
  height: calc(100vh - 80px);
  min-height: 900px;
  overflow: hidden;
}

.hero-slider {
  position: relative;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
}

.hero * {
  max-height: 100%;
}

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

.slide.active {
  opacity: 1;
  transform: scale(1.1);
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to left,
    rgba(0,0,0,0.45) 0%,
    rgba(0,0,0,0.30) 35%,
    rgba(0,0,0,0.15) 65%,
    rgba(0,0,0,0.05) 100%
  );
  z-index: 1;
}

.hero-top-right {
  position: absolute;
  top: 20px;
  right: 4%;
  z-index: 2;
  text-align: right;
  color: white;
}

.hero-top-right h1 {
  font-family: "Army", system-ui, sans-serif;
  font-size: clamp(6rem, 10vw, 11rem);
  line-height: 1;
  margin: 0;
  color: var(--red);
  -webkit-text-fill-color: var(--red);
}

.hero-top-right h2 {
  margin: 4px 0 0;
  font-size: 2.4rem;
  color: white;
  opacity: 0.9;
  text-align: center;
}

.hero-bottom-right {
  position: absolute;
  bottom: 300px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  text-align: center;
  color: white;
  width: 100%;
  max-width: 900px;
}

.hero-bottom-right p {
  margin: 0;
  font-size: 3.4rem;
  line-height: 1.3;
  font-weight: 600;
  color: white;
}

.hero-bottom-center {
  position: absolute;
  bottom: 50px;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
  text-align: center;
  color: white;
  width: 100%;
}

.hero-bottom-center p {
  margin: 0;
  font-size: 3.1rem;
  font-weight: 500;
  color: white;
  opacity: 0.95;
}

.hero-grid{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:40px;
  align-items:center;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:10px;

  font-size:1.35rem;              /* ← un poco más grande */
  background:#ffffff;
  border:1px solid var(--stroke);

  padding:8px 26px;           /* ← píldora más grande */
  border-radius:999px;
  color:var(--muted);

  animation: slideInLeft 0.8s ease-out both;
}

.dot{
  width:10px;
  height:10px;
  border-radius:50%;
  background:var(--red);
  animation: pulse 1.6s ease-in-out infinite;
}

h1{
  font-size:clamp(2.7rem, 4vw, 4.3rem);
  line-height:1.1;
  margin:14px 0;
}

.lead{color:#000000;max-width:60ch}

.hero-card{
  background:#ffffff;
  border:1px solid var(--stroke);
  border-radius:var(--radius);
  padding:18px;
  box-shadow:var(--shadow);
}

/* =========================
   HERO (NUEVO LAYOUT CUSTOM)

.hero-stack {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Título centrado superior */
.hero-title {
  text-align: center;
}

.hero-title h1 {
  font-size: clamp(7.4rem, 5.4vw, 4rem);
  margin: 0;
}

.hero-title h2 {
  margin-top: 6px;
  font-size: clamp(1.5rem, 2.7vw, 1.9rem);
  font-weight: 800;
  color: var(--muted);
}

.hero-title h3 {
  margin-top: 6px;
  font-size: clamp(4.2rem, 2.7vw, 1.9rem);
  font-weight: 1000;
  color: var(--red);
}

/* Grid inferior */
.hero-grid-custom {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: start;
}

/* Texto + botones */
.hero-text {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: -20px; /* ← AJUSTE CLAVE */

}

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

/* Especialidades */
.hero-specialties {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

/* Píldora sobre el card */
.badge-over-card {
  align-self: flex-start;
}

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

  .hero-text {
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-specialties {
    align-items: center;
  }
}

/* SECTIONS */
section{
  padding:60px 0;
  border-top:1px solid var(--stroke);
}

#servicios {
  margin-top: -40px;
}

.sec-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  margin-bottom:25px;
}

.sec-title{font-size:2.3rem}
.sec-desc{color:var(--muted);max-width:70ch}

.section-title {
  color: red;
}

.services-header {
  margin: 20px 0 10px;
}

.services-header h2 {
  color: #e30613;
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.services-header p {
  color: #111;
  font-size: 1.6rem;
  font-weight: 600;
}

/* GRID */
.grid-3{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}

#servicios .grid-3 {
  margin-top: 20px;
}

.card{
  background:var(--bg-soft);
  border:1px solid var(--stroke);
  border-radius:var(--radius);
  padding:18px;
  display:grid;
  gap:10px;
}

#servicios .card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  height: 320px;
  padding: 0;
}

#servicios .card-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1);
  transition: opacity .8s ease, transform 6s ease;
}

#servicios .card-slider img.active {
  opacity: 1;
  transform: scale(1.1);
}

#servicios .card::after {
  content: none;
}

#servicios .card-glass {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(6px);
  background: rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .2s ease;
}

#servicios .card-glass span {
  color: white;
  font-size: 1.9rem;
  font-weight: 600;
  text-align: center;
  padding: 10px;
}

#servicios .card:hover .card-glass {
  opacity: 1;
}

.card h3{margin:0}

.card ul{
  margin:6px 0 0 18px;
  color:#000000;
}

.tag{
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  padding: 8px 22px;

  width: auto;
  max-width: 420px;
  min-height: 42px;

  background: var(--grad);
  border-radius: 999px;

  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}

/* PROCESS */
.steps{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
}

.step{
  background:#ffffff;
  border:1px solid var(--stroke);
  border-radius:var(--radius);
  padding:18px;
}

.step span{
  display:inline-block;
  background:#f5f5f5;
  border:1px solid var(--stroke);
  padding:6px 10px;
  border-radius:999px;
  margin-bottom:6px;
}

#proceso {
  padding-bottom: 20px;
}

#proceso .process-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  text-align: center;
}

#proceso .process-header h2 {
  margin: 0;
  color: #111;
  font-size: 2.7rem;
  font-weight: 800;
  letter-spacing: 0;
}

#proceso .process-line {
  width: 120px;
  height: 4px;
  border-radius: 999px;
  background: var(--red);
}

#proceso .steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

#proceso .step {
  position: relative;
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  box-shadow: 0 16px 32px rgba(0,0,0,.08);
  transition: transform .25s ease, box-shadow .25s ease;
}

#proceso .step:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,.12);
}

#proceso .step span {
  position: absolute;
  top: 16px;
  left: 16px;
  min-width: 44px;
  text-align: center;
  padding: 6px 0;
  background: #fff;
  border: 1px solid var(--stroke);
  font-size: 1.04rem;
  font-weight: 700;
}

#proceso .step-icon {
  width: 57px;
  height: 57px;
  margin-top: 26px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(199,0,0,.08);
  color: var(--red);
  font-size: 1.85rem;
}

#proceso .step h3 {
  margin: 0;
  font-size: 1.5rem;
}

#proceso .step p {
  margin: 0;
  color: #111;
  font-size: 1.18rem;
}

#proceso .step:nth-child(2) .step-icon,
#proceso .step:nth-child(3) .step-icon {
  margin-top: 42px;
  margin-bottom: 12px;
}

/* FORM */
form{display:grid;gap:12px}

.row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

input, textarea{
  width:100%;
  padding:14px 18px;
  border-radius:10px;
  border:1px solid var(--stroke);
  background:#ffffff;
  color:#000000;
  font-size: 1.15rem;
}

textarea{min-height:120px}

.contacto-banner {
  background: #ffffff;
  color: #111;
  padding: 48px;
  border-radius: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 36px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.contacto-info {
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contacto-kicker {
  margin: 0 0 6px;
  color: var(--red);
  font-family: "Army", system-ui, sans-serif;
  font-size: 10.9rem;
  line-height: .95;
}

.contacto-info h2 {
  margin: 0;
  color: #111;
  font-size: 2.1rem;
}

.contacto-datos {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
  color: #111;
  font-size: 1.25rem;
}

.contacto-datos li {
  line-height: 1.45;
}

.contacto-banner .contact-social {
  margin-top: 8px;
}

.contacto-banner .contact-social a {
  background: #111;
  border-color: #111;
}

.form-flotante {
  background: #111;
  padding: 30px;
  border-radius: 14px;
  width: 400px;
  box-shadow: 0 0 25px rgba(255,0,0,0.25);
}

.form-flotante input,
.form-flotante textarea,
.form-flotante select {
  width: 100%;
  margin-bottom: 10px;
  padding: 10px;
  background: #1a1a1a;
  border: none;
  color: white;
  border-radius: 6px;
}

.form-flotante select {
  appearance: none;
}

.form-flotante textarea {
  min-height: 100px;
  resize: vertical;
}

.form-flotante button {
  width: 100%;
  padding: 16px;
  background: var(--grad);
  border: none;
  color: white;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.2rem;
}

.contacto-tiempo {
  margin: 12px 0 0;
  color: #4ade80;
  font-size: 1.25rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
}

.contacto-tiempo i {
  color: #25D366;
}

.mapa-real iframe {
  width: 100%;
  min-height: 500px;
  border: 0;
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: block;
}

#ubicacion {
  padding-top: 10px;
  padding-bottom: 20px;
}

#ubicacion .container {
  display: grid;
  gap: 14px;
}

/* FOOTER */
footer{
  border-top:1px solid var(--stroke);
  padding:28px 0;
  color:#000000;
  font-size: 1.25rem;
}

.footer-wrap{
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:12px;
}

/* RESPONSIVE */
@media(max-width:900px){
  .hero-grid{grid-template-columns:1fr}
  .grid-3{grid-template-columns:1fr 1fr}
  .steps{grid-template-columns:1fr 1fr}
}

@media(max-width:600px){
  .grid-3,
  .steps,
  .row{grid-template-columns:1fr}

  .nav-links{display:none}
}

/* Animación de entrada desde la izquierda */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 6px var(--red);
    opacity: 1;
  }
  50% {
    transform: scale(1.4);
    box-shadow: 0 0 18px var(--red);
    opacity: 0.7;
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 6px var(--red);
    opacity: 1;
  }
}

/* MAPA + CONTACTO */
.map-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 24px;
  align-items: stretch;
}

.map-box {
  background: #ffffff;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 340px;
  box-shadow: var(--shadow);
}

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

.contact-card {
  background: var(--bg-soft);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow);
}

.contact-card h3 {
  margin: 0;
}

.contact-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  color: #000000;
}

.contact-card li {
  margin-bottom: 6px;
}

.contact-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

#servicios,
#proceso,
#cotizar {
  scroll-margin-top: 90px;
}

/* responsive */
@media (max-width: 900px) {
  .map-grid {
    grid-template-columns: 1fr;
  }
}
.map-box {
  overflow: hidden;
  position: relative;
}

.map-box::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

}

.carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
}

.carousel::-webkit-scrollbar {
  height: 6px;
}

.carousel::-webkit-scrollbar-thumb {
  background: var(--stroke);
  border-radius: 999px;
}

.carousel-item {
  min-width: 260px;
  background: #ffffff;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  scroll-snap-align: start;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.carousel-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

#proyectos {
  margin-top: 30px;
  padding-top: 0;
}

#proyectos h2 {
  margin-bottom: 20px;
}

.clientes-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  overflow: visible;
}

.clientes-scroll {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-behavior: smooth;
}

.clientes-scroll .carousel-item img {
  height: 220px;
  object-fit: cover;
  border-radius: 14px;
}

.clientes-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 10px 14px;
  cursor: pointer;
  border-radius: 10px;
}

.clientes-nav.prev {
  left: -50px;
}

.clientes-nav.next {
  right: -50px;
}

/* responsive */
@media (max-width: 600px) {
  .carousel-item {
    min-width: 220px;
  }
}

.neon-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.neon-head h2 {
  margin: 0;
  font-size: 2.7rem;
}

.neon-head .muted {
  color: var(--muted);
}

#neon .neon-head h2:last-child {
  text-align: right;
  margin-right: 10px;
}

/* GRID */
.neon-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: stretch;
}

#neon .neon-grid {
  align-items: start;
}

/* TEXTO */
.neon-card {
  background: var(--bg-soft);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow);
}

/* GALERÍA */
.neon-gallery {
  position: relative;
  height: 440px;
  background: #ffffff;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.neon-gallery img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.5s ease, transform 0.6s ease;
}

.neon-gallery img.active {
  opacity: 1;
  transform: scale(1);
}

.neon-gallery .nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: white;
  border: none;
  font-size: 2.4rem;
  padding: 12px 16px;
  cursor: pointer;
  border-radius: 8px;
}

.neon-gallery .prev {
  left: 10px;
}

.neon-gallery .next {
  right: 10px;
}

.neon-video {
  height: 440px;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.neon-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .neon-head {
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }

  .neon-grid {
    grid-template-columns: 1fr;
  }
}

.video-box {
  display: flex;
  justify-content: center;
}

.video-box video {
  width: 100%;
  max-width: 720px;   /* ← controla el tamaño real */
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
/* CONTACTO – BOTONES SOCIALES */
.contact-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-social {
  display: flex;
  gap: 10px;
}

.contact-social a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #151515;
  border: 1px solid var(--stroke);

  display: flex;
  align-items: center;
  justify-content: center;

  transition: all .25s ease;
}

.contact-social a i {
  font-size: 18px;
  color: white;
}

.contact-social a:hover {
  background: var(--grad);
  border-color: transparent;
  box-shadow: var(--shadow);
}

.page-nosotros .hero {
  height: auto;
  min-height: auto;
  padding: 40px 0 30px;
}
.page-nosotros .hero-title h1 {
  margin-top: 0;
}

.page-nosotros .hero-title h2 {
  margin-bottom: 0;
}

.page-nosotros .lead {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  line-height: 1.6;
  max-width: 100%;
}
