:root {
  /* Colores principales */
  --navy: #050505;
  --navy-2: #141414;
  --red: #e1231f;
  --red-2: #ff3b3b;
  --white: #ffffff;
  --muted: #7b7b7b;
  --soft: #f5f5f5;
  --border: #e7e7e7;
  --green: #22c55e;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
  --radius: 24px;
}

/* =========================
   RESET Y BASE GENERAL
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", Arial, sans-serif;
  color: var(--navy);
  background: var(--white);
}

a {
  text-decoration: none;
}

.container {
  width: min(1140px, 92%);
  margin: auto;
}

/* =========================
   BARRA SUPERIOR
========================= */
.topbar {
  background: #000000;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.topbar-content {
  min-height: 38px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

/* =========================
   HEADER / MENÚ
========================= */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  color: white;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--red), var(--red-2));
  color: white;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(225, 35, 31, 0.38);
}

.brand-text strong,
.brand-text span {
  display: block;
  line-height: 1;
  font-size: 21px;
  letter-spacing: -0.5px;
}

.brand-text span {
  color: var(--red);
  font-weight: 900;
}

.menu {
  display: flex;
  list-style: none;
  gap: 27px;
}

.menu a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  font-weight: 700;
}

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

.nav-cta {
  color: var(--navy);
  background: linear-gradient(135deg, var(--red), var(--red-2));
  color: white;
  font-weight: 900;
  padding: 13px 18px;
  border-radius: 14px;
  box-shadow: 0 14px 35px rgba(225, 35, 31, 0.34);
}

.menu-btn {
  display: none;
  color: white;
  background: transparent;
  border: 0;
  font-size: 30px;
}

/* =========================
   HERO / SECCIÓN PRINCIPAL PREMIUM
========================= */
.hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  padding: 100px 0 115px;

  background:
    radial-gradient(circle at 12% 18%, rgba(225, 35, 31, 0.55), transparent 28%),
    radial-gradient(circle at 35% 45%, rgba(255, 255, 255, 0.78), transparent 33%),
    radial-gradient(circle at 56% 32%, rgba(255, 255, 255, 0.34), transparent 28%),
    radial-gradient(circle at 75% 82%, rgba(225, 35, 31, 0.45), transparent 38%),
    linear-gradient(135deg, #f7f7f7 0%, #ffffff 24%, #2a2a2a 48%, #140303 68%, #000000 100%);
}

/* Capa para oscurecer bordes y dar profundidad */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.48) 0%, rgba(255, 255, 255, 0.18) 30%, rgba(0, 0, 0, 0.55) 64%, rgba(0, 0, 0, 0.88) 100%),
    radial-gradient(circle at 25% 45%, rgba(255, 255, 255, 0.35), transparent 50%),
    radial-gradient(circle at center, transparent 45%, rgba(0, 0, 0, 0.52) 100%);
  pointer-events: none;
}

/* Líneas rojas tipo tecnología */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 0 42%, rgba(255, 59, 59, 0.65) 42.2%, transparent 43%),
    linear-gradient(145deg, transparent 0 72%, rgba(255, 59, 59, 0.55) 72.2%, transparent 73%),
    linear-gradient(25deg, transparent 0 82%, rgba(255, 59, 59, 0.35) 82.2%, transparent 83%);
  opacity: 0.75;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 54px;
  align-items: center;
}

.badge,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--red);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(42px, 6vw, 74px);
  line-height: 0.98;
  letter-spacing: -2.8px;
  max-width: 760px;
  margin-bottom: 22px;
  color: #050505;
  text-shadow: 0 8px 35px rgba(255, 255, 255, 0.25);
}

.hero h1 span,
.hero h1 .red {
  color: var(--red);
}

.hero-copy p {
  color: rgba(5, 5, 5, 0.72);
  font-size: 19px;
  line-height: 1.7;
  max-width: 640px;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 38px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 22px;
  border-radius: 15px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--red), var(--red-2));
  color: white;
  box-shadow: 0 18px 45px rgba(225, 35, 31, 0.35);
}

.btn-outline {
  color: #050505;
  border: 1px solid rgba(5, 5, 5, 0.25);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
}

/* =========================
   TARJETAS DE CONFIANZA
========================= */
.trust-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.trust-row div {
  min-width: 130px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(12px);
}

.trust-row strong {
  display: block;
  color: var(--red);
  font-size: 25px;
}

.trust-row span {
  color: rgba(5, 5, 5, 0.68);
  font-size: 13px;
}

/* =========================
   CUADRO DEL LOGO EN HERO
========================= */
.hero-visual {
  min-height: 510px;
  position: relative;
}

.visual-card {
  position: absolute;
  inset: 35px 24px 42px 24px;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 22px;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.14), transparent 36%),
    radial-gradient(circle at 70% 80%, rgba(225, 35, 31, 0.18), transparent 45%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.10), rgba(0, 0, 0, 0.78));
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(14px);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.38),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 38px rgba(225, 35, 31, 0.28);
}

.image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Logo principal dentro del cuadro */
.hero-logo {
  width: 90%;
  max-width: 460px;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  filter:
    drop-shadow(0 18px 35px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 18px rgba(225, 35, 31, 0.25));
}

/* =========================
   TARJETAS FLOTANTES DEL HERO
========================= */
.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  color: var(--navy);
  border-radius: 20px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
  animation: float 4s ease-in-out infinite;
}

.floating-card span {
  font-size: 32px;
}

.floating-card strong {
  display: block;
  font-size: 15px;
}

.floating-card small {
  color: var(--muted);
}

.card-one {
  top: 8px;
  right: 0;
}

.card-two {
  bottom: 45px;
  left: 0;
  animation-delay: 0.8s;
}

.card-three {
  bottom: 10px;
  right: 50px;
  animation-delay: 1.4s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

/* =========================
   SECCIONES GENERALES
========================= */
.section {
  padding: 90px 0;
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 45px;
  text-align: center;
}

.section-heading h2,
.process h2,
.about-panel h2,
.contact-panel h2 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
}

.section-heading p,
.process p,
.about-panel p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

/* =========================
   SERVICIOS
========================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  position: relative;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  min-height: 270px;
  box-shadow: 0 10px 35px rgba(6, 21, 38, 0.06);
  transition: 0.25s ease;
  overflow: hidden;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: auto -40px -70px auto;
  width: 150px;
  height: 150px;
  background: rgba(31, 117, 255, 0.08);
  border-radius: 999px;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.service-card.featured {
  background: linear-gradient(135deg, #050505, #250404);
  color: white;
  border: 0;
}

.service-card.featured p {
  color: rgba(255, 255, 255, 0.72);
}

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: var(--soft);
  font-size: 34px;
  margin-bottom: 22px;
}

.service-icon img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.featured .service-icon {
  background: rgba(255, 255, 255, 0.12);
}

.service-card h3 {
  font-size: 21px;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.service-card a {
  color: var(--red);
  font-weight: 900;
}

.featured a {
  color: var(--red);
}

/* =========================
   PRODUCTOS EN EXHIBICIÓN
========================= */
.productos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.producto {
  background: white;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  text-align: center;
  padding-bottom: 20px;
}

.producto img {
  width: 100%;
  height: 250px;
  object-fit: contain;
  object-position: center;
  background: white;
  padding: 12px;
  display: block;
}

.producto h3 {
  margin: 15px 0 10px;
  padding: 0 15px;
}

.producto p {
  color: gray;
  font-size: 14px;
  padding: 0 15px;
}

.producto strong {
  display: block;
  margin: 10px 0;
  color: var(--red);
}

.producto a {
  background: var(--green);
  color: white;
  padding: 10px 15px;
  border-radius: 8px;
  display: inline-block;
  margin-top: 10px;
  font-weight: 800;
}

/* =========================
   PROCESO
========================= */
.process {
  padding: 80px 0;
  background: var(--soft);
}

.process-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 42px;
  align-items: center;
}

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

.step {
  background: white;
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: 0 10px 35px rgba(6, 21, 38, 0.06);
}

.step span {
  color: var(--red);
  font-weight: 900;
  font-size: 14px;
}

.step h3 {
  margin: 13px 0 10px;
}

/* =========================
   GALERÍA / TRABAJOS REALIZADOS
========================= */
.gallery-section {
  background: white;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 250px 250px;
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.78), rgba(225, 35, 31, 0.42)),
    linear-gradient(135deg, #050505, #e1231f);
  box-shadow: 0 12px 35px rgba(6, 21, 38, 0.14);
}

.gallery-item.large {
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item.large img {
  object-fit: contain;
  background: #050505;
  padding: 10px;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item span {
  font-size: 58px;
  display: block;
  margin-bottom: 10px;
}

.gallery-item p {
  position: absolute;
  bottom: 10px;
  left: 15px;
  color: white;
  font-weight: bold;
  background: rgba(0, 0, 0, 0.5);
  padding: 5px 10px;
  border-radius: 8px;
}

/* =========================
   SOBRE NOSOTROS Y CONTACTO
========================= */
.about-contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.about-panel {
  background:
    radial-gradient(circle at 20% 20%, rgba(225, 35, 31, 0.25), transparent 34%),
    linear-gradient(135deg, #050505, #220303);
  color: white;
  padding: 85px max(5vw, 34px);
}

.about-panel p {
  color: rgba(255, 255, 255, 0.78);
}

.about-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 32px;
}

.about-list div {
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(12px);
  border-radius: 18px;
  padding: 16px;
  font-weight: 800;
}

.contact-panel {
  background: var(--soft);
  padding: 85px max(5vw, 34px);
}

.contact-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px;
  max-width: 520px;
}

.contact-card p {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}

.contact-card strong {
  color: var(--navy);
}

.full {
  width: 100%;
  margin-top: 24px;
}

/* =========================
   BOTÓN FLOTANTE WHATSAPP
========================= */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--green);
  color: white;
  font-size: 30px;
  box-shadow: 0 18px 40px rgba(34, 197, 94, 0.38);
}

/* =========================
   FOOTER
========================= */
.footer {
  background: #000000;
  color: rgba(255, 255, 255, 0.72);
  padding: 28px 0;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-brand .brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
}

/* =========================
   RESPONSIVE TABLET
========================= */
@media (max-width: 950px) {
  .topbar-content {
    justify-content: center;
    flex-wrap: wrap;
    padding: 9px 0;
  }

  .menu-btn {
    display: block;
  }

  .menu {
    display: none;
    position: absolute;
    top: 78px;
    left: 4%;
    right: 4%;
    flex-direction: column;
    gap: 0;
    background: var(--navy);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 0 24px 24px;
    padding: 12px;
  }

  .menu.active {
    display: flex;
  }

  .menu a {
    display: block;
    padding: 15px;
  }

  .nav-cta {
    display: none;
  }

  .hero-grid,
  .process-grid,
  .about-contact {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 62px 0 70px;
  }

  .hero-visual {
    min-height: 420px;
  }

  .services-grid,
  .productos-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 190px 190px 190px;
  }

  .gallery-item.large {
    grid-row: span 1;
    grid-column: span 2;
  }
}

/* =========================
   RESPONSIVE TELÉFONO
========================= */
@media (max-width: 768px) {
  .hero {
    padding: 50px 0 70px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero h1 {
    font-size: 42px;
    line-height: 1.05;
    letter-spacing: -1.8px;
  }

  .hero-copy p {
    font-size: 16px;
  }

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

  .hero-actions .btn {
    width: 100%;
  }

  .trust-row {
    justify-content: center;
  }

  .trust-row div {
    width: 100%;
  }

  .hero-visual {
    min-height: 360px;
    margin-top: 20px;
  }

  .visual-card {
    inset: 20px 0 40px 0;
    padding: 18px;
  }

  .hero-logo {
    width: 88%;
    max-width: 340px;
  }

  .floating-card {
    padding: 12px;
    transform: scale(0.85);
  }

  .card-one {
    top: 0;
    right: 5px;
  }

  .card-two {
    bottom: 40px;
    left: 5px;
  }

  .card-three {
    display: none;
  }

  .productos-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .producto {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    padding-bottom: 24px;
  }

  .producto img {
    height: 230px;
    object-fit: contain;
    object-position: center;
    padding: 15px;
  }

  .producto h3 {
    font-size: 24px;
    line-height: 1.15;
  }

  .producto p {
    font-size: 16px;
  }

  .producto a {
    font-size: 18px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 18px;
  }

  .gallery-item,
  .gallery-item.large {
    grid-column: auto;
    grid-row: auto;
    height: 260px;
    border-radius: 22px;
  }

  .gallery-item img,
  .gallery-item.large img {
    object-fit: cover;
    object-position: center;
    padding: 0;
  }

  .gallery-item.large img {
    object-fit: contain;
    background: #050505;
    padding: 10px;
  }
}

/* =========================
   RESPONSIVE TELÉFONO PEQUEÑO
========================= */
@media (max-width: 620px) {

  .brand-text strong,
  .brand-text span {
    font-size: 18px;
  }

  .services-grid,
  .about-list {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 68px 0;
  }

  .footer-grid {
    justify-content: center;
    text-align: center;
  }
}


/* =========================
   AJUSTE EXTRA PARA QUE EL HERO SE VEA BIEN EN CELULAR
========================= */
@media (max-width: 768px) {
  .hero {
    background:
      radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.58), transparent 28%),
      radial-gradient(circle at 25% 35%, rgba(225, 35, 31, 0.48), transparent 38%),
      linear-gradient(160deg, #ffffff 0%, #eeeeee 28%, #1a1a1a 58%, #000000 100%);
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.30), rgba(0, 0, 0, 0.62)),
      radial-gradient(circle at center, transparent 48%, rgba(0, 0, 0, 0.50) 100%);
  }

  .hero h1,
  .hero-copy p,
  .btn-outline,
  .trust-row span {
    text-shadow: none;
  }

  .visual-card {
    background:
      radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.12), transparent 38%),
      linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.82));
  }
}


/* Links de Facebook e Instagram */

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 15px;
}

.social-links a {
  padding: 10px 15px;
  border-radius: 10px;
  font-weight: 700;
  color: white;
  text-decoration: none;
  transition: 0.3s;
}

/* COLORES POR RED */
.social-links a:nth-child(1) {
  background: #1877f2;
  /* Facebook */
}

.social-links a:nth-child(2) {
  background: #e4405f;
  /* Instagram */
}

.social-links a:nth-child(3) {
  background: #000000;
  /* TikTok */
}

/* EFECTO HOVER */
.social-links a:hover {
  transform: translateY(-3px);
  opacity: 0.85;
}




/* Borra las floating card del logo*/
.floating-card {
  display: none;
}


/* =========================
   CATÁLOGO DE PRODUCTOS
========================= */
.catalogo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.catalogo-item {
  background: white;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  text-align: center;
  padding-bottom: 20px;
  transition: 0.3s;
}

.catalogo-item:hover {
  transform: translateY(-6px);
}

.catalogo-item img {
  width: 100%;
  height: 230px;
  object-fit: contain;
  padding: 15px;
  background: white;
}

.catalogo-item h3 {
  margin: 15px 0 10px;
  padding: 0 15px;
}

.catalogo-item p {
  color: gray;
  font-size: 14px;
  padding: 0 15px;
}

.catalogo-item strong {
  display: block;
  margin-bottom: 15px; 
}
/* Modificacion de Boton cotizar */
.catalogo-item a {
  background: #22c55e;
  color: white;
  padding: 10px 18px;
  border-radius: 8px;
  margin-top: 10px;
  display: inline-block;
  font-weight: 800;
  
}

/* Teléfono */
@media (max-width: 768px) {
  .catalogo-grid {
    grid-template-columns: 1fr;
  }

  .catalogo-item {
    max-width: 360px;
    margin: 0 auto;
  }
}
