/* ==========================================================================
   Plaza de Tecnologías - Estilos Principales
   Uso exclusivo de variables definidas en paleta.css
   WCAG AA Contrast, Responsive, Mobile-First, Sin dependencias
   ========================================================================== */

/* Reseteo base y caja */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
  color: var(--color-text);
  background-color: var(--color-background);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  padding-bottom: 60px; /* Espacio para barra móvil */
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

/* Tipografía y encabezados */
h1, h2, h3, h4 {
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

h1 {
  font-size: 2.25rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.85rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.35rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--color-link);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

a:hover, a:focus-visible {
  color: var(--color-primary);
}

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

/* Utilidades de layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background-color: var(--color-surface);
}

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

.section-title {
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--color-text-muted);
  font-size: 1.1rem;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease, border-color 0.2s ease;
  line-height: 1.2;
}

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

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

.btn-accent:hover, .btn-accent:focus-visible {
  background-color: #d11317;
  color: var(--color-white);
  border-color: #d11317;
}

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

.btn-primary:hover, .btn-primary:focus-visible {
  background-color: #102742;
  color: var(--color-white);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline:hover, .btn-outline:focus-visible {
  background-color: var(--color-primary);
  color: var(--color-white);
}

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

.btn-white:hover, .btn-white:focus-visible {
  background-color: #e2e8f0;
  color: var(--color-primary);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

/* Barra superior informativa (fondo #183B64) */
.top-bar {
  background-color: var(--color-brand-navy);
  color: #E2E8F0;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.5rem 0;
}

.top-bar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.top-bar-socials {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.top-icon-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.top-icon-circle:hover, .top-icon-circle:focus-visible {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: #FFFFFF;
  color: #FFFFFF;
  transform: translateY(-1px);
}

.top-bar-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.top-bar-info a {
  color: #E2E8F0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.top-bar-info a:hover, .top-bar-info a:focus-visible {
  color: #FFFFFF;
  text-decoration: underline;
}

.top-divider {
  color: rgba(255, 255, 255, 0.3);
  font-weight: 300;
}

.top-info-whatsapp strong {
  color: #FFFFFF;
}

.whatsapp-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #25D366;
  display: inline-block;
}

@media (max-width: 767px) {
  .top-bar {
    padding: 0.4rem 0;
  }
  .top-bar-container {
    justify-content: center;
  }
  .top-divider, .top-info-email {
    display: none;
  }
}

/* Header Fijo */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(24, 59, 100, 0.06);
}

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

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.header-logo {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger-bar {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--color-primary);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.primary-nav {
  display: none;
  position: absolute;
  top: 72px;
  left: 0;
  width: 100%;
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.primary-nav.is-open {
  display: block;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.nav-link {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-link:hover, .nav-link:focus-visible {
  color: var(--color-link);
}

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

.home-text-mobile {
  display: inline;
}

@media (min-width: 992px) {
  .home-text-mobile {
    display: none;
  }
}

@media (min-width: 992px) {
  .nav-toggle {
    display: none;
  }

  .primary-nav {
    display: block;
    position: static;
    width: auto;
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
  }

  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: 1.75rem;
  }
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  color: var(--color-white);
  padding: 5rem 0 5.5rem 0;
  overflow: hidden;
  background-color: var(--color-brand-navy);
}

.hero-bg-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

/* Slider de fondo para el Hero */
.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-slide-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 0;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

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

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
  display: block;
}

/* Máscara oscura profesional (idéntica a la del hero de marketing) para máxima legibilidad */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(8, 20, 38, 0.98) 0%,
    rgba(8, 20, 38, 0.94) 38%,
    rgba(8, 20, 38, 0.82) 55%,
    rgba(8, 20, 38, 0.45) 75%,
    rgba(8, 20, 38, 0.20) 100%
  );
  backdrop-filter: blur(0.5px);
  z-index: 2;
}

@media (max-width: 991px) {
  .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(8, 20, 38, 0.96) 0%,
      rgba(8, 20, 38, 0.90) 65%,
      rgba(8, 20, 38, 0.75) 100%
    );
  }
}

@media (max-width: 767px) {
  .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(8, 20, 38, 0.98) 0%,
      rgba(8, 20, 38, 0.92) 65%,
      rgba(8, 20, 38, 0.80) 100%
    );
  }
}

.hero-container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 680px;
}

.hero-content h1 {
  color: var(--color-white);
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.5;
  color: #F1F5F9;
  margin-bottom: 2rem;
  max-width: 620px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* Banner Promociones en Hero */
.hero-promo-wrap {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
  width: 100%;
}

.hero-promo-link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 90%;
  text-decoration: none;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.hero-promo-link:hover, .hero-promo-link:focus-visible {
  transform: translateY(-2px) scale(1.02);
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.45));
}

.hero-promo-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  margin: 0 auto;
}

@media (max-width: 575px) {
  .hero-promo-link {
    width: 95%;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  align-items: center;
}

/* Tres botones en la misma línea */
.hero-actions-inline {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.85rem;
}

@media (max-width: 767px) {
  .hero-actions-inline {
    flex-wrap: wrap;
  }
  .hero-actions-inline .btn {
    width: 100%;
  }
}

/* Botón verde WhatsApp */
.btn-whatsapp {
  background-color: #25D366;
  color: #FFFFFF;
  border-color: #25D366;
}

.btn-whatsapp:hover, .btn-whatsapp:focus-visible {
  background-color: #1EBE5D;
  color: #FFFFFF;
  border-color: #1EBE5D;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-badge-item, .hero-badge-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  background-color: rgba(24, 59, 100, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.45rem 0.95rem;
  border-radius: 20px;
  color: var(--color-white);
  text-decoration: none;
  backdrop-filter: blur(4px);
  transition: background-color 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
}

.hero-badge-link:hover, .hero-badge-link:focus-visible {
  background-color: rgba(36, 103, 165, 0.9);
  border-color: #FFFFFF;
  color: #FFFFFF;
  transform: translateY(-2px);
}

.hero-badge-link svg {
  stroke: #38BDF8;
}

@media (min-width: 992px) {
  .hero-section {
    min-height: 640px;
  }
  .hero-content h1 {
    font-size: 3.1rem;
  }
}

/* Quiénes Somos / Nosotros */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 992px) {
  .about-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
  }
}

.about-text p {
  font-size: 1.1rem;
  color: var(--color-text);
  margin-bottom: 1.25rem;
}

.about-features-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Fichas de Quiénes Somos con fondo suave diferenciado y enlace completo */
.feature-box {
  border: 1px solid var(--color-border);
  padding: 1.5rem;
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-box:hover, .feature-box:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(24, 59, 100, 0.08);
  border-color: var(--color-brand-blue);
}

/* Fondos suaves basados en paleta */
.feature-box-1 {
  background-color: #F1F6FB; /* Tono suave azul marino/tecnología */
  border-color: #D6E4F0;
}

.feature-box-2 {
  background-color: #FDF2F2; /* Tono suave rojo/acento */
  border-color: #FADCDD;
}

.feature-icon-wrap {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* Iconos alternados con fondo corporativo e icono blanco */
.feature-icon-navy, .service-icon-navy {
  background-color: #183B64;
  color: #FFFFFF;
}

.feature-icon-red, .service-icon-red {
  background-color: #F2181C;
  color: #FFFFFF;
}

.feature-icon-wrap svg, .service-icon svg {
  stroke: #FFFFFF;
}

.feature-content {
  flex: 1;
}

.feature-title {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
  color: var(--color-primary);
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
  line-height: 1.5;
}

/* Hero Web / Marketing (Insertado bajo Identidad corporativa) */
.hero-web-section {
  padding: 0;
  background-color: #081426;
  overflow: hidden;
  position: relative;
}

.hero-web-link {
  display: block;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.hero-web-bg-media {
  position: relative;
  width: 100%;
  min-height: 420px;
  background-color: #081426;
  display: flex;
  align-items: center;
}

.hero-web-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  display: block;
  transition: transform 0.4s ease;
}

.hero-web-link:hover .hero-web-img {
  transform: scale(1.02);
}

.hero-web-overlay {
  position: relative;
  width: 100%;
  padding: 4.5rem 0;
  background: linear-gradient(
    90deg,
    rgba(8, 20, 38, 0.98) 0%,
    rgba(8, 20, 38, 0.94) 38%,
    rgba(8, 20, 38, 0.82) 55%,
    rgba(8, 20, 38, 0.45) 75%,
    rgba(8, 20, 38, 0.20) 100%
  );
  z-index: 2;
}

@media (max-width: 991px) {
  .hero-web-overlay {
    background: linear-gradient(
      180deg,
      rgba(8, 20, 38, 0.96) 0%,
      rgba(8, 20, 38, 0.90) 65%,
      rgba(8, 20, 38, 0.75) 100%
    );
  }
}

@media (max-width: 767px) {
  .hero-web-overlay {
    background: linear-gradient(
      180deg,
      rgba(8, 20, 38, 0.98) 0%,
      rgba(8, 20, 38, 0.92) 65%,
      rgba(8, 20, 38, 0.80) 100%
    );
    padding: 3rem 0;
  }
}

.hero-web-content {
  max-width: 560px;
  box-sizing: border-box;
}

.hero-web-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #38BDF8;
  margin-bottom: 0.75rem;
}

.hero-web-title {
  color: #FFFFFF;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.25;
  margin-bottom: 1rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-web-desc {
  color: #CBD5E1;
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  line-height: 1.6;
  margin-bottom: 1.75rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.hero-web-btn {
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  box-shadow: 0 4px 16px rgba(242, 24, 28, 0.35);
}

/* Qué Hacemos (Tarjetas de Servicios) */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.service-card {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.service-card:hover, .service-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(24, 59, 100, 0.1);
  border-color: var(--color-brand-blue);
}

/* Encabezado de la ficha: Icono y título alineados a la misma altura */
.service-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.service-title {
  font-size: 1.15rem;
  margin-bottom: 0;
  line-height: 1.3;
  color: var(--color-primary);
}

.service-desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  flex-grow: 1;
  line-height: 1.55;
}

/* Fondos suaves y diferenciados por ficha de servicio (derivados de la paleta oficial) */
.service-card-1 {
  background-color: #F2F7FC; /* Suave azul marino / tech */
  border-color: #DAE7F3;
}

.service-card-2 {
  background-color: #FDF4F4; /* Suave rojo */
  border-color: #F8DBDB;
}

.service-card-3 {
  background-color: #F3F8FA; /* Suave cian / azul cielo */
  border-color: #DCE8EE;
}

.service-card-4 {
  background-color: #FFF6F6; /* Suave coral */
  border-color: #FCE1E1;
}

.service-card-5 {
  background-color: #EFF5FA; /* Suave acero tecnológico */
  border-color: #D4E3EF;
}

.service-card-6 {
  background-color: #FDF5F2; /* Suave cálido corporativo */
  border-color: #F8DFD7;
}

.service-badge {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  background-color: rgba(24, 59, 100, 0.08);
  color: var(--color-primary);
}

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

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

.section-cta-banner {
  margin-top: 3.5rem;
  text-align: center;
  background-color: #EEF4FA;
  border: 1px solid var(--color-border);
  padding: 2rem;
  border-radius: 10px;
}

.section-cta-banner p {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

/* Marcas del Grupo */
.brands-section {
  background: linear-gradient(180deg, #183B64 0%, #F2181C 100%);
  color: var(--color-white);
  padding: 5.5rem 0;
  position: relative;
}

.brands-section .section-header h2 {
  color: #FFFFFF;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.brands-section .section-header .section-subtitle {
  color: #F1F5F9;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.brands-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.brand-card {
  background-color: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  padding: 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.brand-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.brand-card-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.brand-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background-color: var(--color-background);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--color-border);
  flex-shrink: 0;
}

.brand-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-card-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-brand-blue);
  letter-spacing: 0.05em;
}

.brand-card-title {
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
  color: var(--color-primary);
}

.brand-card-specialty {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.brand-card-desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.brand-card-action {
  margin-top: auto;
}

@media (min-width: 900px) {
  .brands-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Por qué elegirnos */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.why-item {
  background-color: var(--color-surface);
  border-left: 4px solid var(--color-brand-navy);
  border-top: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 1.75rem;
  border-radius: 0 8px 8px 0;
}

.why-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.why-item p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

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

/* Hero 2 - Banner Soluciones Tecnológicas */
.hero2-section {
  padding: 0;
  background-color: #060B12;
  overflow: hidden;
  position: relative;
}

.hero2-banner-link {
  display: block;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.hero2-bg-media {
  position: relative;
  width: 100%;
  min-height: 280px;
  max-height: 540px;
  background-color: #060B12;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero2-img {
  width: 100%;
  height: 100%;
  max-height: 540px;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.hero2-banner-link:hover .hero2-img {
  transform: scale(1.02);
}

.hero2-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  background: linear-gradient(0deg, rgba(6, 11, 18, 0.9) 0%, rgba(6, 11, 18, 0) 100%);
  display: flex;
  align-items: center;
}

.hero2-container {
  display: flex;
  justify-content: flex-end;
}

.hero2-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background-color: rgba(24, 59, 100, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 30px;
  color: #FFFFFF;
  font-size: 0.85rem;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.hero2-cta-pill {
  background-color: var(--color-accent);
  color: #FFFFFF;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (max-width: 600px) {
  .hero2-badge {
    font-size: 0.75rem;
  }
  .hero2-container {
    justify-content: center;
  }
}

.badge-pending {
  display: inline-block;
  background-color: #FEF3C7;
  color: #92400E;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

/* Contacto y Formulario */
.contact-section {
  background-color: var(--color-surface);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.contact-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 2rem 0;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background-color: #EEF4FA;
  color: var(--color-brand-blue);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-title {
  font-weight: 700;
  color: var(--color-primary);
  display: block;
}

.contact-info-val a {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
}

.contact-info-val a:hover {
  color: var(--color-brand-blue);
}

/* Banner Tienda en Línea - Sin marco ni contenedor, esquinas redondeadas */
.online-store-cta-wrap {
  margin-top: 2rem;
  text-align: center;
}

.online-store-link {
  display: inline-block;
  text-decoration: none;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  box-shadow: none;
  max-width: 420px;
  width: 100%;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.online-store-link:hover, .online-store-link:focus-visible {
  transform: translateY(-4px) scale(1.02);
  filter: drop-shadow(0 8px 20px rgba(24, 59, 100, 0.25));
}

.online-store-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px; /* Esquinas redondeadas */
  border: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* Formulario */
.contact-form-wrap {
  background-color: var(--color-background);
  border: 1px solid var(--color-border);
  padding: 2.25rem;
  border-radius: 12px;
}

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

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--color-primary);
  font-size: 0.95rem;
}

.form-label .required {
  color: var(--color-accent);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--color-text);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  border-color: var(--color-brand-blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(36, 103, 165, 0.2);
}

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

.honeypot-field {
  display: none !important;
}

.form-feedback {
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  display: none;
}

.form-feedback.success {
  display: block;
  background-color: #DEF7EC;
  color: #03543F;
  border: 1px solid #BCF0DA;
}

.form-feedback.error {
  display: block;
  background-color: #FDE8E8;
  color: #9B1C1C;
  border: 1px solid #FBD5D5;
}

@media (min-width: 992px) {
  .contact-layout {
    grid-template-columns: 1fr 1.2fr;
  }
}

/* Hero 3 - Banner Soluciones Team Alru / PC Work Jr (pegado al footer) */
.hero3-section {
  padding: 0;
  background-color: #030712;
  overflow: hidden;
  position: relative;
  margin-top: 0;
}

.hero3-banner-link {
  display: block;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.hero3-bg-media {
  position: relative;
  width: 100%;
  min-height: 260px;
  max-height: 540px;
  background-color: #030712;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero3-img {
  width: 100%;
  height: 100%;
  max-height: 540px;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.hero3-banner-link:hover .hero3-img {
  transform: scale(1.02);
}

.hero3-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  background: linear-gradient(0deg, rgba(3, 7, 18, 0.92) 0%, rgba(3, 7, 18, 0) 100%);
  display: flex;
  align-items: center;
}

.hero3-container {
  display: flex;
  justify-content: flex-end;
}

.hero3-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background-color: rgba(24, 59, 100, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 30px;
  color: #FFFFFF;
  font-size: 0.85rem;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.hero3-cta-pill {
  background-color: var(--color-accent);
  color: #FFFFFF;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (max-width: 600px) {
  .hero3-badge {
    font-size: 0.75rem;
  }
  .hero3-container {
    justify-content: center;
  }
}

/* Footer */
.site-footer {
  background-color: var(--color-brand-navy);
  color: #E2E8F0;
  padding-top: 4rem;
  margin-top: 0;
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-brand img {
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.footer-brand-title {
  color: var(--color-white);
  font-size: 1.25rem;
  font-weight: 700;
}

.footer-desc {
  color: #CBD5E1;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.footer-location, .footer-hours {
  color: #CBD5E1;
  font-size: 0.9rem;
}

.footer-location-link {
  color: #CBD5E1;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.footer-location-link:hover, .footer-location-link:focus-visible {
  color: #FFFFFF;
}

.footer-heading {
  color: var(--color-white);
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  border-bottom: 2px solid var(--color-brand-blue);
  padding-bottom: 0.4rem;
  display: inline-block;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: #CBD5E1;
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-links a:hover, .footer-links a:focus-visible {
  color: var(--color-white);
  text-decoration: underline;
}

.contact-icon-label {
  display: inline-block;
  font-weight: 600;
  color: var(--color-white);
  margin-right: 0.35rem;
}

.footer-bottom {
  background-color: #102742;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom-container {
  display: flex;
  justify-content: center;
  text-align: center;
  font-size: 0.85rem;
  color: #94A3B8;
  padding-right: 1rem;
}

.footer-copyright-text {
  margin: 0;
  line-height: 1.6;
}

.footer-brand-contact-link {
  color: #CBD5E1;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer-brand-contact-link:hover, .footer-brand-contact-link:focus-visible {
  color: #FFFFFF;
  text-decoration: underline;
}

.footer-sep {
  margin: 0 0.5rem;
  color: rgba(255, 255, 255, 0.3);
}

.footer-legal-link {
  color: #94A3B8;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.footer-legal-link:hover, .footer-legal-link:focus-visible {
  color: #FFFFFF;
}

@media (min-width: 768px) {
  .footer-container {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
  .footer-bottom-container {
    justify-content: flex-start;
    text-align: left;
    max-width: calc(100% - 90px); /* Previene solapamiento con botón flotante de WhatsApp */
  }
}

/* Botón flotante WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 80px;
  right: 20px;
  background-color: #25D366;
  color: #FFFFFF;
  border-radius: 50px;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  text-decoration: none;
  z-index: 999;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover, .whatsapp-float:focus-visible {
  color: #FFFFFF;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.whatsapp-icon {
  stroke: #FFFFFF;
}

@media (max-width: 600px) {
  .whatsapp-float {
    bottom: 74px;
    right: 16px;
    padding: 0.75rem;
    border-radius: 50%;
  }
  .whatsapp-float-label {
    display: none;
  }
}

@media (min-width: 768px) {
  .whatsapp-float {
    bottom: 24px;
  }
}

/* Barra de acción móvil */
.mobile-action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
  display: flex;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
}

.mobile-action-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--color-primary);
  border-right: 1px solid var(--color-border);
}

.mobile-action-btn:last-child {
  border-right: none;
}

.mobile-action-btn.whatsapp-action {
  color: #075E54;
}

.mobile-action-btn svg {
  stroke: currentColor;
}

@media (min-width: 768px) {
  .mobile-action-bar {
    display: none;
  }
}

/* Estilos para página de Documentos Legales (Privacidad) */
.legal-page {
  padding: 4rem 0 5rem 0;
  background-color: var(--color-background);
}

.legal-container {
  max-width: 860px;
}

.legal-header {
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 1.5rem;
}

.legal-header h1 {
  font-size: 2.35rem;
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
  color: var(--color-primary);
}

.legal-header-line {
  width: 60px;
  height: 4px;
  background-color: var(--color-accent);
  border-radius: 2px;
}

.legal-content {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(24, 59, 100, 0.04);
}

.legal-intro {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.legal-section {
  margin-bottom: 2rem;
}

.legal-section h2 {
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
  color: var(--color-primary);
}

.legal-section p {
  color: var(--color-text);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.legal-list {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
  color: var(--color-text);
}

.legal-list li {
  margin-bottom: 0.5rem;
  line-height: 1.55;
}

.legal-contact-box {
  background-color: #F1F6FB;
  border-left: 4px solid var(--color-brand-blue);
  padding: 1.5rem;
  border-radius: 0 8px 8px 0;
  margin-top: 2.5rem;
}

.legal-back-action {
  margin-top: 2.5rem;
  text-align: center;
}

@media (max-width: 767px) {
  .legal-content {
    padding: 1.5rem;
  }
  .legal-header h1 {
    font-size: 1.85rem;
  }
}

/* Animaciones sutiles y accesibilidad reducida */
.fade-in-element {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.fade-in-element.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .fade-in-element {
    opacity: 1;
    transform: none;
  }
}
