/* ====== BASE ====== */
:root {
  --accent: #4a86ff;
  --bg1: #071426;
  --bg2: #0b1c33;
  --text: #e8eef5;
  --muted: #a8b2c2;
}

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg1), var(--bg2));
  line-height: 1.6;
}

h2 { text-align: center; font-size: 2rem; margin-bottom: 20px; }
h3 { text-align: center; color: var(--accent); }
p { color: var(--muted); text-align: center; }

/* ====== HERO ====== */
.hero {
  position: relative;
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(180deg, #0f2b48 0%, #071826 100%);
  color: white;
}
.hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.3); }
.hero-content { position: relative; z-index: 2; }
.site-logo { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; box-shadow: 0 12px 40px rgba(0,0,0,0.5); }
.company { font-size: clamp(36px,6vw,64px); font-weight: 800; margin: 10px 0; }
.subtitle { font-size: 1.1rem; color: var(--muted); }
.meta { font-size: 0.95rem; opacity: 0.85; }
.cta { display: inline-block; margin-top: 16px; background: var(--accent); color: white; padding: 12px 24px; border-radius: 10px; text-decoration: none; }

/* ====== NAV ====== */
.top-nav {
  display: flex; justify-content: center; gap: 18px; margin-bottom: 14px;
}
.top-nav a {
  color: white; text-decoration: none; font-weight: 600; padding: 6px 10px; border-radius: 8px;
  transition: background .2s ease;
}
.top-nav a:hover { background: rgba(255,255,255,0.1); }

/* ====== CONTAINERS ====== */
.container { max-width: 1100px; margin: auto; padding: 30px 20px; }
.card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 40px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* ====== SERVICIOS ====== */
.servicios p { text-align: center; line-height: 1.8; }

/* ====== GALERÍA ====== */
.gallery-outside {
  background: none;
  border: none;
  box-shadow: none;
  margin-top: 40px;
  margin-bottom: 60px;
}

.gallery-flex {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
}

.gallery-block {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 20px;
}

.gallery-block img {
  width: 250px;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.gallery-video video {
  width: 520px;
  height: 380px;
  border-radius: 12px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.4);
}

/* ====== CONTACTOS ====== */
.contacts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  text-align: center;
}

/* ====== FORM ====== */
.contact-form {
  display: flex;
  flex-direction: column;
  max-width: 600px;
  margin: auto;
  gap: 10px;
  text-align: left;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: none;
}
.btn-enviar {
  background: linear-gradient(90deg, #4a86ff, #ff9c6b);
  color: white;
  border: none;
  padding: 10px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
}

/* ====== LOGOS ====== */
.logo-slider { overflow: hidden; margin-top: 20px; }
.logos-track {
  display: flex;
  width: max-content;
  gap: 60px;
  align-items: center;
}
.logos-track img {
  height: 60px;
  width: auto;
  filter: grayscale(100%) brightness(90%);
  transition: filter .3s ease;
}
.logos-track img:hover { filter: grayscale(0%) brightness(110%); }

/* ====== FOOTER ====== */
.site-footer {
  text-align: center;
  padding: 24px;
  font-size: 0.95rem;
  color: var(--muted);
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* ====== RESPONSIVE ====== */
@media(max-width: 900px) {
  .gallery-flex { flex-direction: column; }
  .gallery-block img { width: 45vw; height: auto; }
  .gallery-video video { width: 100%; height: auto; }
}
/* === CONTACTOS 2x2 === */
.contacts.grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.contacts.grid-2x2 .contact-item {
  background: rgba(255,255,255,0.02);
  padding: 18px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
  transition: transform .18s ease;
}
.contacts.grid-2x2 .contact-item:hover { transform: translateY(-4px); }

@media (max-width: 800px) {
  .contacts.grid-2x2 { grid-template-columns: 1fr; }
}
/* === FORMULARIO CORPORATIVO === */
#mensaje {
  background: linear-gradient(180deg, rgba(9,20,34,0.9), rgba(6,14,22,0.9));
  border: 1px solid rgba(255,255,255,0.04);
  box-shadow: 0 12px 45px rgba(0,0,0,0.45);
}
#mensaje h2 { color: var(--text); margin-bottom: 18px; }

#mensaje .contact-form {
  max-width: 720px;
  margin: 0 auto;
  gap: 12px;
}
#mensaje .contact-form label {
  display:block;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 6px;
}
#mensaje .contact-form input,
#mensaje .contact-form textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--text);
  border-radius: 10px;
  padding: 12px;
  width: 100%;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
  transition: border-color .18s ease, background .18s ease;
}
#mensaje .contact-form input:focus,
#mensaje .contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255,255,255,0.07);
}
#mensaje .contact-form textarea { min-height: 140px; resize: vertical; }

#mensaje .btn-enviar {
  background: linear-gradient(90deg, #3d6cff, #ff7b57);
  border-radius: 999px;
  padding: 12px;
  border: none;
  width: 100%;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
#mensaje .btn-enviar:hover { transform: translateY(-3px); }
/* === STRIP DE LOGOS A ANCHO COMPLETO === */
.logo-strip {
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  position: relative;
  margin: 28px 0 60px 0;
  background: transparent;
  border-radius: 0;
}
.logo-strip .logo-slider { overflow: hidden; }
.logo-strip .logos-track {
  display: flex;
  gap: 70px;
  align-items: center;
  width: max-content; /* el JS usará scrollWidth */
  padding: 12px 40px;
  will-change: transform;
}
.logo-strip .logos-track img {
  height: 68px;
  filter: grayscale(100%) brightness(90%);
  transition: filter .25s ease, transform .18s ease;
}
.logo-strip .logos-track img:hover { filter: grayscale(0%) brightness(110%); transform: translateY(-3px); }

@media (max-width: 800px) {
  .logo-strip .logos-track img { height: 48px; gap: 28px; }
  .logo-strip { margin: 18px 0 40px 0; }
}
/* === TITULO CLIENTES FUERA DE PLANTILLA === */
.clientes-full {
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  position: relative;
  background: none;
  border: none;
  box-shadow: none;
  padding: 20px 0 10px 0;
}
.clientes-full h2 {
  font-size: 2.3rem;
  color: var(--text);
  text-align: center;
  letter-spacing: 1px;
}

/* === LOGOS MÁS GRANDES === */
.logo-strip .logos-track img {
  height: 90px; /* antes 68px */
}
@media (max-width: 800px) {
  .logo-strip .logos-track img { height: 60px; }
}
/* === TITULO CLIENTES LIMPIO === */
.clientes-full {
  width: 100%;
  background: none;
  border: none;
  box-shadow: none;
  text-align: center;
  margin: 50px 0 20px 0;
}
.clientes-full h2 {
  font-size: 2.5rem;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* === CONTACTOS (TEXTOS MÁS GRANDES) === */
.contacts.grid-2x2 .contact-item {
  padding: 26px;
}
.contacts.grid-2x2 .contact-item h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.contacts.grid-2x2 .contact-item p {
  font-size: 1rem;
  line-height: 1.6;
}
.contacts.grid-2x2 .contact-item a {
  color: #4a86ff;
  font-size: 1rem;
}

/* === FORMULARIO CORPORATIVO (TEXTOS MÁS GRANDES) === */
#mensaje .contact-form label {
  font-size: 1rem;
}
#mensaje .contact-form input,
#mensaje .contact-form textarea {
  font-size: 1rem;
  padding: 14px;
}
#mensaje .btn-enviar {
  font-size: 1.05rem;
  padding: 14px;
}

/* === LOGOS MÁS GRANDES (manteniendo proporción) === */
.logo-strip .logos-track img {
  height: 95px;
}
@media (max-width: 800px) {
  .logo-strip .logos-track img { height: 65px; }
}


/* === HERO SLIDER DE FONDO === */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-slider .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-slider .slide.active {
  opacity: 1;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.hero-overlay,
.hero-content,
.top-nav,
.site-logo {
  position: relative;
  z-index: 2;
}
.gallery-section {
  text-align: center;
  padding: 60px 20px;
  background: #06101a;
  color: white;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  justify-items: center;
  align-items: center;
  max-width: 1200px;
  margin: 40px auto;
}

.gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

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

.gallery-video video {
  width: 100%;
  max-width: 500px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

