/* ================= GENERAL ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
  transition: all 0.3s ease;
}

body {
  background: #fff;
  overflow-x: hidden;
}

:root {
  --azul: #C80000;
  --amarillo: #C80000;
  --texto-oscuro: #111;
}

html {
  scroll-behavior: smooth;
}

/* ================= BARRA SUPERIOR ================= */
.fondo-barra {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 45px;
  background: white;
  z-index: 1000;
}

.barra-fija {
  position: fixed;
  top: 0;
  width: 100%;
  background: #111;
  color: #f1f1f1;
  font-size: 14px;
  z-index: 4000;
  padding: 10px 0;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.barra-fija.oculta {
  transform: translateY(-100%);
  opacity: 0;
}

.barra-contenido {
  max-width: 1200px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
}

.barra-contenido .info span {
  margin-right: 20px;
  color: #ccc;
}

.barra-contenido i {
  margin-right: 6px;
  color: var(--amarillo);
}

.telefono a {
  color: white;
  font-weight: 800;
  text-decoration: none;
}

.telefono a:hover {
  color: var(--amarillo);
}

.btn-barra {
  position: absolute;
  right: 0;
  top: 0;
  height: 45px;
  padding: 0 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  color: #ffffff;
  text-decoration: none;
  border: none;
  overflow: hidden;
  background: transparent;
  letter-spacing: 0.5px;
}

.btn-barra::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--amarillo);
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
  z-index: 1;
  transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: left center;
}

.btn-barra span,
.btn-barra i {
  position: relative;
  z-index: 2;
}

.btn-barra:hover::before {
  transform: scaleX(1.08);
}

.btn-barra:hover {
  transform: scaleX(1.1);
}

/* ================= HEADER ================= */
.topbar {
  position: fixed;
  top: 45px;
  width: 100%;
  height: 120px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 50px;
  z-index: 3000;
  transition: all 0.5s ease;
  animation: aparecer 1s ease forwards;
  opacity: 0;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

@keyframes aparecer {
  to { opacity: 1; transform: translateY(0); }
}

.topbar.sube {
  top: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.topbar .logo img {
  width: 250px;
  height: auto;
  object-fit: contain;
}

.topbar nav {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
}

.topbar nav a {
  position: relative;
  text-decoration: none;
  color: var(--texto-oscuro);
  font-weight: 600;
  font-size: 17px;
  padding: 8px 14px;
  transition: all 0.3s ease;
}

.topbar nav a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--amarillo);
  transition: width 0.3s;
}

.topbar nav a:hover::after,
.topbar nav a.active::after {
  width: 100%;
}

.btn-cotiza {
  position: relative;
  background: var(--amarillo);
  color: #ffffff;
  padding: 10px 22px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.btn-cotiza::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: rgba(255, 255, 255, 0.45);
  transform: skewX(-25deg);
  transition: left 0.5s ease;
}

.btn-cotiza:hover::after {
  left: 125%;
}

.btn-cotiza:hover {
  transform: scale(1.05);
}

/* ================= HERO SLIDER VIDEO + IMÁGENES ================= */
.hero {
  margin-top: 165px;
  position: relative;
  height: 70vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}

.slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide.activo {
  opacity: 1;
  z-index: 2;
}

.hero-text {
  position: relative;
  z-index: 3;
  text-align: center;
  color: white;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 900;
  text-transform: uppercase;
  text-shadow: 0 3px 10px rgba(0,0,0,0.5);
  opacity: 0;
  transform: translateY(30px);
  animation: aparecerHero 1.3s ease forwards;
}

.subtitulo {
  font-size: 1.5rem;
  letter-spacing: 5px;
  opacity: 0;
  transform: translateY(30px);
  animation: aparecerHero 1.3s ease forwards 0.5s;
}

@keyframes aparecerHero {
  to { opacity: 1; transform: translateY(0); }
}

.btn-servicios {
  border: 2px solid var(--amarillo);
  background: transparent;
  color: #fff;
  padding: 14px 36px;
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: 35px;
  display: inline-block;
}

.btn-servicios:hover {
  background: var(--amarillo);
  color: #111;
  transform: scale(1.05);
}



/* ================= SECCIONES SERVICIOS, QUIENES SOMOS, BENEFICIOS ================= */
.servicios, .beneficios {
  padding: 120px 60px;
  text-align: center;
}

.servicios h2, .beneficios h2 {
  font-size: 2.3rem;
  font-weight: 900;
  margin-bottom: 70px;
  color: var(--texto-oscuro);
}

.servicios-container, .beneficios-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 35px;
  max-width: 1200px;
  margin: auto;
}

.servicio, .beneficio {
  background: white;
  padding: 40px 25px;
  border-radius: 16px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.servicio:hover, .beneficio:hover {
  transform: scale(1.06);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.servicio i, .beneficio i {
  font-size: 40px;
  color: var(--amarillo);
  margin-bottom: 20px;
  transition: color 0.3s ease;
}

.servicio:hover i, .beneficio:hover i {
  color: var(--texto-oscuro);
}



/* ================= CONTACTO, MAPA, WHATSAPP ================= */
.contacto {
  position: relative;
  background: url("img/contact.jpeg") no-repeat center center/cover;
  color: white;
  padding: 100px 20px;
  text-align: center;
}

.contacto .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}

.contacto-contenido {
  position: relative;
  max-width: 700px;
  margin: auto;
  z-index: 2;
}

.contacto h2 { font-size: 2.2rem; margin-bottom: 20px; font-weight: 800; }
.contacto p { font-size: 1.1rem; margin: 8px 0; }

.mapa {
  margin-top: 25px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.btn-whatsapp {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 9999;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-whatsapp:hover {
  background-color: #20b358;
  transform: scale(1.1);
}

/* ================= FOOTER ================= */
.footer {
  background: #1a1a1a;
  padding: 15px 0;
  text-align: center;
  color: #cfcfcf;
  font-size: 14px;
  border-top: 1px solid #333;
}

.footer p {
  margin: 0;
  letter-spacing: 0.3px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .hero { height: 55vh; margin-top: 120px; }
  .hero h1 { font-size: 1.9rem; }
  .subtitulo { font-size: 1rem; }
  .servicios, .beneficios { padding: 60px 20px; }
  .quienes-texto { padding: 50px 20px; text-align: center; }
  .quienes-fondo { min-height: 300px; }
}

@media (max-width: 768px) {
  .barra-contenido { flex-wrap: wrap; gap: 8px; font-size: 12px; text-align: center; }
  .btn-barra { display: none; }
  .topbar { height: 80px; padding: 0 15px; }
  .topbar .logo img { width: 120px; }
  .topbar nav { display: none; }
  .btn-cotiza { padding: 8px 12px; font-size: 14px; }
}

@media (max-width: 480px) {
  .topbar { height: 70px; }
  .topbar .logo img { width: 110px; }

  .hero { height: 50vh !important; margin-top: 100px !important; }

  .servicios, .beneficios { padding: 40px 15px; }

  .hero h1 { font-size: 1.4rem; }
  .subtitulo { font-size: 0.8rem; }
}

/* ===== BARRITA DE MENÚ BLANCA ===== */
/* Barra blanca reacomodada */
.barra-menu {
  width: 100%;
  background: white;
  padding: 15px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  position: sticky;
  top: 120px;  /* SIEMPRE igual que la altura de tu header */
  z-index: 3000;
}




.barra-menu nav {
  display: flex;
  justify-content: center;
  gap: 70px;
}

.barra-menu nav a {
  text-decoration: none;
  color: #111;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.5px;
  transition: 0.3s;
}

.barra-menu nav a:hover {
  color: #C80000;
}




 .menu-bar {
    width: 50%;
    background: #fff;       
    padding: 10px 0;        
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2); 
    z-index: 9;
}

.menu-bar nav a {
    margin: 0 20px;
    color: #000;             
    font-weight: 600;
    text-decoration: none;
}

.menu-bar nav a:hover {
    color: var(--azul);       
}

.redes a {
  color: white !important;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}


.redes i {
  color: white;
  font-size: 20px;
}

.titulo-deco {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: -60px;
  margin-bottom: 40px;
}

.titulo-deco::before {
  content: "····";
  letter-spacing: 4px;
  font-weight: 900;
  color: var(--azul); 
  font-size: 18px;
  margin-right: 6px;
}

.titulo-deco::after {
  content: "";
  width: 80px;
  height: 3px;
  background: var(--azul);
  border-radius: 5px;
}




/* ================= QUIENES SOMOS ================= */
.quienes {
  display: flex;
  flex-wrap: wrap;
  min-height: 600px;
  overflow: hidden;
}

/* IZQUIERDA – PARALLAX */
.quienes-texto {
  flex: 1 1 50%;
  min-height: 600px;
  padding: 50px;
  color: white;
  position: relative;

  background-image: url("paralax.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.quienes-texto::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.70); /* MÁS OSCURO */
  z-index: 0;
}

.quienes-texto * {
  position: relative;
  z-index: 2;
}

.quienes-texto h2 {
  font-size: 2.4rem;
  font-weight: 900;
  margin-bottom: 20px;
}

.quienes-texto p {
  font-size: 1.15rem;
  line-height: 1.8;
}

/* DERECHA – VIDEO */
.quienes-fondo {
  flex: 1 1 50%;
  min-height: 600px;
  position: relative;
  overflow: hidden;
}

.quienes-fondo video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* OSCURECER VIDEO */
.quienes-fondo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.20); /* oscurecimiento */
  z-index: 1;
}

/* -------------------- RESPONSIVE -------------------- */
@media (max-width: 900px) {
  .quienes {
    flex-direction: column;
  }

  .quienes-texto {
    flex: 1 1 100%;
    background-attachment: scroll;
    padding: 35px 20px;
  }

  .quienes-fondo {
    flex: 1 1 100%;
    min-height: 350px;
  }

  .quienes-texto h2 {
    font-size: 1.9rem;
    text-align: center;
  }

  .quienes-texto p {
    text-align: justify;
    font-size: 1rem;
  }
}


/* OSCURECER HEADER (SLIDER) */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.50); /* AQUÍ CAMBIAS LA INTENSIDAD */
  z-index: 2; /* encima de las imágenes */
}

@media (max-width: 768px) {
  .hero {
    margin-top: 100px !important;
    height: 55vh !important;
  }

  .hero h1 { 
    font-size: 1.7rem; 
  }

  .subtitulo { 
    font-size: 0.9rem; 
    letter-spacing: 3px; 
  }
}

