/* =====================================================
   STUDIA · GRUPO SALMERÓN
   Web 2026 — Hoja principal
   ===================================================== */

/* ─── RESET ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; }

/* ─── TIPOGRAFÍA ─────────────────────────────────────── */
.kicker {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-corten);
  display: inline-block;
}

.h-display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: var(--text-primary);
}
.h-1 { font-size: clamp(40px, 6vw, 88px); }
.h-2 { font-size: clamp(32px, 4.5vw, 56px); }
.h-3 { font-size: clamp(24px, 3vw, 36px); }
.h-4 { font-size: clamp(20px, 2.2vw, 24px); line-height: 1.25; }

.lead {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 720px;
}
.body-l { font-size: 17px; color: var(--text-secondary); line-height: 1.7; }
.body   { font-size: 16px; color: var(--text-secondary); line-height: 1.7; }
.body-s { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.body-xs { font-size: 12px; color: var(--text-muted); line-height: 1.5; }

strong, b { color: var(--text-primary); font-weight: 600; }

/* ─── LAYOUT ─────────────────────────────────────────── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 120px 0;
  position: relative;
}
@media (max-width: 960px) { .section { padding: 80px 0; } }
@media (max-width: 640px) { .section { padding: 64px 0; } }

.section-header {
  margin-bottom: 64px;
  max-width: 820px;
}
.section-header .kicker { margin-bottom: 20px; }
.section-header h2 { margin-bottom: 16px; }

.grid { display: grid; gap: 24px; }
.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: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ─── NAVBAR FLOTANTE ────────────────────────────────── */
.navbar {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: var(--bg-navbar);
  border: 1px solid var(--border-navbar);
  border-radius: 100px;
  padding: 8px 8px 8px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  max-width: calc(100vw - 32px);
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--text-primary);
}
.navbar-brand img { width: 22px; height: 26px; }
.navbar-brand .endorse {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-left: 4px;
  text-transform: uppercase;
  font-variant: small-caps;
}
.navbar-links { display: flex; gap: 4px; }
.navbar-links a {
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 100px;
  transition: all 200ms var(--ease-brand);
  white-space: nowrap;
}
.navbar-links a:hover { color: var(--text-primary); background: rgba(255,255,255,0.04); }
.navbar-links a.active { color: var(--text-primary); }

.navbar-cta {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  background: var(--color-corten);
  color: #fff;
  border-radius: 100px;
  transition: all 250ms var(--ease-brand);
  box-shadow: 0 8px 24px rgba(235,94,80,0.25);
}
.navbar-cta:hover { transform: translateY(-1px); box-shadow: 0 12px 32px rgba(235,94,80,0.35); }

.navbar-burger { display: none; padding: 10px; }
.navbar-burger svg { width: 22px; height: 22px; stroke: var(--text-primary); }

@media (max-width: 900px) {
  .navbar { padding: 8px 8px 8px 20px; gap: 12px; }
  .navbar-links, .navbar-cta { display: none; }
  .navbar-burger { display: flex; }
}

/* Menu móvil */
.mobile-menu {
  display: none;
  position: fixed;
  top: 84px;
  left: 16px;
  right: 16px;
  z-index: 999;
  background: var(--bg-navbar);
  border: 1px solid var(--border-navbar);
  border-radius: 24px;
  padding: 16px;
  backdrop-filter: blur(20px);
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 12px;
  margin-bottom: 4px;
}
.mobile-menu a:hover, .mobile-menu a.active { color: var(--text-primary); background: rgba(255,255,255,0.04); }
.mobile-menu .navbar-cta { display: block; text-align: center; margin-top: 12px; }

/* ─── BOTONES ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 100px;
  transition: all 250ms var(--ease-brand);
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: var(--color-corten);
  color: #fff;
  box-shadow: 0 8px 24px rgba(235,94,80,0.25);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(235,94,80,0.35);
}
.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-default);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.16);
}
.btn-arrow svg { transition: transform 200ms ease; }
.btn-arrow:hover svg { transform: translateX(3px); }

/* ─── CHIPS ─────────────────────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: var(--chip-bg);
  color: var(--chip-text);
  border: 1px solid var(--border-navbar);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ─── HERO ──────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, #000 35%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 35%, transparent 75%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(235,94,80,0.18) 0%, transparent 50%);
  pointer-events: none;
  animation: breathe 6s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 0.85; }
}
.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 880px; }
.hero h1 { margin-bottom: 24px; }
.hero .lead { margin-bottom: 40px; font-size: clamp(18px, 1.8vw, 22px); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-isotipo {
  position: absolute;
  right: -10%;
  top: 50%;
  transform: translateY(-50%);
  width: 60%;
  max-width: 800px;
  opacity: 0.10;
  pointer-events: none;
  z-index: 1;
}
@media (max-width: 900px) {
  .hero { min-height: auto; padding: 120px 0 64px; }
  .hero-isotipo { right: -30%; width: 80%; opacity: 0.08; }
}

/* ─── CARDS ─────────────────────────────────────────── */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 16px;
  padding: 32px;
  transition: all 300ms var(--ease-brand);
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.12);
}
.card-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  color: var(--color-corten);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.card h3 { margin-bottom: 12px; font-size: 22px; line-height: 1.3; font-family: var(--font-display); font-weight: 600; color: var(--text-primary); }
.card p { font-size: 15px; line-height: 1.65; color: var(--text-secondary); }

/* Submark cards (Elvia/Abitia/Fabria/Studia) */
.submark-card {
  position: relative;
  border-radius: 24px;
  padding: 40px 32px;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 350ms var(--ease-brand);
}
.submark-card:hover { transform: translateY(-6px); }
.submark-card .isotipo-bg {
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 60%;
  opacity: 0.12;
  pointer-events: none;
}
.submark-card .submark-head { position: relative; z-index: 2; }
.submark-card .submark-wordmark { height: 28px; margin-bottom: 16px; }
.submark-card .submark-wordmark img { height: 100%; width: auto; }
.submark-card .submark-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.submark-card h3 {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.2;
}
.submark-card p { position: relative; z-index: 2; color: rgba(255,255,255,0.75); font-size: 15px; }

.submark-elvia  { background: var(--color-steel); }
.submark-abitia { background: var(--color-green-oxide); }
.submark-fabria { background: var(--color-bronze); }
.submark-studia { background: var(--color-corten); }
.submark-studia p { color: rgba(255,255,255,0.85); }

/* ─── STATS ─────────────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-default);
  border-radius: 16px;
  overflow: hidden;
}
.stat {
  background: var(--bg-surface);
  padding: 32px 24px;
  text-align: center;
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  color: var(--color-corten);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.stat-label { font-size: 13px; color: var(--text-secondary); line-height: 1.4; }
@media (max-width: 720px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

/* ─── PROCESS / TIMELINE / FASES ─────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}
.step {
  position: relative;
  padding: 32px 28px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 16px;
}
.step-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--color-corten);
  margin-bottom: 12px;
  text-transform: uppercase;
}
.step h3 { font-family: var(--font-display); font-size: 22px; font-weight: 600; line-height: 1.25; margin-bottom: 12px; color: var(--text-primary); }
.step p { font-size: 15px; color: var(--text-secondary); }
.step-price {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-default);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
}
.step-price span { color: var(--text-muted); font-size: 13px; font-family: var(--font-body); font-weight: 400; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* ─── CALLOUT / QUOTE ────────────────────────────────── */
.callout {
  background: var(--bg-surface);
  border-left: 4px solid var(--color-corten);
  border-radius: 16px;
  padding: 32px 40px;
  margin: 48px 0;
}
.callout-quote {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-primary);
  font-style: italic;
}

/* ─── TABLES ─────────────────────────────────────────── */
.table-wrap {
  border: 1px solid var(--border-default);
  border-radius: 16px;
  overflow: hidden;
  overflow-x: auto;
}
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.tbl thead {
  background: var(--bg-elevated);
}
.tbl th {
  padding: 16px 20px;
  text-align: left;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-corten);
  border-bottom: 1px solid var(--border-default);
}
.tbl td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-default);
  color: var(--text-secondary);
  vertical-align: top;
}
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: rgba(255,255,255,0.02); }
.tbl strong { color: var(--text-primary); }
.tbl-center { text-align: center; }
.tbl-corten { color: var(--color-corten); font-weight: 600; }

/* ─── DOS COLUMNAS PROS/CONS o A/B ───────────────────── */
.two-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.two-col .col-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 20px;
  padding: 40px;
  position: relative;
  overflow: hidden;
}
.two-col .col-card .col-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-corten);
  margin-bottom: 16px;
}
.two-col .col-card h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 20px;
  color: var(--text-primary);
}
.two-col .col-card p { color: var(--text-secondary); margin-bottom: 12px; font-size: 15px; line-height: 1.7; }
.two-col .col-card ul { margin-top: 16px; }
.two-col .col-card li {
  padding: 8px 0 8px 24px;
  position: relative;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.two-col .col-card li::before {
  content: "·";
  position: absolute;
  left: 8px;
  top: 8px;
  color: var(--color-corten);
  font-weight: bold;
}
@media (max-width: 720px) { .two-col { grid-template-columns: 1fr; } }

/* ─── SECTION BACKGROUNDS / HALOS ────────────────────── */
.bg-halo-corten { position: relative; }
.bg-halo-corten::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(235,94,80,0.12) 0%, transparent 60%);
  pointer-events: none;
}
[data-theme="light"] .bg-halo-corten::before {
  background: radial-gradient(ellipse at 50% 30%, rgba(235,94,80,0.08) 0%, transparent 60%);
}
.bg-halo-steel::before { background: radial-gradient(ellipse at 70% 50%, rgba(32,49,75,0.30) 0%, transparent 60%); }

/* ─── FOOTER ─────────────────────────────────────────── */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-default);
  padding: 80px 0 32px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 64px;
}
.footer-brand img { height: 32px; margin-bottom: 16px; }
.footer-brand .tagline {
  font-style: italic;
  color: var(--text-secondary);
  font-size: 15px;
  margin-top: 8px;
  max-width: 320px;
}
.footer h4 {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-corten);
  margin-bottom: 20px;
}
.footer ul li { margin-bottom: 10px; }
.footer ul a, .footer-contact a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 200ms ease;
}
.footer ul a:hover, .footer-contact a:hover { color: var(--text-primary); }
.footer-contact p { font-size: 14px; color: var(--text-secondary); margin-bottom: 6px; }
.footer-bottom {
  border-top: 1px solid var(--border-default);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ─── SCROLL REVEAL ─────────────────────────────────── */
/* Si no hay JS, todo se ve. JS solo añade la animación. */
.js-ready .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
.js-ready .reveal.in-view { opacity: 1; transform: translateY(0); }

/* ─── THEME TOGGLE ──────────────────────────────────── */
.theme-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 998;
  width: 44px;
  height: 44px;
  border-radius: 100px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(20px);
  cursor: pointer;
  transition: all 250ms ease;
}
.theme-toggle:hover { transform: scale(1.05); }
.theme-toggle svg { width: 18px; height: 18px; stroke: var(--text-primary); }
.theme-toggle .sun, .theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: block; }
[data-theme="light"] .theme-toggle .sun { display: block; }
:root .theme-toggle .moon { display: block; }
:root .theme-toggle .sun { display: none; }

/* ─── HELPERS ───────────────────────────────────────── */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mt-64 { margin-top: 64px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.text-corten { color: var(--color-corten); }

/* ─── FORM ──────────────────────────────────────────── */
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-corten);
  margin-bottom: 8px;
}
.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 14px 20px;
  background: var(--bg-input);
  border: 1px solid var(--border-input);
  border-radius: 100px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 15px;
  transition: all 200ms ease;
}
.form-row textarea {
  border-radius: 20px;
  resize: vertical;
  min-height: 140px;
}
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--color-corten);
  background: var(--bg-elevated);
}
.form-row input::placeholder,
.form-row textarea::placeholder { color: var(--text-placeholder); }
