/* ================= RESET & BASE ================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  background-color: #000;
  color: #fff;
  line-height: 1.6;
}

/* ================= HEADER / NAV ================= */

header {
  background-color: #020202;
  padding: 12px 0;
}

nav ul {
  list-style: none;
  text-align: center;
}

nav ul li {
  display: inline-block;
  margin: 0 15px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
}

/* ================= SLIDER ================= */

.slider-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.slider {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.8s ease-in-out;
}

.slide {
  min-width: 100%;
  height: 100vh;
  flex-shrink: 0;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ================= HERO TITLE ================= */
/* ================= HERO PREMIUM ================= */

.hero {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}

/* Overlay oscuro elegante */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(0,0,0,0.55),
    rgba(0,0,0,0.55)
  );
  z-index: -1;
}

.hero-content {
  max-width: 900px;
  padding: 20px;
  color: #fff;
  animation: heroFade 1.2s ease-out forwards;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  font-weight: 800;
  margin-bottom: 15px;
  text-shadow: 0 6px 18px rgba(0,0,0,0.7);
}

.hero p {
  font-size: clamp(1.1rem, 2.6vw, 1.5rem);
  margin-bottom: 30px;
  color: #e5e5e5;
  text-shadow: 0 3px 10px rgba(0,0,0,0.6);
}

/* BOTONES */
.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  pointer-events: auto;
}

.btn-primary {
  background: #0b5ed7;
  color: #fff;
  padding: 14px 30px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: #094db4;
  transform: translateY(-2px);
}

.btn-secondary {
  border: 2px solid #fff;
  color: #fff;
  padding: 12px 28px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: #fff;
  color: #000;
}

/* ANIMACIÓN */
@keyframes heroFade {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
}

/* ================= HERO SUPERPUESTO ================= */
.hero {
  animation: fadeHero 1.2s ease-out forwards;
}

@keyframes fadeHero {
  from {
    opacity: 0;
    transform: translate(-50%, -55%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.hero {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  text-align: center;
  color: #fff;
  width: 90%;
  pointer-events: none; /* no bloquea el slider */
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

.hero p {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 400;
  text-shadow: 0 3px 8px rgba(0,0,0,0.6);
}




.title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10;
  color: #fff;
  max-width: 90%;
}

.title h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
}

.title h5 {
  margin-top: 10px;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 400;
}

/* ================= SECCIONES GENERALES ================= */

section {
  padding: 80px 20px;
}

/* ================= REVEAL ANIMATION ================= */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ================= PRODUCTOS ================= */

.productos {
  background-color: #3c3e42;
  text-align: center;
}

.section-title {
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #c7c4ff;
  margin-bottom: 3rem;
}

.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: auto;
}

.producto-card {
  background: #fff;
  color: #333;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.producto-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.producto-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.producto-card h3 {
  padding: 1rem;
  font-size: 1.3rem;
}

.producto-card ul {
  list-style: none;
  padding: 0 1.2rem 1.5rem;
}

.producto-card ul li {
  padding: 0.4rem 0;
  font-size: 0.95rem;
}

.producto-card.destacado {
  border: 2px solid #4f46e5;
}

/* ================= NOSOTROS ================= */

.nosotros {
  background: #f8f9fb;
  color: #222;
}

.nosotros-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.nosotros-texto h2 {
  font-size: 2.4rem;
  margin-bottom: 20px;
  color: #0b2a4a;
}

.nosotros-texto p {
  font-size: 1rem;
  color: #444;
  margin-bottom: 15px;
}

.nosotros-valores {
  margin-top: 30px;
  display: grid;
  gap: 20px;
}

.valor h4 {
  color: #0b5ed7;
}

.nosotros-imagenes {
  display: grid;
  gap: 20px;
}

.nosotros-imagenes img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  object-fit: cover;
}

/* ================= CTA ================= */

.cta {
  background: linear-gradient(135deg, #0b5ed7, #1e90ff);
  color: #fff;
  text-align: center;
  padding: 80px 20px;
}

.btn-primary {
  display: inline-block;
  margin-top: 20px;
  background: #fff;
  color: #0b5ed7;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

/* ================= CONTACTO ================= */

.contacto {
  background: #000;
  color: #fff;
  text-align: center;
}

#contactForm {
  max-width: 500px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

#contactForm input,
#contactForm textarea {
  padding: 12px;
  border-radius: 5px;
  border: none;
}

#contactForm button {
  background: #1e90ff;
  color: #fff;
  padding: 12px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#contactForm button:hover {
  background: #187bcd;
}

#estado {
  margin-top: 15px;
}

/* ================= CLIENTES ================= */

.clientes {
  background: #111;
  text-align: center;
}

.clientes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 30px;
  max-width: 900px;
  margin: 40px auto;
}

.clientes-grid img {
  max-width: 100%;
  opacity: 0.8;
  filter: grayscale(10%);
}

/* ================= FOOTER ================= */

.footer {
  background: #000;
  text-align: center;
  padding: 50px 20px;
}

.footer-thumbnails {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-thumbnails img {
  width: 80px;
  height: 50px;
  object-fit: cover;
  opacity: 0.7;
  border-radius: 5px;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 900px) {
  .nosotros-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .title h1 {
    font-size: 2rem;
  }
}
