/* ===========================
   RESET Y VARIABLES
   =========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #1a365d;
  --secondary-color: #2563eb;
  --accent-color: #25d366;
  --primary: #901a22;
  --primary-dark: #6b1419;
  --secondary: #2c3e50;
  --light: #f8f9fa;
  --dark: #1a1a1a;
  --gray: #6c757d;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --bg-white: #ffffff;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);

  /* Sistema de Tipografía Estandarizado */
  --font-h1: 2.5rem;
  --font-h2: 2.2rem;
  --font-h3: 1.8rem;
  --font-h4: 1.3rem;
  --font-h5: 1.1rem;
  --font-h6: 0.85rem;
  --font-body: 1rem;
  --font-body-lg: 1.1rem;
  --font-body-sm: 0.9rem;
  --font-tiny: 0.8rem;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  overflow-x: hidden;
  font-size: var(--font-body);
}

/* ===========================
   TOPBAR - CORREGIDO
   =========================== */
.topbar {
  background: linear-gradient(90deg, var(--primary-dark) 0%, #2e2e2e 100%);
  color: white;
  font-size: 0.9rem;
  padding: 0.7rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.topbar-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.topbar-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.topbar-info span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  opacity: 0.9;
}

.topbar-info i {
  color: var(--secondary);
}

.separator {
  opacity: 0.4;
}

.topbar-social {
  display: flex;
  gap: 1rem;
}

.topbar-social a {
  color: white;
  transition: all 0.3s ease;
}

.topbar-social a:hover {
  color: var(--secondary);
  transform: translateY(-2px);
}

/* ===========================
   NAVBAR
   =========================== */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: box-shadow 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.2s ease;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary);
}

.logo img {
  height: 40px;
  width: auto;
}

.logo:hover {
  opacity: 0.8;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s ease;
}

.mobile-menu-btn.active .hamburger:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active .hamburger:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active .hamburger:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  padding: 8px 20px;
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 20px;
  right: 20px;
  height: 2px;
  background: var(--primary-color);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-link.active {
  color: var(--primary-color);
}

.nav-link.active::after {
  transform: scaleX(1);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--accent-color);
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: var(--font-body-sm);
  border-radius: 6px;
  margin-left: 16px;
  transition: all 0.2s ease;
}

.btn-whatsapp i {
  font-size: 18px;
}

.btn-whatsapp:hover {
  background: #20ba5a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.nav-overlay {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  width: 100%;
  height: calc(100vh - 60px);
  background: rgba(0, 0, 0, 0.4);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-overlay.active {
  display: block;
  opacity: 1;
}

/* ===========================
   BOTÓN PRIMARIO
   =========================== */
.btn-primary {
  background: var(--primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-block;
  font-size: var(--font-body-sm);
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(144, 26, 34, 0.3);
}

/* ===========================
   HERO SECTION
   =========================== */
.hero {
  background: url("../img/portadaOficial2.jpg") center center / cover no-repeat;
  height: 330px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin-top: 0;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 30% 50%,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 50%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 2rem;
  text-align: center;
}

.hero h1 {
  font-size: var(--font-h1);
  font-weight: 800;
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease;
  color: white;
  line-height: 1.2;
}

.hero p {
  font-size: var(--font-body-lg);
  font-weight: 400;
  opacity: 0.9;
  animation: fadeInUp 1s ease 0.3s backwards;
  color: white;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===========================
   ABOUT SECTION
   =========================== */
.about {
  padding: 5rem 0;
  width: 100%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f5f6f7 100%);
}

.about::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      rgba(144, 26, 34, 0.02) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(144, 26, 34, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}

.about::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at 20% 30%,
      rgba(144, 26, 34, 0.04) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(44, 62, 80, 0.03) 0%,
      transparent 40%
    );
  animation: subtleGlow 20s ease-in-out infinite alternate;
  z-index: 1;
  pointer-events: none;
}

@keyframes subtleGlow {
  0% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.6;
  }
  100% {
    opacity: 0.4;
  }
}

.about-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Tarjeta de Experiencia */
.experience-card {
  background: linear-gradient(145deg, #6b141a 0%, #901a22 50%, #b91c2a 100%);
  color: white;
  padding: 1.8rem 1.5rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 15px 40px rgba(144, 26, 34, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset, 0 8px 16px rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.experience-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.15) 0%,
    transparent 60%
  );
  animation: rotateGlow 10s linear infinite;
  pointer-events: none;
}

@keyframes rotateGlow {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.experience-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 50px rgba(144, 26, 34, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset, 0 10px 20px rgba(0, 0, 0, 0.15);
}

.experience-card h2 {
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 0.4rem;
  letter-spacing: -1.5px;
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    rgba(255, 255, 255, 0.85) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 1;
  line-height: 1;
}

.experience-card p {
  margin: 0;
  font-size: var(--font-body-sm);
  opacity: 0.95;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.experience-card::after {
  content: "★";
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.8rem;
  opacity: 0.12;
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.12;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.22;
  }
}

/* Subtítulo */
.subtitle {
  background: linear-gradient(135deg, #2c3e50 0%, #1a2732 100%);
  color: white;
  padding: 0.8rem 1.2rem;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(44, 62, 80, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.subtitle::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
  transition: left 0.6s ease;
}

.subtitle:hover::before {
  left: 100%;
}

.subtitle:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(44, 62, 80, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

.subtitle h6 {
  margin: 0;
  font-weight: 700;
  letter-spacing: 2.5px;
  font-size: var(--font-tiny);
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

/* Contenido de Texto */
.about-text {
  position: relative;
  padding-left: 1.5rem;
}

.about-text h3 {
  color: #1a1a1a;
  margin-bottom: 1rem;
  font-size: var(--font-h2);
  font-weight: 800;
  position: relative;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.about-text h3::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #901a22 0%, rgba(144, 26, 34, 0.3) 100%);
  border-radius: 4px;
  margin-top: 0.75rem;
  animation: expandLine 0.8s ease forwards;
}

@keyframes expandLine {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 60px;
    opacity: 1;
  }
}

.about-text h3::before {
  content: "✦";
  position: absolute;
  left: -1.5rem;
  top: 0.3rem;
  font-size: 1.3rem;
  color: #901a22;
  opacity: 0.25;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.about-text p {
  color: #555;
  line-height: 1.7;
  font-size: var(--font-body);
  margin-bottom: 1rem;
  font-weight: 400;
  text-align: justify;
}

.about-text p strong {
  color: #901a22;
  font-weight: 700;
}

.about-text p:last-of-type {
  margin-bottom: 0;
}

/* ===========================
   SERVICES SECTION
   =========================== */
.services {
  background: #ffffff;
  padding: 3rem 2rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.services::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
  z-index: 0;
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.section-title h6 {
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 0.75rem;
  font-weight: 700;
  font-size: var(--font-tiny);
  position: relative;
  display: inline-block;
  padding: 0.4rem 1.2rem;
  background: rgba(144, 26, 34, 0.08);
  border-radius: 30px;
}

.section-title h2 {
  font-size: var(--font-h2);
  color: #1a1a1a;
  font-weight: 800;
  margin-top: 0.5rem;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.section-title p {
  color: #666;
  margin-top: 0.75rem;
  font-size: var(--font-body);
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  font-weight: 400;
}

.services-slider-container {
  max-width: 1400px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  padding: 1.5rem 1rem;
}

.services-grid {
  display: flex;
  gap: 2rem;
  animation: slideServices 45s linear infinite;
  width: fit-content;
  padding: 1rem 0;
  align-items: stretch;
}

.services-grid:hover {
  animation-play-state: paused;
}

@keyframes slideServices {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ===========================
   SERVICE CARD
   =========================== */
.service-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.03);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  width: 340px;
  flex-shrink: 0;
  position: relative;
  border: 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  border-color: transparent;
}

.service-card > img {
  display: none;
}

/* ===========================
   IMAGEN DE PRODUCTO EN SERVICE CARD
   =========================== */
.service-product-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
}

.service-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-product-image img {
  transform: scale(1.05);
}

/* Ocultar el fondo de color cuando hay imagen de producto */
.service-card:has(.service-product-image)::before {
  display: none;
}

.service-card:has(.service-product-image)::after {
  display: none;
}

/* Fondo de color superior (cuando NO hay imagen) */
.service-card::before {
  content: "";
  display: block;
  width: 100%;
  height: 200px;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.service-card:nth-child(2n)::before {
  background: linear-gradient(135deg, var(--secondary) 0%, #1a2732 100%);
}

.service-card:nth-child(3n)::before {
  background: linear-gradient(135deg, #c62828 0%, #7b1fa2 100%);
}

.service-card:nth-child(4n)::before {
  background: linear-gradient(135deg, #00695c 0%, #004d40 100%);
}

.service-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: radial-gradient(
      circle at 20% 30%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(255, 255, 255, 0.08) 0%,
      transparent 40%
    );
  pointer-events: none;
}

/* ===========================
   SERVICE CARD BODY
   =========================== */
.service-card-body {
  padding: 2rem 1.5rem 1.75rem;
  position: relative;
  background: white;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* ===========================
   ICON BOX
   =========================== */
.service-icon-box {
  position: absolute;
  top: -28px;
  left: 1.5rem;
  width: 60px;
  height: 60px;
  background: white;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.4s ease;
}

.service-card:hover .service-icon-box {
  transform: rotate(10deg) scale(1.08);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  background: #f9f9f9;
}

/* Tamaño y color de íconos */
.service-icon-box i {
  font-size: 1.75rem;
  transition: color 0.3s ease;
}

/* Colores según fondo */
.service-icon-box.red-bg i {
  color: var(--primary);
}

.service-icon-box.dark-bg i {
  color: #1a2732;
}

/* ===========================
   TEXTOS Y BOTONES
   =========================== */
.service-card h4 {
  color: #1a1a1a;
  margin-bottom: 0.85rem;
  margin-top: 2rem;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  transition: color 0.3s ease;
  min-height: 3.2rem;
}

.service-card:hover h4 {
  color: var(--primary);
}

.service-card p {
  color: #666;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  font-size: 0.9rem;
  min-height: 4.8rem;
}

/* ===========================
   BOTÓN
   =========================== */
.service-card .btn-primary {
  background: transparent;
  color: var(--primary);
  padding: 0.85rem 1.75rem;
  border: 2px solid var(--primary);
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.4s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 0.85rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
  align-self: flex-start;
  margin-top: auto;
}

.service-card .btn-primary::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  transition: height 0.4s ease;
  z-index: -1;
  border-radius: 10px;
}

.service-card .btn-primary:hover::before {
  height: 100%;
}

.service-card .btn-primary:hover {
  color: white;
  border-color: var(--primary-dark);
  transform: translateX(4px);
}

.service-card .btn-primary::after {
  content: "→";
  font-size: 1.1rem;
  font-weight: 700;
  transition: transform 0.4s ease;
}

.service-card .btn-primary:hover::after {
  transform: translateX(6px);
}

/* ===========================
   DECORACIÓN
   =========================== */
.service-card-body::after {
  content: attr(data-number);
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 3.5rem;
  font-weight: 900;
  color: rgba(0, 0, 0, 0.03);
  line-height: 1;
  pointer-events: none;
}

.service-card-body > hr {
  display: none;
}
/* ===========================
   EQUIPMENT SECTION
   =========================== */
.equipment {
  padding: 5rem 2rem;
  background: white;
}

.equipment-slider {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.equipment-container {
  display: flex;
  transition: transform 0.5s ease-in-out;
  overflow: hidden;
  width: 100%;
}

.equipment-slide {
  min-width: 100%;
  opacity: 0;
  transform: scale(0.98);
  transition: all 0.5s ease;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  padding: 20px;
  display: none;
}

.equipment-slide.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  opacity: 1;
  transform: scale(1);
}

.equipment-slide img {
  width: 100%;
  max-width: 550px;
  height: 400px;
  object-fit: contain;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  background: #f8f9fa;
}

.equipment-info h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: var(--font-h3);
  font-weight: 700;
}

.equipment-info p {
  font-size: var(--font-body);
  line-height: 1.7;
  color: var(--gray);
}

.equipment-info ul {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
}

.equipment-info ul li {
  padding: 0.5rem 0;
  color: var(--gray);
  font-size: var(--font-body);
}

.equipment-info ul li i {
  color: var(--primary);
  margin-right: 0.5rem;
}

.slider-controls {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.slider-btn {
  background: var(--primary);
  border: none;
  color: #fff;
  font-size: 18px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
}

.slider-btn:hover {
  background: var(--primary-dark);
}

/* ===========================
   SERVICE MODAL STYLES
   =========================== */

.service-modal-overlay {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  animation: modalFadeIn 0.3s ease;
  overflow-y: auto;
  padding: 2rem 1rem;
}

.service-modal-overlay.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.service-modal-content {
  background: white;
  border-radius: 20px;
  max-width: 900px;
  width: 95%;
  max-height: 85vh;
  overflow: hidden;
  animation: modalSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
  position: relative;
  display: flex;
  flex-direction: column;
}

@keyframes modalSlideUp {
  from {
    transform: translateY(60px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.service-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 10;
}

.service-modal-close:hover {
  transform: rotate(90deg) scale(1.1);
  background: var(--primary);
  color: white;
  box-shadow: 0 6px 20px rgba(144, 26, 34, 0.4);
}

.service-modal-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 2rem 2rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.service-modal-header::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.service-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.service-modal-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0 0 0.4rem 0;
  line-height: 1.2;
  position: relative;
  z-index: 1;
}

.service-modal-subtitle {
  font-size: 1rem;
  opacity: 0.95;
  margin: 0;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

.service-modal-body {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  padding: 2rem;
  overflow-y: auto;
  max-height: calc(85vh - 160px);
}

/* Galería de imágenes */
.service-modal-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  height: fit-content;
  position: sticky;
  top: 0;
}

.gallery-image-item {
  position: relative;
  width: 100%;
  height: 150px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 3px solid transparent;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.gallery-image-item:first-child {
  grid-column: 1 / -1;
  height: 220px;
}

.gallery-image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-image-item:hover img {
  transform: scale(1.1);
}

.gallery-image-item.active {
  border-color: var(--primary);
  box-shadow: 0 6px 20px rgba(144, 26, 34, 0.3);
}

.gallery-image-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.4));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-image-item:hover::after {
  opacity: 1;
}

/* Información del servicio */
.service-modal-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-section {
  background: #f8f9fa;
  padding: 1.3rem;
  border-radius: 12px;
  border-left: 4px solid var(--primary);
  transition: all 0.3s ease;
}

.info-section:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.info-section h3 {
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.8rem 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.info-section h3 i {
  font-size: 1.2rem;
}

.service-modal-description {
  color: #555;
  line-height: 1.7;
  font-size: 0.95rem;
  margin: 0;
}

.info-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.info-section ul li {
  color: #555;
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.4rem 0;
  transition: all 0.3s ease;
}

.info-section ul li:hover {
  color: var(--primary);
  padding-left: 0.5rem;
}

.info-section ul li i {
  color: var(--primary);
  font-size: 1rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

/* Call to Action */
.service-modal-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.btn-whatsapp-modal,
.btn-secondary-modal {
  padding: 0.85rem 1.3rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  text-decoration: none;
  border: none;
}

.btn-whatsapp-modal {
  background: linear-gradient(135deg, #25d366 0%, #20ba5a 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-modal:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.btn-secondary-modal {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary-modal:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(144, 26, 34, 0.3);
}

.btn-whatsapp-modal i,
.btn-secondary-modal i {
  font-size: 1.2rem;
}

/* Scrollbar personalizado para el modal */
.service-modal-body::-webkit-scrollbar {
  width: 8px;
}

.service-modal-body::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.service-modal-body::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}

.service-modal-body::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* ===========================
   PRODUCTS SECTION - VERTICAL OPTIMIZADO
   =========================== */
.products {
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
}

/* Buscador y Filtros */
.search-filter-bar {
  max-width: 1200px;
  margin: 0 auto 2.5rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.search-box {
  flex: 1;
  min-width: 280px;
  position: relative;
}

.search-box i {
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 1rem;
  z-index: 1;
}

.search-box input {
  width: 100%;
  padding: 0.9rem 1rem 0.9rem 3rem;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background: white;
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.15);
}

.filter-tags {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.filter-tag {
  padding: 0.65rem 1.2rem;
  border: 2px solid #e9ecef;
  background: white;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #6c757d;
}

.filter-tag:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.filter-tag.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* Container Principal */
.products-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

/* Tarjeta de Categoría */
.product-category {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  border: 2px solid transparent;
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-category:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(255, 107, 0, 0.15);
  border-color: var(--primary);
}

/* Badge de Categoría */
.category-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.badge-featured {
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: #333;
}

.badge-new {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
}

/* Imagen de Categoría */
.category-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-category:hover .category-image img {
  transform: scale(1.15);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0, 0, 0, 0.7));
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.product-category:hover .image-overlay {
  opacity: 1;
}

.quick-view-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  transform: translateY(10px);
}

.product-category:hover .quick-view-btn {
  transform: translateY(0);
}

.quick-view-btn:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

/* Header de Categoría */
.category-header {
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 2px solid #f1f3f5;
}

.header-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.header-icon i {
  font-size: 1.5rem;
  color: white;
}

.category-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
  line-height: 1.3;
}

/* Contenido - Accordion */
.category-content {
  padding: 0.5rem 1rem;
  flex: 1;
}

.accordion-item {
  border-bottom: 1px solid #f1f3f5;
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-header {
  width: 100%;
  background: transparent;
  border: none;
  padding: 0.9rem 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  text-align: left;
}

.accordion-header span {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.accordion-header i:last-child {
  transition: transform 0.3s ease;
  color: var(--primary);
  font-size: 0.8rem;
}

.accordion-header:hover {
  color: var(--primary-dark);
  padding-left: 0.8rem;
}

.accordion-item.active .accordion-header i:last-child {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.accordion-item.active .accordion-content {
  max-height: 500px;
}

.product-list {
  list-style: none;
  padding: 0 0 0.8rem 0;
  margin: 0;
}

.product-list li {
  padding: 0.5rem 0.5rem 0.5rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: #495057;
  transition: all 0.3s ease;
  border-radius: 6px;
  cursor: pointer;
  line-height: 1.5;
}

.product-list li:hover {
  background: rgba(255, 107, 0, 0.05);
  color: var(--primary);
  padding-left: 1.8rem;
}

.product-list li i {
  color: var(--primary);
  font-size: 0.7rem;
  margin-top: 0.35rem;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.product-list li:hover i {
  transform: translateX(3px);
}

/* Footer de Categoría */
.category-footer {
  padding: 1rem 1.5rem;
  border-top: 2px solid #f1f3f5;
  display: flex;
  gap: 0.8rem;
}

.btn-action {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 107, 0, 0.4);
}

.btn-secondary {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: white;
}

/* Modal */
.product-modal-overlay {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  animation: fadeIn 0.3s ease;
  overflow: auto;
}

.product-modal-overlay.active {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.product-modal-content {
  background: white;
  border-radius: 16px;
  max-width: 600px;
  width: 95%;
  max-height: 85vh;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.product-modal-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.product-modal-header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.product-modal-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.product-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.product-modal-body {
  padding: 2rem;
  max-height: calc(85vh - 80px);
  overflow-y: auto;
}

.product-modal-image {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  background: #f8f9fa;
  padding: 1.5rem;
}

.product-modal-description {
  margin-top: 1.5rem;
  text-align: center;
  color: #495057;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===========================
   GALLERY SECTION
   =========================== */
.gallery {
  padding: 5rem 2rem;
  background: white;
}

.gallery-container {
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.75rem 1.75rem;
  border: 2px solid var(--primary);
  background: white;
  color: var(--primary);
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: var(--font-body-sm);
}

.filter-btn:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(144, 26, 34, 0.2);
}

.filter-btn.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 5px 15px rgba(144, 26, 34, 0.3);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  animation: fadeIn 0.5s ease;
}

.gallery-item {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.gallery-item:nth-child(1) {
  animation-delay: 0.1s;
}
.gallery-item:nth-child(2) {
  animation-delay: 0.2s;
}
.gallery-item:nth-child(3) {
  animation-delay: 0.3s;
}
.gallery-item:nth-child(4) {
  animation-delay: 0.4s;
}
.gallery-item:nth-child(5) {
  animation-delay: 0.5s;
}
.gallery-item:nth-child(6) {
  animation-delay: 0.6s;
}

.gallery-item.hide {
  display: none;
}

.gallery-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.gallery-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.gallery-image {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-image img {
  transform: scale(1.1);
}

.gallery-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.3) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-image::after {
  opacity: 1;
}

.stats-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(255, 255, 255, 0.95);
  color: #28a745;
  padding: 0.2rem 0.4rem;
  border-radius: 50px;
  font-size: 0.6rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.stats-badge i {
  font-size: 0.6rem;
}

.gallery-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-category {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: var(--font-tiny);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  width: fit-content;
}

.gallery-content h4 {
  color: var(--dark);
  margin-bottom: 0.75rem;
  font-size: var(--font-h5);
  font-weight: 700;
  line-height: 1.4;
  min-height: 2.8rem;
}

.gallery-content p {
  color: var(--gray);
  font-size: var(--font-body-sm);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.gallery-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--font-body-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--primary);
  border-radius: 8px;
  width: fit-content;
}

.gallery-link:hover {
  background: var(--primary);
  color: white;
  gap: 0.75rem;
  box-shadow: 0 5px 15px rgba(144, 26, 34, 0.2);
}

.gallery-link i {
  transition: transform 0.3s ease;
}

.gallery-link:hover i {
  transform: translateX(3px);
}

/* ===========================
   MODAL
   =========================== */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  border-radius: 20px;
  max-width: 900px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.4s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.modal-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.modal-close:hover {
  transform: rotate(90deg);
  background: var(--primary);
  color: white;
}

.modal-body {
  padding: 2.5rem;
}

.modal-category {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: var(--font-tiny);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.modal-body h2 {
  color: var(--dark);
  margin-bottom: 1rem;
  font-size: var(--font-h2);
  font-weight: 800;
}

.modal-body p {
  color: var(--gray);
  line-height: 1.8;
  font-size: var(--font-body);
  margin-bottom: 1.5rem;
}

.modal-details {
  background: var(--light);
  padding: 1.5rem;
  border-radius: 10px;
  margin-top: 2rem;
}

.modal-details h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: var(--font-h4);
  font-weight: 700;
}

.modal-details ul {
  list-style: none;
  padding: 0;
}

.modal-details ul li {
  padding: 0.75rem 0;
  color: var(--gray);
  font-size: var(--font-body-sm);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.modal-details ul li:last-child {
  border-bottom: none;
}

.modal-details ul li i {
  color: var(--primary);
  margin-top: 0.25rem;
  font-size: 1.1rem;
}

/* ===========================
   TESTIMONIALS SECTION
   =========================== */
.testimonials {
  padding: 5rem 2rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
  overflow: hidden;
}

.testimonials::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
}

.testimonials-container {
  max-width: 1200px;
  margin: 0 auto;
}

.testimonials-wrapper {
  position: relative;
  margin: 3rem 0;
  padding: 0 60px;
}

.testimonials-slider {
  position: relative;
  height: 450px;
  overflow: hidden;
}

.testimonial-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateX(100%);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.testimonial-card.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  z-index: 10;
}

.testimonial-card.prev {
  opacity: 0;
  visibility: hidden;
  transform: translateX(-100%);
  z-index: 1;
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.testimonial-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--primary);
  flex-shrink: 0;
}

.testimonial-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-info h4 {
  color: var(--dark);
  margin-bottom: 0.25rem;
  font-size: var(--font-h4);
  font-weight: 700;
}

.testimonial-info p {
  color: var(--gray);
  margin-bottom: 0.5rem;
  font-size: var(--font-body-sm);
}

.company-name {
  color: var(--primary);
  font-weight: 600;
  font-size: var(--font-body-sm);
}

.testimonial-rating {
  margin-bottom: 1.5rem;
}

.testimonial-rating i {
  color: #ffc107;
  font-size: 1.2rem;
  margin-right: 0.25rem;
}

.testimonial-content {
  position: relative;
  margin-bottom: 1.5rem;
}

.quote-icon {
  position: absolute;
  top: -10px;
  left: -10px;
  font-size: 3rem;
  color: var(--primary);
  opacity: 0.1;
}

.testimonial-content p {
  color: var(--gray);
  line-height: 1.8;
  font-size: var(--font-body);
  font-style: italic;
  position: relative;
  z-index: 1;
}

.testimonial-footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 1rem;
  border-top: 2px solid #f0f0f0;
}

.testimonial-date {
  color: var(--gray);
  font-size: var(--font-body-sm);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.testimonial-date i {
  color: var(--primary);
}

.testimonial-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--primary);
  color: var(--primary);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.testimonial-nav:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.prev-testimonial {
  left: 0;
}

.next-testimonial {
  right: 0;
}

.testimonial-indicators {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: var(--primary);
  width: 30px;
  border-radius: 6px;
}

.indicator:hover {
  background: var(--primary-dark);
}

.trusted-clients {
  margin-top: 5rem;
  text-align: center;
}

.trusted-clients h3 {
  color: var(--dark);
  margin-bottom: 2rem;
  font-size: var(--font-h3);
  font-weight: 700;
}

.clients-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  align-items: center;
}

.client-logo {
  padding: 1rem;
  transition: all 0.3s ease;
  filter: grayscale(100%);
  opacity: 0.6;
}

.client-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

.client-logo img {
  width: 100%;
  height: auto;
  max-height: 60px;
  object-fit: contain;
}

/* ===========================
   FOOTER
   =========================== */
.footer {
  background: var(--dark);
  color: white;
  padding: 3rem 2rem 1rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer h4 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: var(--font-h5);
  font-weight: 700;
}

.footer p,
.footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  display: block;
  padding: 0.25rem 0;
  font-size: var(--font-body-sm);
}

.footer a:hover {
  color: var(--primary);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  padding: 0;
}

.social-links a:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--font-body-sm);
}

.newsletter-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: white;
  border-radius: 5px;
  margin-top: 1rem;
  font-size: var(--font-body-sm);
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-btn {
  width: 100%;
  margin-top: 0.5rem;
}

/* ===========================
   BACK TO TOP BUTTON
   =========================== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  transition: all 0.3s;
  box-shadow: 0 5px 15px rgba(144, 26, 34, 0.3);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.show {
  opacity: 1;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(144, 26, 34, 0.4);
}

/* ===========================
   RESPONSIVE - MEDIA QUERIES
   =========================== */

/* Tablets */
@media (max-width: 992px) {
  :root {
    --font-h1: 2.2rem;
    --font-h2: 2rem;
    --font-h3: 1.6rem;
    --font-h4: 1.2rem;
    --font-h5: 1.05rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-text {
    text-align: center;
    padding-left: 0;
  }

  .about-text h3::before {
    display: none;
  }

  .about-text h3::after {
    margin-left: auto;
    margin-right: auto;
  }

  .about-text p {
    text-align: center;
  }

  .experience-card h2 {
    font-size: 2rem;
  }

  .service-modal-body {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .service-modal-gallery {
    position: relative;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --font-h1: 2rem;
    --font-h2: 1.8rem;
    --font-h3: 1.5rem;
    --font-h4: 1.15rem;
    --font-h5: 1rem;
    --font-body: 0.95rem;
    --font-body-lg: 1.05rem;
  }

  .topbar-content {
    flex-direction: column;
    text-align: center;
    gap: 0.6rem;
  }

  .navbar-content {
    padding: 0 1.5rem;
    height: 60px;
  }

  .logo img {
    height: 35px;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 60px;
    right: -100%;
    width: 100%;
    max-width: 320px;
    height: calc(100vh - 60px);
    background: var(--bg-white);
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    gap: 4px;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    overflow-y: auto;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-link {
    padding: 14px 16px;
    border-radius: 4px;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link:hover {
    background: #f8fafc;
  }

  .nav-link.active {
    background: #f1f5f9;
  }

  .btn-whatsapp {
    margin: 16px 0 0 0;
    justify-content: center;
  }

  .hero {
    height: 155px;
    margin-top: 60px;
  }

  .about {
    padding: 2rem 0;
  }

  .about-grid {
    gap: 2rem;
    padding: 0 1.5rem;
  }

  .experience-card {
    padding: 1.5rem 1.2rem;
  }

  .experience-card h2 {
    font-size: 1.8rem;
  }

  .services {
    padding: 2.5rem 1.5rem;
  }

  .section-title {
    margin-bottom: 1.5rem;
  }

  .services-grid {
    flex-wrap: wrap;
    animation: none;
    justify-content: center;
  }

  .service-card {
    width: 100%;
    max-width: 420px;
  }

  .service-card::before {
    height: 200px;
  }

  .service-card::after {
    height: 200px;
  }

  .service-product-image {
    height: 200px;
  }

  .equipment-slide.active {
    grid-template-columns: 1fr;
  }

  .equipment-info {
    text-align: center;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .gallery-filters {
    gap: 0.5rem;
  }

  .gallery-image {
    height: 200px;
  }

  .modal-content {
    width: 95%;
    margin: 1rem;
  }

  .modal-body {
    padding: 1.5rem;
  }

  .testimonials {
    padding: 3rem 1rem;
  }

  .testimonials-wrapper {
    padding: 0 50px;
  }

  .testimonials-slider {
    min-height: 550px;
  }

  .testimonial-card {
    padding: 1.5rem;
  }

  .testimonial-header {
    flex-direction: column;
    text-align: center;
  }

  .testimonial-nav {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .clients-logos {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .products-container {
    grid-template-columns: 1fr;
  }

  .back-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 45px;
    height: 45px;
  }

  .service-modal-overlay {
    padding: 1rem;
  }

  .service-modal-content {
    max-height: 95vh;
    border-radius: 16px;
  }

  .service-modal-close {
    top: 1rem;
    right: 1rem;
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
  }

  .service-modal-header {
    padding: 2.5rem 1.5rem 1.5rem;
  }

  .service-modal-title {
    font-size: 1.5rem;
  }

  .service-modal-subtitle {
    font-size: 0.95rem;
  }

  .service-modal-body {
    padding: 1.5rem;
    gap: 1.5rem;
  }

  .service-modal-gallery {
    grid-template-columns: 1fr;
  }

  .gallery-image-item:first-child {
    grid-column: 1;
    height: 220px;
  }

  .gallery-image-item {
    height: 160px;
  }

  .info-section {
    padding: 1.3rem;
  }

  .info-section h3 {
    font-size: 1.1rem;
  }

  .service-modal-cta {
    grid-template-columns: 1fr;
  }

  .search-filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .search-box {
    min-width: 100%;
  }

  .filter-tags {
    justify-content: center;
  }

  .category-image {
    height: 180px;
  }

  .category-header {
    padding: 1rem 1.2rem;
  }

  .category-header h3 {
    font-size: 1rem;
  }

  .header-icon {
    width: 45px;
    height: 45px;
  }

  .header-icon i {
    font-size: 1.3rem;
  }

  .category-footer {
    flex-direction: column;
  }

  .btn-action {
    width: 100%;
  }
}

/* Mobile Pequeño */
@media (max-width: 480px) {
  :root {
    --font-h1: 1.8rem;
    --font-h2: 1.6rem;
    --font-h3: 1.35rem;
    --font-h4: 1.1rem;
    --font-h5: 0.95rem;
    --font-body: 0.9rem;
    --font-body-sm: 0.85rem;
    --font-tiny: 0.75rem;
  }

  .about {
    padding: 1.5rem 0;
  }

  .experience-card {
    padding: 1.3rem 1rem;
  }

  .experience-card h2 {
    font-size: 1.6rem;
    letter-spacing: -1px;
  }

  .experience-card p {
    font-size: 0.75rem;
    letter-spacing: 1.5px;
  }

  .subtitle {
    padding: 0.7rem 1rem;
  }

  .service-card::before {
    height: 180px;
  }

  .service-card::after {
    height: 180px;
  }

  .service-product-image {
    height: 180px;
  }

  .service-icon-box {
    width: 56px;
    height: 56px;
    top: -28px;
    left: 1.5rem;
  }

  .service-card .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 0.9rem 1.5rem;
  }

  .service-modal-overlay {
    padding: 0;
  }

  .service-modal-content {
    border-radius: 0;
    max-height: 100vh;
  }

  .service-modal-close {
    top: 0.75rem;
    right: 0.75rem;
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }

  .service-modal-header {
    padding: 2rem 1.2rem 1.2rem;
  }

  .service-modal-title {
    font-size: 1.3rem;
  }

  .service-modal-subtitle {
    font-size: 0.9rem;
  }

  .service-modal-body {
    padding: 1.2rem;
    gap: 1.2rem;
    max-height: calc(100vh - 160px);
  }

  .gallery-image-item:first-child {
    height: 200px;
  }

  .gallery-image-item {
    height: 140px;
  }

  .info-section {
    padding: 1.2rem;
  }

  .info-section h3 {
    font-size: 1rem;
    gap: 0.5rem;
  }

  .info-section h3 i {
    font-size: 1.1rem;
  }

  .info-section ul li {
    font-size: 0.875rem;
    gap: 0.5rem;
  }

  .btn-whatsapp-modal,
  .btn-secondary-modal {
    padding: 0.9rem 1.2rem;
    font-size: 0.875rem;
    gap: 0.5rem;
  }

  .btn-whatsapp-modal i,
  .btn-secondary-modal i {
    font-size: 1.1rem;
  }

  .service-modal-badge {
    font-size: 0.75rem;
    padding: 0.4rem 1rem;
    gap: 0.4rem;
  }

  .service-modal-description {
    font-size: 0.9rem;
  }

  .category-image {
    height: 160px;
  }

  .category-header {
    padding: 0.9rem 1rem;
  }

  .category-content {
    padding: 0.5rem 0.8rem;
  }

  .accordion-header {
    font-size: 0.85rem;
    padding: 0.8rem 0.3rem;
  }

  .product-list li {
    font-size: 0.8rem;
    padding: 0.4rem 0.4rem 0.4rem 1.2rem;
  }

  .category-footer {
    padding: 0.9rem 1rem;
  }

  .btn-action {
    padding: 0.65rem 0.8rem;
    font-size: 0.8rem;
  }

  .product-modal-content {
    max-width: 95%;
  }

  .product-modal-header {
    padding: 1.2rem 1.5rem;
  }

  .product-modal-body {
    padding: 1.5rem;
  }

  .product-modal-image {
    max-height: 250px;
  }
}

@media (min-width: 769px) {
  .nav-overlay {
    display: none !important;
  }
}

/* Grid estático para servicios en pantallas grandes */
@media (min-width: 1200px) {
  .services-grid.static {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    animation: none;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
  }

  .services-grid.static .service-card {
    width: 100%;
  }
}