/* ==========================================================================
   PORTER HOLDING - SISTEMA DE DISEÑO GLOBAL
   Estilos base, variables CSS, tipografía y utilidades
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* Paleta Corporativa PORTER */
  --porter-orange: #EF6B01;
  --porter-orange-hover: #D85C00;
  --porter-orange-light: #FF8A29;
  --porter-orange-soft: rgba(239, 107, 1, 0.12);
  --porter-orange-glow: rgba(239, 107, 1, 0.35);

  /* Superficies Oscuras Corporativas */
  --bg-dark-base: #0B0E14;
  --bg-dark-surface: #121722;
  --bg-dark-elevated: #182030;
  --bg-dark-card: rgba(18, 23, 34, 0.85);
  --bg-dark-glass: rgba(11, 14, 20, 0.8);

  /* Superficies Claras */
  --bg-light-base: #F8FAFC;
  --bg-light-surface: #FFFFFF;
  --bg-light-card: #F1F5F9;

  /* Tipografía y Textos */
  --text-white: #FFFFFF;
  --text-silver: #E2E8F0;
  --text-muted: #94A3B8;
  --text-dark: #0F172A;
  --text-dark-muted: #475569;

  /* Bordes y Líneas */
  --border-dark: rgba(255, 255, 255, 0.08);
  --border-dark-hover: rgba(239, 107, 1, 0.4);
  --border-light: rgba(15, 23, 42, 0.08);

  /* Sombras y Efectos */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.45);
  --shadow-orange: 0 8px 30px rgba(239, 107, 1, 0.28);

  /* Tipografías */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Transiciones */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  /* Radios */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark-base);
  color: var(--text-silver);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
}

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

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

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  background: none;
  outline: none;
}

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-white);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.2rem); }
h2 { font-size: clamp(2rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); }
h4 { font-size: 1.35rem; }
h5 { font-size: 1.15rem; }
h6 { font-size: 1rem; }

p {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 400;
}

.text-orange { color: var(--porter-orange) !important; }
.text-white { color: var(--text-white) !important; }
.text-muted { color: var(--text-muted) !important; }

/* Contenedores */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-narrow {
  max-width: 960px;
}

.section {
  padding-top: 6rem;
  padding-bottom: 6rem;
  position: relative;
}

.section-dark {
  background-color: var(--bg-dark-base);
}

.section-surface {
  background-color: var(--bg-dark-surface);
}

.section-elevated {
  background-color: var(--bg-dark-elevated);
}

/* Encabezados de Sección */
.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3.5rem auto;
}

.section-header.text-left {
  text-align: left;
  margin-left: 0;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.95rem;
  background: var(--porter-orange-soft);
  color: var(--porter-orange);
  border: 1px solid rgba(239, 107, 1, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.badge-tag .bars {
  display: inline-flex;
  gap: 2px;
}

.badge-tag .bar {
  width: 3px;
  height: 10px;
  background: var(--porter-orange);
  transform: skewX(-15deg);
  display: inline-block;
}

.section-title {
  margin-bottom: 1rem;
  font-weight: 800;
}

.section-desc {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .section { padding-top: 4.5rem; padding-bottom: 4.5rem; }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding-top: 3.5rem; padding-bottom: 3.5rem; }
}
