/* ==========================================================================
   BASE — Variables de marca, Reset y Tipografía Global
   Design System Synera Arenys v1.0

   Nota: la carga de fuentes (Google Fonts) vive en el <head> del HTML
   y se documenta en fonts.css — aquí solo se declaran las variables
   --font-heading / --font-body que las referencian.
   ========================================================================== */

:root {
  /* Paleta Corporativa Oficial */
  --azul-synera: #0A1F44;
  --cyan-synera: #00AEEF;
  --cyan-hover: #0096ce;
  --blanco: #FFFFFF;
  --gris-claro: #F7FAFC;
  --gris-suave: #EDF2F7;
  --borde-color: #E2E8F0;
  --texto-oscuro: #0A1F44;
  --texto-cuerpo: #2D3748;
  --texto-secundario: #4A5568;
  --texto-muted: #718096;

  /* Sistema Tipográfico */
  --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout y Dimensiones */
  --max-width: 1200px;
  --container-padding: 1.5rem;
  --header-height: 80px;
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 16px;
  --border-radius-full: 9999px;

  /* Sombras Suaves */
  --shadow-sm: 0 2px 4px rgba(10, 31, 68, 0.04);
  --shadow-md: 0 6px 18px rgba(10, 31, 68, 0.06);
  --shadow-lg: 0 12px 30px rgba(10, 31, 68, 0.10);
  --shadow-hover: 0 16px 36px rgba(0, 174, 239, 0.12);

  /* Transiciones */
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  /* Animaciones */
  --hero-cycle: 12s; /* duración del ciclo del fondo animado del Hero;
                         todas sus animaciones sincronizadas leen de aquí */
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--gris-claro);
  color: var(--texto-cuerpo);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Reglas Tipográficas Estrictas (Design System v1.0) */
/* Prohibido cursivas y subrayados */
* {
  font-style: normal !important;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--azul-synera);
  font-weight: 600;
  line-height: 1.25;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  letter-spacing: 0.02em;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2rem);
  letter-spacing: 0.015em;
}

h3 {
  font-size: 1.4rem;
  letter-spacing: 0.01em;
}

p {
  margin-bottom: 1rem;
}

.lead {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  line-height: 1.75;
  color: var(--texto-secundario);
}

.text-emphasis {
  font-weight: 500;
  color: var(--azul-synera);
}

/* Contenedor Global */
.container {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
  width: 100%;
}

/* Secciones */
.section {
  padding: 4rem 0;
  position: relative;
}

.section-alt {
  background-color: var(--blanco);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3rem auto;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background-color: rgba(0, 174, 239, 0.10);
  color: var(--cyan-synera);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--border-radius-full);
  margin-bottom: 1rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

/* Compensa el header sticky al navegar por anclas (#inicio, #servicios, etc.)
   para que el título/badge de cada sección no quede tapado detrás del header. */
section[id] {
  scroll-margin-top: calc(var(--header-height) + 16px);
}