:root {
  --color-primary:#C51414;
  --color-dark:#1F1D1D;
  --color-white:#ffffff;
}

/* GENERAL */
body {
  font-family: Arial, sans-serif;
  background: var(--color-white);
  color: var(--color-dark);
}

h1,h2,h3,h4 {
  font-weight: 700;
}

/* =========================
   INTRO PRO MAX INDUSTRIAL
========================= */

.intro-pro {
  height: 100vh;
  background: var(--color-dark);
  color: #fff;
  overflow: hidden;
}

.intro-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
}

/* =========================
   TEXTO
========================= */

.intro-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 50px;
  position: relative;
  z-index: 2;
}

.intro-tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--color-primary);
  margin-bottom: 15px;
  font-weight: 600;
}

.intro-title {
  font-size: 64px;
  line-height: 1.1;
}

.intro-title span {
  color: var(--color-primary);
}

.intro-sub {
  max-width: 520px;
  color: #cfcfcf;
  line-height: 1.7;
  margin-top: 15px;
}

/* CTA */
.intro-actions {
  margin-top: 30px;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* BOTONES */
.btn-primary {
  background: var(--color-primary);
  color: #fff;
  padding: 12px 22px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.btn-primary:hover {
  background: #a01010;
  transform: translateY(-2px);
}

.btn-outline {
  border: 1px solid #fff;
  color: #fff;
  padding: 12px 30px;
  text-decoration: none;
  transition: 0.3s;
}

.btn-outline:hover {
  background: #fff;
  color: var(--color-dark);
}

/* =========================
   VISUAL INDUSTRIAL
========================= */

.intro-visual {
  position: relative;
  height: 100%;
  min-height: 560px;
  overflow: visible;
}

/* IMAGEN PRINCIPAL */
.img1 {
  position: absolute;
  width: 75%;
  top: 0;
  left: 0;
  z-index: 2;
}

/* PANEL TÉCNICO (HORIZONTAL) */
.img2 {
  position: absolute;
  width: 68%;
  height: 120px;
  bottom: 60px;
  right: 15px;
  z-index: 1;

  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 60px 60px rgba(0,0,0,0.45);
  overflow: hidden;
}

/* IMÁGENES */
.img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(1.05);
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width: 768px){

  .intro-wrapper {
    grid-template-columns: 1fr;
  }

  .intro-text {
    padding: 40px 25px;
  }

  .intro-title {
    font-size: 32px;
  }

  .intro-visual {
    min-height: 320px;
    margin-top: 20px;
  }

  .img1 {
    width: 85%;
  }

  .img2 {
    width: 85%;
    height: 180px;
    bottom: 30px;
    right: 20px;
  }
}
/* =========================
   RESPONSIVE
========================= */

@media(max-width: 768px){

  .intro-wrapper {
    grid-template-columns: 1fr;
  }

  .intro-text {
    padding: 40px 25px;
  }

  .intro-title {
    font-size: 32px;
    line-height: 1.2;
  }

  .intro-visual {
    min-height: 300px;
    margin-top: 30px;
  }

  .img.img2 {
    width: 60%;
  }
}


/* SERVICES */
.services-industrial {
  padding: 140px 0;
  background: #0e0e10;
  color: #fff;
}

/* HEADER */
.services-header {
  max-width: 800px;
  margin-bottom: 60px;
}

.services-tag {
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--color-primary);
  display: block;
  margin-bottom: 10px;
}

.services-header h2 {
  font-size: 44px;
  line-height: 1.2;
}

.services-header h2 span {
  color: var(--color-primary);
}

.services-header p {
  color: #aaa;
  margin-top: 15px;
  line-height: 1.6;
}

/* GRID */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

/* CARD */
.service-card {
  position: relative;
  padding: 40px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  overflow: hidden;
  transition: 0.4s;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-primary);
}

/* NUMERO */
.service-number {
  font-size: 14px;
  color: var(--color-primary);
  letter-spacing: 2px;
  margin-bottom: 10px;
}

/* TEXTO */
.service-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.service-card p {
  color: #aaa;
  line-height: 1.6;
}

/* SCAN LINE (EFECTO INDUSTRIAL) */
.scan-line {
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--color-primary), transparent);
  opacity: 0;
}

/* RESPONSIVE */
@media(max-width:992px){
  .services-grid {
    grid-template-columns: 1fr;
  }

  .services-header h2 {
    font-size: 32px;
  }
}


.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: 0.4s;
}

.overlay h3 {
  color: #fff;
  transform: translateY(20px);
  transition: 0.4s;
}


/* HEADER SECCIONES */
.section-header {
  max-width: 700px;
  margin-bottom: 50px;
  
}

.section-header h2 {
  font-size: 34px;
  margin-bottom: 15px;
   position: relative;
  display: inline-block;
  font-size: 2.5rem;
  font-weight: 700;
  color: #1f1f1f;
  margin-bottom: 20px;
}

.section-header h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 55%;
  height: 6px;
  background: linear-gradient(90deg, #C51414, #ff6b6b);
  border-radius: 10px;
}
  
.section-header p {
  color: #555;
  line-height: 1.6;
}

/* CATALOGO */
.catalogo-section {
  padding: 100px 0;
  background: #f9f9f9;
}

.catalogo-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 30px;
}

.catalogo-item {
  background: #fff;
  border: 1px solid #ddd;
  transition: 0.3s;
}

.catalogo-item:hover {
  border-color: #1F1D1D;
}

.catalogo-img {
  overflow: hidden;
}

.catalogo-img img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: 0.4s;
}

.catalogo-item:hover img {
  transform: scale(1.08);
}

/* INFO */
.catalogo-info {
  padding: 20px;
}

.catalogo-info h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.catalogo-info p {
  font-size: 14px;
  color: #666;
}

/* BOTON */
.catalogo-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 15px;
  background: #C51414;
  color: #fff;
  font-size: 13px;
  text-decoration: none;
}

/* PROJECTS */
.projects-section {
  padding: 100px 0;
}

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.project-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.project-item img {
  width: 180px;
  height: 120px;
  object-fit: cover;
}

.project-content h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #C51414;
}

.project-content p {
  color: #555;
  line-height: 1.6;
}

/* RESPONSIVE */
@media(max-width:992px){

  .catalogo-grid {
    grid-template-columns: repeat(2,1fr);
  }

}

@media(max-width:576px){

  .catalogo-grid {
    grid-template-columns: 1fr;
  }

  .project-item {
    flex-direction: column;
  }

  .project-item img {
    width: 100%;
    height: 180px;
  }

}



/* =========================
   CTA INDUSTRIAL PRO
========================= */

.cta-section {
  padding: 40px 0;
  background: var(--color-primary);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

/* EFECTO INDUSTRIAL SUAVE */
.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(0,0,0,0.15),
    rgba(255,255,255,0.05),
    rgba(0,0,0,0.2)
  );
  opacity: 0.4;
  pointer-events: none;
}

/* CONTENEDOR MÁS COMPACTO */
.cta-box {
  max-width: 850px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
  padding: 0 20px;
}

/* TÍTULO */
.cta-box h2 {
  font-size: 34px;
  line-height: 1.2;
  margin-bottom: 15px;
  font-weight: 800;
}

/* TEXTO */
.cta-box p {
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
  margin-bottom: 25px;
}

/* BOTÓN CTA */
.cta-box a {
  display: inline-block;
  background: #fff;
  color: var(--color-dark);
  padding: 12px 22px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
}

.cta-box a:hover {
  transform: translateY(-2px);
  background: #f2f2f2;
}

/* RESPONSIVE */
@media(max-width: 768px){
  .cta-section {
    padding: 50px 0;
  }

  .cta-box h2 {
    font-size: 24px;
  }

  .cta-box p {
    font-size: 14px;
  }
}

/* RESPONSIVE */
@media(max-width:768px){

  .hero-content h1 {
    font-size: 38px;
  }

  .value-stats {
    flex-direction: column;
  }

  .portfolio-item img {
    height: 250px;
  }

}



*/
.horizontal-section {
  height: 100vh;
  overflow: hidden;
}

.horizontal-wrapper {
  display: flex;
  height: 100%;
}

.panel {
  min-width: 100vw;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  background: var(--color-dark);
  color: #fff;
}
.section-break {
  padding: 120px 0 80px;
  background: #fff;
  text-align: center;
  position: relative;
}

/* línea superior industrial */
.section-break::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 8px;
  background: var(--color-primary);
}

.break-tag {
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.break-title {
  font-size: 42px;
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 15px;
}

.break-subtitle {
  max-width: 700px;
  margin: 0 auto;
  color: #666;
  line-height: 1.6;
}



/* =========================
   MOBILE REAL FIX
========================= */
@media (max-width: 576px) {

  .intro-industrial {
    padding: 60px 0;
  }

  .intro-left {
    padding: 25px 20px;
    text-align: left;
  }

  .intro-content h1 {
    font-size: 28px;
    line-height: 1.2;
  }

  .intro-content p {
    font-size: 14px;
  }

  .intro-right {
    height: 260px;
  }

  /* CLAVE: evita overflow de imagen overlay */
  .img-overlay {
    display: none;
  }

  .img-main {
    height: 100%;
    object-fit: cover;
  }
}

/* =========================
   FOOTER 
========================= */

.footer-pro {
  background: #111;
  color: #fff;
  padding: 80px 0 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* GRID */
.footer-wrapper {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 50px;
  padding: 0 20px;
}

/* =========================
   BRAND
========================= */

.footer-logo img {
  max-width: 160px;
  margin-bottom: 20px;
}

.footer-desc {
  color: #bbb;
  font-size: 14px;
  line-height: 1.6;
}

/* =========================
   TITULOS
========================= */

.footer-col h4 {
  font-size: 16px;
  margin-bottom: 20px;
  position: relative;
}

/* línea roja pro */
.footer-col h4::after {
  content: "";
  width: 40px;
  height: 2px;
  background: var(--color-primary);
  position: absolute;
  left: 0;
  bottom: -8px;
}

/* =========================
   LINKS
========================= */

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  color: #bbb;
  text-decoration: none;
  transition: 0.3s;
}

.footer-col ul li a:hover {
  color: var(--color-primary);
  padding-left: 5px;
}

/* =========================
   CONTACTO CON ICONOS GRANDES
========================= */

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-item i {
  font-size: 18px;
  color: var(--color-primary);
  width: 22px;
  text-align: center;
  transition: 0.3s;

}

/* HOVER PRO */
.contact-item:hover i {
  transform: scale(1.2);
  color: #ff2a2a;
}

.contact-item p {
  color: #bbb;
  margin: 0;
}

/* =========================
   BOTTOM
========================= */

.footer-bottom {
  margin-top: 50px;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 13px;
  color: #777;
}

/* =========================
   ICONO DE WHATSAPP
========================= */
  
.whatsapp-float {
  position: fixed;
  width: 50px;
  height: 50px;
  bottom: 25px;
  left: 25px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
  z-index: 999;
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

/* =========================
   ICONO SUBIR INICIO PAGINA
========================= */
#scrollTopBtn {
  position: fixed;
  bottom: 25px;
  right: -70px; /* oculto inicialmente */
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #C51414, #ff4d4d);
  color: white;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
  transition: right 0.4s ease, transform 0.3s ease;
  z-index: 999;
}

#scrollTopBtn.show {
  right: 25px; /* aparece suavemente */
}

#scrollTopBtn:hover {
  transform: scale(1.1);
}




/* =========================
   RESPONSIVE
========================= */

@media(max-width: 768px){

  .footer-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-logo img {
    max-width: 140px;
  }

}

/* =========================
   CONTACTO PROFESIONAL INDUSTRIAL
========================= */

.contact-page {
  padding: 100px 0;
  background: #f5f5f5;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

/* --------------------------
   IZQUIERDA: CONTACTO SIMPLE
--------------------------- */
.contact-left {
  background: #fff;
  padding: 40px;
  border-radius: 4px;
  border: 1px solid #ddd;
}

.contact-left h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.contact-left p {
  color: #666;
  margin-bottom: 25px;
}

/* FORM */
.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
  color: #333;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 3px;
}

.contact-form button {
  width: 100%;
  padding: 14px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
  border-radius: 3px;
}

.contact-form button:hover {
  background: #a01010;
}

/* --------------------------
   DERECHA: CONSULTA PRO (GRIS SUAVE)
--------------------------- */
.contact-right {
  background: #d5d5d5;       /* gris suave */
  color: #1F1D1D;            /* texto oscuro */
  padding: 40px;
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.contact-right h2 {
  font-size: 28px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-right p {
  color: #333;
  margin-bottom: 25px;
}

/* FORM GROUP */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  font-size: 12px;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
}

/* RADIOS Y CHECKBOXES */
.radio-group,
.checkbox-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.radio-group input,
.checkbox-group input {
  margin-right: 5px;
}

/* INPUTS CONSULTA */
.consulta-form input,
.consulta-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 3px;
}

/* BOTON CONSULTA */
.btn-consulta {
  width: 100%;
  padding: 14px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  font-weight: 700;
  margin-top: 10px;
  cursor: pointer;
  transition: 0.3s;
  border-radius: 3px;
}

.btn-consulta:hover {
  background: #a01010;
}

/* =========================
   RESPONSIVE
========================= */
@media(max-width: 992px){
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-left,
  .contact-right {
    padding: 30px;
  }
}


/*----- DETALLE CATALOGO MAQUINARIA -----*/

.maquinaria-single {
  padding: 80px 0;
  background: #fff;
}

.maquinaria-box {
  padding: 60px 20px;
  border: 2px solid #d9d9d9;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

/* TITULO */
.maquinaria-title {
  text-align: center;
  margin-bottom: 40px;
  font-size: 32px;
}

/* BLOQUE PRINCIPAL */
.maquinaria-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/*--- IMAGEN PRINCIPAL--- */
.maquinaria-image img {
  width: 100%;
  max-width: 320px;
  height: 500px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
  background: #f5f5f5;
}

/* GALERIA */
.galeria-maquinaria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 30px;
}

.galeria-item img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: #f5f5f5;
  border-radius: 8px;
  cursor: pointer;
}


/*----TEXTO DESCRIPCION MAQUINARIA---*/
body {
  font-family: 'Inter', 'Roboto', Arial, sans-serif;
  color: #222;
}

/* FICHA MAQUINARIA */
.maquinaria-info {
  font-family: 'Inter', 'Roboto', sans-serif;
  font-size: 15px;
  line-height: 1.8;
  color: #2b2b2b;
}

/*---- PÁRRAFOS---- */
.maquinaria-info p {
  margin-bottom: 16px;
}

/* TÍTULOS INTERNOS */
.maquinaria-info h2 {
  font-size: 20px;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 10px;
  color: #111;
  letter-spacing: 0.2px;
}

.maquinaria-info h3 {
  font-size: 20px;
  font-weight: 600;
  margin-top: 18px;
  margin-bottom: 8px;
  color: #222;
  letter-spacing: 0.2px;
}

/* TEXTO DESTACADO */
.maquinaria-info strong {
  font-weight: 600;
  color: #000;
}

/*----PDF----*/
.maquinaria-pdfs {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 340px;
}

.pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid #ddd;
  border-left: 4px solid #d32f2f; /* rojo Adobe */
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  color: #222;
  transition: all 0.2s ease;
  width: fit-content;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.pdf-btn img {
  width: 20px;
  height: 20px;
}

.pdf-btn:hover {
  background: #f9f9f9;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.maquinaria-pdfs {
  margin-bottom: 30px; /* separa PDFs de la galería */
}

.galeria-maquinaria {
  margin-top: 40px; /* baja las imágenes respecto a PDFs */
}

/*-----AJUSTE IMAGENES DEL CATALOGO-----*/
.catalogo-img {
  display: flex;
  justify-content: center;
  align-items: flex-start; /* 👈 clave: empuja imagen hacia arriba */
  background: #f5f5f5;
  padding: 10px;
  overflow: hidden;
  height: 280px; /* 👈 contenedor fijo */
}

.catalogo-img img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 👈 permite recorte */
  object-position: 50% 30%; /* 👈 mantiene visible la parte superior y recorta abajo */
}

/*----FORMULARIO ESTILO----*/
.form-success{
    margin-top:15px;
    padding:14px 18px;
    border-radius:8px;
    background:#e8f8ee;
    border:1px solid #93d7a8;
    color:#1c6b35;
    font-weight:600;
    font-size:14px;
    line-height:1.5;
    box-shadow:0 4px 12px rgba(0,0,0,.08);

    opacity:1;
    transform:translateY(0);

    transition:
        opacity .5s ease,
        transform .5s ease;
}

.form-success.hide{
    opacity:0;
    transform:translateY(-10px);
}