/* ============================================================
   911 STUDIO V4 — MAIN.CSS
   Dirección: "Frame" — editorial cinematográfico
   Tipografía expresiva, planos fotográficos, asimetría
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Unbounded:wght@500;600;700;800&display=swap');

:root {
  --ink: #0a0f1a;
  --ink-soft: #141b2d;
  --paper: #eef2f7;
  --paper-warm: #f7f4ef;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #ffffff;
  --line: rgba(10, 15, 26, 0.12);
  --line-light: rgba(255, 255, 255, 0.14);

  --azul: #195cb5;
  --azul-deep: #0e3f84;
  --amarillo: #ffe169;
  --amarillo-deep: #e6c84a;

  --texto: #0a0f1a;
  --texto-soft: #4a5568;
  --texto-inverse: #f4f7fb;

  --footer-bg: #0a0f1a;
  --footer-text: rgba(255, 255, 255, 0.78);
  --footer-heading: #ffffff;
  --footer-muted: rgba(255, 255, 255, 0.7);

  /* Alias usados en páginas (contacto, etc.) */
  --bg-white: #ffffff;
  --bg-gray: #e5e9ef;
  --borde: rgba(10, 15, 26, 0.12);
  --texto-dark: #0a0f1a;
  --texto-medio: #4a5568;
  --texto-muted: #64748b;
  --texto-light: #4a5568;
  --radius-md: 6px;
  --radius-lg: 10px;

  --container: 1180px;
  --header-h: 72px;
  --radius: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-soft: 0 18px 50px rgba(10, 15, 26, 0.12);
}

/* --ink se mantiene oscuro (footer, botones invertidos). El texto usa --texto. */
html[data-theme="dark"] {
  --ink: #0a0f1a;
  --ink-soft: #151c2c;
  --paper: #0c111c;
  --paper-warm: #121826;
  --surface: rgba(26, 34, 54, 0.92);
  --surface-solid: #1a2236;
  --line: rgba(244, 247, 251, 0.14);
  --line-light: rgba(255, 255, 255, 0.14);
  --texto: #eef2f7;
  --texto-soft: #9aa6b8;
  --texto-inverse: #f4f7fb;
  --footer-bg: #070b14;
  --footer-text: rgba(238, 242, 247, 0.78);
  --footer-heading: #ffffff;
  --footer-muted: rgba(238, 242, 247, 0.7);
  --shadow-soft: 0 18px 50px rgba(0, 0, 0, 0.45);

  --bg-white: #1a2236;
  --bg-gray: #151c2c;
  --borde: rgba(244, 247, 251, 0.14);
  --texto-dark: #eef2f7;
  --texto-medio: #9aa6b8;
  --texto-muted: #9aa6b8;
  --texto-light: #9aa6b8;

  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Figtree', Georgia, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--texto);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(25, 92, 181, 0.12), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(255, 225, 105, 0.1), transparent 45%),
    var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background .35s var(--ease), color .35s var(--ease);
}

html[data-theme="dark"] body {
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(25, 92, 181, 0.18), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(255, 225, 105, 0.06), transparent 45%),
    var(--paper);
}

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

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}
input, textarea, select { font: inherit; }

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.display {
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.98;
}

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--azul);
}

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--texto-soft);
  max-width: 38rem;
  line-height: 1.7;
}

.section {
  padding: clamp(72px, 10vw, 120px) 0;
}

.section-ink {
  background:
    linear-gradient(160deg, rgba(25, 92, 181, 0.22), transparent 40%),
    linear-gradient(20deg, rgba(255, 225, 105, 0.08), transparent 35%),
    var(--ink);
  color: var(--texto-inverse);
}

.section-paper {
  background: var(--surface);
  backdrop-filter: blur(6px);
}

.section-title {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 12px 0 18px;
}

.section-head {
  margin-bottom: clamp(36px, 6vw, 64px);
  max-width: 720px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head.center .lede {
  margin-inline: auto;
}

/* Compatibilidad con páginas internas heredadas */
.section-py { padding: clamp(72px, 10vw, 120px) 0; }
.section-py-sm { padding: clamp(48px, 7vw, 80px) 0; }
.bg-white { background: var(--surface); }
.bg-light { background: transparent; }
.bg-dark { background: var(--ink); color: var(--texto-inverse); }
.text-center { text-align: center; }
.section-badge { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--azul); }
.section-subtitle { color: var(--texto-soft); max-width: 38rem; }
.section-header { margin-bottom: 48px; }
.section-header.center { text-align: center; }
.section-header.center .section-subtitle { margin-inline: auto; }
.display-title {
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
}
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4, .grid-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform .25s var(--ease), background .25s ease, color .25s ease, border-color .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .88rem; }
.btn-lg { min-height: 54px; padding: 0 26px; }
.btn-primary {
  background: var(--azul);
  color: #fff;
}
.btn-primary:hover { background: var(--azul-deep); }
.btn-amarillo {
  background: var(--amarillo);
  color: var(--ink);
}
.btn-amarillo:hover { background: var(--amarillo-deep); }
.btn-white {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}
.btn-white:hover { background: rgba(255,255,255,.08); }
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--texto);
}
.btn-ghost:hover { border-color: var(--azul); color: var(--azul); }
.btn-wa {
  background: #128c7e;
  color: #fff;
}

.breadcrumb {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
  font-size: .9rem;
  color: rgba(255,255,255,.65);
}
.breadcrumb a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 900px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}
