/* =========================================================
   VARIABLES GLOBALES
========================================================= */
:root {
  --rojo: #e40000;
  --rojo-oscuro: #c30000;
  --negro: #111;
  --gris: #666;
  --light: #f2f2f2;
  --font: "Poppins", sans-serif;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font);
  background: #fff;
  color: var(--negro);
  overflow-x: hidden;
}

/* ============================================
   FRANJA ROJA SUPERIOR
============================================ */

.franja-superior {
  width: 100%;
  height: 20px;
  background-color: #E30613;
  position: fixed;
  display: block;
  z-index: 1200;
}

/* ============================================
   CABECERA INBANDA – LOGO + MENÚ 
============================================ */

.header-inbanda {
  width: 100%;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: fixed;
  top: 14px;           /* ← IMPORTANTE: deja visible la franja roja */
  left: 0;
  z-index: 1100;
}

/* Contenedor interno */
.contenedor-header {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 40px;
}

/* Logo */
.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  height: 85px;
  display: block;
}

/* Menú más pegado al logo */
nav {
  display: flex;
  align-items: center;
  gap: 28px;   /* ← Ajusta aquí si quieres más cerca */
}

/* Enlaces */
nav a {
  text-decoration: none;
  color: #000;
  font-weight: 600;
  font-size: 0.96rem;
  position: relative;
  letter-spacing: 0.4px;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #E30613;
  transition: width 0.3s ease;
}

nav a:hover {
  color: #E30613;
}

nav a:hover::after,
nav a.activo::after {
  width: 100%;
}

nav a.activo {
  color: #E30613;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .contenedor-header {
    flex-direction: column;
    gap: 10px;
    padding: 10px 20px;
  }

  nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }

  .logo {
    height: 45px;
  }
}


/* =========================================================
   HERO CON ESCENAS DESLIZABLES
========================================================= */

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.scroll-horizontal {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.escena {
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* DISEÑO UNIFICADO PARA TODAS LAS ESCENAS */
.hero-content,
.hero-industrial {
  width: 90%;
  max-width: 1400px;
  margin: auto;
  display: grid;
  grid-template-columns: 50% 50%;
  gap: 40px;
  align-items: center;
}

/* TEXTO */
.hero-texto h1,
.texto-industrial h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.negrita {
  font-weight: 800;
}

.rojo-fondo {
  background-color: #d71920;
  color: #fff;
  padding: 5px 10px;
  border-radius: 4px;
}

.descripcion,
.detalle {
  margin: 18px 0 28px;
  font-style: italic;
  font-size: 18px;
  color: var(--gris);
}

.btn-rojo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: #E30613;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.btn-rojo:hover {
  background: var(--rojo-oscuro);
}

.btn-rojo .icono {
  background: #000;
  color: #fff;
  padding: 5px 7px;
  border-radius: 50%;
  font-size: 0.8rem;
}

.subtexto {
  margin-top: 16px;
  font-size: 14px;
  font-style: italic;
  color: var(--gris);
  font-weight: bold;
}

/* IMAGEN – MISMA FORMA PARA TODOS */
.hero-imagen img,
.imagen-industrial img {
  width: 100%;
  height: 90vh;
  object-fit: cover;
  border-radius: 0 0 0 220px;
}

/* =========================================================
   FLECHAS DEL SLIDER
========================================================= */
.flecha {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 50px;
  font-weight: bold;
  color: #fff;
  background: rgba(0,0,0,0.4);
  padding: 10px 18px;
  cursor: pointer;
  border-radius: 10px;
  z-index: 10;
  transition: 0.3s;
}

.flecha:hover {
  background: rgba(0,0,0,0.7);
}

.izq { left: 20px; }
.der { right: 20px; }

/* =========================================================
   INDICADORES
========================================================= */
.indicadores {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 20;
}

.punto {
  width: 14px;
  height: 14px;
  background: #ccc;
  border-radius: 50%;
  cursor: pointer;
}

.punto.activo {
  background: var(--rojo);
}

/* Franja roja inferior */
.decoracion-roja {
  width: 100%;
  height: 25px;
  background: #E30613;
  position: relative;
  margin-top: 0;
}

.decoracion-roja::after {
  content: "";
  position: absolute;
  top: 0;
  right: 15%;
  width: 120px;
  height: 100%;
  background: #fff;
  transform: skewX(-25deg);
}

/* ===============================
   SECCIÓN NUESTROS PRODUCTOS
================================== */

.nuestros-productos {
  background: #fff;
  padding: 100px 10% 80px;
  text-align: left;
  position: relative;
}

.nuestros-productos .contenedor-titulo h2 {
  font-size: 2.8rem;
  font-weight: 800;
  color: #111;
  margin-bottom: 15px;
}

.nuestros-productos .rojo {
  background: #E30613;
  color: #fff;
  padding: 5px 15px;
  border-radius: 4px;
}

.nuestros-productos .descripcion p {
  font-size: 1.1rem;
  color: #555;
  max-width: 600px;
  line-height: 1.5;
  margin-bottom: 50px;
}

/* Botón centrado */
.boton-ver {
  text-align: center;
  margin-top: 60px;
}

/* =========================================================
   TARJETAS DE PRODUCTOS (HOVER)
========================================================= */

.grid-productos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  width: 90%;
  max-width: 1300px;
  margin: 60px auto;
}

.card-producto {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  
  cursor: pointer;
  transition: 0.3s;
}

.card-producto img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: 0.4s;
}

.card-producto:hover img {
  transform: scale(1.1);
}

.overlay-info {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(227,6,19,0.8) 100%);
  color: #fff;
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 25px;
  text-align: center;
  transition: 0.4s;
}

.card-producto:hover .overlay-info {
  opacity: 1;
}

.pie-rojo {
  background: var(--rojo);
  color: #fff;
  padding: 14px;
  text-align: center;
  font-weight: 600;
}

/* =========================================================
   QUIENES SOMOS / SERVICIOS / CONTACTO / FOOTER
   (Diseño unificado)
========================================================= */

.quienes-somos  {
  background-color: #f5f5f5;
  padding: 100px 8%;
}

.contenedor-quienes {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 50px;
  flex-wrap: wrap;
}

/* Imagen con título */
.contenedor-img {
  position: relative;
}

.contenedor-img img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.titulo-imagen {
  position: absolute;
  top: 15px;
  left: 0;
  background-color: #E30613;
  color: #fff;
  font-weight: 700;
  font-size: 1.6rem;
  padding: 10px 25px;
  border-radius: 5px;
}

/* Texto */
.columna.texto {
  flex: 1 1 45%;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #222;
}

/* Bloques misión y visión */
.bloques {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  margin-top: 30px;
}

.bloque {
  flex: 1 1 48%;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bloque:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.bloque h3 {
  color: #E30613;
  font-weight: 700;
  margin-bottom: 10px;
}

/* ===============================
   SECCIÓN BANNER INTERMEDIO
================================== */
.banner-inferior {
  position: relative;
  background-image: url("../img/banner-inferior.jpg"); /* fondo de obra o construcción */
  background-size: cover;
  background-position: center;
  padding: 60px 0;
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.banner-inferior .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9); /* oscurece la imagen */
  z-index: 1;
}

.contenedor-banner {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 180px; /* 🔹 antes era 70 u 80, aumentamos el espacio entre ítems */
  flex-wrap: wrap;
  text-align: center;
}


.contenedor-banner .item h3 {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  color: #fff;
}

.contenedor-banner .divisor {
  width: 1px;
  height: 60px;
  background-color: rgba(255, 255, 255, 0.6);
}

/* ===============================
   SECCIÓN SERVICIOS PROFESIONALES
================================== */

.seccion-servicios {
  background: #fff;
  padding: 100px 8%;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.titulo-seccion {
  font-size: 2.8rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 60px;
  text-align: left; /* 🔹 igual que en tu ejemplo */
}

.grid-servicios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  justify-items: center;
}

.card-servicio {
  position: relative;
  width: 100%;
  max-width: 360px;
  height: 420px;
  overflow: hidden;
  border-radius: 5px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s ease;
}

.card-servicio:hover {
  transform: translateY(-5px);
}

.card-servicio img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.card-servicio:hover img {
  transform: scale(1.1);
}

/* Capa oscura sobre la imagen */
.card-servicio .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  transition: background 0.3s ease;
}

.card-servicio:hover .overlay {
  background: rgba(0, 0, 0, 0.6);
}

/* Contenido centrado */
.card-servicio .contenido {
  position: absolute;
  bottom: 30px;
  left: 0;
  width: 100%;
  color: #fff;
  padding: 0 25px;
  z-index: 2;
}

.card-servicio h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.card-servicio .linea-roja {
  display: inline-block;
  width: 60px;
  height: 4px;
  background-color: #E30613;
  margin-bottom: 15px;
}

.card-servicio p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #eee;
}

/* Botón inferior centrado */
.centrado {
  margin-top: 50px;
}

.centrado .btn-rojo {
  padding: 12px 32px;
  font-weight: 600;
  font-size: 0.95rem;
}

/* ===============================
   SECCIÓN DE CONTACTO (ALINEADA)
================================== */
.seccion-contacto {
  background: #f2f2f2;
  padding: 100px 8%;
  font-family: 'Poppins', sans-serif;
}

.contenedor-contacto {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center; /* 🔹 centra verticalmente las dos columnas */
  gap: 60px;
}

/* --- Columna izquierda (formulario) --- */
.columna-formulario {
  flex: 1 1 55%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.columna-formulario h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #111;
  margin-bottom: 40px;
  text-align: left;
}

.columna-formulario form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.columna-formulario label {
  font-weight: 600;
  color: #111;
}

.columna-formulario input,
.columna-formulario textarea {
  border: none;
  border-bottom: 2px solid #999;
  background: transparent;
  padding: 10px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.columna-formulario input:focus,
.columna-formulario textarea:focus {
  border-color: #E30613;
}

.columna-formulario small {
  color: #666;
  font-size: 0.9rem;
  margin-top: -10px;
}

.columna-formulario .btn-rojo {
  margin-top: 25px;
  align-self: flex-start;
  padding: 12px 30px;
  font-weight: 600;
}

/* --- Columna derecha (tarjeta de contacto) --- */

/* Contenedor de la tarjeta: asegura control de capas */
.columna-info {
  position: relative;
  z-index: 2;
}

/* Tarjeta */
.tarjeta-contacto {
    position: relative;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0px 4px 15px rgba(0,0,0,0.1);
    z-index: 1;
}

/* Franja diagonal roja detrás */
.tarjeta-contacto::before {
  content: "";
  position: absolute;

  /* Ubicación precisa */
  top: -40px;
  right: -40px;

  width: 180px;
  height: 180px;

  background: #E30613;

  /* Forma diagonal EXACTA como la de tu ejemplo */
  clip-path: polygon(0 0, 100% 0, 100% 100%);

  z-index: -1;
}



/* --- Contenido interno --- */
.tarjeta-contacto h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.tarjeta-contacto p {
  margin-bottom: 20px;
  line-height: 1.5;
  color: #333;
}

.tarjeta-contacto a {
  color: #111;
  text-decoration: none;
}

.tarjeta-contacto a:hover {
  color: #E30613;
}

/* --- Redes sociales (corrigido y centrado) --- */
.redes-sociales {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  align-items: center;
}

.redes-sociales a img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  transition: transform 0.3s ease;
  filter: none; /* 🔹 Evita el color rojo sólido */
}

.redes-sociales a img:hover {
  transform: scale(1.15);
  filter: drop-shadow(0 0 4px #d71920); /* 🔹 Efecto rojo elegante */
}

/* ===============================
   SECCIÓN ÚNETE — VERSION CORREGIDA
================================== */
.seccion-unete {
  background: #fff;
  padding: 100px 10% 80px;
  text-align: left;
  position: relative;
}

.seccion-unete p {
  margin-bottom: 50px !important;  /* 🔥 Más espacio debajo del texto */
}

.seccion-unete .contenedor-unete h2 {
  font-size: 2.8rem;
  font-weight: 800;
  color: #111;
  margin-bottom: 15px;
}

/* FORMULARIO UNETE: Alineación a la izquierda */
.form-unete {
  width: 100%;
  max-width: 100% !important;	
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-start;
  margin-left: 0;          /* Alineado a la izquierda */
  margin-right: auto;
}


.form-unete input[type="text"],
.form-unete input[type="email"],
.form-unete input[type="tel"] {
  width: 100%;
  padding: 12px 18px;
  border: none;
  border-radius: 6px;
  background: #f5f5f5;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  font-size: 1rem;
}

/* Bloque de subir CV */
.upload-cv {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* 👈 También a la izquierda */
  gap: 8px;
}

.upload-cv input[type="file"] {
  display: none;
}

.btn-adjuntar {
  background: #2b2b2b;
  color: #fff;
  padding: 10px 25px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;              /* 👈 activa flexbox */
  justify-content: center;    /* 👈 centra horizontal */
  align-items: center;        /* 👈 centra vertical */
  width: 200px;               /* 👈 tamaño controlado */
  max-width: 100%;
  text-align: center;
}

.btn-adjuntar:hover {
  background: #d71920;
}

.upload-cv small {
  font-size: 0.85rem;
  color: #666;
  font-style: italic;
}

.centrado-unete {
  margin: 0 auto;
}

.centrado-unete .btn-rojo {
  padding: 11px 60px;
  font-weight: 600;
  font-size: 0.95rem;
}



/* ===============================
   PIE DE PÁGINA
================================== */
/* ===============================
   AJUSTE FINAL DEL FOOTER
================================== */
.footer {
  background: #000;
  color: #fff;
  padding: 60px 10% 20px; /* 🔹 igual que 'Nuestros Productos' */
  font-size: 0.95rem;
}

.footer-contenido {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 260px;
}

/* Columna logo y descripción */
.footer-logo {
  flex: 1 1 250px;
}

.footer-logo img {
  height: 60px;
  margin-bottom: 15px;
}

.footer-logo p {
  color: #ccc;
  max-width: 300px;
  line-height: 1.6;
  margin-top: 10px;
}

/* Enlaces */
.footer-links h4,
.footer-contacto h4 {
  color: #E30613;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #E30613;
}

/* Contacto */
.footer-contacto p {
  color: #ccc;
  margin-bottom: 8px;
}

.footer-redes {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
}

.footer-redes a img {
  width: 30px;
  height: 30px;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: brightness(0) invert(1);
}

.footer-redes a img:hover {
  transform: scale(1.1);
  filter: brightness(1) invert(0);
}

/* Línea inferior */
.footer-copy {
  text-align: left;
  font-size: 0.9rem;
  color: #aaa;
}

/* Icono flotante de WhatsApp */
.btn-whatsapp {
  position: fixed;
  right: 25px;
  bottom: 25px;
  z-index: 100;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background-color: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.btn-whatsapp img {
  width: 30px;
  height: 30px;
}

.btn-whatsapp:hover {
  transform: scale(1.1);
  background-color: #20bd5a;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 992px) {
  .hero-content,
  .hero-industrial {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-imagen img,
  .imagen-industrial img {
    border-radius: 0;
    height: 60vh;
  }

  .grid-productos {
    grid-template-columns: 1fr 1fr;
  }

  .footer-contenido {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .hero {
    height: auto;
  }

  .hero-texto h1 {
    font-size: 38px;
  }

  .grid-productos {
    grid-template-columns: 1fr;
  }

  nav a {
    margin-left: 12px;
  }
}

/* Responsivo */
@media (max-width: 900px) {
  .contenedor-quienes {
    flex-direction: column;
  }

  .bloques {
    flex-direction: column;
  }

  .titulo-imagen {
    font-size: 1.3rem;
    padding: 8px 20px;
  }
}

/* Responsivo */
@media (max-width: 768px) {
  .contenedor-banner {
    flex-direction: column;
    gap: 20px;
  }

  .contenedor-banner .divisor {
    display: none;
  }

  .contenedor-banner .item h3 {
    font-size: 1.5rem;
  }
}

/* Responsivo */
@media (max-width: 900px) {
  .grid-servicios {
    gap: 25px;
  }
  .card-servicio {
    max-width: 100%;
    height: 380px;
  }
}

/* --- Responsivo --- */
@media (max-width: 900px) {
  .contenedor-contacto {
    flex-direction: column;
    align-items: stretch;
    gap: 50px;
  }

  .columna-info {
    justify-content: flex-start;
  }

  .tarjeta-contacto {
    max-width: 100%;
  }
}