:root {
  /* Tipografías Premium */
  --font-primary: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  
  /* Colores Corporativos del Logo */
  --color-primary: #23272d; /* Gris oscuro corporativo - USO PRINCIPAL */
  --color-primary-dark: #1a1d22;
  --color-primary-light: #2d3238;
  
  /* Colores Secundarios (solo para acentos - 5%) */
  --color-accent-celeste: #29cff1;
  --color-accent-orange: #ff7e06;
  --color-accent-green: #87c54a;
  
  /* Tonos Neutros (70% - base) */
  --color-white: #ffffff;
  --color-gray-50: #f9fafb;
  --color-gray-100: #f7f9fc; /* Fondo alternativo de secciones */
  --color-gray-200: #f0f2f5;
  --color-gray-300: #e5e8eb;
  --color-gray-400: #d1d5db;
  --color-gray-500: #9ca3af;
  --color-gray-600: #6b7280;
  
  /* Gris Oscuro Corporativo (25%) */
  --color-gray-700: #4a4f56;
  --color-gray-800: #3a3f46;
  --color-gray-900: var(--color-primary);
  
  /* Colores Base */
  --color-secondary: var(--color-primary);
  --color-light: var(--color-gray-100);
  --color-muted: var(--color-gray-600);
  --color-text: #2d3238;
  
  /* Espaciado Premium */
  --header-height: 96px;
  --border-radius-sm: 10px;
  --border-radius-md: 14px;
  --border-radius-lg: 18px;
  --border-radius-xl: 24px;
  
  /* Transiciones Fluidas */
  --transition-fast: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-medium: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Sombras Premium (suaves y profesionales) */
  --shadow-sm: 0 2px 8px rgba(35, 39, 45, 0.06), 0 1px 2px rgba(35, 39, 45, 0.04);
  --shadow-md: 0 4px 16px rgba(35, 39, 45, 0.08), 0 2px 4px rgba(35, 39, 45, 0.04);
  --shadow-lg: 0 10px 32px rgba(35, 39, 45, 0.1), 0 4px 8px rgba(35, 39, 45, 0.04);
  --shadow-xl: 0 20px 48px rgba(35, 39, 45, 0.12), 0 8px 16px rgba(35, 39, 45, 0.06);
  --shadow-soft: var(--shadow-md);
  --shadow-card: var(--shadow-lg);
  
  /* Layout */
  --max-width: 1280px;
  --slider-height: 450px; /* Altura por defecto, se actualiza desde el panel admin */
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-primary);
  font-weight: 400;
  color: var(--color-text);
  background-color: var(--color-white);
  line-height: 1.7;
  padding-top: var(--header-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.has-reveal .section,
.has-reveal .service-card,
.has-reveal .portfolio-item,
.has-reveal .testimonial-card,
.has-reveal .contact__form,
.has-reveal .contact__info,
.has-reveal .about-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.has-reveal .revealed {
  opacity: 1;
  transform: translateY(0);
}

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

a {
  color: inherit;
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  border-radius: var(--border-radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  font-family: var(--font-primary);
  transition: all var(--transition-medium);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  background: var(--color-primary-dark);
}

.btn--primary:active {
  transform: translateY(-1px);
}

.btn--outline {
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  background: transparent;
  box-shadow: none;
}

.btn--outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn--sky {
  background: var(--color-white);
  color: var(--color-primary);
  border: 2px solid var(--color-gray-300);
  box-shadow: var(--shadow-sm);
}

.btn--sky:hover {
  background: var(--color-gray-50);
  border-color: var(--color-accent-celeste);
  color: var(--color-accent-celeste);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.header {
  position: relative;
  min-height: auto;
  color: var(--color-white);
  background: transparent;
  padding: 0;
  margin: 0;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.25rem 2rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  transition: all var(--transition-medium);
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar--sticky {
  background: rgba(255, 255, 255, 1);
  box-shadow: var(--shadow-sm);
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--color-gray-200);
}

.navbar__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.navbar--sticky .navbar__links a {
  color: var(--color-secondary);
}

.navbar--sticky .navbar__links a::after {
  background: var(--color-accent-celeste);
}

.navbar--sticky .navbar__social svg {
  fill: var(--color-white);
}

.navbar__right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  position: relative;
}

.navbar__logo img {
  width: 160px;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.35));
}

.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.navbar__toggle span {
  width: 30px;
  height: 3px;
  background-color: var(--color-white);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.navbar__links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.navbar__links > li {
  position: relative;
}

.navbar__links .navbar__submenu {
  list-style: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
  padding: 0.5rem 0;
  min-width: 220px;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
}

.navbar__links .navbar__submenu li a {
  display: block;
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  color: var(--color-gray-800);
  white-space: nowrap;
}

.navbar__links .navbar__submenu li a:hover {
  background: var(--color-gray-50);
  color: var(--color-primary);
}

.navbar__links li:hover > .navbar__submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.navbar__links a {
  font-weight: 500;
  font-size: 0.9375rem;
  position: relative;
  padding: 0.5rem 0;
  color: var(--color-gray-800);
  transition: color var(--transition-fast);
}

.navbar__social {
  display: flex;
  gap: 0.75rem;
}

.navbar__social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-celeste); /* Celeste del logo */
  transition: all var(--transition-medium);
  box-shadow: var(--shadow-sm);
}

.navbar__social a:nth-child(1) {
  background: var(--color-accent-celeste); /* Celeste del logo - #29cff1 */
}

.navbar__social a:nth-child(2) {
  background: var(--color-accent-orange); /* Naranja del logo - #ff7e06 */
}

/* TikTok con el verde del logo solicitado */
.navbar__social a:nth-child(3) {
  background: #86c34a;
}

.navbar__social a:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: var(--shadow-md);
  opacity: 1;
}

.navbar__social svg {
  width: 18px;
  height: 18px;
  fill: var(--color-white);
}

.navbar__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent-celeste);
  transition: width var(--transition-medium);
  border-radius: 2px;
}

.navbar__links a:hover {
  color: var(--color-primary);
}

.navbar__links a:hover::after,
.navbar__links a:focus::after {
  width: 100%;
}

.hero {
  width: 100%;
  max-width: 100%;
  padding: 0;
  padding-bottom: 3.5rem;
  position: relative;
  overflow: hidden;
  margin: 0;
  margin-top: 0;
  box-sizing: border-box;
  display: block;
  background: transparent;
}

.hero::after {
  display: none;
}

.hero__slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  height: var(--slider-height);
  min-height: var(--slider-height);
  max-height: var(--slider-height);
  z-index: 1;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  margin-top: 0;
  /* La altura se actualiza mediante la variable CSS --slider-height desde el panel admin */
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(8%);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  width: 100%;
  /* El background se aplica dinámicamente desde JavaScript desde la tabla hero_slides */
  background: transparent;
}

.hero__slide.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.hero__slide-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  margin-left: calc(50% - (var(--max-width) / 2) - 50px); /* Centrado pero desplazado 50px hacia la izquierda */
  padding: 24px 32px 24px 32px; /* Valores por defecto - se actualizarán desde la API */
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
  align-items: flex-start;
  height: 100%;
  position: relative;
  z-index: 3;
  box-sizing: border-box;
  overflow: visible;
  background: transparent !important;
}

.hero__slide-inner::after,
.hero__slide-inner::before {
  display: none !important;
}

.hero__content {
  padding-top: 0;
  padding-left: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-wrap: break-word;
  position: relative;
  z-index: 4;
}

/* Espacio adicional para el tercer slide (Impresión offset) */
.hero__slide[data-index="2"] .hero__content {
  padding-top: 2rem;
}

.hero__tagline {
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 0.75rem;
  font-family: var(--font-primary);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.15;
  margin-bottom: 1.5rem;
  margin-top: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-white);
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.25), 0 2px 8px rgba(0, 0, 0, 0.15);
  letter-spacing: -0.02em;
}

.hero__subtitle {
  font-size: 1.125rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  line-height: 1.7;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  max-width: 90%;
}

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

.hero__actions .btn--primary {
  background: var(--color-accent-orange);
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(255, 126, 6, 0.3);
}

.hero__actions .btn--primary:hover {
  background: #e67005;
  box-shadow: 0 6px 24px rgba(255, 126, 6, 0.4);
  transform: translateY(-3px);
}

.hero__control {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: var(--color-primary);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--color-white);
  font-size: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-medium);
  z-index: 5;
  box-shadow: var(--shadow-md);
}

.hero__control:hover {
  background: var(--color-accent-celeste);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: var(--shadow-lg);
}

.hero__control--prev {
  left: 40px;
}

.hero__control--next {
  right: 40px;
  transform: translate(50%, -50%);
  background: var(--color-primary);
}

.hero__control span {
  line-height: 1;
  pointer-events: none;
}

.hero__media {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding-top: 40px;
}

.hero__image {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform var(--transition-medium);
}

.hero__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 126, 7, 0.6), rgba(17, 17, 17, 0.2));
  mix-blend-mode: multiply;
  opacity: 0;
  transition: opacity var(--transition-medium);
}

.hero__image:hover img {
  transform: scale(1.05);
}

.hero__image:hover::after {
  opacity: 1;
}

.hero__image--secondary {
  transform: translateY(40px);
}

.section {
  padding: 7rem 0;
  scroll-margin-top: calc(var(--header-height) + 1.5rem);
}

.about.section {
  padding: 2rem 0 5rem;
}

.about-mvv,
.mvv-section {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.mvv-section {
  margin-top: 0;
}

.about-mvv .mvv-card,
.mvv-section .mvv-card {
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-medium);
  border: 1px solid var(--color-gray-100);
}

.about-mvv .mvv-card:hover,
.mvv-section .mvv-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-gray-200);
}

.about-mvv .mvv-card__icon,
.mvv-section .mvv-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
}

.about-mvv .mvv-card h3,
.mvv-section .mvv-card h3 {
  margin: 0 0 12px;
  color: #25262e;
  letter-spacing: 1px;
}

.about-mvv .mvv-card p,
.mvv-section .mvv-card p {
  margin: 0;
  color: rgba(37, 38, 46, 0.75);
  line-height: 1.6;
}

.mvv-card__icon .mvv-icon {
  width: 36px;
  height: 36px;
  stroke: currentColor;
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mvv-card:nth-child(1) .mvv-card__icon .mvv-icon {
  stroke: var(--color-accent-celeste);
}

.mvv-card:nth-child(2) .mvv-card__icon .mvv-icon {
  stroke: var(--color-accent-orange);
}

.mvv-card:nth-child(3) .mvv-card__icon .mvv-icon {
  stroke: var(--color-accent-green);
}

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

.section__header {
  max-width: 720px;
  margin: 0 auto 4rem;
  text-align: center;
  position: relative;
  padding-bottom: 2rem;
}

.section__header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent-celeste) 0%, var(--color-accent-orange) 50%, var(--color-accent-green) 100%);
  border-radius: 2px;
}

.section__header h2 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  margin-bottom: 1rem;
  position: relative;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-gray-900);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section__header p {
  color: var(--color-gray-600);
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.7;
}

.about {
  background: var(--color-white);
  position: relative;
}

.about::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(35, 39, 45, 0.1) 50%, transparent 100%);
}

.about__content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}

.about__media {
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-gray-100);
}

.about__text p {
  margin: 0 0 1.25rem;
  color: rgba(17, 17, 17, 0.85);
}

.about__cta {
  margin-top: 2rem;
}

.mvv-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  justify-content: center;
  padding-top: 40px;
}

.mvv-card {
  min-width: 0;
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-medium);
  border: 1px solid var(--color-gray-100);
}

.mvv-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  border-radius: var(--border-radius-md);
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  background: transparent;
  color: var(--color-accent-celeste);
  box-shadow: none;
  border: 2px solid var(--color-gray-200);
}

.mvv-card:nth-child(1) .mvv-card__icon {
  color: var(--color-accent-celeste);
  border-color: var(--color-accent-celeste);
  background: rgba(41, 207, 241, 0.1);
}

.mvv-card:nth-child(2) .mvv-card__icon {
  color: var(--color-accent-orange);
  border-color: var(--color-accent-orange);
  background: rgba(255, 126, 6, 0.1);
}

.mvv-card:nth-child(3) .mvv-card__icon {
  color: var(--color-accent-green);
  border-color: var(--color-accent-green);
  background: rgba(135, 197, 74, 0.1);
}

.mvv-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-gray-200);
}

.mvv-card:hover .mvv-card__icon {
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
}

.mvv-card h3 {
  margin: 0 0 1rem;
  font-size: 1.375rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-gray-900);
  letter-spacing: -0.01em;
}

.mvv-card p {
  margin: 0;
  color: rgba(17, 17, 17, 0.7);
}

.mvv-card:nth-child(3) p + p {
  margin-top: 0.6rem;
}

.mvv-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  color: rgba(17, 17, 17, 0.7);
}

.mvv-card ul li {
  position: relative;
  padding-left: 1.1rem;
}

.mvv-card ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-accent-green);
}

.mvv-card ul li + li {
  margin-top: 0.5rem;
}

.services {
  background: var(--color-gray-100);
}

.services.section {
  padding: 4rem 0 6rem;
  background: var(--color-gray-200);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.8rem;
}

.services__grid--featured {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.services__grid--2x2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.services__grid--2x2 .service-card {
  min-height: 100%;
}

.services__grid--secondary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.services__actions {
  margin-top: 2.5rem;
  text-align: center;
}

.service-card {
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-medium);
  border: 1px solid var(--color-gray-100);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-gray-200);
}

.service-card__image {
  position: relative;
  overflow: hidden;
  /* Antes: 1 / 1 (cuadrado), luego ~60% de la altura. Ahora ~30% menos alto que la versión anterior */
  aspect-ratio: 12 / 5;
}

.service-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-medium);
}

.service-card__subservices {
  overflow: hidden;
  padding: 1rem 0.75rem 0.05rem;
  background: var(--color-white);
  border-top: 1px solid var(--color-gray-200);
  position: relative;
}

.subservices-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.subservices-carousel {
  overflow: hidden;
  width: 100%;
  scroll-behavior: smooth;
}

.subservices-track {
  display: flex;
  gap: 0.75rem;
  will-change: transform;
  /* CORRECCIÓN: transición suave controlada por JS con translateX */
  transition: transform 0.4s ease;
}

.subservice-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 0.75rem;
  border-radius: var(--border-radius-sm);
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-200);
  transition: all var(--transition-fast);
  cursor: pointer;
  flex-shrink: 0;
  min-width: calc(100% / 3 - 0.6rem);
}

.subservice-item:hover {
  background: var(--color-gray-100);
  transform: translateY(-2px);
}

.subservice-item img {
  width: 100%;
  height: auto;
  max-height: 70px;
  object-fit: contain;
  border-radius: var(--border-radius-sm);
}

.subservice-item span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-gray-700);
  text-align: center;
  line-height: 1.3;
}

.subservices-control {
  border: none;
  background: rgba(0, 0, 0, 0.05);
  color: var(--color-gray-800);
  width: 28px;
  height: 28px;
  border-radius: 999px;
  /* CORRECCIÓN: los botones vuelven a ser visibles para poder controlar el carrusel */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast), opacity var(--transition-fast);
}

.service-card:hover .service-card__image img {
  transform: scale(1.05);
}

.service-card--secondary {
  box-shadow: var(--shadow-soft);
  border-radius: 16px;
  background: #ffffff;
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.service-card--secondary:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(17, 17, 17, 0.18);
}

.service-card--secondary .service-card__body {
  padding: 1.4rem 1.6rem 1.6rem;
  gap: 0.6rem;
}

.service-card--secondary .service-card__body p {
  color: rgba(17, 17, 17, 0.7);
  font-weight: 500;
  margin-bottom: 0;
}

.service-card__body {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.service-card--featured {
  background: var(--color-white);
  border: 2px solid var(--color-gray-200);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.service-card--featured::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent-celeste) 0%, var(--color-accent-orange) 50%, var(--color-accent-green) 100%);
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.service-card--featured .service-card__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(35, 39, 45, 0.05);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-medium);
}

.service-card--featured:hover .service-card__image::after {
  opacity: 1;
}

.service-card__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
  font-size: 0.95rem;
  color: rgba(17, 17, 17, 0.75);
}

.service-card__list li {
  position: relative;
  padding-left: 1.2rem;
}

.service-card__list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-accent-celeste);
  font-weight: 700;
  font-size: 1.2em;
}

.service-card__body h3 {
  margin: 0;
  font-size: 1.375rem;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-gray-900);
  letter-spacing: -0.01em;
}

.service-card__body p {
  margin: 0;
  color: rgba(17, 17, 17, 0.65);
  font-weight: 500;
}

.service-card__caption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: rgba(17, 17, 17, 0.55);
}

.service-card__btn {
  margin-top: auto;
  width: 100%;
  font-size: 0.95rem;
  font-weight: 600;
  background: var(--color-accent-orange);
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(255, 126, 6, 0.3);
  padding: 0.875rem 1.5rem;
  margin-top: 1.5rem;
  border-radius: var(--border-radius-md);
  transition: all var(--transition-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
}

.service-card__btn:hover {
  background: #e67005;
  box-shadow: 0 6px 24px rgba(255, 126, 6, 0.4);
  transform: translateY(-2px);
  color: var(--color-white);
}

.cta {
  background: var(--color-primary);
  color: var(--color-white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 2px, transparent 0);
  background-size: 20px 20px;
  opacity: 0.5;
}

.cta__content {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  z-index: 1;
}

.cta__content .btn--primary {
  background: var(--color-accent-orange);
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(255, 126, 6, 0.3);
}

.cta__content .btn--primary:hover {
  background: #e67005;
  box-shadow: 0 6px 24px rgba(255, 126, 6, 0.4);
  transform: translateY(-3px);
}

.portfolio__filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  border: 2px solid var(--color-gray-200);
  border-radius: var(--border-radius-md);
  padding: 0.75rem 1.75rem;
  background: var(--color-white);
  color: var(--color-gray-700);
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--transition-medium);
  box-shadow: none;
}

.filter-btn:hover {
  transform: translateY(-2px);
  border-color: var(--color-primary);
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.filter-btn.is-active {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: transparent;
  box-shadow: var(--shadow-md);
}

.filter-btn.is-active:hover {
  border-color: transparent;
  color: var(--color-white);
}

.portfolio__grid {
  display: grid;
  /* Antes: 4 columnas. CORRECCIÓN: 3 columnas para que cada tarjeta sea ~40% más grande */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
}

.portfolio-item {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-medium);
  border: 1px solid var(--color-gray-100);
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  padding: 1.5rem 1.5rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 100%);
  color: var(--color-white);
  font-weight: 600;
  font-size: 1rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition-medium);
}

.portfolio-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.portfolio-item:hover img {
  transform: scale(1.1);
}

.portfolio-item:hover figcaption {
  opacity: 1;
  transform: translateY(0);
}

.clients {
  background: var(--color-white);
  position: relative;
}

.clients::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(35, 39, 45, 0.1) 50%, transparent 100%);
}

.clients.section {
  padding-top: 3.5rem;
}

/* Carrusel nuevo de marcas (Principales clientes) */
.carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 20px 0;
}

.carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.4s ease;
}

.carousel-item {
  flex-shrink: 0;
  width: 180px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.carousel-item img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.carousel-btn.prev {
  left: 15px;
}

.carousel-btn.next {
  right: 15px;
}

.faq {
  background: var(--color-gray-100);
}

.faq-details { 
  max-width: 800px; 
  margin: 20px auto; 
  font-family: var(--font-primary);
}

/* Categorías principales (nivel 1) */
.faq-details > details { 
  border: 2px solid var(--color-primary);
  border-radius: var(--border-radius-lg);
  margin-bottom: 1.5rem;
  overflow: hidden;
  background: var(--color-white);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-medium);
}

.faq-details > details:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent-celeste);
}

.faq-details > details > summary { 
  list-style: none; 
  cursor: pointer; 
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, #5a5f66 0%, #4a4f56 100%);
  color: var(--color-white);
  font-weight: 700;
  font-size: 1.125rem;
  font-family: var(--font-heading);
  transition: all var(--transition-medium);
  position: relative;
}

.faq-details > details > summary:hover {
  background: linear-gradient(135deg, #6b7280 0%, #5a5f66 100%);
}

.faq-details > details > summary::-webkit-details-marker { 
  display: none; 
}

.faq-details > details > summary::after { 
  content: "▼"; 
  float: right; 
  transition: transform .3s ease;
  font-size: 0.875rem;
  opacity: 0.9;
}

.faq-details > details[open] > summary::after { 
  transform: rotate(180deg); 
}

.faq-details > details > .faq-body { 
  padding: 1.5rem 2rem;
  background: var(--color-gray-50);
}

/* Preguntas anidadas (nivel 2) - Estilo más sutil */
.faq-details > details > .faq-body > details {
  border: 1px solid var(--color-gray-300);
  border-radius: var(--border-radius-md);
  margin-bottom: 0.75rem;
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-medium);
}

.faq-details > details > .faq-body > details:hover {
  border-color: var(--color-accent-celeste);
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

.faq-details > details > .faq-body > details > summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.5rem;
  background: var(--color-white);
  color: var(--color-gray-900);
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition-medium);
}

.faq-details > details > .faq-body > details > summary:hover {
  background: var(--color-gray-50);
  color: var(--color-primary);
}

.faq-details > details > .faq-body > details > summary::-webkit-details-marker {
  display: none;
}

.faq-details > details > .faq-body > details > summary::after {
  content: "+";
  float: right;
  transition: transform .3s ease, color .3s ease;
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--color-gray-500);
  line-height: 1;
}

.faq-details > details > .faq-body > details[open] > summary::after {
  content: "−";
  transform: rotate(0deg);
  color: var(--color-accent-celeste);
}

.faq-details > details > .faq-body > details > .faq-body {
  padding: 0 1.5rem 1.25rem;
  background: var(--color-white);
}

.faq-details > details > .faq-body > details > .faq-body p {
  margin: 0;
  padding-top: 0.75rem;
  color: var(--color-gray-700);
  line-height: 1.7;
  font-size: 0.9375rem;
}

/* Responsive */
@media (max-width: 640px) {
  .faq-details > details > summary {
    padding: 1.25rem 1.5rem;
    font-size: 1rem;
  }
  
  .faq-details > details > .faq-body {
    padding: 1.25rem 1.5rem;
  }
  
  .faq-details > details > .faq-body > details > summary {
    padding: 0.875rem 1.25rem;
    font-size: 0.9375rem;
  }
  
  .faq-details > details > .faq-body > details > .faq-body {
    padding: 0 1.25rem 1rem;
  }
}

.testimonials {
  background: #ffffff;
}

.testimonials__slider {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background: #f7f7f7;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.testimonial-card::before {
  content: "“";
  font-size: 6rem;
  color: rgba(203, 10, 29, 0.15);
  position: absolute;
  top: -35px;
  left: 20px;
}

.testimonial-card__text {
  margin: 0;
  font-size: 1.05rem;
  color: rgba(17, 17, 17, 0.75);
}

.testimonial-card__author strong {
  display: block;
  color: var(--color-secondary);
}

.testimonial-card__author span {
  color: var(--color-muted);
  font-size: 0.9rem;
}

.contact {
  background: var(--color-white);
  position: relative;
}

.contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(35, 39, 45, 0.1) 50%, transparent 100%);
}

.contact__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
}

.contact__form {
  background: var(--color-white);
  border-radius: var(--border-radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 1.5rem;
  border: 1px solid var(--color-gray-100);
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form__field label {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-gray-700);
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.form__field input,
.form__field textarea {
  border: 2px solid var(--color-gray-200);
  border-radius: var(--border-radius-md);
  padding: 1rem 1.25rem;
  font-size: 1rem;
  font-family: var(--font-primary);
  background: var(--color-white);
  transition: all var(--transition-medium);
  color: var(--color-gray-900);
}

.form__field input:focus,
.form__field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(35, 39, 45, 0.08);
  background: var(--color-gray-50);
}

.form__field input::placeholder,
.form__field textarea::placeholder {
  color: var(--color-gray-400);
}

.contact__info {
  display: grid;
  gap: 2rem;
}

.contact__card {
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--border-radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact__card ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: grid;
  gap: 1rem;
}

.contact__card span {
  display: block;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
}

.contact__map {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--color-white);
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: background var(--transition-fast), transform var(--transition-medium);
}

.contact__map:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
}

.contact__social {
  background: var(--color-white);
  border-radius: var(--border-radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-gray-100);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-accent-celeste); /* Celeste del logo */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-medium);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.social-links a:nth-child(1) {
  background: var(--color-accent-celeste); /* Celeste del logo - #29cff1 */
}

.social-links a:nth-child(2) {
  background: var(--color-accent-orange); /* Naranja del logo - #ff7e06 */
}

.social-links a:nth-child(3) {
  background: var(--color-accent-green); /* Verde del logo - #87c54a */
}

.social-links a:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: var(--shadow-md);
  opacity: 1;
}

.social-links svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.footer {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 4rem 2rem 2rem;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
}

.footer__top {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  align-items: center;
}

.footer__cta .btn--outline {
  border: 2px solid var(--color-accent-orange);
  color: var(--color-accent-orange);
  background: transparent;
}

.footer__cta .btn--outline:hover {
  background: var(--color-accent-orange);
  color: var(--color-white);
  border-color: var(--color-accent-orange);
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(255, 126, 6, 0.3);
}

.footer__brand img {
  width: 160px;
  margin-bottom: 1rem;
}

.footer__brand p {
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.footer__social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.footer__social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-celeste);
  transition: all var(--transition-medium);
  box-shadow: var(--shadow-sm);
}

.footer__social a:nth-child(1) {
  background: var(--color-accent-celeste); /* Celeste del logo - #29cff1 */
}

.footer__social a:nth-child(2) {
  background: var(--color-accent-orange); /* Naranja del logo - #ff7e06 */
}

.footer__social a:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: var(--shadow-md);
  opacity: 1;
}

.footer__social svg {
  width: 18px;
  height: 18px;
  fill: var(--color-white);
}

.footer__links ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.5rem;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.75);
}

.footer__links a:hover {
  color: var(--color-white);
}

.footer__bottom {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer__bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
}

/* Mover créditos y botón Admin un poco hacia la izquierda
   para que no queden debajo del botón flotante de WhatsApp */
.footer__bottom > div:last-child {
  margin-right: 120px;
}

.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius-md);
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-medium);
  z-index: 1100;
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.025em;
  border: none;
}

.whatsapp-float:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  background: linear-gradient(135deg, #128c7e 0%, #25d366 100%);
}

.whatsapp-float__icon {
  width: 24px;
  height: 24px;
  display: inline-block;
}

.whatsapp-float__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  color: #ffffff;
}

.whatsapp-float__text strong {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.whatsapp-float__text small {
  font-size: 0.95rem;
  font-weight: 700;
}

.scroll-top {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 52px;
  height: 52px;
  border-radius: var(--border-radius-md);
  border: none;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 1.25rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-medium);
  z-index: 1100;
}

.scroll-top:hover {
  background: var(--color-accent-celeste);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-medium), visibility var(--transition-fast);
  z-index: 2000;
}

.lightbox-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: 820px;
  width: 100%;
  background: #151515;
  border-radius: 20px;
  padding: 1.5rem;
  position: relative;
  box-shadow: var(--shadow-card);
}

.lightbox-content img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.lightbox-content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
  font-size: 1.8rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.form-confirmation {
  margin-top: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: rgba(203, 10, 29, 0.08);
  color: var(--color-primary);
  font-weight: 600;
  animation: fadeInUp 0.4s ease forwards;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .hero__slider {
    height: 320px;
    max-height: 320px;
  }

  .hero__slide-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 0 1rem 3rem;
    margin: 0;
    width: 100%;
    max-width: 100%;
  }
  
  .hero__content {
    padding-left: 0;
    padding-top: 0;
    width: 100%;
    max-width: 100%;
  }

  .hero__media {
    order: -1;
    transform: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
  }

  .hero__image--secondary {
    transform: translateY(0);
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__control--prev {
    left: 24px;
  }

  .hero__control--next {
    right: 24px;
  }

  .about__content,
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .footer__top {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .services__grid--featured {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services__grid--secondary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portfolio__grid {
    grid-template-columns: repeat(3, 1fr);
  }

}

@media (max-width: 860px) {
  .navbar__toggle {
    display: flex;
  }

  .navbar__links {
    position: absolute;
    top: calc(100% + 20px);
    right: 0;
    background: rgba(17, 17, 17, 0.95);
    flex-direction: column;
    padding: 1.5rem;
    border-radius: 16px;
    gap: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    min-width: 220px;
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-fast), transform var(--transition-medium), visibility var(--transition-fast);
  }

  .navbar__links.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    background: rgba(28, 29, 34, 0.95);
  }

  .navbar__links a {
    color: #ffffff;
  }

  .navbar__social {
    display: none;
  }
}

@media (max-width: 640px) {
  .header {
    padding: 0 1.5rem 4rem;
  }

  .hero__slider {
    height: 280px;
    max-height: 280px;
  }
  
  .hero__content {
    padding-top: 0;
    padding-left: 0;
    width: 100%;
    max-width: 100%;
  }
  
  .hero__slide-inner {
    padding: 1rem 1rem 1rem 0;
    width: 100%;
    max-width: 100%;
  }

  .hero__control {
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
    top: auto;
    bottom: 20px;
    transform: translate(-50%, 0);
  }

  .hero__control--prev {
    left: 24px;
  }

  .hero__control--next {
    right: 24px;
    transform: translate(50%, 0);
  }

  .hero__slide-inner {
    padding: 0 1.2rem 3rem;
    width: 100%;
    max-width: 100%;
  }

  .section {
    padding: 4rem 1.5rem;
  }

  .portfolio__filters {
    gap: 0.6rem;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer__bottom > div:last-child {
    margin-right: 0;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .services__grid--2x2 {
    grid-template-columns: 1fr;
  }

  .service-card__subservices {
    padding: 0.75rem 0.5rem 0.05rem;
  }

  .subservice-item {
    width: calc(50% - 0.375rem);
    min-width: calc(50% - 0.375rem);
    padding: 0.5rem;
  }

  .subservice-item img {
    max-height: 50px;
  }

  .subservice-item span {
    font-size: 0.75rem;
  }

  .subservices-carousel[data-carousel="comunicacion-visual"] .subservices-track {
    animation-duration: 18s;
  }

  .subservices-carousel[data-carousel="imprenta"] .subservices-track {
    animation-duration: 15s;
  }

  .subservices-carousel[data-carousel="ferias-retail"] .subservices-track {
    animation-duration: 11s;
  }

  .services__grid--secondary {
    margin-top: 2rem;
    grid-template-columns: 1fr;
  }

}

.topbar {
  padding-top: 0;
}

.topbar .navbar {
  position: fixed;
}

.topbar .navbar__toggle span {
  background-color: #1c1d22;
}

.page-hero {
  width: 100%;
  padding: 4rem 0;
  background: linear-gradient(135deg, rgba(203, 10, 29, 0.08), rgba(203, 10, 29, 0));
  text-align: center;
}

.page-hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.service-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.service-loading img {
  width: 120px;
  height: auto;
  opacity: 0.9;
}

/* Imagen principal destacada del servicio dentro de la sección principal,
   reducida al 50% aproximadamente */
.service-hero-media {
  margin-top: 2rem;
  max-width: 420px;
  width: 100%;
}

.service-hero-media .service-hero-image {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  display: block;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  color: var(--color-secondary);
}

.page-hero p {
  max-width: 640px;
  color: rgba(37, 38, 46, 0.7);
}

.services--all {
  background: #f4f4f4;
}

.services--all .services__grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* Layout de detalle de servicio */
.service-detail {
  display: block; /* Imagen destacada arriba, subservicios abajo */
}

/* Subservicios en detalle:
   - imagen ~40% más alta
   - tipografía ~20% más pequeña y con menos interlineado */
.service-detail .service-card__image {
  aspect-ratio: 4 / 3; /* más alta que el 12/5 global */
}

.service-detail .service-card__image img {
  object-fit: cover;
}

.service-detail .service-card__body h3 {
  font-size: 0.95rem;    /* ~20% más chico que el título normal */
  line-height: 1.2;      /* menos interlineado */
  margin-bottom: 0.35rem;
}

/* Botón "Solicitar servicio" debajo de los subservicios, centrado y color específico */
.service-request-wrapper {
  margin-top: 2rem;
  text-align: center;
}

.service-request-btn {
  background: #ff7d07;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(255, 125, 7, 0.35);
  padding: 0.9rem 2.4rem;
}

.service-request-btn:hover {
  background: #e36f05;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 125, 7, 0.45);
}

.services__category {
  margin-bottom: 5rem;
  scroll-margin-top: calc(var(--header-height) + 2rem);
}

.services__category:last-child {
  margin-bottom: 0;
}

.services__category-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1rem;
  font-family: var(--font-heading);
  text-align: center;
}

.services__category-description {
  font-size: 1.125rem;
  color: rgba(37, 38, 46, 0.7);
  text-align: center;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .about-mvv {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mvv-section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

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

  .mvv-section {
    grid-template-columns: 1fr;
  }

  .portfolio__grid {
    grid-template-columns: 1fr;
  }
}

/* Panel de Control del Slider */
.slider-control-panel {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 9999;
  font-family: var(--font-primary);
}

.slider-control-panel__toggle {
  position: absolute;
  right: 0;
  top: 0;
  width: 50px;
  height: 50px;
  background: var(--color-brand-cyan);
  color: var(--color-white);
  border: none;
  border-radius: 12px 0 0 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: -4px 0 12px rgba(0, 0, 0, 0.15);
  transition: all var(--transition-medium);
  z-index: 10000;
}

.slider-control-panel__toggle:hover {
  background: var(--color-brand-orange);
  transform: translateX(-5px);
}

.slider-control-panel__toggle svg {
  width: 20px;
  height: 20px;
}

.slider-control-panel__content {
  position: absolute;
  right: -350px;
  top: 0;
  width: 340px;
  background: var(--color-white);
  border-radius: 16px 0 0 16px;
  padding: 2rem;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.2);
  transition: right var(--transition-medium);
  max-height: 90vh;
  overflow-y: auto;
}

.slider-control-panel.is-open .slider-control-panel__content {
  right: 0;
}

.slider-control-panel__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-secondary);
  margin: 0 0 1.5rem 0;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.slider-control-panel__section {
  margin-bottom: 1.5rem;
}

.slider-control-panel__label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-secondary);
  margin-bottom: 0.75rem;
}

.slider-control-panel__toggle-group {
  display: flex;
  gap: 0.5rem;
  background: #f5f5f5;
  padding: 4px;
  border-radius: 8px;
}

.slider-control-panel__option {
  flex: 1;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: #666;
  transition: all var(--transition-fast);
}

.slider-control-panel__option:hover {
  background: rgba(41, 207, 241, 0.1);
  color: var(--color-brand-cyan);
}

.slider-control-panel__option--active {
  background: var(--color-brand-cyan);
  color: var(--color-white);
  box-shadow: 0 2px 8px rgba(41, 207, 241, 0.3);
}

.slider-control-panel__color-group {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.slider-control-panel__color-input {
  width: 60px;
  height: 40px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  background: none;
}

.slider-control-panel__color-input::-webkit-color-swatch-wrapper {
  padding: 0;
}

.slider-control-panel__color-input::-webkit-color-swatch {
  border: none;
  border-radius: 6px;
}

.slider-control-panel__color-text {
  flex: 1;
  padding: 0.75rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: 'Courier New', monospace;
  transition: border-color var(--transition-fast);
}

.slider-control-panel__color-text:focus {
  outline: none;
  border-color: var(--color-brand-cyan);
}

.slider-control-panel__select {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: var(--font-primary);
  background: var(--color-white);
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.slider-control-panel__select:focus {
  outline: none;
  border-color: var(--color-brand-cyan);
}

.slider-control-panel__apply,
.slider-control-panel__reset {
  width: 100%;
  padding: 0.875rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-top: 0.5rem;
}

.slider-control-panel__apply {
  background: var(--color-brand-cyan);
  color: var(--color-white);
  box-shadow: 0 4px 12px rgba(41, 207, 241, 0.3);
}

.slider-control-panel__apply:hover {
  background: var(--color-brand-orange);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 127, 7, 0.4);
}

.slider-control-panel__reset {
  background: #f5f5f5;
  color: #666;
  border: 2px solid #e0e0e0;
}

.slider-control-panel__reset:hover {
  background: #e8e8e8;
  border-color: #d0d0d0;
}

/* Estilos para cuando hay una sola imagen */
.hero__media.single-image {
  grid-template-columns: 1fr;
}

.hero__media.single-image .hero__image--secondary {
  display: none;
}

.hero__media.single-image .hero__image--primary {
  max-width: 100%;
}

@media (max-width: 640px) {
  .slider-control-panel {
    top: auto;
    bottom: 0;
    transform: none;
  }

  .slider-control-panel__content {
    width: 100vw;
    right: -100vw;
    border-radius: 16px 16px 0 0;
    max-height: 70vh;
  }

  .slider-control-panel__toggle {
    border-radius: 12px 12px 0 0;
    top: -50px;
  }
}

/* Botón de Admin en Footer */
.admin-footer-btn {
  background: var(--color-brand-cyan);
  border: 2px solid var(--color-brand-cyan);
  color: var(--color-white);
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  font-weight: 600;
  gap: 0.5rem;
  box-shadow: 0 2px 8px rgba(41, 207, 241, 0.3);
  text-decoration: none;
  border: none;
}

.admin-footer-btn:hover {
  background: var(--color-brand-orange);
  border-color: var(--color-brand-orange);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 127, 7, 0.4);
  color: var(--color-white);
  text-decoration: none;
}

.admin-footer-btn:active {
  transform: translateY(0);
}

.admin-footer-btn:visited {
  color: var(--color-white);
  text-decoration: none;
}

.admin-footer-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke-width: 2.5;
}

.admin-footer-btn span {
  white-space: nowrap;
  font-family: var(--font-primary);
}

/* Modal de Control de Administración */
.admin-control-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.admin-control-modal.is-open {
  display: flex;
}

.admin-control-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.admin-control-modal__content {
  position: relative;
  background: var(--color-white);
  border-radius: 16px;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  z-index: 1;
}

/* Modal más delgado cuando solo muestra el login */
.admin-control-modal__content.login-only {
  max-width: 420px;
}

.admin-control-modal__content.login-only .admin-control-modal__body {
  padding: 2rem 1.5rem;
}

.admin-control-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #e0e0e0;
}

.admin-control-modal__header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--color-secondary);
}

.admin-control-modal__close {
  background: none;
  border: none;
  font-size: 2rem;
  color: #777;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.admin-control-modal__close:hover {
  background: #f5f5f5;
  color: #333;
}

.admin-control-modal__body {
  padding: 2rem;
  overflow-y: auto;
  flex: 1;
}

.admin-control-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.admin-control-nav-item {
  padding: 1.5rem;
  background: #f8f9fa;
  border: 2px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  text-decoration: none;
  color: var(--color-secondary);
}

.admin-control-nav-item:hover {
  background: #e9ecef;
  border-color: var(--color-brand-cyan);
  transform: translateY(-2px);
}

.admin-control-nav-item.active {
  background: var(--color-brand-cyan);
  color: var(--color-white);
  border-color: var(--color-brand-cyan);
}

.admin-control-nav-item h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
}

.admin-control-nav-item p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.8;
}

.admin-control-section {
  display: none;
}

.admin-control-section.active {
  display: block;
}

.admin-login-form {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
}

.admin-login-form h3 {
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--color-secondary);
  font-size: 1.4rem;
}

.admin-login-form .form-group {
  margin-bottom: 1.25rem;
}

.admin-login-form .form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #555;
  font-size: 0.95rem;
}

.admin-login-form .form-group input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  transition: all 0.2s;
  box-sizing: border-box;
}

.admin-login-form .form-group input:focus {
  outline: none;
  border-color: var(--color-brand-cyan);
  box-shadow: 0 0 0 3px rgba(41, 207, 241, 0.1);
}

/* Botón de login con color */
.admin-login-form .btn-primary,
.admin-login-form button[type="submit"] {
  width: 100%;
  padding: 0.85rem 1.5rem;
  background: var(--color-brand-cyan);
  color: var(--color-white);
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 0.5rem;
}

.admin-login-form .btn-primary:hover,
.admin-login-form button[type="submit"]:hover {
  background: var(--color-brand-orange);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 127, 7, 0.3);
}

.admin-login-form .btn-primary:active,
.admin-login-form button[type="submit"]:active {
  transform: translateY(0);
}

/* Mensaje de error */
#adminModalLoginError {
  padding: 0.75rem;
  background: #fee;
  color: #c33;
  border-radius: 6px;
  font-size: 0.9rem;
  text-align: center;
  border: 1px solid #fcc;
  display: none;
}

#adminModalLoginError.show {
  display: block;
}

@media (max-width: 768px) {
  .admin-control-modal {
    padding: 1rem;
  }

  .admin-control-modal__content {
    max-height: 95vh;
  }

  .admin-control-nav {
    grid-template-columns: 1fr;
  }
}

