/* ========== CSS MAQUINARIA.HTML - SERVIMAQ SPA ========== */

/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* General */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background-color: #f8f9fa;
  color: #333;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ========== NAVBAR ========== */

.navbar {
  height: 80px;
  background-color: rgba(0, 0, 0, 0.9);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  z-index: 999;
}

.navbar-brand {
  font-weight: bold;
  color: #ffffff !important;
}

.nav-link {
  color: #ddd !important;
  margin-right: 15px;
  transition: color 0.3s;
}

.nav-link:hover {
  color: #fff !important;
}
.nav-link.active {
  color: #eea303 !important;
  font-weight: 600;
}
/* Menú colapsado en móviles */
@media (max-width: 992px) {
  .navbar-collapse {
    background-color: rgba(0, 0, 0, 0.95);
    margin-top: 15px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  }
  
  .navbar-nav {
    text-align: center;
  }
  
  .nav-link {
    padding: 12px 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-right: 0 !important;
  }
  
  .nav-link:last-child {
    border-bottom: none;
  }
}
/* ========== HERO CAROUSEL ========== */

/* Hero Carousel Principal */
.hero-carousel {
  position: relative;
  height: calc(100vh - 80px);
  overflow: hidden;
}

/* Contenedor de slides */
.slides {
  height: 100%;
  position: relative;
}

/* Cada slide individual */
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide.active {
  opacity: 1;
  z-index: 1;
  transform: translateX(0);
}

/* Imagen de fondo de cada slide */
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlay con gradiente */
.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%);
  z-index: 1;
}

/* Contenedor principal del contenido hero */
.hero-container {
  position: absolute;
  margin-left: 50px;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  padding: 0 2rem;
  margin-top: 73px;
}

/* Layout en dos columnas del contenido */
.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

/* Columna de texto del hero */
.hero-text {
  color: #fff;
}

/* Título principal del hero */
.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

/* Subtítulo del hero */
.hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  line-height: 1.6;
  font-weight: 300;
}

/* Contenedor de botones CTA */
.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

/* Botón naranja personalizado */
.btn-orange {
  background-color: #eea303;
  color: white;
  font-weight: bold;
  border-color: #eea303;
  padding: 0.8rem 2rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(238, 163, 3, 0.3);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-orange:hover {
  background-color: #fd7e14;
  border-color: #fd7e14;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(238, 163, 3, 0.4);
  color: white;
  text-decoration: none;
}

/* Columna visual derecha */
.hero-visual {
  position: relative;
  height: 500px;
}

/* Elementos decorativos flotantes */
.floating-element {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(45deg, #6c757d, #fd7e14);
  opacity: 0.8;
  animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
  width: 120px;
  height: 120px;
  top: 10%;
  right: 20%;
  animation-delay: 0s;
}

.floating-element:nth-child(2) {
  width: 80px;
  height: 80px;
  top: 60%;
  right: 10%;
  animation-delay: 2s;
  background: linear-gradient(45deg, #ffc107, #fd7e14);
}

.floating-element:nth-child(3) {
  width: 60px;
  height: 60px;
  top: 30%;
  right: 50%;
  animation-delay: 4s;
  background: linear-gradient(45deg, #adb5bd, #ff6b35);
}

/* Animación de flotación */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(120deg); }
  66% { transform: translateY(10px) rotate(240deg); }
}

/* Indicadores de slides (dots) */
.slide-indicators {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 3;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: #ec8702;
  transform: scale(1.2);
}

/* Barra de progreso del slide */
.slide-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  background: #f7a102;
  transition: width 5s linear;
  z-index: 3;
}

/* Controles de navegación (flechas) */
.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 3;
  backdrop-filter: blur(10px);
}

.hero-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.hero-nav.prev {
  left: 30px;
}

.hero-nav.next {
  right: 30px;
}

/* ========== SECCIÓN MAQUINARIA PRINCIPAL ========== */

/* Contenedor principal de maquinaria */
#maquinaria-principal {
  position: relative;
  padding: 80px 0;
  background: #1a1a1a;
  overflow: hidden;
}

/* Elementos decorativos de fondo */
#maquinaria-principal::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: linear-gradient(45deg, rgba(238, 163, 3, 0.1), rgba(253, 126, 20, 0.1));
  border-radius: 50%;
  z-index: 1;
}

#maquinaria-principal::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -15%;
  width: 300px;
  height: 300px;
  background: linear-gradient(45deg, rgba(108, 117, 125, 0.1), rgba(173, 181, 189, 0.1));
  border-radius: 50%;
  z-index: 1;
}

/* Contenedor con z-index superior */
#maquinaria-principal .container {
  position: relative;
  z-index: 2;
}

/* Header de la sección maquinaria */
.maquinaria-header {
  text-align: center;
  margin-bottom: 60px;
}

/* Título principal de maquinaria */
.maquinaria-title {
  font-size: 3rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  display: inline-block;
}

/* Línea decorativa debajo del título */
.maquinaria-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(45deg, #eea303, #fd7e14);
  border-radius: 2px;
}

/* Subtítulo descriptivo */
.maquinaria-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 300;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ========== CARDS DE MAQUINARIA ========== */

/* Card individual de máquina */
.maquina-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Efecto hover en cards de maquinaria */
.maquina-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
  border-color: rgba(238, 163, 3, 0.5);
}

/* Contenedor de imagen de la máquina */
.maquina-image-container {
  position: relative;
  height: 250px;
  overflow: hidden;
}

/* Imagen de la máquina */
.maquina-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.4s ease;
}

.maquina-card:hover .maquina-image {
  transform: scale(1.1);
}

/* Overlay de especificaciones */
.maquina-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(0, 0, 0, 0.7), rgba(238, 163, 3, 0.3));
  opacity: 0;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.maquina-card:hover .maquina-overlay {
  opacity: 1;
}

/* Especificaciones técnicas */
.maquina-specs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
}

.spec-item {
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.spec-item i {
  color: #eea303;
}

/* Contenido de la card */
.maquina-content {
  padding: 25px;
  background: rgba(0, 0, 0, 0.3);
  color: white;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* Header de la máquina */
.maquina-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
  flex-wrap: wrap;
  gap: 10px;
}

/* Título de la máquina */
.maquina-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #eea303;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Badge de estado */
.maquina-badge {
  background: linear-gradient(45deg, #28a745, #20c997);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Variaciones de badges */
.maquina-badge.popular {
  background: linear-gradient(45deg, #007bff, #0056b3);
}

.maquina-badge.transport {
  background: linear-gradient(45deg, #6f42c1, #5a32a3);
}

.maquina-badge.water {
  background: linear-gradient(45deg, #17a2b8, #138496);
}

.maquina-badge.mobile {
  background: linear-gradient(45deg, #fd7e14, #e55a00);
}

.maquina-badge.compact {
  background: linear-gradient(45deg, #e83e8c, #d6336c);
}

/* Descripción de la máquina */
.maquina-description {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin-bottom: 20px;
  font-weight: 300;
  flex-grow: 1;
}

/* Características destacadas */
.maquina-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.feature-tag {
  background: rgba(238, 163, 3, 0.2);
  color: #eea303;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(238, 163, 3, 0.3);
}

/* Acciones de la máquina */
.maquina-actions {
  margin-top: auto;
}

/* Botón de acción */
.btn-maquina {
  background: linear-gradient(45deg, #eea303, #fd7e14);
  border: none;
  padding: 12px 25px;
  font-weight: 600;
  border-radius: 10px;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(238, 163, 3, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: 100%;
}

.btn-maquina:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(238, 163, 3, 0.4);
  color: white;
  text-decoration: none;
}

.btn-maquina i {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.btn-maquina:hover i {
  transform: scale(1.2);
}

/* ========== RESPONSIVE HERO ========== */

/* Responsive del Hero - Tablets */
@media (max-width: 768px) {
  .hero-carousel {
    height: 100vh;
  }
  
  .hero-container {
    padding: 1rem;
    justify-content: center;
    align-items: center;
    padding-top: 0;
    margin-left: 0;
    margin-top: 0;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
    padding: 0;
    align-items: center;
    margin-top: 0;
  }
  
  .hero-text {
    margin-top: 0;
  }
  
  .hero-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    margin-top: 0;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-visual {
    display: none;
  }
  
  .floating-element {
    display: none;
  }
  
  .hero-nav {
    display: none;
  }
}

/* Responsive del Hero - Móviles */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-subtitle {
    font-size: 0.9rem;
  }
  
  .btn-orange {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .floating-element {
    display: none;
  }
}

/* ========== RESPONSIVE MAQUINARIA ========== */

/* Responsive para tablets */
@media (max-width: 768px) {
  /* Sección maquinaria principal */
  #maquinaria-principal {
    padding: 60px 0;
  }
  
  .maquinaria-header {
    margin-bottom: 40px;
  }
  
  .maquinaria-title {
    font-size: 2.4rem;
    letter-spacing: 1px;
  }
  
  .maquinaria-subtitle {
    font-size: 1.1rem;
    padding: 0 20px;
  }
  
  /* Cards de maquinaria responsive */
  .maquina-card {
    margin-bottom: 30px;
  }
  
  .maquina-image-container {
    height: 220px;
  }
  
  .maquina-content {
    padding: 20px;
  }
  
  .maquina-title {
    font-size: 1.2rem;
  }
  
  .maquina-description {
    font-size: 0.95rem;
  }
  
  .btn-maquina {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  /* Specs responsive */
  .maquina-specs {
    flex-direction: row;
    justify-content: center;
    gap: 15px;
  }
  
  .spec-item {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
  
  /* Header responsive */
  .maquina-header {
    align-items: center;
  }
  
  .maquina-badge {
    font-size: 0.7rem;
    padding: 3px 10px;
  }
}

/* Responsive para móviles */
@media (max-width: 480px) {
  /* Maquinaria principal móvil */
  #maquinaria-principal {
    padding: 50px 0;
  }
  
  .maquinaria-title {
    font-size: 2rem;
    letter-spacing: 0.5px;
  }
  
  .maquinaria-title::after {
    width: 70px;
    height: 3px;
  }
  
  .maquinaria-subtitle {
    font-size: 1rem;
    padding: 0 15px;
  }
  
  /* Cards móvil */
  .maquina-card {
    margin-bottom: 25px;
    border-radius: 16px;
  }
  
  .maquina-image-container {
    height: 200px;
  }
  
  .maquina-content {
    padding: 18px;
  }
  
  .maquina-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .maquina-title {
    font-size: 1.1rem;
  }
  
  .maquina-badge {
    align-self: flex-start;
  }
  
  .maquina-description {
    font-size: 0.9rem;
    margin-bottom: 15px;
  }
  
  .maquina-features {
    gap: 6px;
  }
  
  .feature-tag {
    font-size: 0.75rem;
    padding: 3px 8px;
  }
  
  .btn-maquina {
    padding: 10px 18px;
    font-size: 0.85rem;
  }
  
  /* Specs móvil */
  .maquina-specs {
    flex-direction: column;
    gap: 8px;
  }
  
  .spec-item {
    padding: 6px 12px;
    font-size: 0.75rem;
  }
}
/* ========== FOOTER PROFESIONAL ========== */

footer {
  background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
  color: #ffffff;
  padding: 60px 0 20px;
  position: relative;
  overflow: hidden;
}

/* Elementos decorativos de fondo */
footer::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: linear-gradient(45deg, rgba(238, 163, 3, 0.1), rgba(253, 126, 20, 0.1));
  border-radius: 50%;
  z-index: 1;
}

/* Contenedor principal del footer */
.footer-content {
  position: relative;
  z-index: 2;
}

/* Grid del footer */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

/* Sección de información de la empresa */
.footer-company {
  padding-right: 20px;
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: #eea303;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-description {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.footer-contact-item i {
  color: #eea303;
  width: 16px;
  text-align: center;
}

/* Sección de enlaces rápidos */
.footer-section h4 {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #eea303;
  padding-left: 5px;
}

/* Sección de redes sociales */
.social-media {
  margin-top: 20px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.social-link {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
  transform: translateY(-3px);
  color: white;
  text-decoration: none;
}

.social-link.facebook:hover {
  background: #1877f2;
  box-shadow: 0 8px 25px rgba(24, 119, 242, 0.3);
}

.social-link.instagram:hover {
  background: linear-gradient(45deg, #E4405F, #C13584, #833AB4);
  box-shadow: 0 8px 25px rgba(228, 64, 95, 0.3);
}

/* Línea separadora */
.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  margin: 30px 0;
}

/* Copyright */
.footer-bottom {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}
/* Responsive footer */
@media (max-width: 768px) {
  footer {
    padding: 40px 0 20px;
  }
  
  .footer-section {
    display: none;
  }
  
  .footer-section .social-media {
    display: block;
    text-align: center;
  }
  
  .footer-section .social-media h4 {
    display: block;
    margin-bottom: 15px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  
  .footer-company {
    padding-right: 0;
  }
  
  .social-links {
    justify-content: center;
  }
}
/* Botón WhatsApp personalizado */
.btn-wsp {
  background: linear-gradient(45deg, #25d366, #128c7e);
  color: white;
  font-weight: bold;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-wsp:hover {
  background: linear-gradient(45deg, #20b358, #0f6b5c);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  color: white;
  text-decoration: none;
}

.btn-wsp:focus {
  box-shadow: 0 0 0 0.2rem rgba(37, 211, 102, 0.25);
  color: white;
  text-decoration: none;
}
/* ========== FIN CSS MAQUINARIA ========== */