/* Layout base (coincide con el resto de páginas) */
:root { --header-h: 80px; --footer-h: 220px; }
html, body { overflow-x: hidden; }

.main-content {
  padding-top: 80px;
  min-height: calc(100vh - var(--header-h) - var(--footer-h));
}

/* Contenedor general */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =====================================================
   HERO MODERNO (idéntico a nosotros/servicios/portafolio)
   ===================================================== */
.hero-page {
  padding: 120px 0 100px !important;
  text-align: center !important;
  background: linear-gradient(135deg, #e91e63 0%, #8e24aa 35%, #5e35b1 70%, #1e88e5 100%) !important;
  position: relative !important;
  overflow: hidden !important;
  border-bottom: none !important;
}
.hero-page::before {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M30 30c0-11.046-8.954-20-20-20s-20 8.954-20 20 8.954 20 20 20 20-8.954 20-20zm30 0c0-11.046-8.954-20-20-20s-20 8.954-20 20 8.954 20 20 20 20-8.954 20-20z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat !important;
  opacity: 0.6 !important;
}
.hero-page > * { position: relative !important; z-index: 1 !important; }

.page-title {
  font-size: clamp(1.5rem, 4vw, 2.5rem) !important;
  font-weight: 800 !important;
  margin-bottom: 24px !important;
  letter-spacing: -0.02em !important;
  text-transform: uppercase !important;
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  text-shadow: 0 4px 20px rgba(0,0,0,0.1) !important;
}
.page-description {
  font-size: clamp(0.9rem, 1.8vw, 1rem) !important;
  color: rgba(255, 255, 255, 0.9) !important;
  max-width: 600px !important;
  margin: 0 auto !important;
  line-height: 1.7 !important;
  font-weight: 400 !important;
  letter-spacing: 0.01em !important;
}

/* Responsive hero */
@media (min-width: 769px) and (max-width: 1023px) {
  .hero-page { padding: 80px 0 60px !important; }
}
@media (max-width: 768px) {
  .hero-page { padding: 60px 0 50px !important; }
}
@media (max-width: 480px) {
  .hero-page { padding: 50px 0 40px !important; }
}

/* Accesibilidad / performance */
@media (prefers-reduced-motion: reduce) {
  .hero-page::before { animation: none !important; }
  .page-title { text-shadow: none !important; }
}
.hero-page { will-change: auto !important; }
.page-title { will-change: transform !important; }



/* =====================================================
   PRICING SECTION CON VARIABLES SEPARADAS
   ===================================================== */
.pricing-card::before {
    background: var(--pricing-gradient-1);
}

.pricing-card:nth-child(2)::before {
    background: var(--pricing-gradient-2);
}

.pricing-card:nth-child(3)::before {
    background: var(--pricing-gradient-3);
}

.pricing-features li::before {
    background: var(--pricing-accent);
}

/* =====================================================
   INSTRUCCIONES DE IMPLEMENTACIÓN
   ===================================================== */

/*
PROBLEMA SOLUCIONADO:
- Eliminadas las declaraciones duplicadas de variables CSS
- Variables del hero unificadas con portafolio
- Variables del pricing separadas para evitar conflictos

PARA IMPLEMENTAR:
1. Reemplaza TODA la sección de variables CSS (:root) en servicios
2. Reemplaza la sección del hero (.hero-page, .page-title, .page-description)
3. Actualiza las referencias de variables en la sección pricing

RESULTADO:
- Hero idéntico entre portafolio y servicios
- Sin conflictos de variables CSS
- Pricing mantiene sus colores específicos
*/

/* Sección base */
.section {
  padding: 80px 0;
}

.section:nth-child(even) {
  background-color: #f8f9fa;
}

/* Contenido legal */
.legal-content {
  max-width: 900px;
  margin: 0 auto;
}

.updated {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 30px;
}

/* Títulos del contenido legal (más discretos que .section-title) */
.legal-content h2 {
  font-size: 1rem;
  font-weight: 600;
  color: #2c2c2c;
  margin: 30px 0 10px;
  text-transform: none;
  letter-spacing: 0;
}

/* Bloques y tipografía */
.legal-block p {
  color: #555;
  line-height: 1.8;
  margin-bottom: 14px;
  font-size: 0.9rem;
  padding-left: 20px;
  padding-right: 20px;
}

.legal-list {
  list-style: disc;
  padding-left: 20px;
  margin: 10px 0 20px;
}

.legal-list li {
  margin: 6px 0;
  color: #555;
  line-height: 1.7;
}

/* Enlaces (sin hover llamativo para mantener sobriedad) */
.legal-content a {
  color: #2c2c2c;
  text-decoration: underline;
}
.legal-content a:hover {
  color: #2c2c2c;
  text-decoration: underline;
}


/* Responsive */
@media (max-width: 768px) {
  .main-content { padding-top: 70px; }
  .hero-page { padding: 50px 0 40px; }
  .page-title { font-size: 1rem; }
  .page-description { font-size: 1rem; padding: 0 20px; }
  .section { padding: 60px 0; }
  .legal-content { max-width: 95%; }
  .legal-content h2 { font-size: 1rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 15px; }
  .page-title { font-size: 1rem; }
}