/* --- VARIABLES & FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@400;700&display=swap');
/* Fallback if Arial Nova Cond is not local, use Roboto Condensed for Titles. For body, use Arial standard */

:root {
  /* Brand Colors (Originales del brief) */
  --color-primary: #0057B8;
  --color-primary-dark: #00428a;
  --color-primary-bg: #E6F0FA; /* Fondo azul muy claro */
  --color-accent: #D62828;
  --color-accent-hover: #b81f1f;
  --color-text: #1F1F1F;
  --color-text-light: #555555;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F5F7FA;
  
  /* Typography */
  --font-heading: 'Arial Nova Cond', 'Roboto Condensed', 'Arial Narrow', sans-serif;
  --font-body: Arial, Helvetica, sans-serif;
  
  /* Layout */
  --container-width: 1200px;
  --nav-height: 120px;
  
  /* Transitions */
  --transition-fast: 0.3s ease;
  --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

  /* --- Glassmorphism tokens --- */
  --glass-bg: rgba(255, 255, 255, 0.65);     /* Tarjetas sobre fondo claro */
  --glass-bg-strong: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(255, 255, 255, 0.45);
  --glass-blur: 14px;
  --glass-bg-dark: rgba(255, 255, 255, 0.08); /* Tarjetas sobre secciones oscuras */
  --glass-border-dark: rgba(255, 255, 255, 0.18);
  --radius-lg: 18px;
  --radius-xl: 24px;
  --glow-accent: 0 0 35px rgba(214, 40, 40, 0.45);
  --glow-primary: 0 0 35px rgba(0, 87, 184, 0.4);
}

/* --- RESET & GLOBAL --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: var(--color-primary);
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- UTILITIES --- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -1rem;
}

.align-center {
  align-items: center;
}

.col-5 { flex: 0 0 41.666%; max-width: 41.666%; padding: 0 1rem; }
.col-6 { flex: 0 0 50%; max-width: 50%; padding: 0 1rem; }
.col-7 { flex: 0 0 58.333%; max-width: 58.333%; padding: 0 1rem; }

@media (max-width: 992px) {
  .col-5, .col-6, .col-7 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 2rem;
  }
}

.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.text-white { color: #ffffff !important; }
.bg-light { background-color: var(--color-bg-alt); }
.bg-primary { background-color: var(--color-primary); color: #fff; }

.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }

.rounded-image { border-radius: 8px; }
.shadow { box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.shadow-lg { box-shadow: 0 15px 40px rgba(0,0,0,0.15); }

/* --- BUTTONS --- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 4px;
  font-weight: bold;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--color-accent);
  color: white;
}
.btn-primary:hover {
  background-color: var(--color-accent-hover);
  color: white;
}

.btn-outline {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}
.btn-outline:hover {
  background-color: white;
  color: var(--color-primary);
}

.btn-block {
  width: 100%;
  display: block;
}

/* --- NAVBAR --- */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
  z-index: 1000;
  transition: height var(--transition-smooth), background var(--transition-fast), box-shadow var(--transition-fast);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  height: 80px; /* Reducido de 90px para mejor ajuste */
}

.nav-logo {
  max-height: 80px;
  width: auto;
  display: block;
  transition: max-height var(--transition-fast) ease-in-out;
}

.navbar.scrolled .nav-logo {
  max-height: 55px; /* Reducción de tamaño automática al hacer scroll */
}

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

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-primary);
}
.logo-accent {
  color: var(--color-accent);
}

.nav-list {
  display: flex;
  list-style: none;
  align-items: center;
}

.nav-link {
  position: relative;
  color: var(--color-text);
  font-weight: 600;
  padding: 0.5rem 1rem;
  margin: 0 0.2rem;
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}
.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--color-accent);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}
.nav-link:hover {
  color: var(--color-primary);
}
.nav-link:hover::after {
  width: 70%;
}

.btn-contact {
  background: var(--color-primary);
  color: white !important;
  border-radius: 4px;
  padding: 0.6rem 1.4rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-contact:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 87, 184, 0.3);
}

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-primary);
}

@media (max-width: 992px) {
  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    background: white;
    flex-direction: column;
    transition: left var(--transition-fast);
  }
  .nav-menu.active {
    left: 0;
  }
  .nav-list {
    flex-direction: column;
    width: 100%;
    padding: 2rem 0;
  }
  .nav-list li {
    width: 100%;
    text-align: center;
    margin: 1rem 0;
  }
  .mobile-toggle {
    display: block;
  }
}

/* --- SECTIONS --- */
.section {
  padding: 5rem 0;
}
.section-title {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.section-subtitle {
  font-size: 1.2rem;
  color: var(--color-text-light);
  margin-bottom: 3rem;
}
.section-text {
  font-size: 1.1rem;
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
}

/* --- HERO --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  margin-top: var(--nav-height);
  overflow: hidden; /* For background zoom */
}

@keyframes kenBurns {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: url('hero_bg.png') center/cover no-repeat;
  z-index: -2; /* Detrás del video por si no carga */
  transform: translateZ(0);
  backface-visibility: hidden;
}

.hero-video-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%) translateZ(0);
  object-fit: cover;
  z-index: -1;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.45); /* Sin fondo azul o morado. Solo gris oscuro translúcido para notar el video perfecto y leer el texto */
  z-index: 0;
}

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

.hero-title {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  color: white;
  text-transform: uppercase;
}
@media (max-width: 768px) {
  .hero-title { font-size: 2.5rem; }
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* --- SERVICES GRID --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  border-bottom: 3px solid transparent;
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 0;
  background: linear-gradient(180deg, rgba(0, 87, 184, 0.08), rgba(0, 87, 184, 0));
  transition: height 0.4s ease;
  z-index: 0;
  pointer-events: none;
}
.service-card:hover::after {
  height: 100%;
}
.service-card > * {
  position: relative;
  z-index: 1;
}
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 45px rgba(0, 87, 184, 0.18);
  border-color: rgba(0, 87, 184, 0.25);
  border-bottom-color: var(--color-accent);
}

.service-icon {
  font-size: 3rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  transition: transform 0.4s ease, color 0.4s ease;
}
.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
  color: var(--color-accent);
}

.service-title {
  font-size: 1.3rem;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.methodology {
  background:
    radial-gradient(circle at 15% 20%, rgba(0, 87, 184, 0.35), transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(214, 40, 40, 0.22), transparent 45%),
    linear-gradient(135deg, #05162e 0%, #00337a 50%, #002d62 100%) !important;
  color: #ffffff !important;
}

/* --- METHODOLOGY TIMELINE --- */
.timeline {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 1000px;
  margin: 0 auto;
}

.timeline-item {
  width: 22%;
  min-width: 200px;
  background: rgba(255,255,255,0.1);
  padding: 1.5rem;
  border-radius: 8px;
  position: relative;
}

.timeline-icon {
  font-size: 2rem;
  color: white;
  margin-bottom: 1rem;
}

.timeline-content {
  font-weight: bold;
  font-family: var(--font-heading);
}

/* --- SECTORS --- */
.sectors-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
}

.sector-badge {
  background: white;
  padding: 1rem 1.5rem;
  border-radius: 50px;
  font-weight: bold;
  color: var(--color-primary);
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* --- WHY CHOOSE US (FEATURES LIST) --- */
.features-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}
@media (max-width: 768px) {
  .features-list { grid-template-columns: 1fr; }
}
.features-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 600;
  font-size: 1.1rem;
}

.special-solutions {
  background:
    radial-gradient(circle at 80% 15%, rgba(0, 87, 184, 0.35), transparent 45%),
    radial-gradient(circle at 20% 85%, rgba(214, 40, 40, 0.2), transparent 45%),
    linear-gradient(135deg, #002d62 0%, #00337a 50%, #05162e 100%) !important;
  color: #ffffff !important;
}

/* --- SOLUTIONS (SECONDARY) --- */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.solution-card {
  background: var(--glass-bg-dark);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border-dark);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, background 0.4s ease;
}
.solution-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: var(--glow-primary);
}
.solution-title {
  font-size: 1.5rem;
  color: white;
  margin-bottom: 1rem;
}

/* --- BLOG --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.blog-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}
.blog-category {
  display: inline-block;
  background: var(--color-accent);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: bold;
  margin-bottom: 1rem;
}

/* --- CONTACT --- */
.contact-info {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-item i {
  font-size: 1.5rem;
  margin-top: 0.2rem;
}
.social-links {
  display: flex;
  gap: 1rem;
}
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-bg-alt);
  border-radius: 50%;
  color: var(--color-primary);
}
.social-icon:hover {
  background: var(--color-primary);
  color: white;
}

.contact-form {
  background: var(--glass-bg-strong);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}
.form-row {
  display: flex;
  gap: 1rem;
}
.form-group {
  margin-bottom: 1.5rem;
  flex: 1;
}
label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}
input, select, textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: var(--font-body);
  transition: border-color var(--transition-fast);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

/* --- FOOTER --- */
.footer {
  background: var(--color-text);
  color: white;
  padding: 2rem 0;
}

/* --- ANIMATIONS & SPECIAL EFFECTS --- */
@keyframes float {
  0%   { transform: translateY(0px) translateZ(0); }
  50%  { transform: translateY(-15px) translateZ(0); }
  100% { transform: translateY(0px) translateZ(0); }
}

.image-col img, .dashboard-mockup img {
  transform: translateZ(0);
}

.dashboard-mockup img:hover {
  animation-play-state: paused;
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(214, 40, 40, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(214, 40, 40, 0); }
  100% { box-shadow: 0 0 0 0 rgba(214, 40, 40, 0); }
}

.btn-primary {
  /* Sombra estática en lugar de animación infinite (la animación de box-shadow causaba freezing) */
  box-shadow: 0 4px 15px rgba(214, 40, 40, 0.4);
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--glow-accent), 0 10px 20px rgba(214, 40, 40, 0.3);
}

.btn-outline:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

.animate-on-scroll {
  opacity: 0;
  transition: opacity var(--transition-smooth), transform var(--transition-smooth);
}
.fade-up { transform: translateY(40px); }
.fade-right { transform: translateX(-40px); }
.fade-left { transform: translateX(40px); }
.fade-in { transform: scale(0.95); }

.animate-on-scroll.visible {
  opacity: 1;
  transform: translate(0) scale(1);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* --- WHATSAPP FLOTANTE --- */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 30px;
  background-color: #25D366; /* Verde oficial de WhatsApp */
  color: #FFF !important;
  border-radius: 50px;
  text-align: center;
  font-size: 35px;
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  animation: float 4s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-5px);
  background-color: #1EBE5D;
  box-shadow: 0px 8px 25px rgba(37, 211, 102, 0.4);
  animation-play-state: paused;
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ============================================================
   TILT 3D  — tarjetas con profundidad que siguen el cursor
   ============================================================ */
.tilt-card {
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.tilt-inner {
  transform: translateZ(40px);   /* eleva el contenido para sensación 3D */
  -webkit-transform: translateZ(40px);
}

/* ============================================================
   BANDA DE ESTADÍSTICAS  (contadores animados sobre glass oscuro)
   ============================================================ */
.stats-section {
  background:
    radial-gradient(circle at 10% 50%, rgba(0, 87, 184, 0.4), transparent 45%),
    radial-gradient(circle at 90% 50%, rgba(214, 40, 40, 0.25), transparent 45%),
    linear-gradient(135deg, #05162e 0%, #002d62 100%) !important;
  color: #ffffff;
  padding: 5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.stat-item {
  background: var(--glass-bg-dark);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border-dark);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.5rem;
  text-align: center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s ease;
}

.stat-item:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.14);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1;
  color: #ffffff;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 25px rgba(0, 87, 184, 0.6);
}

.stat-suffix {
  color: var(--color-accent);
}

.stat-label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 992px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .stat-number { font-size: 2.6rem; }
}

/* ============================================================
   TOQUES FINALES — títulos con línea decorativa y mejor jerarquía
   ============================================================ */
.section-title {
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  margin: 1rem auto 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}
.text-center .section-title::after { margin-left: auto; margin-right: auto; }

/* Texto sin subrayado decorativo cuando NO está centrado */
.section.who-we-are .section-title::after,
.section.why-choose-us .section-title::after,
.section.contact .section-title::after,
.section.technology .section-title::after {
  margin-left: 0;
  margin-right: auto;
}

/* Iconos de servicios con halo sutil en hover */
.service-icon {
  position: relative;
}
.service-card:hover .service-icon {
  filter: drop-shadow(0 0 12px rgba(0, 87, 184, 0.5));
}

/* Accesibilidad: respetar preferencia de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .whatsapp-float { animation: none; }
}

/* ============================================================
   GALERIA DEL MODAL DE SERVICIOS
   ============================================================ */
.svc-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.svc-gallery-item {
  border-radius: 10px;
  overflow: hidden;
  background: #f1f5f9;
  aspect-ratio: 4 / 3;
}

.svc-gallery-img {
  background-size: cover;
  background-position: center;
  cursor: zoom-in;
  transition: transform 0.25s ease;
}

.svc-gallery-img:hover {
  transform: scale(1.03);
}

.svc-gallery-vid video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}

/* Si solo hay un item, que ocupe todo el ancho */
.svc-gallery:has(> .svc-gallery-item:only-child) {
  grid-template-columns: 1fr;
}

/* Responsive */
@media (max-width: 600px) {
  .svc-gallery {
    grid-template-columns: 1fr;
  }
}

.svc-text {
  color: #475569;
}
