/* ====== ESTILOS GENERALES ====== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: #fff;
  color: #444;
  max-width: 1920px;
  margin: 0 auto; /* centra el contenido */
  overflow-x: hidden; /* evita scroll horizontal si algo se sale */
}

/* ====== IMPORTAR TIPOGRAFÍA ROBOTO ====== */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap');

/* Estilos para la flecha flotante */
.back-to-top {
    position: fixed;  /* Fija la flecha en la pantalla */
    bottom: 300px;     /* Distancia desde la parte inferior */
    right: 30px;      /* Distancia desde la parte derecha */
    background-color: rgba(0, 0, 0, 0.5); /* Fondo negro con transparencia */
    color: white;     /* Color del texto (flecha) */
    padding: 10px 10px; /* Espacio alrededor de la flecha */
    border-radius: 10%; /* Forma circular */
    text-align: center;
    font-size: 24px;  /* Tamaño de la flecha */
    text-decoration: none; /* Quitar subrayado del enlace */
    opacity: 0;       /* Inicialmente invisible */
    transition: opacity 0.5s ease-in-out; /* Efecto de aparición/desaparición */
    z-index: 1000;    /* Asegura que la flecha quede sobre el contenido */
}

.back-to-top:hover {
    background-color: rgba(0, 0, 0, 0.7); /* Aumenta la opacidad al pasar el mouse */
    transform: scale(1.1); /* Efecto de zoom al hacer hover */
}

/* Mostrar la flecha cuando el usuario se desplaza hacia abajo */
.show-arrow {
    opacity: 1; /* Mostrar la flecha */
}
/* Estilos para la flecha flotante FIN*/
/* ====== HERO DIERZA ====== */
* {
    font-family: 'Roboto', sans-serif;
}

.hero-dierza {
    width: 100%;
    height: 600px;
    background-image: url('images/Banner-principal.webp'); /* ← tu imagen */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding-left: 60px;
    color: #333;
}

.hero-content {
    max-width: 750px;
}

.hero-title {
    font-size: 70px;
    font-weight: 900;
    color: #e73331;
    margin: 0;
    letter-spacing: 3px;
}

.hero-subtitle {
    font-size: 32px;
    font-weight: 700;
    margin-top: 15px;
    line-height: 1.3;
}

.resaltado {
    color: #e73331;
}

@media (max-width: 1024px) {

  .hero-dierza {
    height: 520px;
    padding-left: 40px;
    padding-right: 40px;
  }

  .hero-title {
    font-size: 56px;
    letter-spacing: 2px;
  }

  .hero-subtitle {
    font-size: 26px;
  }

  .hero-content {
    max-width: 650px;
  }
}

@media (max-width: 768px) {

  .hero-dierza {
    height: 480px;
    padding: 0 20px;
    justify-content: center;
    text-align: center;

    /* IMAGEN PARA MÓVIL */
    background-image: url('images/Banner-principal-movil.png');
  }

  .hero-content {
    max-width: 100%;
	margin-top: -280px;
  }

.hero-content h1 {
    font-size:40px;
	font-weight: 700;
  }

.hero-content h2 {
    font-size:20px;
  }
 
}

@media (max-width: 480px) {

  .hero-dierza {
    height: 380px;
  }

  .hero-title {
    font-size: 34px;
  }

  .hero-subtitle {
    font-size: 18px;
    line-height: 1.4;
  }
}



/* SECCION_SERVICIOS */
.services-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    padding: 40px;
    background: #f5f5f5;
}

.service-card {
    background: #DFDFDF;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);

    /* NUEVO → controla la posición inferior del texto y botón */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 350px;
}

.service-card img {
    width: 50%;
    height: 400px;
    object-fit: contain;
    margin: 0 auto 20px auto;
}

.service-card h3 {
    font-size: 16px;
    color: #333;
    font-weight: 700;
    margin-bottom: 20px;
    padding: 0 10px;
}

.btn-more {
    display: inline-block;
    padding: 12px 30px;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    text-decoration: none;
    color: #000;
    font-weight: 600;
    transition: all .3s;
}

.btn-more:hover {
    background: red;
}
.btn-more:hover {
  color: white !important;
}


/* ================================================= */
/* TABLET Y MÓVIL */
/* 4 CONTENEDORES EN UNA SOLA FILA */
/* ================================================= */

@media (max-width: 1024px) {

    .services-section {
        display: flex;
        flex-wrap: nowrap;
        gap: 20px;
        overflow-x: auto;
        padding: 30px 20px;

        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .service-card {
        flex: 0 0 280px;
        height: 320px;
        scroll-snap-align: start;
    }

    .service-card img {
        width: 70%;
        height: 260px;
    }

    .service-card h3 {
        font-size: 15px;
        margin-bottom: 15px;
    }

    .btn-more {
        font-size: 14px;
        padding: 10px 22px;
    }
}

/* ================================================= */
/* MÓVIL PEQUEÑO */
/* ================================================= */

@media (max-width: 480px) {

    .service-card {
        flex: 0 0 240px;
        padding: 18px;
    }

    .service-card img {
        width: 80%;
        height: 220px;
    }

    .service-card h3 {
        font-size: 14px;
    }

    .btn-more {
        font-size: 13px;
        padding: 10px;
        width: 100%;
        text-align: center;
    }
}

/* ================================================= */
/* OCULTAR SCROLL (OPCIONAL) */
/* ================================================= */

.services-section::-webkit-scrollbar {
    display: none;
}

.services-section {
    scrollbar-width: none;
}


/* SECCION_PLECA */
/* --- Banner --- */
.banner {
  position: relative;
  width: 100%;
  height: 280px;
  background-image: url("images/Banner-oscuro-1.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

/* Capa oscura */
.banner-overlay {
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: flex-end;   /* ⬅ TEXTO A LA DERECHA */
  padding: 0 40px;
}

/* Texto */
.banner-text {
  max-width: 900px;
  font-size: 28px;
  color: #fff;
  line-height: 1.4;
  font-weight: 400;
  text-align: left;            /* ⬅ opcional: alinea el texto a la derecha */
}

.banner-text .resaltado {
  color: #ff3434;
  font-weight: 700;
}

/* =========================
   RESPONSIVO TABLET
   ========================= */
@media (max-width: 1024px) {
  .banner {
    height: 240px;
  }

  .banner-overlay {
    padding: 0 30px;
    justify-content: center; /* centra contenido en tablet */
  }

  .banner-text {
    max-width: 100%;
    font-size: 24px;
    text-align: center;
  }
}

/* =========================
   RESPONSIVO MOVIL
   ========================= */
@media (max-width: 768px) {
  .banner {
    height: 200px;
  }

  .banner-overlay {
    padding: 0 20px;
    justify-content: center;
  }

  .banner-text {
    font-size: 20px;
    line-height: 1.3;
    text-align: center;
  }
}

/* =========================
   MOVIL PEQUEÑO
   ========================= */
@media (max-width: 480px) {
  .banner {
    height: 180px;
  }

  .banner-text {
    font-size: 18px;
  }
}



/* SECCION_CARRUCEL */
.carousel-section {
  width: 100%;
  display: flex;
  justify-content: center;
  background: #f5f5f5;
  padding: 0;
}

.carousel-container {
  width: 100%;
  max-width: 1920px;
  overflow: hidden;           /* evita desbordes */
  margin: auto;
  position: relative;
}

.carousel-wrapper {
  display: flex;
  transition: transform 0.6s ease-in-out;
}

.carousel-slide {
  flex: 0 0 100%;             /* cada banner ocupa el 100% */
}

.carousel-slide img {
  width: 100%;
  height: auto;               /* NO se deforma */
  display: block;
  object-fit: contain;        /* evita recortes y desbordes */
}

/* Botones */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #ffffffcc;
  border: none;
  padding: 12px 15px;
  cursor: pointer;
  border-radius: 50%;
  font-size: 22px;
}

.prev-btn { 
left: 10px; 
}
.next-btn { 
right: 10px; 
}


/* =========================
   TABLET
   ========================= */
@media (max-width: 1024px) {
  .carousel-section {
    padding: 0;
  }

  .carousel-btn {
    padding: 10px 13px;
    font-size: 20px;
  }

  .prev-btn {
    left: 8px;
  }

  .next-btn {
    right: 8px;
  }
}

/* =========================
   MOVIL
   ========================= */
@media (max-width: 768px) {
  .carousel-btn {
    padding: 8px 10px;
    font-size: 18px;
    background: #ffffffdd;
  }

  .prev-btn {
    left: 5px;
  }

  .next-btn {
    right: 5px;
  }

  .carousel-slide img {
    object-fit: cover; /* llena mejor en móvil sin deformar */
  }
}

/* =========================
   MOVIL PEQUEÑO
   ========================= */
@media (max-width: 480px) {
  .carousel-btn {
    padding: 6px 8px;
    font-size: 16px;
  }
}


/* SECCION_5 */
.infra-section {
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  padding: 10px 20px;
  font-family: Arial, sans-serif;
  color: #444;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 80px;
  gap: 60px;
}

/* El texto ahora ocupa menos espacio visual */
.text {
  flex: 1;
}

/* Las imágenes ocupan más espacio */
.image {
  flex: 1.2;
}

.image img {
  width: 100%;
  max-width: 650px;   /* antes 450px */
  height: 350px;
  object-fit: contain;
}

.row.top .text h2 {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.2;
}

.highlight {
  color: #ff3b30;
}

.text p {
  font-size: 20px;
  line-height: 1.6;
}

/* =========================
   TABLET
   ========================= */
@media (max-width: 1024px) {
  .infra-section {
    padding: 20px;
  }

  .row {
    gap: 40px;
    margin-bottom: 60px;
  }

  .row.top .text h2 {
    font-size: 32px;
  }

  .text p {
    font-size: 18px;
  }

  .image img {
    max-width: 550px;
    height: 300px;
  }
}

/* =========================
   MOVIL
   ========================= */
@media (max-width: 768px) {
  .row {
    flex-direction: column;
    text-align: center;
    gap: 30px;
    margin-bottom: 50px;
  }

  .text,
  .image {
    flex: none;
    width: 100%;
  }

  /* FORZAR ORDEN: TEXTO -> IMAGEN */
  .row .text {
    order: 1;
  }

  .row .image {
    order: 2;
  }

  .row.top .text h2 {
    font-size: 26px;
  }

  .text p {
    font-size: 17px;
  }

  .image img {
    max-width: 55%;
    height: auto;
  }
}


/* =========================
   MOVIL PEQUEÑO
   ========================= */
@media (max-width: 480px) {
  .row.top .text h2 {
    font-size: 22px;
  }

  .text p {
    font-size: 16px;
  }

  .row {
    margin-bottom: 40px;
  }
}


/* SECCION_SERVICIOS */

/* CONTENEDOR */
.titulo-servicios {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-bottom: 0px;
}

/* BARRAS LATERALES */
.barra {
    background: #ff3b30;   /* rojo igual al diseño */
    display: inline-block;
    border-radius: 2px;
}

/* barra pequeña */
.barra-chica {
    width: 16px;
    height: 55px;
}

/* barra mediana */
.barra-mediana {
    width: 32px;
    height: 55px;
}

/* CAJA CENTRAL */
.titulo-servicios .titulo-box {
    background: #ff3b30;   /* rojo igual al diseño */
    color: white;
    font-weight: 800;
	padding: 12px 40px;
    font-size: 24px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
	text-align:center;
}


/* --- CONTENEDOR PRINCIPAL --- */
.servicios {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 1500px;
    margin: 0 auto;
}

/* Fondos */
.fondo-oscuro {
    background: url("images/Fondo-oscuro-con-textura.jpg") center/cover no-repeat;
    padding: 40px 25px;
    border-radius: 15px;
}

.fondo-claro {
    background: url("images/Fondo-claro-con-textura.jpg") center/cover no-repeat;
    padding: 40px 25px;
    border-radius: 15px;
}

/* Contenedor de la imagen y el overlay */
.layer-img {
    position: relative;
    display: flex;
    justify-content: center;
}

.layer-img img {
    width: 70%;
    height: 370px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

/* Borde rojo brillante para las imágenes */
.layer-img img {
    width: 90%;
    height: 600px;
    object-fit: cover;
    border-radius: 12px;
    display: block;

    /* --- BORDE ROJO BRILLANTE --- */
    border: 1px solid rgba(255, 0, 0, 0.7); /* borde rojo translúcido */
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.8); /* brillo exterior */
}


/* Pleca del texto superpuesta */
.layer-text {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    padding: 20px;
    border-radius: 0 0 12px 12px;
    backdrop-filter: blur(4px);
}




.layer-text h3 {
    color: #d00000;
    margin-bottom: 10px;
	text-align: right;
	padding: 0 40px 0 90px;
}

.layer-text p {
    font-size: 1.125rem;
  margin-top: 20px;
  margin-bottom: 20px;
  line-height: 1.6;
  color:#fff;
  padding: 0 40px 0 90px;
  text-align: right;
  
}


.layer-text h3 span {
    color: #fff;
    margin-bottom: 10px;
}

/* Versiones claro/oscuro */
.layer-text.dark {
    background: rgba(0, 0, 0, 0.65);
    color: white;
	border-radius: 120px 0px 0px 0;
}

.layer-text.light {
    background: rgba(255, 255, 255, 0.75);
    color: #333;
	border-radius: 0px 120px 0px 0;
	box-shadow: 0 0 15px rgba(204, 204, 204, 0.8);
}
.layer-text.light h3 span{
    color:#3c3c3c;
}
.layer-text.light h3{
	 text-align: left;
}

.layer-text.light p {
    font-size: 1.125rem;
  margin-top: 20px;
  margin-bottom: 20px;
  line-height: 1.6;
  color:#3c3c3c;
  padding: 0 40px 0 90px;
  text-align: left;
  
}


/* ==================================================
   UX PROFESIONAL – TABLET Y MÓVIL
   Mantiene fondos y contornos rojos
   NO afecta escritorio
   ================================================== */

/* -------- TABLET -------- */
@media (max-width: 1024px) {

  .servicios {
    gap: 50px;
    padding: 20px;
  }

  .bloque.servicio {
    padding: 30px 20px;
  }

  .layer-img img {
    width: 100%;
    height: 420px;
  }

  .layer-text {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    width: 100%;
    margin-top: 25px;
    padding: 30px 35px;
    backdrop-filter: blur(6px);
  }

  .layer-text h3 {
    font-size: 26px;
    line-height: 1.25;
    padding: 0;
    margin-bottom: 18px;
    text-align: left;
  }

  .layer-text p {
    font-size: 1.05rem;
    padding: 0;
    margin: 0;
    text-align: left;
  }
}

/* -------- MÓVIL -------- */
@media (max-width: 768px) {

  /* Separación general */
  .servicios {
    gap: 45px;
    padding: 15px;
  }

  /* Cada bloque respira */
  .bloque.servicio {
    padding: 28px 18px;
    border-radius: 18px;
  }

  /* Imagen */
  .layer-img {
    flex-direction: column;
  }

  .layer-img img {
    width: 100%;
    height: 260px;
    border-radius: 14px;
  }

  /* Texto YA NO VA PEGADO */
  .layer-text {
    position: relative;
    width: 100%;
    margin-top: 22px;
    padding: 26px 22px;
    transform: none;
    left: auto;
    bottom: auto;
  }

  /* Mantiene identidad visual */
  .layer-text.dark {
    background: rgba(0, 0, 0, 0.72);
    border-radius: 18px;
  }

  .layer-text.light {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 18px;
  }

  /* TÍTULOS */
  .layer-text h3,
  .layer-text.light h3 {
    font-size: 22px;
    line-height: 1.3;
    margin-bottom: 16px;
    padding: 0;
    text-align: left;
  }

  /* TEXTO */
  .layer-text p,
  .layer-text.light p {
    font-size: 0.98rem;
    line-height: 1.7;
    margin: 0;
    padding: 0;
    text-align: left;
  }
}

/* -------- MÓVIL PEQUEÑO -------- */
@media (max-width: 480px) {

  .layer-img img {
    height: 220px;
  }

  .layer-text {
    padding: 22px 20px;
  }

  .layer-text h3 {
    font-size: 20px;
  }

  .layer-text p {
    font-size: 0.95rem;
  }
}


/* ===========================
   SECCIÓN POR QUÉ DIERZA
=========================== */

.porque-dierza {
    width: 100%;
    padding: 40px 20px 70px;
    max-width: 1500px;
    margin: 0 auto;
}

/* -------- Título y caja derecha -------- */
.titulo-bloque {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.tag-roja {
    background: #FF3333;
    color: #fff;
    font-weight: 700;
    padding: 12px 25px;
    border-radius: 0 70px 0 0px;
    font-size: 50px;
}

.caja-mantenimiento {
   background: #f7f7f7;
  border-radius: 15px;
  padding: 15px 25px;
  display: flex;
  align-items: center;
  gap: 29px;
  max-width: 550px;
}

.caja-mantenimiento img {
    width: 100px;
}

.caja-mantenimiento p {
    margin: 0;
    font-size: 22px;
    color: #555;
}

/* -------- GRID PRINCIPAL -------- */
.grid-beneficios {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.item {
    background: #fff;
    border-radius: 16px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: 0.3s ease;
}

.item.gris{
	background: #f0f0f0;	
}
.item img {
    width: 80px;
    margin-bottom: 15px;
}

.item h3 {
    font-size: 17px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.item p {
    font-size: 30px;
    color: #666;
    line-height: 1.45;
}

.item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}


@media (max-width: 1024px) {

  .porque-dierza {
    padding: 40px 20px 60px;
  }

  /* TÍTULO + CAJA */
  .titulo-bloque {
    flex-direction: column;
    align-items: flex-start;
    gap: 25px;
  }

  .tag-roja {
    font-size: 38px;
    padding: 10px 22px;
  }

  .caja-mantenimiento {
    max-width: 100%;
    gap: 20px;
  }

  .caja-mantenimiento img {
    width: 85px;
  }

  .caja-mantenimiento p {
    font-size: 20px;
  }

  /* GRID */
  .grid-beneficios {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .item {
    padding: 30px 22px;
  }

  .item img {
    width: 70px;
  }

  .item h3 {
    font-size: 16px;
  }

  .item p {
    font-size: 22px;
  }
}

@media (max-width: 600px) {

  .porque-dierza {
    padding: 30px 16px 50px;
  }

  /* TÍTULO */
  .tag-roja {
    font-size: 30px;
    padding: 10px 18px;
    border-radius: 0 50px 0 0;
  }


  /* === CAJA PRINCIPAL (MANTENIMIENTO) === */
  .caja-mantenimiento {
    flex-direction: row;
    align-items: center;
    padding: 18px 20px;
    gap: 16px;
  }

  .caja-mantenimiento img {
    width: 60px;
    flex-shrink: 0;
  }

  .caja-mantenimiento p {
    font-size: 18px;
    line-height: 1.4;
    margin: 0;
  }

  /* === GRID === */
  .grid-beneficios {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* === ITEMS DEL GRID === */
  .item {
    display: flex;                /* ← clave */
    flex-direction: row;          /* icono + texto en línea */
    align-items: center;
    gap: 16px;
    padding: 22px 20px;
  }

  .item img {
    width: 55px;
    flex-shrink: 0;
  }

  .item h3 {
    font-size: 15px;
    margin: 0;
  }

  .item p {
    font-size: 18px;
    line-height: 1.4;
    margin: 0;
  }

  /* === CONTENEDOR TEXTO (h3 + p) === */
  .item div {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
}


/* SECCION_METODOS*/
.como-trabajamos {
  position: relative;
  padding: 80px 20px;
  text-align: center;
  color: #fff;
  background: url("images/Fondo-oscuro-con-textura.jpg") center/cover no-repeat;
}

.como-trabajamos::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(14,14,14,0.85);
}

.como-trabajamos > * {
  position: relative;
  z-index: 1;
}

.como-trabajamos h2 {
  display: inline-flex;
  align-items: center;
  gap: 25px;
  margin-bottom: 60px;
}

.como-trabajamos h2::before,
.como-trabajamos h2::after {
  content: "";
  width: 500px;
  height: 3px;
  background: #ff2e2e;
}

/* SLIDER 3D */
.slider-wrapper {
  perspective: 1400px;
  max-width: 900px;
  margin: auto;
}

.slider {
  position: relative;
  height: 520px;
}

.slide {
  position: absolute;
  inset: 0;
  width: 380px;
  margin: auto;
  background: #fff;
  color: #333;
  border-radius: 18px;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.7);
  transition: all 0.8s ease;
  box-shadow: 0 30px 60px rgba(0,0,0,.45);
}

.slide.active {
  opacity: 1;
  transform: scale(1) rotateY(0);
  z-index: 3;
}

.slide.prev {
  opacity: 0.4;
  transform: translateX(-260px) scale(0.85) rotateY(25deg);
  z-index: 2;
}

.slide.next {
  opacity: 0.4;
  transform: translateX(260px) scale(0.85) rotateY(-25deg);
  z-index: 2;
}

.slide img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.step {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 36px;
  height: 36px;
  background: #ff2e2e;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: bold;
}

.slide-text {
  padding: 0px;
}

.slide-text h3 {
  background: #ff2e2e;
  color: #fff;
  padding: 12px;
  margin-bottom: 12px;
  margin-top: -10px !important;
  font-size:2rem;
}

.slide-text p {
  color: #3c3c3c;
  padding: 12px;
  margin-bottom: 12px;
  font-size:16px;
  padding: 10px;
}

/* ENGRANES */
.gear-progress {
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gear {
  width: 54px;
  height: 40px;
  position: relative;
  cursor: pointer;
}

.gear img {
  width: 100%;
  transform: rotate(90deg);
  filter: grayscale(100%);
  opacity: .35;
  transition: .4s;
}

.gear.active img {
  filter: none;
  opacity: 1;
  animation: spin 2.5s linear infinite;
}

.gear span {
  position: absolute;
  inset: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
}

.line {
  width: 46px;
  height: 3px;
  background: #ff2e2e;
  margin: 0 6px;
}

@keyframes spin {
  from { transform: rotate(90deg); }
  to { transform: rotate(450deg); }
}



@media (max-width: 1024px) {

  .como-trabajamos {
    padding: 70px 20px;
  }

  /* TÍTULO */
  .como-trabajamos h2 {
    gap: 18px;
    margin-bottom: 50px;
  }

  .como-trabajamos h2::before,
  .como-trabajamos h2::after {
    width: 260px;
  }

  /* SLIDER */
  .slider-wrapper {
    max-width: 720px;
  }

  .slider {
    height: 480px;
  }

  .slide {
    width: 340px;
  }

  .slide.prev {
    transform: translateX(-210px) scale(0.82) rotateY(20deg);
  }

  .slide.next {
    transform: translateX(210px) scale(0.82) rotateY(-20deg);
  }

  .slide img {
    height: 210px;
  }

  .slide-text h3 {
    font-size: 1.7rem;
  }

  .slide-text p {
    font-size: 15px;
  }

  /* ENGRANES */
  .gear {
    width: 48px;
    height: 36px;
  }
 .gear span {
    inset: 20px;
  }
  .line {
    width: 36px;
  }
}


@media (max-width: 600px) {

  .como-trabajamos {
    padding: 60px 14px;
  }

  /* TÍTULO */
  .como-trabajamos h2 {
    flex-direction: column;
    gap: 14px;
    margin-bottom: 40px;
    text-align: center;
  }

  .como-trabajamos h2::before,
  .como-trabajamos h2::after {
    width: 140px;
  }

  /* SLIDER */
  .slider-wrapper {
    max-width: 100%;
  }

  .slider {
    height: 430px;
  }

  .slide {
    width: 92%;
    max-width: 330px;
    transform: scale(0.85);
  }

  .slide.prev,
  .slide.next {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.75);
  }

  .slide.active {
    transform: scale(1);
  }

  .slide img {
    height: 190px;
  }

  .step {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .slide-text h3 {
    font-size: 1.5rem;
  }

  .slide-text p {
    font-size: 14px;
    line-height: 1.45;
  }

}

@media (max-width: 600px) {

  .gear-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;          /* ← CLAVE: no permitir salto */
    gap: 8px;
    overflow-x: auto;           /* seguridad en pantallas muy pequeñas */
    padding-bottom: 15px;
  }

  .gear-progress::-webkit-scrollbar {
    display: none;
  }

  .gear {
    flex: 0 0 auto;             /* ← evita que se compriman */
    width: 42px;
    height: 32px;
  }

  .gear img {
    width: 100%;
  }

  .line {
    flex: 0 0 auto;
    width: 24px;
    height: 3px;
  }
}


/* SECCIÓN BENEFICIOS */
.beneficios-clave {
  background: #000;
}

/* FONDO CON IMAGEN (MAX 1920px) */
.beneficios-bg {
  max-width: 1920px;
  margin: auto;
  background-image: url("images/Fondo-claro-con-textura.jpg");
  background-size: cover;
  background-position: center;
  padding: 100px 20px;
}

/* CONTENIDO */
.beneficios-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 60px;
  align-items: center;
}

/* MECANISMO */
.mecanismo-wrapper {
  display: flex;
  justify-content: center;
}

.mecanismo-container {
  position: relative;
  width: 380px;
  height: 380px;
}

/* SOLO GIRA ESTO */
.mecanismo {
  width: 100%;
  height: 100%;
  transition: transform 1s cubic-bezier(0.65, 0, 0.35, 1);
}

.img-mecanismo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ICONO CENTRAL FIJO */
.icono-central {
  width: 120px;
  height: 120px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.icono-central img {
  width: 100px;
}

/* TEXTO */
.beneficios-texto h2 {
  background: #e53935;
  color: #fff;
  display: inline-block;
  padding: 10px 25px;
  font-size: 60px;
  margin-bottom: 20px;
}

.beneficios-texto p {
  font-size: 34px;
  color: #3c3c3c;
  max-width: 715px;
  font-weight: 700;
}


@media (max-width: 1024px) {

  /* CONTENEDOR GENERAL */
  .beneficios-bg {
    padding: 80px 30px;
  }

  .beneficios-container {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
  }

  /* MECANISMO */
  .mecanismo-container {
    width: 320px;
    height: 320px;
    margin: auto;
  }

  .icono-central {
    width: 100px;
    height: 100px;
  }

  .icono-central img {
    width: 80px;
  }

  /* TEXTO */
  .beneficios-texto h2 {
    font-size: 46px;
    padding: 8px 22px;
  }

  .beneficios-texto p {
    font-size: 26px;
    max-width: 600px;
    margin: auto;
  }
}


@media (max-width: 768px) {

  .beneficios-bg {
    padding: 60px 20px;
  }

  .beneficios-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* MECANISMO */
  .mecanismo-container {
    width: 260px;
    height: 260px;
  }

  .icono-central {
    width: 80px;
    height: 80px;
  }

  .icono-central img {
    width: 60px;
  }

  /* TEXTO */
  .beneficios-texto h2 {
    font-size: 34px;
    padding: 8px 18px;
  }

  .beneficios-texto p {
    font-size: 20px;
    line-height: 1.5;
    max-width: 100%;
    font-weight: 600;
  }
}


@media (max-width: 1024px) {

  .beneficios-container {
    grid-template-columns: 1fr;
  }

  /* TEXTO PRIMERO */
  .beneficios-texto {
    order: 1;
  }

  /* MECANISMO DESPUÉS */
  .mecanismo-wrapper {
    order: 2;
  }
}
@media (max-width: 768px) {

  .beneficios-texto {
    order: 1;
  }

  .mecanismo-wrapper {
    order: 2;
  }
}




/* ===========================
   SECCIÓN SECTORES
=========================== */

.sectores {
    width: 100%;
    padding: 0px 0 300px 0px;
	margin-top: 60px;
}

.sectores-contenido {
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

/* ---- TEXTO ---- */

.texto-sectores {
    flex: 1;
    max-width: 730px;
}

.titulo-sectores{
    font-size: 36px !important;
    font-weight: 800 !important;
    color: #ef3b3b !important;
    margin-bottom: 20px !important;
}

.descripcion2 {
    font-size: 20px !important;
    color: #4d4d4d !important;
    line-height: 1.5 !important;
    margin-bottom: 40px !important;
}

/* BLOQUE ROJO */

.bloque-rojo {
    background: #f23030;
    color: #fff;
    padding: 25px 28px;
    border-radius: 4px;
    font-size: 22px;
    line-height: 1.4;
    font-weight: 500;
    max-width: 520px;
}

/* ---- IMÁGENES ---- */

.imagen-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.imagen-wrapper img {
    border-radius: 22px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    object-fit: cover;
}

/* Imagen grande izquierda (arriba) */
.img-top {
    width: 550px;
    height: 460px;
    position: absolute;
    right: 40px;
    top: 0;
}

/* Imagen estadio (superpuesta derecha) */
.img-middle {
    width: 390px;
    height: 320px;
    position: absolute;
    right: -20px;
    top: 180px;
}

/* Imagen consultorio (abajo) */
.img-bottom {
    width: 350px;
    height: 280px;
    position: absolute;
    right: 320px;
    top: 320px;
}


/* ===========================
   RESPONSIVO TABLET – IMÁGENES COMPLETAS
=========================== */
@media (max-width: 1024px) {

    .sectores {
        padding: 0 24px 160px;
    }

    .sectores-contenido {
        flex-direction: column;
        align-items: center;
        gap: 60px;
        text-align: center;
    }

    .texto-sectores {
        max-width: 100%;
    }

    .titulo-sectores {
        font-size: 32px !important;
    }

    .descripcion2 {
        font-size: 18px !important;
    }

    .bloque-rojo {
        max-width: 680px;
        margin: 0 auto;
        font-size: 20px;
    }

    /* Galería limpia */
    .imagen-wrapper {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        width: 100%;
        max-width: 820px;
    }

    .imagen-wrapper img {
        position: static;
        width: 100%;
        height: 240px;
        object-fit: contain; /* CLAVE */
        background: #f5f5f5;
        padding: 12px;
        border-radius: 20px;
    }

    .img-top,
    .img-middle,
    .img-bottom {
        all: unset;
    }
}


/* ===========================
   RESPONSIVO MÓVIL – IMÁGENES COMPLETAS
=========================== */
@media (max-width: 600px) {

    .sectores {
        padding: 0 16px 30px;
    }

    .titulo-sectores {
        font-size: 26px !important;
    }

    .descripcion2 {
        font-size: 16px !important;
    }

    .bloque-rojo {
        font-size: 18px;
        padding: 22px;
    }

    .imagen-wrapper {
        display: flex;
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }

    .imagen-wrapper img {
        width: 95%;
        height: auto;
        max-height: 260px;
        object-fit: contain;
        background: #f5f5f5;
        padding: 12px;
        border-radius: 18px;
    }
}




/* ====================== SECCIÓN CONTACTO ====================== */

/* ========================= CONTENEDOR GENERAL ========================= */

.seccion-mantenimiento {
    width: 100%;
    display: flex;
    justify-content: center;
    padding-top: 0px; /* espacio para que la persona sobresalga */
    padding-bottom: 90px; /* espacio para que los botones sobresalgan */
}

/* ========================= FONDO PRINCIPAL ========================= */

.contenedor-fondo {
    position: relative;
    width: 100%;
    max-width: 1920px;
}

.fondo-img {
    width: 100%;
    max-width: 1920px;
	height: 520px;
    display: block;
}

/* ========================= PERSONA QUE SOBRESALE ========================= */

.persona-img {
    position: absolute;
    top: -16px;
	left: 40px;
	width: 620px;         /* ajústalo según tu imagen */
    z-index: 10;
}

/* ========================= TEXTO SUPERPUESTO ========================= */

.contenido-texto {
    position: absolute;
    top: 70px;
    right: 60px;
    width: 65%;
    color: white;
}

.contenido-texto h2 {
    font-size: 40px;
    font-weight: 800;
    color: #ff3b3b;
    margin-bottom: 20px;
}

.descripcion {
    font-size: 32px !important;
    line-height: 1.4 !important;
	color:white !important;
	max-width: 1200px !important;
}

.caja-contacto {
    background: white;
    color: #333;
    margin-top: 30px;
	margin-left: auto;
    padding: 20px 28px;
    font-size: 22px;
    border-radius: 12px;
    width: fit-content;
}

.caja-contacto .resaltado {
    color: #ff3b3b;
    font-weight: 800;
}

/* ========================= BOTONES QUE SOBRESALEN ========================= */

.botones-inferiores {
    position: absolute;
    bottom: -30px;   /* sobresalen hacia abajo */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 45px;
}

/* SOMBRA GENERAL PARA AMBOS BOTONES */
.botones-inferiores a {
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}


.btn-rojo,
.btn-whatsapp {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.btn-rojo {
    background: #ff3b3b;
    color: white;
	border-radius: 100px 10px 10px 100px;
	padding: 0 20px 0 0px;
}

.btn-whatsapp {
    background: #fff;
    color: #333;
	border-radius: 10px 100px 100px 10px;
	padding: 0 0 0 20px;
}

.btn-rojo img,
.btn-whatsapp img {
    width: 70px;
  background: #fff;
  border-radius: 50%;
  object-fit: none;
}



/* =========================================================
   OCULTAR / MOSTRAR SEGÚN DISPOSITIVO
   ========================================================= */

/* Vista mobile oculta por defecto */
.seccion-mantenimiento-mobile {
    display: none;
}

/* Ocultar escritorio y mostrar mobile */
@media (max-width: 1024px) {
    .seccion-mantenimiento {
        display: none;
    }

    .seccion-mantenimiento-mobile {
        display: block;
    }
}

/* =========================================================
   SECCIÓN RESPONSIVA
   ========================================================= */

.seccion-mantenimiento-mobile {
    position: relative;
    width: 100%;
    color: white;
    overflow: hidden;
}

/* =========================================================
   FONDO
   ========================================================= */

.mobile-fondo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* =========================================================
   CONTENIDO GENERAL
   ========================================================= */

.mobile-contenido {
    padding: 50px 20px 70px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

/* =========================================================
   TÍTULO Y TEXTO
   ========================================================= */

.mobile-contenido h2 {
    font-size: 28px;
    font-weight: 800;
    color: #ff3b3b;
    line-height: 1.2;
    margin-bottom: 18px;
}

.mobile-contenido p {
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 0;
}

/* =========================================================
   PERSONA (SIN FLOTADO)
   ========================================================= */

.mobile-persona-wrap {
    margin: 30px auto 0;
    max-width: 320px;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.mobile-persona {
    width: 50%;
    height: auto;
    display: block;
}

/* =========================================================
   CAJA DE CONTACTO
   ========================================================= */

.mobile-caja {
    background: white;
    color: #333;
    padding: 18px;
    border-radius: 14px;
    font-size: 16px;
    margin: 0px auto 35px;
}

.mobile-caja span {
    color: #ff3b3b;
    font-weight: 800;
    display: block;
    margin-bottom: 6px;
}

/* =========================================================
   BOTONES
   ========================================================= */

.mobile-botones {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-btn-rojo,
.mobile-btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 20px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 60px;
    text-decoration: none;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

/* Botón rojo */
.mobile-btn-rojo {
    background: #ff3b3b;
    color: white;
}

/* Botón WhatsApp */
.mobile-btn-whatsapp {
    background: white;
    color: #333;
}

/* Iconos */
.mobile-btn-rojo img,
.mobile-btn-whatsapp img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}
