
:root {
  --azul: #0b1930;
  --azul2: #142b4b;
  --naranja: #f47721;
  --blanco: #fff;
  --fondo: #f3f5f8;
  --gris: #667085;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--fondo);
  color: #1e293b;
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
}

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

/* BARRA SUPERIOR */

.topbar {
  background: #08101d;
  color: #cad3df;
  font-size: 12px;
  padding: 9px 0;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

/* ENCABEZADO */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--azul);
  color: white;
  box-shadow: 0 3px 16px #0002;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-size: 29px;
  font-weight: 900;
  letter-spacing: -1px;
}

.logo span {
  color: var(--naranja);
}

.logo-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 8px;
}

.logo-words {
  font-size: 26px;
  line-height: 1;
}

.logo-words small {
  display: block;
  margin-top: 5px;
  line-height: 1.25;
  font-size: 9px;
  letter-spacing: 2px;
  color: #cbd5e1;
}

nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

nav a {
  font-size: 13px;
  font-weight: 700;
}

nav a:hover {
  color: var(--naranja);
}

.menu {
  display: none;
  border: 1px solid #ffffff50;
  background: transparent;
  color: white;
  border-radius: 8px;
  padding: 9px 12px;
}

/* BOTONES */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 21px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: bold;
  transition: .2s;
  border: 0;
}

.btn-orange {
  color: white;
  background: var(--naranja);
}

.btn-orange:hover {
  background: #d85d10;
}

.btn-outline {
  border: 1px solid #ffffff80;
  color: white;
  background: transparent;
}

.btn-outline:hover {
  background: #ffffff20;
}

.btn-green {
  color: white;
  background: #189d58;
}

/* PORTADA ORIGINAL CON VIDEO DE FONDO */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(120deg, #07101f, #183554);
  color: white;
  padding: 85px 0;
}

/* VIDEO DETRÁS DEL TEXTO Y LA FOTO */

.video-fondo-focsa {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: -2;
  pointer-events: none;
}

/* CAPA OSCURA PARA LEER EL TEXTO */

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(7, 16, 31, .90),
    rgba(11, 25, 48, .76) 55%,
    rgba(11, 25, 48, .46)
  );
}

/* CONSERVAR DISTRIBUCIÓN ORIGINAL */

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

.hero-content {
  position: relative;
}

.eyebrow {
  color: var(--naranja);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 2px;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 65px);
  line-height: 1.04;
  margin: 18px 0;
  letter-spacing: -2px;
}

.hero h1 em {
  color: var(--naranja);
  font-style: normal;
}

.hero p {
  color: #d2dce8;
  line-height: 1.8;
  max-width: 510px;
}

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

.hero-image {
  background: #ffffff10;
  border: 1px solid #ffffff20;
  padding: 13px;
  border-radius: 20px;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

.hero-caption {
  color: #dce6f2;
  font-size: 12px;
  padding: 12px 5px 3px;
}

.stats {
  display: flex;
  gap: 35px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.stats strong {
  color: var(--naranja);
  font-size: 23px;
}

.stats span {
  display: block;
  font-size: 12px;
  color: #c5d1df;
}

/* SECCIONES */

section {
  scroll-margin-top: 100px;
}

.section {
  padding: 75px 0;
}

.section-title {
  margin-bottom: 30px;
}

.section-title h2 {
  margin: 10px 0;
  font-size: clamp(28px, 4vw, 39px);
  color: var(--azul);
}

.section-title p {
  color: var(--gris);
  line-height: 1.7;
}

/* MARCAS */

.brand-strip {
  background: #fff;
  padding: 23px 0;
}

.brands {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 24px;
  font-weight: 900;
  color: #42526b;
  font-size: 14px;
}

/* CATÁLOGO */

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.search {
  flex: 1;
  min-width: 220px;
  padding: 15px;
  border: 1px solid #d4dbe6;
  border-radius: 10px;
  outline-color: var(--naranja);
}

.filters {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.filter {
  padding: 10px 14px;
  border: 1px solid #d9e0e8;
  border-radius: 25px;
  background: white;
  color: #38465c;
  font-size: 12px;
  font-weight: 700;
}

.filter.active {
  background: var(--azul);
  color: white;
  border-color: var(--azul);
}

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

.product-card {
  background: white;
  border: 1px solid #e4e9f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 5px 18px #1523380b;
  transition: transform .2s ease, box-shadow .2s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px #15233820;
}

.product-image {
  position: relative;
  height: 210px;
  background: #e9edf3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
}

.placeholder {
  font-size: 52px;
  color: #9caabd;
  font-weight: bold;
}

.product-info {
  padding: 23px;
}

.product-tag {
  color: var(--naranja);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
}

.product-info h3 {
  color: var(--azul);
  margin: 12px 0;
  font-size: 20px;
}

.product-info p {
  color: var(--gris);
  font-size: 13px;
  line-height: 1.7;
  min-height: 45px;
}

.product-info .btn {
  width: 100%;
  margin-top: 15px;
}

/* NOSOTROS */

.about {
  background: var(--azul);
  color: white;
}

.about .section-title h2 {
  color: white;
}

.about p {
  line-height: 1.85;
  color: #d1dbe8;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.feature {
  padding: 23px;
  background: #ffffff0d;
  border: 1px solid #ffffff20;
  border-radius: 12px;
}

.feature strong {
  display: block;
  color: var(--naranja);
  margin-bottom: 12px;
}

/* FACHADA EN LOCALES */

.fachada {
  background: white;
  border: 1px solid #e1e6ee;
  border-radius: 17px;
  overflow: hidden;
  margin-bottom: 30px;
}

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

.fachada-caption {
  padding: 17px 22px;
  font-size: 13px;
  color: #526177;
}

/* DIRECCIONES */

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

.location {
  background: white;
  border: 1px solid #e4e9f0;
  border-radius: 14px;
  padding: 25px;
}

.location h3 {
  color: var(--azul);
  margin-top: 0;
}

.location p {
  color: var(--gris);
  line-height: 1.7;
  font-size: 14px;
}

.location a {
  display: inline-block;
  color: #1464aa;
  font-weight: bold;
  font-size: 13px;
  margin-top: 12px;
}

/* CONTACTO */

.contact {
  background: linear-gradient(110deg, #0b1930, #203d62);
  color: white;
  text-align: center;
}

.contact h2 {
  font-size: 37px;
}

.contact p {
  color: #ced8e5;
  line-height: 1.8;
}

.contact-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 25px;
}

/* PIE DE PÁGINA */

footer {
  background: #07101d;
  color: #b2c0d3;
  padding: 35px 0;
  text-align: center;
  font-size: 12px;
}

/* WHATSAPP FLOTANTE */

.float-wa {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 200;
  background: #20b967;
  color: white;
  border-radius: 50px;
  padding: 15px 19px;
  box-shadow: 0 8px 24px #0004;
  font-weight: 800;
  font-size: 13px;
}

/* ACCESIBILIDAD */

.skip-link {
  position: absolute;
  top: -80px;
  left: 12px;
  z-index: 999;
  padding: 12px;
  background: white;
  color: #07101d;
}

.skip-link:focus {
  top: 10px;
}

:focus-visible {
  outline: 3px solid #f47721;
  outline-offset: 3px;
}

/* CELULARES Y TABLETAS */

@media (max-width: 800px) {

  .menu {
    display: block;
  }

  nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 78px;
    background: var(--azul);
    padding: 20px 5%;
    flex-direction: column;
    align-items: stretch;
  }

  nav.open {
    display: flex;
  }

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

  .hero {
    padding: 55px 0;
  }

  .products {
    grid-template-columns: repeat(2, 1fr);
  }

  .locations,
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {

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

  .hero h1 {
    letter-spacing: -1px;
  }

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

  .section {
    padding: 55px 0;
  }

  .topbar .container {
    flex-direction: column;
  }

  .float-wa {
    bottom: 15px;
    right: 15px;
  }
}

@media (max-width: 400px) {

  .logo-words {
    font-size: 21px;
  }

  .logo-img {
    width: 44px;
    height: 44px;
  }
}

/* REDUCCIÓN DE MOVIMIENTO */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }

  .product-card:hover {
    transform: none;
  }

  .video-fondo-focsa {
    display: none;
  }

  .hero {
    background:
      linear-gradient(
        90deg,
        rgba(7,16,31,.92),
        rgba(11,25,48,.70)
      ),
      url("assets/fachada_focsa.png") center / cover no-repeat;
  }
}
