/*
Theme Name: PrimeService - Tema Actualizado 2025
Description: Tema personalizado para PrimeService - Soluciones Industriales. Versión completamente renovada con diseño responsivo, productos destacados actualizados, catálogo 2026 y menú móvil premium.
Version: 5.0
Author: PrimeService Team
Author URI: https://primeservice.cl
Theme URI: https://primeservice.cl
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: primeservice
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
Tags: responsive, industrial, business, modern, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* Estilos base */
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --text-primary: #1e293b;
  --text-secondary: #2d3748;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --border-hover: #cbd5e1;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent-light: #ebf4ff;
  --accent-dark: #2a4365;
  --success: #38a169;
  --warning: #ed8936;
  --error: #e53e3e;
  --radius: 8px;
  --shadow-small: 0 1px 3px rgba(0, 0, 0, 0.10);
  --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-large: 0 8px 25px rgba(0, 0, 0, 0.20);
  --transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* HEADER FIJO OPTIMIZADO */
.header {
  position: fixed !important;
  top: 40px !important;
  left: 0 !important;
  right: 0 !important;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%) !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05) !important;
  z-index: 2000 !important;
  border-bottom: 1px solid #e2e8f0 !important;
  transition: var(--transition);
  width: 100% !important;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 90px;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.logo {
  height: 70px;
  display: flex;
  align-items: center;
  padding: 4px 0;
  flex-shrink: 0;
  width: auto;
  position: relative;
  z-index: 1;
}

.logo img {
  height: 100% !important;
  width: auto !important;
  object-fit: contain;
  max-height: 70px !important;
  max-width: 250px !important;
}

.logo a {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  font-size: 20px;
}

/* NAVEGACIÓN OPTIMIZADA */
.nav {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 32px;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.nav-menu li {
  margin: 0;
}

.nav-menu a {
  color: #64748b;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.2s ease;
  padding: 8px 12px;
  border-radius: 6px;
  position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.08);
}

/* CTA Button */

/* Estilos de navegación actualizados arriba */

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: #3b82f6;
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  height: 36px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.cta-button:hover {
  background: #2563eb;
  transform: translateY(-2px);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.cta-button:active {
  transform: translateY(0);
  box-shadow: var(--shadow-small);
}

/* CONTENIDO PRINCIPAL */
.site-content {
  padding-top: 130px;
}

/* SECCIONES GENERALES */
.section {
  padding: 80px 0;
  position: relative;
}

#productos {
  padding-top: 120px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: 42px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-description {
  font-size: 18px;
  color: #64748b;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* Hero Section */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px 120px;
  background:
    linear-gradient(135deg, rgba(248, 250, 252, 0.4) 0%, rgba(255, 255, 255, 0.3) 100%),
    url('./imagenes/NuevoHero.jpeg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  overflow: hidden;
  margin-top: -130px;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.005) 0%, rgba(255, 255, 255, 0.01) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-section::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  background:
    radial-gradient(circle at 30% 20%, rgba(59, 130, 246, 0.008) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(59, 130, 246, 0.003) 0%, transparent 50%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
}

.hero-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 100px;
  min-height: calc(100vh - 130px);
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  margin-bottom: 40px;
  margin-top: 0px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

.hero-badge span {
  font-size: 14px;
  font-weight: 500;
  color: #3b82f6;
  letter-spacing: -0.01em;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: 48px 40px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.12);
  position: relative;
  z-index: 3;
  transition: all 0.3s ease;
}

.hero-content:hover {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.15);
  transform: translateY(-2px);
}

.hero-title {
  font-size: 56px;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 32px;
  color: #3b82f6;
  /* Fallback color */
  background: linear-gradient(90deg, #1e3a8a 0%, #1e40af 15%, #2563eb 30%, #3b82f6 50%, #60a5fa 70%, #3b82f6 85%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  position: relative;
}

.hero-title::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  background: linear-gradient(90deg, #1e3a8a 0%, #1e40af 15%, #2563eb 30%, #3b82f6 50%, #60a5fa 70%, #3b82f6 85%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: blur(1px);
  opacity: 0.8;
}

.hero-description {
  font-size: 20px;
  line-height: 1.6;
  color: #64748b;
  margin-bottom: 40px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 4px rgba(15, 23, 42, 0.2);
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  height: 52px;
  padding: 0 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.2s ease;
  text-decoration: none !important;
}

.hero-button:hover,
.hero-button:focus,
.hero-button:active {
  text-decoration: none !important;
}

.hero-button-primary {
  background-color: #3b82f6;
  color: #ffffff;
  border: none;
}

.hero-button-primary:hover,
.hero-button-primary:focus,
.hero-button-primary:active {
  background-color: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
  color: #ffffff;
  text-decoration: none !important;
}

.hero-button-secondary {
  background-color: #f8fafc;
  color: #1e293b;
  border: 1px solid #e2e8f0;
  text-decoration: none !important;
}

.hero-button-secondary:hover,
.hero-button-secondary:focus,
.hero-button-secondary:active {
  background-color: #f1f5f9;
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
  color: #1e293b;
  text-decoration: none !important;
}

/* PRODUCTOS */
#productos {
  background: #ffffff;
}

.products-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px 40px 40px;
}

.products-tabs {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 40px;
}

.tab-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-button:hover {
  border-color: #3b82f6;
  color: #3b82f6;
  transform: translateY(-2px);
}

.tab-button.active {
  background: #3b82f6;
  border-color: #3b82f6;
  color: #ffffff;
}

.tab-icon {
  font-size: 20px;
}

.products-content {
  position: relative;
}

.products-category {
  display: none;
  animation: fadeIn 0.3s ease;
}

.products-category.active {
  display: block;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin: 0 auto;
}

.product-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  height: 420px;
  min-height: 420px;
  max-height: 420px;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
  border-color: #3b82f6;
}

.product-image {
  width: 100%;
  height: 160px;
  min-height: 160px;
  max-height: 160px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-title {
  font-size: 18px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 8px;
  line-height: 1.4;
  height: 50px;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-shrink: 0;
}

.product-description {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
  height: 84px;
  min-height: 84px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  text-align: center;
}

.product-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 24px;
  background: #3b82f6;
  color: #ffffff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  height: 48px;
  min-height: 48px;
  flex-shrink: 0;
  margin-top: auto;
}

.product-cta:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
  color: #ffffff;
}

/* SERVICIOS */
#servicios {
  background: #f8fafc;
}

.services-section {
  padding: 80px 0;
  background: #f8fafc;
  position: relative;
  overflow: hidden;
}

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

.services-header {
  text-align: center;
  margin-bottom: 64px;
}

.services-title {
  font-size: 40px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 16px;
  line-height: 1.2;
}

.services-subtitle {
  font-size: 18px;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Si hay número impar de tarjetas, centrar la última */
.services-grid .service-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  max-width: 500px;
  margin: 0 auto;
}

/* Responsive para servicios */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    gap: 24px;
  }

  .services-grid .service-card:last-child:nth-child(odd) {
    grid-column: 1;
    max-width: none;
  }

  .service-card {
    padding: 32px 24px;
  }
}

.service-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 40px 32px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 220px;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
  border-color: #3b82f6;
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

/* Efecto de brillo sutil */
.service-icon::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.service-card:hover .service-icon::before {
  transform: translateX(100%);
}

.service-card:hover .service-title {
  color: #3b82f6;
}

.service-icon {
  width: 56px;
  height: 56px;
  background: #f1f5f9;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 24px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-title {
  font-size: 20px;
  transition: color 0.3s ease;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 12px;
  line-height: 1.4;
}

.service-description {
  font-size: 15px;
  color: #64748b;
  line-height: 1.6;
}

/* TESTIMONIOS */
#testimonios {
  background: #ffffff;
}

.testimonials-section {
  padding: 80px 0;
  background: #ffffff;
  position: relative;
  overflow: hidden;
}

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

.testimonials-header {
  text-align: center;
  margin-bottom: 64px;
}

.testimonials-title {
  font-size: 40px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 16px;
  line-height: 1.2;
}

.testimonials-subtitle {
  font-size: 18px;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.testimonial-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
  border-color: #3b82f6;
}

.testimonial-quote {
  font-size: 18px;
  color: #1e293b;
  line-height: 1.6;
  margin-bottom: 24px;
  position: relative;
  padding-left: 24px;
  border-left: 3px solid #3b82f6;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(45deg, #3b82f6, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  flex-shrink: 0;
}

.testimonial-info {
  flex: 1;
}

.testimonial-name {
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 4px;
}

.testimonial-role {
  font-size: 14px;
  color: #64748b;
  line-height: 1.4;
}

.testimonial-company {
  font-weight: 500;
  color: #3b82f6;
}

/* MARCAS/PROVEEDORES */
.marcas-section {
  padding: 80px 0;
  background: #f8fafc;
  text-align: center;
  position: relative;
}

.marcas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.marcas-grid img {
  width: 140px;
  height: 90px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.6);
  transition: all 0.4s ease;
  margin: 0 auto;
  display: block;
  padding: 20px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  border: 1px solid #e2e8f0;
  position: relative;
  overflow: hidden;
}

/* Efecto de brillo para logos */
.marcas-grid img::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(59, 130, 246, 0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.marcas-grid img:hover::before {
  transform: translateX(100%);
}

/* Responsive para proveedores */
@media (max-width: 1024px) {
  .marcas-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 900px;
  }
}

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

  .marcas-grid img {
    width: 120px;
    height: 80px;
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .marcas-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 320px;
  }

  .marcas-grid img {
    width: 100px;
    height: 70px;
    padding: 12px;
  }
}

.marcas-grid img:hover {
  filter: grayscale(0%) opacity(1);
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  border-color: #3b82f6;
}

/* FAQ MEJORADO */
.faq-section {
  padding: 80px 0;
  background: #ffffff;
  position: relative;
}

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

.faq-item {
  margin-bottom: 20px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  border-color: #3b82f6;
  transform: translateY(-2px);
}

.faq-question {
  width: 100%;
  padding: 24px 32px;
  background: none;
  border: none;
  text-align: left;
  font-size: 18px;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  position: relative;
}

.faq-question:hover {
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.02);
}

.faq-question::after {
  content: '+';
  font-size: 24px;
  font-weight: 300;
  color: #3b82f6;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
  /* Estilos duplicados eliminados */
}

.faq-item.active .faq-question {
  color: #3b82f6;
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
  color: #3b82f6;
}

.faq-answer {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  font-size: 16px;
  color: #64748b;
  line-height: 1.7;
  transition: all 0.4s ease;
  background: #f8fafc;
}

.faq-item.active .faq-answer {
  padding: 24px 32px 32px;
  max-height: 1000px;
}

/* CONTACTO MEJORADO */
.contact-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 50%, #f8fafc 100%);
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.02) 0%, transparent 50%);
  pointer-events: none;
}

.contact-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.contact-info {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: #ffffff;
  padding: 48px;
  border-radius: 24px;
  box-shadow:
    0 20px 40px rgba(15, 23, 42, 0.15),
    0 0 0 1px rgba(59, 130, 246, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: all 0.4s ease;
}

.contact-info::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.contact-info::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #3b82f6, #2563eb, #1d4ed8, #3b82f6);
  border-radius: 26px;
  z-index: -1;
  opacity: 0.1;
  animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {

  0%,
  100% {
    opacity: 0.1;
  }

  50% {
    opacity: 0.2;
  }
}

.contact-info:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 50px rgba(15, 23, 42, 0.2);
}

.contact-info:hover::after {
  opacity: 0.3;
}

.contact-info .section-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #ffffff;
  position: relative;
  z-index: 2;
}

.contact-info .section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #60a5fa, #3b82f6);
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(96, 165, 250, 0.3);
}

.contact-info .section-description {
  font-size: 18px;
  color: #cbd5e1;
  margin-bottom: 48px;
  position: relative;
  z-index: 2;
  line-height: 1.6;
}

.contact-details {
  display: grid;
  gap: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.2) 0%, rgba(59, 130, 246, 0.3) 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 2;
}

.contact-icon::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.contact-item:hover .contact-icon::before {
  transform: translateX(100%);
}

.contact-item:hover .contact-icon {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 28px rgba(96, 165, 250, 0.3);
  border-color: rgba(96, 165, 250, 0.5);
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.3) 0%, rgba(59, 130, 246, 0.4) 100%);
}

.contact-text h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
  color: #ffffff;
  position: relative;
  z-index: 2;
}

.contact-text p {
  font-size: 16px;
  color: #cbd5e1;
  position: relative;
  z-index: 2;
}

.contact-form {
  background: #ffffff;
  border-radius: 20px;
  padding: 48px;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
  border: 1px solid #e2e8f0;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.contact-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #2563eb);
  z-index: 2;
}

.contact-form::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 90% 10%, rgba(59, 130, 246, 0.02) 0%, transparent 50%),
    linear-gradient(135deg, transparent 0%, rgba(59, 130, 246, 0.01) 100%);
  pointer-events: none;
  z-index: 0;
}

.form-group {
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 8px;
  transition: color 0.3s ease;
  position: relative;
}

.form-group label::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #3b82f6;
  transition: width 0.3s ease;
}

.form-group:focus-within label::after {
  width: 24px;
}

.form-group:focus-within label {
  color: #3b82f6;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 16px;
  color: #1e293b;
  transition: all 0.3s ease;
  background: #f8fafc;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
  background: #ffffff;
  transform: translateY(-2px);
}

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

.form-group textarea:focus {
  min-height: 140px;
}

.form-submit {
  width: 100%;
  padding: 18px 32px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.2);
  position: relative;
  overflow: hidden;
}

.form-submit::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.form-submit:hover::before {
  left: 100%;
}

.form-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

.form-submit:active {
  transform: translateY(0);
}

/* Banner de anuncios */
/* BANNER SUPERIOR NUEVO */
.top-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: #3b82f6;
  color: #ffffff;
  z-index: 1999;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-message {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
}

.banner-message.active {
  opacity: 1;
  visibility: visible;
}

.banner-icon {
  font-size: 16px;
  display: flex;
  align-items: center;
}

.banner-text {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.banner-text strong {
  font-weight: 600;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-section {
    min-height: 90vh;
    padding: 40px 24px 48px;
    margin-top: -120px;
  }

  .hero-container {
    padding-top: 16px;
  }

  .hero-title {
    font-size: 48px;
  }

  .hero-description {
    font-size: 18px;
  }

  .hero-button {
    min-width: 160px;
    height: 48px;
    padding: 0 24px;
    font-size: 15px;
  }

  .contact-container {
    gap: 32px;
  }

  .contact-form {
    padding: 32px;
  }
}

@media (max-width: 768px) {
  .hero-section {
    min-height: 90vh;
    padding: 32px 20px 40px;
    margin-top: -100px;
  }

  .hero-container {
    padding-top: 12px;
  }

  .hero-badge {
    padding: 6px 14px;
    margin-bottom: 32px;
  }

  .hero-badge span {
    font-size: 13px;
  }

  .hero-title {
    font-size: 40px;
    margin-bottom: 20px;
  }

  .hero-description {
    font-size: 16px;
    margin-bottom: 40px;
  }

  .hero-buttons {
    gap: 12px;
  }

  .hero-button {
    min-width: 140px;
    height: 44px;
    padding: 0 20px;
    font-size: 14px;
  }

  .products-container {
    padding: 0 20px;
  }

  .products-tabs {
    flex-wrap: wrap;
    gap: 12px;
  }

  .tab-button {
    padding: 10px 16px;
    font-size: 14px;
  }

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

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

  .contact-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-info .section-title {
    font-size: 32px;
  }

  .contact-info .section-description {
    font-size: 16px;
  }

  .contact-form {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .hero-section {
    min-height: 90vh;
    padding: 24px 16px 32px;
    margin-top: -90px;
    background-attachment: scroll;
  }

  .hero-content {
    padding: 32px 24px;
    border-radius: 16px;
    backdrop-filter: blur(6px);
    background: rgba(255, 255, 255, 0.7);
  }

  .hero-container {
    padding-top: 50px;
    min-height: calc(90vh - 90px);
  }

  .hero-badge {
    padding: 6px 12px;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(6px);
  }

  .hero-badge span {
    font-size: 12px;
  }

  .hero-title {
    font-size: 32px;
    margin-bottom: 16px;
  }

  .hero-description {
    font-size: 15px;
    margin-bottom: 32px;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-button {
    width: 100%;
    min-width: unset;
  }

  .product-card {
    padding: 20px;
  }

  .product-image {
    height: 120px;
  }

  .testimonial-card {
    padding: 24px;
  }

  .testimonial-quote {
    font-size: 16px;
  }

  .contact-form {
    padding: 20px;
  }

  .form-submit {
    padding: 12px 20px;
    font-size: 15px;
  }
}

/* FOOTER MEJORADO */
.footer {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #ffffff;
  padding: 80px 0 40px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #3b82f6, transparent);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-section h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 24px;
  color: #ffffff;
  position: relative;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 2px;
  background: #3b82f6;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 15px;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: #3b82f6;
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid #334155;
  margin-top: 60px;
  padding-top: 30px;
  text-align: center;
  color: #94a3b8;
  font-size: 14px;
}

/* WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  cursor: pointer;
}

.whatsapp-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
  transition: all 0.3s ease;
}

.whatsapp-icon:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.4);
}

/* Tooltip de WhatsApp */
.whatsapp-tooltip {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: #1e293b;
  color: #ffffff;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1001;
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -8px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid #1e293b;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

.whatsapp-tooltip span {
  display: block;
  font-size: 12px;
  opacity: 0.8;
  margin-top: 2px;
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(-8px);
}
