:root {
  --azul: #153e54;
  --azul-suave: #1c4a63;
  --naranja: #eb8531;
  --naranja-suave: #f39a50;
  --texto: #1e2d35;
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
  --trans: all 0.35s ease;
}

/* === BASE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Poppins", sans-serif;
  color: var(--texto);
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

/* === HEADER (LOGO ESTILO METRO) === */
.site-header {
  background: rgba(21, 62, 84, 0.96);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 48px;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
}

/* Logo + texto */
.brand-link {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  text-decoration: none;
}

/* === LOGO CIRCULAR AZUL (ESTILO METRO) === */
.brand img {
  width: 80px;
  height: 80px;
  border-radius: 50%;            /* círculo perfecto */
  object-fit: contain;           /* evita recortes */
  background-color: var(--azul); /* fondo azul marino */
  padding: 10px;                 /* margen interno */
  border: 3px solid #fff;        /* borde blanco */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand img:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

/* Texto */
.brand span {
  font-weight: 700;
  font-size: 1.6rem;
  color: #fff;
  letter-spacing: 0.5px;
  position: relative;
  top: 3px;
}

/* === NAVEGACIÓN MEJORADA (MÁS LEGIBLE Y MODERNA) === */
nav {
  display: flex;
  align-items: center;
}

nav a {
  color: rgba(255, 255, 255, 0.92);  /* texto más claro */
  margin-left: 30px;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.3px;
  position: relative;
  transition: color 0.3s ease, transform 0.3s ease;
}

/* efecto hover con subrayado animado */
nav a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--naranja);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

nav a:hover {
  color: var(--naranja);
  transform: translateY(-1px);
}

/* estado activo */
nav a.active {
  color: var(--naranja);
  font-weight: 700;
}


/* === HERO === */
.hero {
  background: radial-gradient(circle at 30% 20%, var(--azul-suave), var(--azul));
  color: #fff;
  text-align: center;
  padding: 130px 20px 100px;
  position: relative;
  overflow: hidden;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}
.hero h1 span {
  color: var(--naranja);
}
.hero p {
  color: #e9eef3;
  font-size: 18px;
  margin-bottom: 30px;
}

/* === BOTONES === */
.btn,
.btn-outline {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: var(--trans);
  text-align: center;
  min-width: 160px;
}
.btn {
  background: linear-gradient(90deg, var(--naranja), var(--naranja-suave));
  color: #fff;
  box-shadow: 0 6px 16px rgba(235, 133, 49, 0.3);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(235, 133, 49, 0.4);
}
.btn-outline {
  border: 2px solid var(--naranja);
  color: var(--naranja);
}
.btn-outline:hover {
  background: var(--naranja);
  color: #fff;
}

/* === ANIMACIÓN SCROLL === */
.section,
.product,
.badge-card,
.step,
.opinion-card {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s ease, transform 0.9s ease;
  will-change: opacity, transform;
}
.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* === SECCIONES === */
.section {
  text-align: center;
  padding: 90px 20px;
  background: #fff;
}
.section h2 {
  color: var(--azul);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}
.section .lead {
  color: #6c7b86;
  margin-bottom: 50px;
  font-size: 15px;
}

/* === FEATURES === */
.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
}
.badge-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px 28px;
  box-shadow: var(--shadow);
  transition: var(--trans);
}
.badge-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}
.badge-card .icon {
  font-size: 28px;
}

/* === PRODUCTOS === */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}
.product {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--trans);
}
.product:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.1);
}
.product img {
  width: 100%;
  height: auto;
  display: block;
}
.product .body {
  padding: 22px;
}
.product h3 {
  color: var(--azul);
  margin-bottom: 6px;
}
.product p {
  color: #6c7b86;
  margin-bottom: 16px;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* === PASOS === */
.steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  margin-top: 40px;
}
.step {
  background: #fff;
  border-radius: 16px;
  padding: 28px 22px;
  width: 240px;
  box-shadow: var(--shadow);
  transition: var(--trans);
  text-align: center;
}
.step:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
}
.step .num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--naranja);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  margin: 0 auto 10px;
}

/* === OPINIONES === */
.opiniones-slider {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}
.opinion-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 22px;
  transition: var(--trans);
}
.opinion-card:hover {
  transform: translateY(-4px);
}
.opinion-card .stars {
  color: #ffd700;
  margin-bottom: 8px;
}
.opinion-card .cliente {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
.opinion-card .cliente img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

/* === ENVÍOS === */
.envio {
  background: radial-gradient(circle at 40% 70%, rgba(235, 133, 49, 0.06), #ffffff 80%);
  padding: 100px 20px;
  text-align: center;
  position: relative;
}
.envio h2 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--azul);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 14px;
}
.envio p {
  color: #5c6b75;
  margin-bottom: 34px;
}
.envio-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}
.envio-icons div {
  background: #fff;
  border-radius: 20px;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--azul);
  box-shadow: var(--shadow);
  transition: var(--trans);
}
.envio-icons div:hover {
  transform: translateY(-6px);
  color: var(--naranja);
}
.envio-icons span {
  font-size: 1.4rem;
}

/* === FOOTER === */
footer {
  text-align: center;
  background: var(--azul);
  color: #fff;
  padding: 50px 20px;
  font-size: 14px;
}
footer .social {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 16px;
}
footer a {
  color: #fff;
}
footer a:hover {
  color: var(--naranja);
}

/* === WHATSAPP FLOAT === */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: var(--naranja);
  color: #fff;
  font-size: 22px;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(235, 133, 49, 0.3);
  transition: var(--trans);
  z-index: 200;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 14px 32px rgba(235, 133, 49, 0.4);
}
/* === NOSOTROS REFINADO === */
.about-hero-pro {
  background: linear-gradient(135deg, var(--azul-suave), var(--azul));
  color: #fff;
  text-align: center;
  padding: 130px 20px 100px;
}
.about-hero-pro h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.about-hero-pro h1 span {
  color: var(--naranja);
}
.about-hero-pro p {
  max-width: 780px;
  margin: 0 auto;
  font-size: 18px;
  color: #eaf1f5;
  line-height: 1.7;
}

/* GRID PRINCIPAL */
.about-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 60px;
  padding: 100px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.about-image img {
  width: 100%;
  max-width: 480px;
  border-radius: 22px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s ease;
}
.about-image img:hover {
  transform: scale(1.03);
}
.about-text {
  flex: 1 1 480px;
  color: var(--texto);
}
.about-text h2 {
  color: var(--azul);
  margin-bottom: 8px;
  font-size: 1.4rem;
  font-weight: 700;
}
.about-text p {
  margin-bottom: 22px;
  color: #4a5b64;
  line-height: 1.7;
}
.about-text ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
}
.about-text li {
  padding: 6px 0;
  font-weight: 500;
}

/* FRASE FINAL */
.about-quote {
  background: var(--azul);
  color: #fff;
  text-align: center;
  padding: 90px 20px;
}
.about-quote blockquote {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--naranja-suave);
  margin-bottom: 12px;
}
.about-quote p {
  color: #e1e8ed;
  font-size: 15px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .about-grid {
    flex-direction: column;
    text-align: center;
  }
  .about-text {
    max-width: 90%;
  }
}

/* === FOOTER === */
footer {
  text-align: center;
  background: var(--azul);
  color: #fff;
  padding: 50px 20px;
  font-size: 14px;
}

footer .social {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: 22px;
  align-items: center;
}

footer .social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.25s ease;
}

footer .social a img {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
  transition: transform 0.25s ease, filter 0.3s ease;
}

/* Efecto hover: color y leve subida */
footer .social a:hover {
  color: var(--naranja);
  transform: translateY(-2px);
}

footer .social a:hover img {
  transform: scale(1.15);
  filter: brightness(1) saturate(1.8);
}

.visitas {
  margin-top: 18px;
  color: #fff;
  font-size: 0.9rem;
  opacity: 0.85;
  text-align: center;
  transition: opacity 0.3s ease;
}
.visitas:hover {
  opacity: 1;
}

/* === NAV RESPONSIVE FIX === */
.site-header nav {
  display: flex;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none; /* Oculta la barra en Firefox */
}

.site-header nav::-webkit-scrollbar {
  display: none; /* Oculta la barra en Chrome, Safari, etc. */
}

.site-header nav a {
  flex: 0 0 auto;
  padding: 10px 16px;
}

@media (max-width: 768px) {
  .site-header nav {
    -webkit-overflow-scrolling: touch; /* Suaviza el desplazamiento en móvil */
  }
}
/* === MENÚ HAMBURGER RESPONSIVE (no altera nada existente) === */

/* Botón hamburguesa oculto en escritorio */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

/* Cuando se abre, rota suavemente */
.menu-toggle.open {
  transform: rotate(90deg);
}

/* Adaptación para pantallas pequeñas */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  /* Oculta el nav original hasta abrir */
  .site-header nav {
    display: none;
    flex-direction: column;
    background: rgba(21, 62, 84, 0.98);
    position: absolute;
    top: 80px;
    right: 0;
    width: 100%;
    text-align: center;
    padding: 20px 0;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  /* Cuando el nav tenga clase "show", se muestra */
  .site-header nav.show {
    display: flex;
    animation: fadeIn 0.25s ease;
  }

  .site-header nav a {
    margin: 10px 0;
    font-size: 1.2rem;
  }

  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

/* === VIDEOS DESTACADOS SILMAUR === */
.videos {
  background: #f8f9fa;
  text-align: center;
  padding: 100px 20px;
}

.videos h2 {
  color: var(--azul);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.videos .lead {
  color: #6c7b86;
  margin-bottom: 50px;
  font-size: 1rem;
  line-height: 1.6;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.video-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--trans);
}

.video-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.1);
}

.video-card video {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: 18px;
  display: block;
  background-color: transparent; /* ✅ sin color de fondo */
  background: none; /* evita overlays */
}
.video-card video::-webkit-media-controls-panel {
  background: rgba(255, 255, 255, 0.08); /* controles casi invisibles */
  backdrop-filter: blur(6px);
}


/* Para que los posters se vean correctamente */
.video-card video[poster] {
  background-size: cover;
  background-position: center;
}


@media (max-width: 768px) {
  .videos {
    padding: 70px 16px;
  }
  .video-card video {
    height: 340px;
  }
}

/* === FIX ESPACIADO BOTONES HERO (Responsive) === */
.hero-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .hero-buttons {
    flex-direction: column;
    gap: 14px;
  }

  .hero-buttons .btn,
  .hero-buttons .btn-outline {
    width: 90%;
    max-width: 280px;
  }
}
