/* ============================================
   ESTUDIO M&G — main.css
   Variables, reset, tipografía, utilidades
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Inter:wght@400;500&display=swap');

/* Variables */
:root {
  --color-primary:    #1B2B4B;
  --color-secondary:  #0FA3B1;
  --color-accent:     #00B894;
  --color-bg:         #FFFFFF;
  --color-bg-alt:     #F4F6F8;
  --color-text:       #2D3436;
  --color-text-light: #636E72;
  --color-border:     #DFE6E9;
  --color-wa:         #25D366;
  --color-error:      #E74C3C;
  --color-success:    #27AE60;

  --font-heading: 'Montserrat', system-ui, -apple-system, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  --shadow-card: 0 2px 16px rgba(0, 0, 0, 0.08);
  --shadow-md:   0 4px 24px rgba(0, 0, 0, 0.12);
  --radius-card: 8px;
  --radius-btn:  4px;
  --radius-btn-lg: 12px;

  --max-width: 1200px;
  --section-padding: 80px 0;
  --section-padding-sm: 48px 0;

  --transition: 0.2s ease;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* Tipografía */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--color-primary);
}

h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 700; }
h2 { font-size: clamp(26px, 3.5vw, 38px); font-weight: 700; }
h3 { font-size: clamp(20px, 2.5vw, 26px); font-weight: 600; }
h4 { font-size: 20px; font-weight: 600; }
h5 { font-size: 16px; font-weight: 600; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* Contenedor */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Secciones */
section {
  padding: var(--section-padding);
}

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

.section-dark {
  background: var(--color-primary);
  color: #fff;
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: #fff;
}

/* Etiqueta de sección */
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 12px;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--color-secondary);
  vertical-align: middle;
  margin-right: 8px;
}

/* Utilidades */
.text-center { text-align: center; }
.text-light  { color: var(--color-text-light); }
.text-accent { color: var(--color-accent); }
.text-secondary { color: var(--color-secondary); }
.text-white  { color: #fff; }

.mt-4  { margin-top: 1rem; }
.mt-8  { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mb-4  { margin-bottom: 1rem; }
.mb-8  { margin-bottom: 2rem; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* Grid */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Divider */
.divider {
  height: 1px;
  background: var(--color-border);
  margin: 0;
}

/* Lead text */
.lead {
  font-size: 18px;
  color: var(--color-text-light);
  max-width: 680px;
}

/* Badge */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  background: rgba(15, 163, 177, 0.1);
  color: var(--color-secondary);
}

/* Responsive */
@media (max-width: 768px) {
  :root {
    --section-padding: 56px 0;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
  h3 { font-size: 20px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  h1 { font-size: 28px; }
}
