/* ==========================================
   VARIABLES Y CONFIGURACIÓN GENERAL
   ========================================== */
:root {
  --bg-dark: #0f172a;       /* Azul Oscuro Profundo (Hero y Header) */
  --bg-card: #1e293b;       /* Azul Grisáceo para Tarjetas */
  --bg-light: #f3f5f7;      /* Gris Muy Claro para el fondo general */
  --bg-alt: #edf1f4;        /* Gris Claro para secciones intercaladas */
  
  --primary: #00e5ff;       /* Cian Neón (Simulación Luz Laser) */
  --accent: #ff6b00;        /* Naranja Industrial / Seguridad */
  
  --text-main: #334155;     /* Texto Principal Oscuro */
  --text-muted: #64748b;    /* Texto Secundario */
  --text-light: #f8fafc;    /* Texto para Fondos Oscuros */
  
  --border-dark: #334155;
  --border-light: #e2e8f0;
  
  --font-title: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-light);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================
   ENCABEZADO / NAV
   ========================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(8px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-image-slot {
  width: 80px;
  height: 80px;
  flex: 0 0 80px;
  border-radius: 4px;
  background-image: url('img/logo.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.logo-content {
  display: flex;
  flex-direction: column;
}

.logo-title-image {
  display: block;
  width: 150px;
  height: auto;
  max-height: 32px;
  object-fit: contain;
}

.logo-text {
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 2px;
}

.logo-sub {
  font-size: 9px;
  color: var(--primary);
  letter-spacing: 3px;
  font-weight: 600;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-link {
  color: #94a3b8;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-link:hover {
  color: var(--primary);
}

.btn-header {
  background-color: transparent;
  color: var(--primary) !important;
  border: 1px solid var(--primary);
  padding: 8px 18px;
  border-radius: 4px;
  transition: all 0.3s;
}

.btn-header:hover {
  background-color: var(--primary);
  color: var(--bg-dark) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 6px;
}

.nav-toggle:hover {
  color: var(--primary);
}

.whatsapp-float {
  position: fixed;
  right: calc(22px + env(safe-area-inset-right));
  bottom: calc(22px + env(safe-area-inset-bottom));
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #2ad16a 0%, #1fae57 100%);
  color: #ffffff;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.35), 0 8px 16px rgba(15, 23, 42, 0.18);
  z-index: 990;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  animation: whatsapp-pulse 2.4s ease-in-out infinite;
}

.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(37, 211, 102, 0.2);
  opacity: 0.7;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 18px 34px rgba(37, 211, 102, 0.4), 0 10px 20px rgba(15, 23, 42, 0.22);
  filter: brightness(1.03);
}

.whatsapp-float i {
  position: relative;
  z-index: 1;
  width: 28px;
  height: 28px;
  stroke-width: 2.5;
}

@keyframes whatsapp-pulse {
  0%,
  100% {
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.35), 0 8px 16px rgba(15, 23, 42, 0.18);
  }
  50% {
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45), 0 0 0 12px rgba(37, 211, 102, 0.08);
  }
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-section {
  position: relative;
  background-image: linear-gradient(rgba(2, 6, 23, 0.35), rgba(2, 6, 23, 0.5)), url('fotos/bannertrabajos.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 160px 0 100px;
  color: var(--text-light);
  border-bottom: 3px solid var(--primary);
  overflow: hidden;
  filter: saturate(1.1) contrast(1.05);
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(1.5px);
  z-index: 0;
}

.hero-container {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-badge,
.hero-title,
.hero-description,
.hero-buttons {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(0, 229, 255, 0.1);
  color: var(--primary);
  border: 1px solid rgba(0, 229, 255, 0.2);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-title);
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #f8fbff;
  text-shadow: 0 2px 10px rgba(15, 23, 42, 0.7);
  cursor: default;
  animation: hero-title-reveal 1s 0.2s ease both, hero-title-float 4s 1.2s ease-in-out infinite alternate;
  transition: filter 0.45s ease, opacity 0.45s ease, transform 0.45s ease;
}

.hero-title:hover {
  filter: blur(5px);
  opacity: 0.55;
}

.highlight {
  color: var(--primary);
  text-shadow: 0 0 0 rgba(0, 229, 255, 0);
  animation: highlight-glow 2.2s ease-in-out infinite alternate;
}

@keyframes hero-title-reveal {
  from {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes hero-title-float {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-6px);
  }
}

@keyframes highlight-glow {
  from {
    text-shadow: 0 0 0 rgba(0, 229, 255, 0);
  }
  to {
    text-shadow: 0 0 16px rgba(0, 229, 255, 0.7);
  }
}

.hero-description {
  font-size: 18px;
  color: rgba(226, 232, 240, 0.96);
  text-shadow: 0 2px 8px rgba(15, 23, 42, 0.8);
  margin-bottom: 35px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

/* BOTONES */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  font-size: 15px;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #e05e00;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border: 1px solid var(--border-dark);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--primary);
}

/* ==========================================
   STATS / ESTADÍSTICAS
   ========================================== */
.stats-section {
  background-color: #0b1120;
  padding: 40px 0;
  border-bottom: 1px solid var(--border-dark);
}

.stats-container {
  display: flex;
  justify-content: space-around;
  text-align: center;
  flex-wrap: wrap;
  gap: 20px;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 180px;
}

.stat-icon {
  width: 28px;
  height: 28px;
  color: var(--primary);
  margin-bottom: 6px;
}

.stat-label-main {
  display: block;
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  color: #f8fafc;
}

.stat-label {
  font-size: 13px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ==========================================
   CLIENTES DESTACADOS
   ========================================== */
.clients-highlight {
  background-color: #0b1120;
  padding: 42px 0 46px;
  border-bottom: 3px solid var(--primary);
}

.clients-highlight-header {
  text-align: center;
  margin-bottom: 24px;
}

.clients-highlight .section-title {
  color: #ffffff;
  font-size: clamp(26px, 2.4vw, 34px);
  margin: 0;
}

.clients-marquee {
  overflow: hidden;
  position: relative;
  width: 100%;
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

.clients-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 26px;
  transition: transform 0.8s ease-in-out;
}

.client-highlight-card {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 220px;
  height: 120px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(148, 163, 184, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.14);
  transition: transform 0.45s ease, border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.client-highlight-card[data-client="Adolis"],
.client-highlight-card[data-client="Veraelec"] {
  background-color: #f8fafc;
  border-color: #cbd5e1;
}

.client-highlight-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 229, 255, 0.4);
}

.client-highlight-card img {
  max-width: 170px;
  max-height: 62px;
  width: 100%;
  object-fit: contain;
  filter: brightness(1.08) contrast(1.04);
}

.client-highlight-card[data-client="Wirex"] img {
  max-width: 210px;
  max-height: 80px;
}

@media (max-width: 640px) {
  .clients-highlight {
    padding-top: 32px;
    padding-bottom: 34px;
  }

  .client-highlight-card {
    width: 170px;
    height: 95px;
  }

  .clients-track {
    gap: 18px;
  }
}

/* ==========================================
   SECCIONES GENERALES
   ========================================== */
.section {
  padding: 90px 0;
}

.bg-alt {
  background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
}

.section-header {
  margin-bottom: 50px;
}

.section-subtitle {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 5px;
}

.section-title {
  font-family: var(--font-title);
  font-size: 32px;
  color: var(--bg-dark);
  font-weight: 700;
}

.about-content {
  max-width: 800px;
  font-size: 17px;
  color: var(--text-muted);
}

.about-content p {
  margin-bottom: 15px;
}

#nosotros {
  position: relative;
  overflow: hidden;
  background-color: #ffffff;
}

#nosotros::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.03), rgba(0, 229, 255, 0));
  pointer-events: none;
}

#nosotros .container {
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
}

.about-copy {
  text-align: left;
}

#nosotros .section-subtitle {
  margin-bottom: 12px;
  color: var(--accent);
  display: inline-block;
}

#nosotros .section-title {
  line-height: 1.15;
  margin-bottom: 22px;
  color: var(--bg-dark);
  text-align: left;
}

.about-copy p {
  max-width: 560px;
  margin-bottom: 18px;
  line-height: 1.8;
  color: var(--text-muted);
  font-size: 17px;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.about-copy strong {
  color: var(--bg-dark);
  font-weight: 800;
}

.about-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.about-carousel {
  --progress: 0%;
  position: relative;
  width: min(100%, 470px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background-color: #e2e8f0;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  border: 8px solid rgba(255, 255, 255, 0.7);
}

.about-carousel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(#0f172a var(--progress), rgba(255, 255, 255, 0.18) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 5px));
  pointer-events: none;
  z-index: 2;
  transition: background 0.08s linear;
  opacity: 0.95;
}

.about-carousel-track,
.about-carousel-slide {
  width: 100%;
  height: 100%;
}

.about-carousel-track {
  position: relative;
}

.about-carousel-slide {
  position: absolute;
  inset: 0;
  display: block;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.about-carousel-slide.is-active {
  opacity: 1;
}

.about-carousel .carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background-color: rgba(15, 23, 42, 0.72);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
}

.about-carousel .carousel-button:hover,
.about-carousel .carousel-button:focus-visible {
  background-color: var(--primary);
  color: var(--bg-dark);
}

.about-carousel .carousel-button-prev {
  left: 18px;
}

.about-carousel .carousel-button-next {
  right: 18px;
}

.about-visual .carousel-dots {
  position: static;
  display: flex;
  justify-content: center;
  gap: 10px;
  transform: none;
  margin-top: 20px;
}

.about-visual .carousel-dot {
  width: 12px;
  height: 12px;
  border: 1px solid rgba(15, 23, 42, 0.35);
  background-color: transparent;
}

.about-visual .carousel-dot.is-active,
.about-visual .carousel-dot:hover,
.about-visual .carousel-dot:focus-visible {
  background-color: var(--primary);
  border-color: var(--primary);
}

/* ==========================================
   TARJETAS DE SERVICIOS
   ========================================== */
.services-banner {
  min-height: 260px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-bottom: 50px;
  border: 1px solid rgba(15, 23, 42, 0.9);
  border-radius: 8px;
  background-color: var(--bg-dark);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  isolation: isolate;
  animation: services-banner-reveal 0.8s ease both;
}

.services-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.7) 48%, rgba(15, 23, 42, 0.22) 100%);
}

.services-banner img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: services-image-drift 12s ease-in-out infinite alternate;
}

.services-banner-content {
  max-width: 560px;
  padding: 42px 48px;
  animation: services-content-reveal 0.8s 0.15s ease both;
}

.services-banner .section-title {
  color: #ffffff;
  margin-bottom: 10px;
}

.services-banner .section-subtitle {
  color: var(--primary);
}

.services-banner p {
  max-width: 420px;
  color: #cbd5e1;
  font-size: 16px;
}

.projects-banner {
  min-height: 260px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-bottom: 50px;
  border-radius: 8px;
  background-color: var(--bg-dark);
  isolation: isolate;
  animation: services-banner-reveal 0.8s ease both;
}

.projects-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.7) 48%, rgba(15, 23, 42, 0.22) 100%);
}

.projects-banner img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: services-image-drift 12s ease-in-out infinite alternate;
}

.projects-banner-content {
  max-width: 560px;
  padding: 42px 48px;
  animation: services-content-reveal 0.8s 0.15s ease both;
}

.projects-banner .section-title {
  color: #ffffff;
  margin-bottom: 10px;
}

.projects-banner .section-subtitle {
  color: var(--primary);
}

.projects-banner p {
  max-width: 420px;
  color: #cbd5e1;
  font-size: 16px;
}

.services-banner,
.projects-banner {
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.services-banner:hover,
.projects-banner:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.2);
}

.services-banner:hover img,
.projects-banner:hover img {
  transform: scale(1.1);
  filter: saturate(1.2) contrast(1.08);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

@media (max-width: 1023px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  animation: service-card-reveal 0.65s ease both;
}

.service-card:nth-child(2) {
  animation-delay: 0.1s;
}

.service-card:nth-child(3) {
  animation-delay: 0.2s;
}

.service-card:nth-child(4) {
  animation-delay: 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.1);
}

.service-image {
  height: 170px;
  overflow: hidden;
  background-color: #e2e8f0;
}

.service-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease, filter 0.55s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.08);
  filter: saturate(1.15) contrast(1.05);
}

.service-card-content {
  position: relative;
  padding: 40px 22px 28px;
}

.service-icon {
  position: absolute;
  top: -28px;
  left: 22px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
  color: var(--accent);
  transition: transform 0.3s ease, color 0.3s ease;
}

.service-icon svg {
  width: 22px;
  height: 22px;
}

.service-card:hover .service-icon {
  color: var(--primary);
  transform: translateY(-3px) rotate(-6deg);
}

.service-card h3 {
  font-family: var(--font-title);
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--bg-dark);
}

.service-card p {
  font-size: 14px;
  color: var(--text-muted);
}

.btn-service-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--bg-dark);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease, gap 0.2s ease;
}

.btn-service-more span {
  color: var(--accent);
  font-size: 18px;
  line-height: 1;
}

.btn-service-more:hover,
.btn-service-more:focus-visible {
  color: #087e91;
  gap: 12px;
}

.service-detail-page {
  padding-top: 80px;
}

.service-detail-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 470px;
  overflow: hidden;
  padding: 72px 0;
  color: var(--text-light);
  background-color: var(--bg-dark);
  background-image: linear-gradient(90deg, rgba(15, 23, 42, 0.97), rgba(15, 23, 42, 0.73) 58%, rgba(15, 23, 42, 0.35)), var(--service-image);
  background-position: center;
  background-size: cover;
  border-bottom: 3px solid var(--primary);
}

.service-detail-hero .container {
  position: relative;
  z-index: 1;
}

.service-detail-hero .hero-badge {
  margin-bottom: 18px;
}

.service-detail-hero .hero-title {
  max-width: 760px;
  margin-bottom: 16px;
}

.service-detail-hero .hero-description {
  max-width: 680px;
  margin-bottom: 28px;
}

.service-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.service-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.service-back-link:hover,
.service-back-link:focus-visible {
  color: var(--primary);
}

.service-detail-content {
  padding: 76px 0;
  background: #ffffff;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 48px;
  align-items: start;
}

.service-detail-copy .section-title {
  margin-bottom: 20px;
}

.service-detail-copy p {
  margin-bottom: 16px;
  color: var(--text-muted);
  line-height: 1.8;
}

.service-benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
  margin-top: 28px;
  list-style: none;
}

.service-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--bg-dark);
  font-size: 14px;
  font-weight: 600;
}

.service-benefits svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  color: #087e91;
}

.service-spec-card {
  padding: 26px;
  border-top: 3px solid var(--accent);
  background: var(--bg-light);
}

.service-spec-card h2 {
  margin-bottom: 16px;
  color: var(--bg-dark);
  font-family: var(--font-title);
  font-size: 19px;
}

.service-spec-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.service-spec-list div {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

.service-spec-list div:last-child {
  border-bottom: 0;
}

.service-spec-list dt {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.service-spec-list dd {
  margin: 3px 0 0;
  color: var(--bg-dark);
  font-size: 14px;
  font-weight: 600;
}

.service-gallery-section {
  padding: 74px 0 84px;
  background: var(--bg-alt);
}

.service-gallery-section .section-title {
  margin-bottom: 26px;
}

.service-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 920px;
  margin: 0 auto;
  gap: 8px;
}

.service-gallery-item {
  display: block;
  padding: 0;
  border: 0;
  aspect-ratio: 1.45 / 1;
  overflow: hidden;
  background: #dce3e8;
  cursor: zoom-in;
}

.service-gallery-item img,
.service-gallery-item video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.service-gallery-item:hover img {
  transform: scale(1.04);
}

.service-lightbox {
  position: fixed;
  inset: 0;
  width: min(82vw, 820px);
  max-width: calc(100vw - 32px);
  height: fit-content;
  max-height: calc(100dvh - 40px);
  margin: auto;
  padding: 48px 0 0;
  overflow: visible;
  border: 0;
  background: transparent;
  box-sizing: border-box;
}

.service-lightbox[open] {
  display: grid;
  place-items: center;
}

.service-lightbox::backdrop {
  background: rgba(2, 6, 23, 0.92);
  backdrop-filter: blur(3px);
}

.service-lightbox > img {
  display: block;
  max-width: 100%;
  max-height: min(68dvh, 620px);
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.service-lightbox-close {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(15, 23, 42, 0.8);
  color: #ffffff;
  cursor: pointer;
}

.service-lightbox-close:hover,
.service-lightbox-close:focus-visible {
  border-color: var(--primary);
  color: var(--primary);
}

@media (max-width: 900px) {
  .service-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .service-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-gallery-item img,
  .service-gallery-item video {
    transition: none;
  }

  .service-gallery-item:hover img {
    transform: none;
  }
}

.service-cta {
  padding: 56px 0;
  color: #ffffff;
  background: var(--bg-dark);
  border-top: 3px solid var(--primary);
}

.service-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.service-cta h2 {
  margin-bottom: 8px;
  font-family: var(--font-title);
  font-size: 26px;
}

.service-cta p {
  max-width: 650px;
  color: #cbd5e1;
}

@media (max-width: 768px) {
  .service-detail-hero {
    min-height: 430px;
    padding: 54px 0;
    background-image: linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.72)), var(--service-image);
  }

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

  .service-detail-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .service-cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .service-benefits {
    grid-template-columns: 1fr;
  }

  .service-detail-actions .btn {
    width: 100%;
    text-align: center;
  }
}

@keyframes services-banner-reveal {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes services-content-reveal {
  from {
    opacity: 0;
    transform: translateX(-22px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes services-image-drift {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.06);
  }
}

@keyframes service-card-reveal {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float {
    animation: none;
    transition: none;
  }

  .hero-title {
    animation: none;
    transition: none;
  }

  .highlight {
    animation: none;
    text-shadow: none;
  }

  .hero-title:hover {
    filter: none;
    opacity: 1;
    transform: none;
  }

  .services-banner,
  .services-banner img,
  .services-banner-content,
  .service-card,
  .projects-banner,
  .projects-banner img,
  .projects-banner-content {
    animation: none;
  }

  .service-icon,
  .service-card,
  .service-image img,
  .services-banner,
  .projects-banner,
  .services-banner img,
  .projects-banner img {
    transition: none;
  }

  .services-banner:hover,
  .projects-banner:hover {
    transform: none;
    box-shadow: none;
  }

  .services-banner:hover img,
  .projects-banner:hover img {
    transform: none;
    filter: none;
  }

  .service-card:hover .service-image img {
    transform: none;
    filter: none;
  }
}

/* ==========================================
   PROYECTOS / PORTAFOLIO
   ========================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

@media (max-width: 1023px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

.project-card {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
  border-color: var(--primary);
}

.project-category {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 5;
  background-color: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(4px);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 6px 12px;
  border-radius: 20px;
}

.project-carousel {
  height: 200px;
  position: relative;
  overflow: hidden;
  background-color: #e2e8f0;
}

.carousel-track,
.carousel-slide {
  width: 100%;
  height: 100%;
}

.carousel-track {
  position: relative;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  display: block;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.carousel-slide.is-active {
  opacity: 1;
}

.carousel-button {
  position: absolute;
  top: 50%;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background-color: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color 0.2s, color 0.2s;
}

.carousel-button:hover,
.carousel-button:focus-visible {
  color: var(--bg-dark);
  background-color: var(--primary);
  outline: none;
}

.carousel-button-prev {
  left: 12px;
}

.carousel-button-next {
  right: 12px;
}

.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  display: flex;
  gap: 7px;
  transform: translateX(-50%);
}

.carousel-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 1px solid #ffffff;
  border-radius: 50%;
  background-color: transparent;
  cursor: pointer;
}

.carousel-dot.is-active,
.carousel-dot:hover,
.carousel-dot:focus-visible {
  background-color: var(--primary);
  outline: none;
}

.project-image-placeholder {
  height: 200px;
  background-color: #e2e8f0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--text-muted);
  gap: 8px;
}

.project-image {
  height: 200px;
  overflow: hidden;
  background-color: #e2e8f0;
}

.project-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease, filter 0.55s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.06);
  filter: saturate(1.1);
}

.project-info {
  padding: 20px;
  border-top: 2px solid var(--accent);
}

.project-info h3 {
  font-size: 17px;
  margin: 0 0 10px;
  color: var(--bg-dark);
}

.project-info p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================
   FOOTER Y CONTACTO
   ========================================== */
.footer-section {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding-top: 80px;
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
}

.footer-title {
  font-family: var(--font-title);
  font-size: 32px;
  margin-bottom: 15px;
}

.footer-logo {
  display: block;
  width: min(100%, 280px);
  height: auto;
  margin-bottom: 20px;
}

.footer-info p {
  color: #94a3b8;
  margin-bottom: 30px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #cbd5e1;
  font-size: 15px;
}

.contact-item i {
  color: var(--primary);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  background-color: #25d366;
  color: #062b16;
}

.btn-whatsapp:hover {
  background-color: #1ebe5d;
  color: #062b16;
  transform: translateY(-2px);
}

.footer-faq {
  border-left: 1px solid var(--border-dark);
  padding-left: 40px;
}

.footer-faq h3 {
  font-family: var(--font-title);
  font-size: 24px;
  margin: 8px 0 25px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.faq-item {
  border-bottom: 1px solid var(--border-dark);
  padding-bottom: 18px;
}

.faq-item summary {
  color: #ffffff;
  cursor: pointer;
  font-weight: 600;
  list-style-position: outside;
}

.faq-item p {
  color: #94a3b8;
  font-size: 14px;
  margin: 10px 0 0;
}

.footer-form-wrapper {
  background-color: var(--bg-card);
  padding: 30px;
  border-radius: 8px;
  border: 1px solid var(--border-dark);
}

.footer-form-wrapper h3 {
  font-family: var(--font-title);
  margin-bottom: 20px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  background-color: #0f172a;
  border: 1px solid var(--border-dark);
  border-radius: 4px;
  color: #ffffff;
  font-family: var(--font-body);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.btn-full {
  width: 100%;
}

.copyright {
  border-top: 1px solid var(--border-dark);
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: #64748b;
}

/* RESPONSIVO PARA MÓVILES */
@media (max-width: 768px) {
  .whatsapp-float {
    width: 52px;
    height: 52px;
    right: 16px;
    bottom: 16px;
    border-width: 2px;
  }

  .whatsapp-float i {
    width: 24px;
    height: 24px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background-color: rgba(15, 23, 42, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 10px 20px 20px;
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu .nav-link {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-menu .btn-header {
    margin-top: 12px;
    text-align: center;
    border-bottom: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-copy {
    order: 1;
  }

  .about-visual {
    order: 2;
  }

  .about-carousel {
    width: min(100%, 360px);
  }

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

  .services-banner {
    min-height: 300px;
  }

  .services-banner::after {
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.58));
  }

  .services-banner-content {
    padding: 32px 25px;
  }

  .projects-banner {
    min-height: 300px;
  }

  .projects-banner::after {
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.58));
  }

  .projects-banner-content {
    padding: 32px 25px;
  }

  .services-banner .section-title {
    font-size: 28px;
  }

  .projects-banner .section-title {
    font-size: 28px;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
  }
}