/* =====================================================
   MYG SERVICES – Modern Corporate Website
   Sistemas audiovisuales y videoconferencia | Lima, Perú
   ===================================================== */

:root {
  /* Colores MYG Services: azul + naranja (referencia mygservices.com) */
  --navy: #092179;
  --navy-light: #0c2a9a;
  --navy-mid: #0a1f6b;
  --cyan: #FE5627;
  --cyan-dark: #e04a20;
  --accent: #FF7A50;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow: 0 4px 20px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 40px rgba(0,10,30,.12);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: .25s cubic-bezier(.4,0,.2,1);
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-w: 1200px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul { list-style: none; }
button, input, textarea, select { font: inherit; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- HEADER (blanco, estilo mygservices.com) ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  background: var(--white);
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo img {
  height: 42px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

.nav-desktop {
  display: none;
  gap: 0.25rem;
  align-items: center;
}

.nav-desktop a {
  color: var(--navy);
  font-size: .9rem;
  font-weight: 500;
  padding: .5rem .9rem;
  border-radius: 8px;
  transition: all var(--transition);
}

.nav-desktop a:hover {
  color: var(--cyan);
  background: rgba(254,86,39,.08);
}

.nav-desktop a.active {
  color: var(--white);
  background: var(--cyan);
  font-weight: 600;
}

.header-cta {
  display: none;
  background: var(--cyan);
  color: var(--white) !important;
  font-weight: 600;
  font-size: .875rem;
  padding: .55rem 1.15rem;
  border-radius: 8px;
  transition: all var(--transition);
}

.header-cta:hover {
  background: var(--cyan-dark);
  transform: translateY(-1px);
  color: var(--white) !important;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
}

.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.nav-mobile {
  position: fixed;
  inset: 0;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all .3s ease;
  z-index: 999;
}

.nav-mobile.open {
  opacity: 1;
  visibility: visible;
}

.nav-mobile a {
  color: var(--white);
  font-size: 1.35rem;
  font-weight: 500;
}

.nav-mobile a:hover,
.nav-mobile a.active {
  color: var(--cyan);
}

/* ---------- HERO + SLIDER ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--navy);
  overflow: hidden;
  padding-top: 72px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(254,86,39,.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(255,122,80,.08) 0%, transparent 50%),
    linear-gradient(180deg, var(--navy) 0%, #0d1f38 100%);
  pointer-events: none;
  z-index: 0;
}

/* Track / slides */
.hero-slider {
  display: block;
  padding-top: 72px;
}

.hero-track {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 72px);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  z-index: 1;
  display: flex;
  align-items: center;
  pointer-events: none;
  transition: opacity .38s ease, visibility .38s;
  background-size: cover;
  background-position: center;
}

/* Velo oscuro sobre la foto de fondo para que el texto siga siendo legible */
.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
    rgba(6,20,74,.94) 0%,
    rgba(6,20,74,.88) 32%,
    rgba(6,20,74,.62) 58%,
    rgba(6,20,74,.38) 100%);
  z-index: 0;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
  pointer-events: auto;
}

.hero-slide.is-exit {
  opacity: 0;
  z-index: 1;
}

/* Entrada escalonada del contenido (efecto profesional) */
.hero-slide .hero-badge,
.hero-slide h1,
.hero-slide .hero-lead,
.hero-slide .hero-actions,
.hero-slide .hero-stats,
.hero-slide .hero-card {
  opacity: 0;
  transform: translateY(26px);
}

.hero-slide.is-active .hero-badge {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .4s ease .05s, transform .45s cubic-bezier(.22, 1, .36, 1) .05s;
}

.hero-slide.is-active h1 {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .45s ease .12s, transform .5s cubic-bezier(.22, 1, .36, 1) .12s;
}

.hero-slide.is-active .hero-lead {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .45s ease .2s, transform .5s cubic-bezier(.22, 1, .36, 1) .2s;
}

.hero-slide.is-active .hero-actions {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .45s ease .28s, transform .5s cubic-bezier(.22, 1, .36, 1) .28s;
}

.hero-slide.is-active .hero-stats {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .45s ease .36s, transform .5s cubic-bezier(.22, 1, .36, 1) .36s;
}

.hero-slide.is-active .hero-card {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity .5s ease .15s, transform .55s cubic-bezier(.22, 1, .36, 1) .15s;
}

.hero-slide:not(.is-active) .hero-card {
  transform: translateY(26px) scale(.97);
}

/* Barra de progreso del autoplay */
.hero-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--accent));
  z-index: 12;
  pointer-events: none;
  border-radius: 0 2px 0 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 3rem;
  padding: 4rem 0 5.5rem;
  width: 100%;
}

.hero-content {
  max-width: 100%;
}

@media (min-width: 900px) {
  .hero-content { max-width: 640px; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(254,86,39,.12);
  color: var(--cyan);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .4rem 1rem;
  border-radius: 100px;
  border: 1px solid rgba(254,86,39,.25);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero h1 span { color: var(--cyan); }

.hero-lead {
  font-size: 1.1rem;
  color: var(--gray-300);
  max-width: 540px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-weight: 600;
  font-size: .95rem;
  padding: .85rem 1.6rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--cyan);
  color: var(--navy);
}

.btn-primary:hover {
  background: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(254,86,39,.3);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.3);
}

.btn-outline:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.stat strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1.2;
}

.stat span {
  font-size: .85rem;
  color: var(--gray-400);
}

.hero-visual {
  display: none;
  position: relative;
}

.hero-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(8px);
}

.hero-card img {
  border-radius: 10px;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: contain;
  background: rgba(0,0,0,.15);
}

/* Flechas del slider */
.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.25);
  background: rgba(9,33,121,.55);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  backdrop-filter: blur(6px);
}

.hero-nav:hover {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--navy);
}

.hero-prev { left: 1rem; }
.hero-next { right: 1rem; }

/* Dots */
.hero-dots {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: .55rem;
  align-items: center;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.35);
  cursor: pointer;
  padding: 0;
  transition: all var(--transition);
}

.hero-dot.is-active {
  background: var(--cyan);
  width: 28px;
  border-radius: 6px;
}

.hero-dot:hover:not(.is-active) {
  background: rgba(255,255,255,.6);
}

/* ---------- SECTIONS ---------- */
section { padding: 5rem 0; }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-label {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--cyan-dark);
  margin-bottom: .75rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: .75rem;
}

.section-header p {
  color: var(--gray-500);
  font-size: 1.05rem;
}

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: all var(--transition);
  height: 100%;
}

.service-card:hover {
  border-color: var(--cyan);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.service-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, rgba(254,86,39,.15), rgba(255,122,80,.1));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.15rem;
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 650;
  color: var(--navy);
  margin-bottom: .5rem;
}

.service-card p {
  font-size: .95rem;
  color: var(--gray-500);
  line-height: 1.65;
}

/* :not(.btn) evita que esta regla le gane el color de texto a los
   botones .btn-primary/.btn-outline cuando están dentro de una tarjeta
   (ver bug: "Ver solución" salía naranja sobre naranja, ilegible). */
.service-card a:not(.btn) {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: 1rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--cyan-dark);
}

.service-card a:not(.btn):hover { color: var(--navy); }

/* Tres líneas principales – cards más grandes y proporcionales */
.service-card-lg {
  padding: 2rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
}

.service-card-lg .service-icon {
  width: 64px;
  height: 64px;
  font-size: 1.85rem;
  margin-bottom: 1.25rem;
}

.service-card-lg h3 {
  font-size: 1.35rem;
  margin-bottom: .65rem;
}

.service-card-lg p {
  flex: 0 0 auto;
  margin-bottom: 1rem;
}

.service-points {
  list-style: none;
  margin: 0 0 0.5rem;
  padding: 0;
  flex: 1;
}

.service-points li {
  position: relative;
  padding-left: 1.15rem;
  margin-bottom: .45rem;
  font-size: .9rem;
  color: var(--gray-600);
  line-height: 1.45;
}

.service-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
}

.service-card-lg .btn {
  align-self: flex-start;
  margin-top: auto;
}

.services-grid-3 {
  grid-template-columns: 1fr;
}

/* Why us / Features */
.features-section {
  background: var(--gray-50);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--white);
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.feature-item:hover {
  border-color: var(--cyan);
  box-shadow: var(--shadow);
}

.feature-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--navy);
  color: var(--cyan);
  font-weight: 700;
  font-size: .85rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-item h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: .25rem;
}

.feature-item p {
  font-size: .9rem;
  color: var(--gray-500);
}

/* Products */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.product-img {
  aspect-ratio: 16/10;
  background: var(--gray-100);
  overflow: hidden;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

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

.product-body {
  padding: 1.35rem 1.5rem 1.5rem;
}

.product-body h3 {
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--navy);
  margin-bottom: .4rem;
}

.product-body p {
  font-size: .9rem;
  color: var(--gray-500);
  margin-bottom: .85rem;
}

.product-tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  color: var(--cyan-dark);
  background: rgba(254,86,39,.1);
  padding: .25rem .65rem;
  border-radius: 6px;
}

/* Brands */
.brands-section {
  background: var(--navy);
  color: var(--white);
}

.brands-section .section-header h2 { color: var(--white); }
.brands-section .section-header p { color: var(--gray-400); }
.brands-section .section-label { color: var(--cyan); }

.brands-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2.5rem;
  align-items: center;
}

.brand-item {
  font-size: 1.15rem;
  font-weight: 650;
  color: rgba(255,255,255,.7);
  letter-spacing: .02em;
  padding: .5rem 1rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  transition: all var(--transition);
}

.brand-item:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--navy-mid) 0%, var(--navy) 100%);
  padding: 4rem 0;
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-band p {
  color: var(--gray-300);
  margin-bottom: 1.75rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* Clients */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.client-logo {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3/2;
  transition: all var(--transition);
}

.client-logo:hover {
  border-color: var(--cyan);
  box-shadow: var(--shadow);
}

.client-logo img {
  max-height: 60px;
  width: auto;
  object-fit: contain;
  filter: grayscale(30%);
  opacity: .85;
  transition: all var(--transition);
}

.client-logo:hover img {
  filter: none;
  opacity: 1;
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 2.5rem;
}

.contact-info h3 {
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 1.25rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.contact-item .icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: rgba(254,86,39,.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-dark);
  font-size: 1.15rem;
}

.contact-item strong {
  display: block;
  font-size: .9rem;
  color: var(--navy);
  margin-bottom: .15rem;
}

.contact-item span,
.contact-item a {
  font-size: .95rem;
  color: var(--gray-500);
}

.contact-item a:hover { color: var(--cyan-dark); }

.contact-form {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.contact-form h3 {
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 1.25rem;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 550;
  color: var(--gray-700);
  margin-bottom: .4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  background: var(--white);
  color: var(--gray-800);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(254,86,39,.15);
}

.form-group textarea { min-height: 120px; resize: vertical; }

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

/* Page hero (inner pages) */
.page-hero {
  background: var(--navy);
  padding: 8rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(254,86,39,.1) 0%, transparent 60%);
}

.page-hero h1 {
  position: relative;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  color: var(--white);
  font-weight: 700;
  margin-bottom: .75rem;
}

.page-hero p {
  position: relative;
  color: var(--gray-300);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.breadcrumb {
  position: relative;
  display: flex;
  justify-content: center;
  gap: .5rem;
  font-size: .85rem;
  color: var(--gray-400);
  margin-bottom: 1.25rem;
}

.breadcrumb a { color: var(--cyan); }
.breadcrumb a:hover { text-decoration: underline; }

/* Footer */
.site-footer {
  background: var(--navy);
  color: var(--gray-300);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-brand img {
  height: 38px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: .9rem;
  line-height: 1.7;
  max-width: 280px;
  color: var(--gray-400);
}

.footer-col h4 {
  color: var(--white);
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: 1.1rem;
  letter-spacing: .02em;
}

.footer-col ul li {
  margin-bottom: .55rem;
}

.footer-col a {
  font-size: .9rem;
  color: var(--gray-400);
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--cyan); }

/* Bloque de contacto del footer, con ícono + viñeta por dato */
.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  font-size: .9rem;
  color: var(--gray-400);
}

.footer-contact-list .ficon {
  flex-shrink: 0;
  line-height: 1.5;
  font-size: 1rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 0;
  font-size: .85rem;
  color: var(--gray-500);
}

.footer-bottom a { color: var(--gray-400); }
.footer-bottom a:hover { color: var(--cyan); }

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

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-300);
  font-size: .95rem;
  transition: all var(--transition);
}

.social-links a:hover {
  background: var(--cyan);
  color: var(--navy);
}

/* WhatsApp float */
.wa-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 900;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  transition: transform var(--transition);
  color: white;
  font-size: 1.6rem;
}

.wa-float:hover { transform: scale(1.08); }

/* Utility */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

/* Spec table for product pages */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  margin: 1rem 0;
}

.spec-table th,
.spec-table td {
  padding: .65rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}

.spec-table th {
  background: var(--gray-50);
  font-weight: 600;
  color: var(--navy);
  width: 40%;
}

/* ---------- RESPONSIVE ---------- */
@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid-3 { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .clients-grid { grid-template-columns: repeat(3, 1fr); }
  .form-row { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (min-width: 900px) {
  .nav-desktop { display: flex; }
  .header-cta { display: inline-flex; }
  .menu-toggle { display: none; }

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

  .hero-prev { left: 1.5rem; }
  .hero-next { right: 1.5rem; }

  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .services-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .features-grid { grid-template-columns: repeat(3, 1fr); }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .clients-grid { grid-template-columns: repeat(4, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1.1fr; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
}

@media (max-width: 640px) {
  /* En móvil el contenido de cada ficha varía de alto, así que centrar las
     flechas verticalmente (top:50%) puede taparlas con el botón principal.
     Se anclan abajo, a la altura de los puntos, para no chocar nunca con
     el contenido. */
  .hero-nav {
    width: 38px;
    height: 38px;
    top: auto;
    bottom: 1.1rem;
    transform: none;
  }
  .hero-prev { left: .5rem; }
  .hero-next { right: .5rem; }
  .hero-dots { bottom: 1.25rem; }
}

@media (min-width: 1100px) {
  .services-grid:not(.services-grid-3) { grid-template-columns: repeat(4, 1fr); }
  .services-grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Print */
@media print {
  .site-header, .wa-float, .menu-toggle { display: none !important; }
  body { color: #000; }
}
