/* ===== VARIABLES CSS ===== */
:root {
  --color-primary: #e91e63;
  --color-secondary: #9c27b0;
  --color-background: #121212;
  --color-surface: #1c1c1c;
  --color-surface-light: #212121;
  --color-text: #f0f0f0;
  --color-text-secondary: #ccc;
  --color-text-muted: #aaa;
  --color-border: #333;
  --color-success: #4caf50;
  --color-error: #f44336;
  --color-warning: #ff9800;
  
  --font-family: 'Segoe UI', Arial, sans-serif;
  --border-radius: 12px;
  --border-radius-small: 6px;
  --shadow-light: 0 2px 8px rgba(0,0,0, 0.2);
  --shadow-medium: 0 4px 15px rgba(0, 0, 0, 0.3);
  --shadow-heavy: 0 5px 14px rgba(233, 30, 99, 0.3);
  
  --transition-fast: 0.2s ease-in-out;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease-in-out;
}

/* ===== RESET Y BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box; 
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background: var(--color-background); 
  color: var(--color-text); 
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* ===== HEADER Y NAVEGACIÓN ===== */
header nav {
  background: var(--color-surface-light); 
  padding: 1rem;
  text-align: center;
  box-shadow: var(--shadow-light); 
  position: sticky; 
  top: 0;
  z-index: 1000;
}

header nav a {
  color: var(--color-text);
  text-decoration: none;
  margin: 0 1rem;
  font-weight: bold;
  display: inline-block;
  transition: color var(--transition-medium);
}

header nav a:hover, 
header nav a.activo {
  color: var(--color-primary); 
}

@keyframes fadeInSection {
  from { 
    opacity: 0; 
    transform: translateY(10px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

/* ===== TÍTULOS ===== */
h1, h2, h3 { 
  text-align: center;
  color: var(--color-secondary); 
}

h1 { 
  margin-bottom: 1.5rem; 
  font-size: 1.9em; 
}

h2 { 
  margin-bottom: 1.2rem; 
  font-size: 1.6em;
}

h3 { 
  margin-bottom: 0.8rem; 
  font-size: 1.25em;
}   

/* ===== SECCIÓN HERO ===== */
.hero { 
  text-align: center;
  padding-top: 0.5rem;
  padding-bottom: 1rem;
}

.hero h1 { 
  color: var(--color-primary); 
  font-size: 2em; 
} 

.hero p { 
  font-size: 1.05em; 
  color: var(--color-text-secondary); 
}

.hero button {
  background: var(--color-primary); 
  color: #fff;
  border: none;
  border-radius: var(--border-radius-small);
  padding: 0.8rem 2rem;
  font-size: 1.1rem;
  margin-top: 1.5rem;
  cursor: pointer;
  font-weight: bold;
  transition: background var(--transition-medium);
}

.hero button:hover {
  background: #c2185b; 
}

/* ===== TÍTULOS DE SECCIÓN PRINCIPALES ===== */
section#servicios > h1,
section#catalogo > h1,
section#portawix> h1,
section#cotizador > h1,
section#tienda > h1,
section.diferenciadores > h2 {
  text-align: center; 
  margin-bottom: 1.5rem;
  color: var(--color-secondary); 
  border-bottom: none; 
  cursor: default;
  font-size: 1.7em; 
}

#servicios-content-wrapper,
#catalogo-content-wrapper,
#portawix-content-wrapper,
#cotizador-content-wrapper,
#tienda-content-wrapper,
#diferenciadores-content {
  margin-top: 0; 
  max-height: none;
  overflow: visible;
  padding-top: 0; 
  padding-bottom: 0;
}

/* ===== SECCIÓN DIFERENCIADORES ===== */
.diferenciadores ul { 
  list-style: disc inside;
  max-width: 600px;
  margin: 0 auto; 
  padding-left: 0; 
  color: var(--color-text-secondary);
  text-align: left;
}

.diferenciadores ul li {
  margin-bottom: 0.6rem;
}

/* ===== CTA SECUNDARIO ===== */
.cta-secundaria { 
  text-align: center;
  margin-top: 2rem;
}

.cta-secundaria button {
  background: var(--color-secondary); 
  color: #fff;
  border: none;
  border-radius: var(--border-radius-small);
  padding: 0.8rem 2rem;
  font-size: 1.1rem;
  cursor: pointer;
  font-weight: bold;
  transition: background var(--transition-medium);
}

.cta-secundaria button:hover {
  background: #7b1fa2; 
}

/* ===== CATEGORÍAS DE SERVICIOS ===== */
.categoria-servicios-container {
  margin-bottom: 2rem;
  width: 100%;
}

.categoria-servicios-titulo {
  color: var(--color-primary); 
  text-align: left; 
  font-size: 1.5em;
  margin-bottom: 1.2rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--color-border);
}

.servicios-lista-categoria { 
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: flex-start; 
}

/* ===== TARJETA DE SERVICIO ===== */
.servicio-card {
  background: var(--color-surface-light); 
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  width: 290px;
  padding: 1.2rem;
  text-align: center; 
  transition: transform var(--transition-fast);
  margin-bottom: 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.servicio-card:hover {
  transform: translateY(-4px);
}

.servicio-media {
  width: 100%;
  height: 150px;
  background-color: #2c2c2c;
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #777;
  font-size: 0.9em;
}

.servicio-media img, 
.servicio-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.servicio-card h3 { 
  margin: 0.4rem 0; 
  font-size: 1.2em;
  color: var(--color-text); 
  text-align: center; 
}

.servicio-card .enfoque { 
  font-weight: bold;
  font-size: 0.95rem;
  margin: 0.2rem 0 0.6rem 0;
  text-align: center;
  color: var(--color-primary);
}

.servicio-card p { 
  color: var(--color-text-secondary);
  font-size: 0.9em;
  text-align: left; 
}

/* ===== FORMULARIO DE CONTACTO ===== */
#profilingForm { 
  max-width: 600px; 
  margin: 0 auto; 
  display: flex; 
  flex-direction: column; 
  gap: 0.8rem; 
}

.form-group { 
  display: flex; 
  flex-direction: column; 
  gap: 0.25rem; 
}

#profilingForm label { 
  color: var(--color-text-secondary); 
  font-size: 0.95rem; 
  text-align: left; 
  margin-bottom: 0.1rem; 
  font-weight: bold; 
}

#profilingForm input, 
#profilingForm select, 
#profilingForm textarea { 
  width: 100%; 
  padding: 0.7rem 0.9rem; 
  border-radius: var(--border-radius-small); 
  border: 1px solid #555; 
  font-size: 0.95rem; 
  background-color: #2c2c2c; 
  color: var(--color-text); 
}

#profilingForm button[type="submit"] { 
  background: var(--color-primary); 
  color: #fff; 
  border: none; 
  border-radius: var(--border-radius-small); 
  padding: 0.8rem 1.5rem; 
  cursor: pointer; 
  font-weight: bold; 
  font-size: 1.1rem; 
  transition: background var(--transition-medium); 
  margin-top: 0.8rem; 
  align-self: center; 
}

#profilingForm button[type="submit"]:hover { 
  background: #c2185b; 
}

/* ===== SECCIONES DE INICIO ===== */
.sobre-nosotros-inicio, 
.nuestro-proceso-inicio { 
  padding: 1.5rem 0.8rem; 
  margin-top: 2rem; 
  margin-bottom: 2rem; 
  background-color: var(--color-surface-light); 
  border-radius: 8px; 
}

.sobre-nosotros-contenido { 
  display: flex; 
  gap: 2rem; 
  align-items: center; 
}

#sobre-mi-media { 
  flex-shrink: 0; 
  width: 150px; 
  height: 150px; 
  border-radius: 50%; 
  background-color: #2c2c2c; 
  overflow: hidden; 
}

#sobre-mi-media img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
}

.sobre-nosotros-inicio h2, 
.nuestro-proceso-inicio h2 { 
  color: var(--color-secondary); 
  margin-bottom: 1.2rem; 
  text-align: center; 
}

.proceso-pasos-container { 
  display: flex; 
  flex-wrap: wrap; 
  justify-content: space-around; 
  gap: 1.2rem; 
  margin-top: 1.2rem; 
}

.proceso-paso { 
  background-color: #2c2c2c; 
  padding: 1.2rem; 
  border-radius: var(--border-radius-small); 
  flex: 1 1 200px; 
  min-width: 180px; 
  text-align: center; 
  box-shadow: var(--shadow-light); 
  border-left: 3px solid var(--color-primary); 
}

.proceso-paso .paso-icono { 
  font-size: 2.2em; 
  margin-bottom: 0.4rem; 
  color: var(--color-primary); 
  height: 40px; 
}

.proceso-paso h3 { 
  color: var(--color-text); 
  font-size: 1.1em; 
  margin-bottom: 0.4rem; 
  text-align: center; 
}

.proceso-paso p { 
  color: #bbb; 
  font-size: 0.9em; 
  line-height: 1.5; 
  text-align: center; 
}

/* ===== SECCIÓN TIENDA ===== */
.tienda-introduccion { 
  text-align: center; 
  font-size: 1.05em; 
  color: var(--color-text-secondary); 
  margin-bottom: 2rem; 
  max-width: 650px; 
  margin-left: auto; 
  margin-right: auto; 
}

.tienda-productos-lista { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 1.5rem; 
  justify-content: center; 
}

.tienda-producto-card { 
  background: var(--color-surface-light); 
  border-radius: 10px; 
  box-shadow: var(--shadow-light); 
  width: 300px; 
  display: flex; 
  flex-direction: column; 
  overflow: hidden; 
  transition: transform var(--transition-medium), box-shadow var(--transition-medium); 
  margin-bottom: 1.5rem; 
}

.tienda-producto-card:hover { 
  transform: translateY(-4px); 
  box-shadow: var(--shadow-heavy); 
}

.producto-imagen { 
  width: 100%; 
  height: 170px; 
  object-fit: cover; 
  background-color: #2c2c2c; 
}

.producto-info { 
  padding: 1.2rem; 
  display: flex; 
  flex-direction: column; 
  flex-grow: 1; 
  text-align: left; 
}

.producto-info h3 { 
  font-size: 1.2em; 
  color: var(--color-text); 
  margin-bottom: 0.6rem; 
  text-align: left; 
}

.producto-info .descripcion-corta { 
  font-size: 0.9em; 
  color: #bbb; 
  line-height: 1.5; 
  margin-bottom: 0.8rem; 
  flex-grow: 1; 
}

.producto-precio { 
  margin-bottom: 0.8rem; 
  text-align: left; 
}

.producto-precio .precio-original { 
  text-decoration: line-through; 
  color: #888; 
  font-size: 0.85em; 
  margin-right: 0.4rem; 
}

.producto-precio .precio-final { 
  font-size: 1.3em; 
  font-weight: bold; 
  color: var(--color-primary); 
}

.producto-info .disponibilidad { 
  font-size: 0.8em; 
  color: var(--color-text-muted); 
  margin-bottom: 1rem; 
}

.btn-producto-cta { 
  background: var(--color-secondary); 
  color: #fff; 
  border: none; 
  border-radius: var(--border-radius-small); 
  padding: 0.6rem 1.3rem; 
  font-size: 0.95rem; 
  font-weight: bold; 
  cursor: pointer; 
  text-align: center; 
  text-decoration: none; 
  display: inline-block; 
  width: 100%; 
  transition: background-color var(--transition-medium); 
  margin-top: auto; 
}

.btn-producto-cta:hover { 
  background: #7b1fa2; 
}

/* ===== FOOTER ===== */
footer { 
  text-align: center; 
  padding: 1.2rem; 
  background: var(--color-surface); 
  color: var(--color-text-muted); 
  margin-top: 2.5rem; 
}

/* ===== MODAL Y COMPONENTES ===== */
.modal {
  transition: opacity var(--transition-medium), visibility var(--transition-medium);
  z-index: 1050;
}

.modal-content { 
  transition: transform var(--transition-medium); 
}

.modal.hidden { 
  pointer-events: none; 
}

.modal.hidden .modal-content { 
  transform: scale(0.95); 
}

.button-style { 
  background-color: var(--color-primary); 
  color: white; 
  border: none; 
  padding: 0.8rem 1.5rem; 
  border-radius: 5px; 
  cursor: pointer; 
  font-weight: bold; 
  transition: background-color var(--transition-medium); 
  text-decoration: none; 
  display: inline-block; 
}

.button-style:hover { 
  background-color: #c2185b; 
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 900px) { 
  .tienda-producto-card { 
    width: calc(50% - 0.75rem); 
  } 
  
  .proceso-paso { 
    flex-basis: calc(50% - 0.75rem); 
  } 
}

@media (max-width: 700px) { 
  .sobre-nosotros-contenido { 
    flex-direction: column; 
  } 
}

@media (max-width: 600px) { 
  main, section { 
    padding: 0.8rem 0.4rem; 
    margin: 0.8rem 0.4rem; 
    border-radius: 8px; 
  } 
  
  h1 { 
    font-size: 1.5em; 
  } 
  
  h2 { 
    font-size: 1.3em; 
  } 
  
  section#servicios > h1,
  section#catalogo > h1,
  section#cotizador > h1,
  section#tienda > h1,
  section.diferenciadores > h2 { 
    font-size: 1.4em; 
  } 
  
  .servicios-lista-categoria, 
  .tienda-productos-lista { 
    flex-direction: column; 
    align-items: center; 
    gap: 1.2rem; 
  } 
  
  .servicio-card, 
  .tienda-producto-card { 
    width: 100%; 
    padding: 0.8rem; 
  } 
  
  header nav { 
    padding: 0.8rem 0.1rem; 
  } 
  
  header nav a { 
    margin: 0.2rem 0.2rem; 
    font-size: 0.75rem; 
  } 
  
  .hero button, 
  .cta-secundaria button, 
  #toggle-filtros-btn, 
  #profilingForm button[type="submit"], 
  .btn-producto-cta { 
    padding: 0.7rem 1rem; 
    font-size: 0.95rem; 
  } 
  
  .sobre-nosotros-inicio, 
  .nuestro-proceso-inicio { 
    padding: 1.2rem 0.4rem; 
  } 
  
  .tienda-introduccion { 
    font-size: 0.95em; 
    margin-bottom: 1.5rem;
  } 
  
  .producto-info h3 { 
    font-size: 1.1em;
  } 
  
  .producto-precio .precio-final { 
    font-size: 1.2em;
  } 
}

/* ===== UTILIDADES ===== */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.error {
  color: var(--color-error);
}

.success {
  color: var(--color-success);
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


#clientes-live {
  padding: 40px 5%;
  background: #f9fafb;
}
#clientes-live h2 {
  color: #9c27b0;
  text-align: center;
  margin-bottom: 20px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  padding: 20px;
  text-align: center;
  transition: transform .3s ease;
}
.card:hover { transform: translateY(-5px); }
.card img { max-width: 140px; margin-bottom: 10px; }
.status-live {
  display: inline-block;
  background: #e91e63;
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: bold;
  margin-bottom: 8px;
}
ul { list-style: none; padding: 0; font-size: 0.9em; color: #555; text-align: left; }
.btn {
  display: inline-block;
  background: #9c27b0;
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  margin-top: 10px;
  transition: background .3s ease;
}
.btn:hover { background: #7b1fa2; }
