/* CSS Crítico Global JAFRA LINAJE ESMERALDA - v3.1.0 */
/* Optimizado para Core Web Vitals y homologación visual */

:root {
  --violeta: #8F4899;
  --acento: #D98B00; 
  --fondo: #1a0f1d;
  --texto: #eae7ed;
  --borde: rgba(143, 72, 153, 0.3);
  --hover: rgba(143, 72, 153, 0.1);
}

/* Reset y base optimizados */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  background: var(--fondo);
  color: var(--texto);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  font-display: swap;
}

/* Layout contenedor */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Tipografía homologada */
h1, h2, h3, h4, h5, h6 {
  color: var(--acento);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

/* Cards y secciones homologadas */
.card, .section, .intro, .feature, .benefit {
  background: var(--fondo);
  border: 1px solid var(--borde);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

/* Grids responsivos */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* Botones homologados */
.btn {
  background: var(--acento);
  color: white;
  border: 1px solid var(--borde);
  border-radius: 8px;
  padding: 1rem 2rem;
  text-decoration: none;
  display: inline-block;
  font-weight: 600;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  font-size: 1rem;
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-primary {
  background: var(--violeta);
}

.btn-primary:hover {
  background: #7A3E82;
}

/* Highlights y acentos */
.highlight {
  background: rgba(255, 230, 102, 0.1);
  border-left: 4px solid var(--acento);
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem 0;
}

.cta-section {
  background: var(--hover);
  border: 1px solid var(--borde);
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  margin: 2rem 0;
}

/* Responsive design móvil */
@media (max-width: 768px) {
  html { font-size: 14px; }
  
  .container { padding: 0 0.5rem; }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.8rem; }
  h3 { font-size: 1.3rem; }
  
  .grid { gap: 1rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  
  .btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .card, .section, .intro, .feature, .benefit {
    padding: 1rem;
  }
  
  .cta-section {
    padding: 1.5rem;
  }
}

/* Optimizaciones performance */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

.lazy {
  opacity: 0;
  transition: opacity 0.3s;
}

.lazy.loaded {
  opacity: 1;
}

/* Utilidades críticas */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }

/* Accessibility */
.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;
}

/* Focus states */
:focus {
  outline: 2px solid var(--acento);
  outline-offset: 2px;
}