/* ==========================================================================
   DEPORTI - ESTILOS PRINCIPALES
   Indumentaria Deportiva, Uniformes Colegiales, Bordados y Merchandising
   ========================================================================== */

:root {
  /* Paleta de Colores Deportiva */
  --color-primary: #0f172a;        /* Azul noche profundo */
  --color-primary-light: #1e293b;
  --color-accent: #2563eb;         /* Azul deportivo vibrante */
  --color-accent-hover: #1d4ed8;
  --color-highlight: #ff5722;      /* Naranja enérgico para llamados a la acción */
  --color-highlight-hover: #e64a19;
  --color-volt: #10b981;           /* Verde esmeralda deportivo */
  
  --color-bg-light: #f8fafc;
  --color-bg-white: #ffffff;
  --color-bg-alt: #f1f5f9;
  
  --color-text-main: #0f172a;
  --color-text-muted: #64748b;
  --color-text-light: #94a3b8;
  --color-text-white: #ffffff;
  
  --color-border: #e2e8f0;
  --color-border-hover: #cbd5e1;

  /* Sombras Modernas */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-glow: 0 0 25px rgba(37, 99, 235, 0.25);
  --shadow-highlight: 0 0 25px rgba(255, 87, 34, 0.3);

  /* Tipografía y Espaciado */
  --font-family: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --border-radius-sm: 8px;
  --border-radius-md: 14px;
  --border-radius-lg: 22px;
  --border-radius-full: 9999px;
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

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

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

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

button, input, select, textarea {
  font: inherit;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   UTILIDADES & COMPONENTES REUTILIZABLES
   ========================================================================== */

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background: rgba(37, 99, 235, 0.1);
  color: var(--color-accent);
  border-radius: var(--border-radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-tag.highlight {
  background: rgba(255, 87, 34, 0.12);
  color: var(--color-highlight);
}

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

.section-header h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.2;
  margin: 0.75rem 0 1rem;
  letter-spacing: -0.02em;
}

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

/* Botones con estilo atlético */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--border-radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-text-white);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

.btn-highlight {
  background-color: var(--color-highlight);
  color: var(--color-text-white);
  box-shadow: 0 4px 15px rgba(255, 87, 34, 0.35);
}

.btn-highlight:hover {
  background-color: var(--color-highlight-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 87, 34, 0.45);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--color-text-white);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--color-text-white);
  transform: translateY(-2px);
}

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

.btn-outline-dark:hover {
  background: var(--color-bg-alt);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn-whatsapp {
  background-color: #25d366;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:hover {
  background-color: #20ba59;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.5);
}

/* ==========================================================================
   TOP BAR & HEADER
   ========================================================================== */

.topbar {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  font-size: 0.85rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.topbar-item svg {
  color: var(--color-highlight);
  width: 15px;
  height: 15px;
}

.topbar-link:hover {
  color: var(--color-text-white);
}

/* Navbar Principal */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
  transition: all var(--transition-normal);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
  background-color: rgba(255, 255, 255, 0.98);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.brand-logo {
  display: flex;
  align-items: center;
  margin-right: 2.5rem;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 48px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  transition: transform var(--transition-fast);
  display: block;
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.03);
}

.nav-menu-cta-mobile {
  display: none !important;
}

.footer-logo-img {
  height: 52px;
  width: auto;
  max-width: 230px;
  object-fit: contain;
  margin-bottom: 0.75rem;
  display: block;
}

.logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-highlight));
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.35);
}

.brand-logo span.accent {
  color: var(--color-accent);
}

.brand-logo span.dot {
  color: var(--color-highlight);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-main);
  position: relative;
  padding: 0.4rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-accent);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-primary);
  padding: 0.5rem;
}

/* ==========================================================================
   HERO SLIDER
   ========================================================================== */

.hero-slider-section {
  position: relative;
  overflow: hidden;
  background-color: var(--color-primary);
  color: var(--color-text-white);
  height: 620px;
}

@media (min-width: 992px) {
  .hero-slider-section {
    height: 680px;
  }
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out, transform 1s ease-out;
  transform: scale(1.04);
}

.slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 2;
}

.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.42);
  transition: transform 6s ease;
}

.slide.active .slide-bg {
  transform: scale(1.05);
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.7) 50%, rgba(15, 23, 42, 0.3) 100%);
}

.slide-content {
  position: relative;
  z-index: 5;
  height: 100%;
  display: flex;
  align-items: center;
}

.slide-inner {
  max-width: 720px;
  animation: none;
}

.slide.active .slide-inner {
  animation: heroContentFadeIn 0.8s ease forwards 0.2s;
}

@keyframes heroContentFadeIn {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-inner .hero-badge {
  margin-bottom: 1.25rem;
}

.slide-inner h1 {
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.2rem;
  letter-spacing: -0.02em;
}

.slide-inner h1 span.gradient-text {
  background: linear-gradient(135deg, #60a5fa, #fb923c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.slide-inner p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #cbd5e1;
  margin-bottom: 2rem;
  max-width: 600px;
}

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

/* Controles del Slider */
.slider-control-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.slider-control-btn:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  transform: translateY(-50%) scale(1.08);
}

.slider-prev {
  left: 1.5rem;
}

.slider-next {
  right: 1.5rem;
}

/* Indicadores de diapositiva */
.slider-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.dot.active {
  width: 34px;
  border-radius: 20px;
  background: var(--color-highlight);
}

/* ==========================================================================
   STRIP DE BENEFICIOS (VENTAJAS CLAVE)
   ========================================================================== */

.benefits-strip {
  background: var(--color-bg-white);
  border-bottom: 1px solid var(--color-border);
  position: relative;
  z-index: 10;
  box-shadow: var(--shadow-sm);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  padding: 1.75rem 0;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.benefit-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.3rem;
}

.benefit-item:nth-child(2) .benefit-icon {
  background: rgba(255, 87, 34, 0.1);
  color: var(--color-highlight);
}

.benefit-item:nth-child(3) .benefit-icon {
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-volt);
}

.benefit-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.15rem;
}

.benefit-info p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   SECCIÓN LA COMPAÑÍA (QUIÉNES SOMOS)
   ========================================================================== */

.about-section {
  padding: 6rem 0;
  background-color: var(--color-bg-white);
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: center;
}

@media (min-width: 992px) {
  .about-grid {
    grid-template-columns: 1.1fr 1fr;
  }
}

.about-image-wrapper {
  position: relative;
}

.about-main-img {
  width: 100%;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
  object-fit: cover;
  max-height: 520px;
}

.about-floating-card {
  position: absolute;
  bottom: -20px;
  right: -15px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  padding: 1.25rem 1.75rem;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.about-floating-card .card-number {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--color-accent);
  line-height: 1;
}

.about-floating-card .card-desc {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
}

.about-text h3 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.25;
  margin: 1rem 0 1.25rem;
}

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

.about-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 2rem 0;
}

.pillar-item {
  display: flex;
  gap: 0.75rem;
}

.pillar-item .pillar-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pillar-item h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary);
}

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

/* Métricas animadas */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

@media (min-width: 576px) {
  .stats-bar {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-box {
  text-align: center;
}

.stat-box .stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-box .stat-label {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  font-weight: 600;
}

/* ==========================================================================
   SERVICIOS DEPORTI
   ========================================================================== */

.services-section {
  padding: 6rem 0;
  background-color: var(--color-bg-alt);
  position: relative;
}

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

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

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(37, 99, 235, 0.3);
}

.service-card-img {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.service-card-badge,
.gallery-item-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 5;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  padding: 0.45rem 1.05rem;
  border-radius: var(--border-radius-full);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.22);
  white-space: nowrap;
  pointer-events: none;
}

.service-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-card-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.35rem;
}

.service-card-body h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

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

.service-features {
  margin-bottom: 1.5rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--color-border);
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--color-text-main);
  margin-bottom: 0.45rem;
  font-weight: 500;
}

.service-features li svg {
  color: var(--color-volt);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.service-card-footer {
  margin-top: auto;
}

.service-card-footer .btn {
  width: 100%;
}

/* ==========================================================================
   MARCAS QUE COMERCIALIZAN
   ========================================================================== */

.brands-section {
  padding: 4.5rem 0;
  background: var(--color-bg-white);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.brands-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brands-subtitle {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
}

.brands-ticker-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.brands-ticker-wrapper::before,
.brands-ticker-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.brands-ticker-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--color-bg-white), rgba(255, 255, 255, 0));
}

.brands-ticker-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--color-bg-white), rgba(255, 255, 255, 0));
}

.brands-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3.5rem 4rem;
}

.brand-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius-md);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  transition: all var(--transition-fast);
  min-width: 140px;
  height: 85px;
}

.brand-item img,
.brand-item svg {
  height: 42px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  fill: #475569;
  transition: all var(--transition-fast);
}

.brand-item:hover {
  background: #ffffff;
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.brand-item:hover img,
.brand-item:hover svg {
  fill: var(--color-primary);
  transform: scale(1.08);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

.brand-item span.brand-name {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #475569;
  transition: color var(--transition-fast);
}

.brand-item:hover span.brand-name {
  color: var(--color-primary);
}

/* ==========================================================================
   GALERÍA DE TRABAJOS / PORTAFOLIO
   ========================================================================== */

.gallery-section {
  padding: 6rem 0;
  background-color: var(--color-bg-light);
}

.gallery-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  padding: 0.6rem 1.4rem;
  border-radius: var(--border-radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-main);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--color-accent);
  color: var(--color-text-white);
  border-color: var(--color-accent);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

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

.gallery-item {
  position: relative;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  height: 280px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.4) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-overlay .category-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-highlight);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.gallery-item-overlay h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
}

.gallery-item-overlay p {
  font-size: 0.85rem;
  color: #cbd5e1;
}

/* ==========================================================================
   COTIZADOR RÁPIDO INTERACTIVO
   ========================================================================== */

.quote-calculator-section {
  padding: 5.5rem 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, #172554 100%);
  color: var(--color-text-white);
  position: relative;
  overflow: hidden;
}

.quote-calculator-section::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.quote-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  max-width: 880px;
  margin: 0 auto;
  box-shadow: var(--shadow-xl);
}

.quote-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .quote-form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .quote-form-full {
    grid-column: span 2;
  }
}

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

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #e2e8f0;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-sm);
  color: #ffffff;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-accent);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.35);
}

.form-control option {
  background-color: var(--color-primary);
  color: #ffffff;
}

/* ==========================================================================
   SECCIÓN DE CONTACTO
   ========================================================================== */

.contact-section {
  padding: 6rem 0;
  background-color: var(--color-bg-white);
}

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

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

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  padding: 1.25rem;
  background: var(--color-bg-alt);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--color-border);
  transition: all var(--transition-fast);
}

.contact-info-card:hover {
  border-color: var(--color-accent);
  background: #ffffff;
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.contact-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-card:nth-child(2) .contact-card-icon {
  background: rgba(37, 211, 102, 0.15);
  color: #25d366;
}

.contact-info-card:nth-child(3) .contact-card-icon {
  background: rgba(24, 119, 242, 0.15);
  color: #1877f2;
}

.contact-card-details h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.2rem;
}

.contact-card-details p,
.contact-card-details a {
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

.contact-card-details a:hover {
  color: var(--color-accent);
}

/* Formulario de Contacto Directo */
.contact-form-panel {
  background: var(--color-bg-white);
  padding: 2.5rem;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
}

.contact-form-panel h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.contact-form-panel p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

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

@media (min-width: 640px) {
  .form-row.two-cols {
    grid-template-columns: 1fr 1fr;
  }
}

.light-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.light-form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-primary);
}

.light-form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--border-radius-sm);
  font-size: 0.95rem;
  color: var(--color-text-main);
  background: var(--color-bg-white);
  transition: all var(--transition-fast);
}

.light-form-control:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  background-color: #0b1120;
  color: #94a3b8;
  padding: 5rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-col.about p {
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 1.25rem 0 1.5rem;
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all var(--transition-fast);
}

.social-btn:hover {
  background: var(--color-accent);
  color: #fff;
  transform: translateY(-3px);
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.6rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--color-highlight);
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.92rem;
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 5px;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
}

/* ==========================================================================
   BOTÓN FLOTANTE DE WHATSAPP
   ========================================================================== */

.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.whatsapp-float-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  transition: all var(--transition-fast);
  cursor: pointer;
  position: relative;
}

.whatsapp-float-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-tooltip {
  background: var(--color-primary);
  color: #fff;
  padding: 0.5rem 0.9rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* Pulso animado para el botón */
.whatsapp-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #25d366;
  opacity: 0.6;
  animation: pulseAnimation 2s infinite;
  z-index: -1;
}

@keyframes pulseAnimation {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  70% {
    transform: scale(1.45);
    opacity: 0;
  }
  100% {
    transform: scale(1.45);
    opacity: 0;
  }
}

/* ==========================================================================
   ANIMACIONES DE SCROLL (REVEAL)
   ========================================================================== */

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ==========================================================================
   RESPONSIVE DESIGN (MÓVILES Y TABLETS)
   ========================================================================== */

/* ==========================================================================
   RESPONSIVE DESIGN (100% FLUIDO: MÓVILES, TABLETS Y ESCRITORIO)
   ========================================================================== */

/* 1. TABLETS Y PANTALLAS MEDIANAS (< 992px) */
@media (max-width: 991px) {
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--border-radius-sm);
    color: var(--color-primary);
  }

  .nav-menu {
    position: fixed;
    top: 78px;
    left: 0;
    width: 100%;
    height: calc(100vh - 78px);
    max-height: calc(100vh - 78px);
    overflow-y: auto;
    background: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.75rem 3rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-xl);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition-normal), opacity var(--transition-normal);
    z-index: 999;
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-link {
    font-size: 1.15rem;
    font-weight: 700;
    width: 100%;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-menu-cta-mobile {
    display: block !important;
    width: 100%;
    padding-top: 1rem;
  }

  .nav-cta {
    display: none;
  }
}

/* 2. PANTALLAS MÓVILES GRANDES Y TABLETS VERTICALES (< 768px) */
@media (max-width: 768px) {
  .section-header {
    margin-bottom: 2.5rem;
  }

  .section-header h2 {
    font-size: 1.85rem;
  }

  .section-header p {
    font-size: 1rem;
  }

  .hero-slider-section {
    height: auto;
    min-height: 560px;
    padding: 2rem 0 3rem;
  }

  .slide-inner h1 {
    font-size: clamp(1.75rem, 6.5vw, 2.5rem);
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  .slide-inner p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .slide-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .slide-actions .btn {
    width: 100%;
  }

  .slider-control-btn {
    display: none; /* En pantallas táctiles se usa swipe o dots */
  }

  .about-pillars {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .brands-grid {
    gap: 1rem;
    justify-content: center;
  }

  .brand-item {
    min-width: calc(50% - 0.75rem);
    max-width: calc(50% - 0.75rem);
    height: 74px;
    padding: 0.6rem 1rem;
  }

  .brand-item img,
  .brand-item svg {
    height: 34px;
    max-width: 90px;
  }

  .quote-card {
    padding: 1.5rem 1.2rem;
    border-radius: var(--border-radius-md);
  }

  .contact-form-panel {
    padding: 1.75rem 1.25rem;
  }

  .contact-info-card {
    padding: 1rem;
  }

  .whatsapp-float {
    bottom: 18px;
    right: 18px;
  }

  .whatsapp-float-btn {
    width: 54px;
    height: 54px;
  }

  .whatsapp-float-btn svg {
    width: 30px;
    height: 30px;
  }

  .whatsapp-tooltip {
    display: none;
  }
}

/* 3. SMARTPHONES Y PANTALLAS PEQUEÑAS (< 480px / 320px - 414px) */
@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .navbar {
    height: 68px;
  }

  .nav-menu {
    top: 68px;
    height: calc(100vh - 68px);
    max-height: calc(100vh - 68px);
  }

  .brand-logo-img {
    height: 36px;
    max-width: 170px;
  }

  .topbar {
    font-size: 0.78rem;
    padding: 0.4rem 0;
  }

  .topbar-content {
    justify-content: center;
    gap: 0.4rem;
  }

  .topbar-left {
    gap: 0.75rem;
    justify-content: center;
  }

  .topbar-right {
    gap: 0.75rem;
    justify-content: center;
  }

  .about-floating-card {
    position: static;
    margin-top: 1.25rem;
    justify-content: center;
  }

  .service-card-body {
    padding: 1.25rem 1rem;
  }

  .gallery-filters {
    gap: 0.4rem;
  }

  .filter-btn {
    padding: 0.45rem 0.85rem;
    font-size: 0.8rem;
    flex-grow: 1;
    text-align: center;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .gallery-item {
    height: 230px;
  }

  .form-control,
  .light-form-control {
    font-size: 16px; /* Evita que iOS haga zoom automático al enfocar */
    padding: 0.75rem 0.85rem;
  }

  .btn {
    padding: 0.8rem 1.25rem;
    font-size: 0.95rem;
  }
}

