/* ====================
   RESETEO Y BASE
==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #080808e7;
  color: #f6f6f6;
  padding-top: 80px;
  /* espacio para el header fijo */
}

h1,
h2,
h3 {
  font-family: 'Bebas Neue', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}

h4 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 3px;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* ====================
   HEADER FIJO
==================== */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #1a1a1a;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 28px;
  flex-wrap: wrap;
}

.logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #f6f6f6;
}

/* ====================
   NAVEGACIÓN
==================== */
.tab-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  background: none;
}

.tab_label {
  padding: 8px 15px;
  font-size: 0.9rem;
  color: #f6f6f6;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s;
  border-radius: 5px;
}

.tab_label:hover {
  background: #d62828;
}

.tab {
  display: none;
  /* Ocultamos los inputs */
}

/* =========================
   CARRUSEL DE LOGOS
========================= */

.carousel {
  overflow: hidden;
  width: 100%;
  background: transparent;
  padding: 10px 0;
  margin-top: 20px;
}

.carousel-track {
  display: flex;
  gap: 20px;
  animation: scroll 25s linear infinite;
}

.carousel-track img {
  height: 120px;
  /* Tamaño pequeño */
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
  filter: brightness(0.95);
  transition: transform 0.3s ease;
}

.carousel-track img:hover {
  transform: scale(1.1);
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-100%);
  }
}

/* =========================
   SERVICIOS MEJORADOS
========================= */

.servicios {
  padding: 80px 20px;
  text-align: center;
}

.servicios h2 {
  font-size: 2.5rem;
  margin-bottom: 50px;
  text-transform: uppercase;
  font-family: 'Anton', sans-serif;
  color: white;
  letter-spacing: 1px;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

.servicio-card {
  background: linear-gradient(180deg, #1a1a1a 0%, #111 100%);
  padding: 30px 20px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.servicio-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: #d11b1b;
  /* Rojo mecánico */
}

.servicio-card i {
  font-size: 3rem;
  color: #d11b1b;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.servicio-card h3 {
  font-size: 1.1rem;
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: white;
}

.servicio-card p {
  font-size: 0.95rem;
  color: #d3d3d3;
  line-height: 1.5;
}

.servicio-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(209, 27, 27, 0.5);
}

.servicio-card:hover i {
  transform: scale(1.2);
  color: white;
}


/* ====================
   HERO
==================== */
.hero {
  position: relative;
  height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: url('img/fondo.jpg') no-repeat center center;
  background-size: cover;
  /* Abraza todo el ancho */
  background-position: center;
}

.hero .overlay {
  text-align: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  padding: 2rem;
  border-radius: 10px;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.hero h4 {
  font-size: 1.4rem;
}

.btn-hero {
  background: #d62828;
  color: #fff;
  padding: .8rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: .3s;
}

.btn-hero:hover {
  background: #a61c1c;
}

/* ====================
   SECCIONES GENERALES
==================== */
section {
  padding: 6rem 2rem;
  max-width: 1100px;
  margin: auto;
}

h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}

/* ====================
   ACERCA
==================== */
.acerca p {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2rem;
}

.logos {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.logos img {
  filter: grayscale(100%);
  opacity: .85;
  transition: .3s;
}

.logos img:hover {
  filter: none;
  opacity: 1;
}

/* ====================
   BENEFICIOS
==================== */
.beneficios-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.beneficio {
  background: #1a1a1a;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .3);
  width: 250px;
  text-align: center;
}

.beneficio i {
  font-size: 2rem;
  color: #d62828;
  margin-bottom: 10px;
}

/* ====================
   SERVICIOS
==================== */
.servicios-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.servicio-card {
  background: #1a1a1a;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, .3);
  text-align: center;
  width: 250px;
  transition: .3s;
}

.servicio-card i {
  font-size: 2rem;
  color: #d62828;
  margin-bottom: 1rem;
}

.servicio-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .4);
}

/* ====================
   TESTIMONIOS
==================== */
.testimonios {
  text-align: center;
}

.testimonio {
  background: #1a1a1a;
  padding: 2rem;
  margin: 1rem auto;
  max-width: 600px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, .3);
}

.testimonio p {
  font-style: italic;
  margin-bottom: 10px;
}

/* ====================
   CONTACTO
==================== */
.contacto {
  text-align: center;
}

.contacto .telefono,
.contacto .correo {
  font-size: 1.2rem;
  margin: 10px 0;
}

.btn-contacto {
  background: #d62828;
  color: #fff;
  padding: .8rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  margin-top: 1rem;
  transition: .3s;
}

.btn-contacto:hover {
  background: #a61c1c;
}

/* ====================
   FOOTER
==================== */
footer {
  background: #1a1a1a;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  flex-wrap: wrap;
}

.redes a {
  color: #fff;
  margin-right: 15px;
  font-size: 1.2rem;
  transition: .3s;
}

.redes a:hover {
  color: #d62828;
}

/* ====================
   BARRA FLOTANTE
==================== */
.floating-bar {
  position: fixed;
  right: 20px;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1500;
}

.floating-bar a {
  background: #d62828;
  color: #fff;
  font-size: 1.4rem;
  padding: 10px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .3s;
}

.floating-bar a:hover {
  background: #a61c1c;
}

/* ====================
   RESPONSIVE
==================== */
@media (max-width: 768px) {
  .tab-container {
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    margin-top: 10px;
    background: #1a1a1a;
    padding: 10px 0;
  }

  .tab_label {
    font-size: 1rem;
    padding: 10px;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .hero h4 {
    font-size: 1.1rem;
  }
}

/* =========================
   EFECTOS EN TARJETAS
========================= */
.card-style {
  background: linear-gradient(180deg, #1a1a1a 0%, #111 100%);
  padding: 25px 20px;
  border-radius: 15px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  transition: all 0.4s ease;
}

/* Línea roja inferior */
.card-style::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: #d11b1b;
  transition: width 0.4s ease;
}

/* Hover con brillo y animación */
.card-style:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 10px 25px rgba(209, 27, 27, 0.4);
}

.card-style:hover::after {
  width: 100%;
}

.card-style i {
  font-size: 2.5rem;
  color: #d11b1b;
  margin-bottom: 15px;
  transition: transform 0.3s ease, color 0.3s ease;
}

.card-style:hover i {
  transform: scale(1.2);
  color: white;
}

/* =========================
   CONTACTO - BOTÓN
========================= */
.btn-contacto {
  background: #d11b1b;
  color: white;
  padding: 12px 25px;
  border-radius: 5px;
  display: inline-block;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.3s ease;
}

.btn-contacto:hover {
  background: white;
  color: #d11b1b;
  transform: scale(1.05);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .hero h4 {
    font-size: 1rem;
  }

  .tab-container {
    flex-wrap: wrap;
  }
}

/* =========================
   BARRA FLOTANTE - ÍCONOS BLANCOS
========================= */

/* =========================
   SUBMENÚ DE CONTACTO
========================= */
.submenu {
  position: fixed;
  bottom: 25px;
  right: 25px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  z-index: 2000;
}

.submenu-btn {
  background: #d62828;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 55px;
  height: 55px;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: background 0.3s ease, transform 0.3s ease;
}

.submenu-btn:hover {
  background: #a61c1c;
  transform: scale(1.1);
}

.submenu-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.3s ease;
}

.submenu-options a {
  background: #d62828;
  color: #fff;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: background 0.3s ease, transform 0.3s ease;
}

.submenu-options a:hover {
  background: #a61c1c;
  transform: scale(1.1);
}

/* Estado activo */
.submenu.active .submenu-options {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

/* =========================
   SERVICIOS ANIMADOS
========================= */
.servicios {
  padding: 80px 20px;
  text-align: center;
}

.servicios h2 {
  font-size: 3rem;
  margin-bottom: 60px;
  font-family: 'Anton', sans-serif;
  letter-spacing: 2px;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 35px;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

.servicio-card {
  background: linear-gradient(180deg, #1a1a1a 0%, #111 100%);
  padding: 30px 25px;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
  transition: all 0.5s ease;
  position: relative;
  overflow: hidden;
}

.servicio-card::before {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(214, 40, 40, 0.15);
  transition: all 0.5s ease;
}

.servicio-card:hover::before {
  top: 0;
}

.servicio-card i {
  font-size: 3rem;
  color: #d11b1b;
  margin-bottom: 15px;
  transition: transform 0.4s ease, color 0.3s ease;
}

.servicio-card h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.servicio-card p {
  font-size: 0.95rem;
  color: #d3d3d3;
  margin-bottom: 15px;
}

.servicio-card ul {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.servicio-card ul li {
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: #ccc;
}

.servicio-card:hover {
  transform: translateY(-15px) scale(1.03);
  box-shadow: 0 12px 30px rgba(209, 27, 27, 0.6);
}

.servicio-card:hover i {
  transform: scale(1.3) rotate(5deg);
  color: white;
}

.btn-servicio {
  display: inline-block;
  background: #d62828;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.3s ease;
}

.btn-servicio:hover {
  background: #a61c1c;
  transform: scale(1.05);
}

/* Centrar última tarjeta cuando hay número impar */
.servicios-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 35px;
}

.servicio-card:last-child {
  margin-left: auto;
  margin-right: auto;
}


.beneficios-grid {
  display: flex;
  justify-content: center;
  /* centra las tarjetas */
  align-items: stretch;
  /* todas con la misma altura */
  flex-wrap: wrap;
  /* por si en móvil no caben en una sola fila */
  gap: 20px;
  /* espacio entre tarjetas */
  max-width: 1200px;
  margin: 0 auto;
}

.beneficio {
  flex: 1 1 250px;
  /* hace que se ajusten al ancho disponible */
  max-width: 270px;
  /* tamaño máximo de cada tarjeta */
  text-align: center;
}

.frase-contacto {
  font-size: 1.1rem;
  margin-bottom: 20px;
  text-align: center;
}

.botones-contacto {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 20px;
  color: #ffffff !important;
  /* Fuerza los íconos a blanco */
  font-size: 1.3rem;
}

.btn-contacto {
  background: #d62828;
  color: #fff;
  padding: 12px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.3s ease, transform 0.3s ease;
}

.btn-contacto:hover {
  background: #a61c1c;
  transform: scale(1.05);
}

.btn-contacto.urgente {
  background: #ff0000;
}

.btn-contacto.urgente:hover {
  background: #b30000;
}

.btn-hero,
.btn-servicio,
.btn-contacto {
  position: relative;
  overflow: hidden;
}

.btn-hero::before,
.btn-servicio::before,
.btn-contacto::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.15);
  transform: skewX(-25deg);
}

.btn-hero:hover::before,
.btn-servicio:hover::before,
.btn-contacto:hover::before {
  left: 150%;
  transition: left 0.6s ease;
}

.card-style i,
.servicio-card i,
.beneficio i {
  transition: transform 0.3s ease;
}

.card-style:hover i,
.servicio-card:hover i,
.beneficio:hover i {
  transform: scale(1.2) translateY(-5px);
}

.micro-copy {
  font-size: 0.95rem;
  text-align: center;
  opacity: 0.9;
  margin-top: 8px;
}

.sellos-publicidad {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
  font-size: 1rem;
  margin-top: 30px;
}

.sellos-publicidad i {
  color: #d62828;
  margin-right: 5px;
}