@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&family=DM+Sans:wght@300;400;500&family=DM+Mono:wght@400;500&display=swap');

:root {
  --w:      #ffffff;
  --f1:     #fafaf9;
  --f2:     #f4f3f0;
  --f3:     #ece9e3;
  --ink:    #0e0e0e;
  --muted:  #6e6e6e;
  --muted2: #a0a0a0;
  --line:   #e2dfd8;
  --line2:  #d0ccc4;
  --blue:   #0f3460;
  --teal:   #0d5c4a;
  --gold:   #c49a3c;
  --nav-h:  72px;
  --font:   'DM Sans', system-ui, sans-serif;
  --serif:  'Cormorant Garamond', Georgia, serif;
  --mono:   'DM Mono', monospace;
  --ease:   cubic-bezier(0.4,0,0.2,1);
  --spring: cubic-bezier(0.34,1.56,0.64,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font); background: var(--w);
  color: var(--ink); line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── PROGRESS ───────────────────────────────────────────── */
.read-progress {
  position: fixed; top: 0; left: 0; height: 2px; z-index: 999;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  width: 0%; transition: width 0.1s linear;
}

/* ── NAVBAR ─────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h); z-index: 100;
}
.navbar::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0);
  backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: all 0.5s var(--ease);
}
.navbar.scrolled::after {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(20px);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 20px rgba(0,0,0,0.05);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 40px;
  height: 100%; display: flex; align-items: center; gap: 40px;
  position: relative; z-index: 1;
}
.nav-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-mark { width: 38px; height: 38px; flex-shrink: 0; }
.logo-mark svg { width: 38px; height: 38px; }
.lm-bg { fill: var(--ink); transition: fill 0.3s; }
.nav-logo:hover .lm-bg { fill: var(--blue); }
.logo-wordmark { display: flex; flex-direction: column; line-height: 1; }
.logo-top {
  font-family: var(--serif); font-size: 19px; font-weight: 600;
  color: var(--ink); letter-spacing: -0.3px;
}
.logo-top em { color: var(--blue); font-style: normal; }
.logo-bottom {
  font-family: var(--mono); font-size: 9px;
  color: var(--muted2); letter-spacing: 0.15em;
  text-transform: uppercase; margin-top: 2px;
}

.nav-links { display: flex; align-items: center; margin-left: auto; }
.nav-link {
  padding: 8px 16px; font-size: 13.5px; color: var(--muted);
  position: relative; transition: color 0.25s;
}
.nav-link::after {
  content: ''; position: absolute; bottom: 3px; left: 16px; right: 16px;
  height: 1px; background: var(--blue);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { transform: scaleX(1); }

.btn-login {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border: 1.5px solid var(--ink);
  color: var(--ink); border-radius: 2px; font-size: 13px;
  font-weight: 500; letter-spacing: 0.04em; flex-shrink: 0;
  position: relative; overflow: hidden; background: transparent;
  transition: color 0.3s;
}
.btn-login::before {
  content: ''; position: absolute; inset: 0;
  background: var(--ink); transform: translateY(101%);
  transition: transform 0.35s var(--ease);
}
.btn-login span, .btn-login svg { position: relative; z-index: 1; }
.btn-login:hover { color: white; }
.btn-login:hover::before { transform: translateY(0); }

.hamburger {
  display: none; flex-direction: column; gap: 6px;
  background: none; border: none; cursor: pointer;
  padding: 4px; margin-left: auto;
}
.hamburger span {
  display: block; height: 1.5px; background: var(--ink);
  transition: all 0.35s var(--ease); transform-origin: center;
}
.hamburger span:nth-child(1) { width: 24px; }
.hamburger span:nth-child(2) { width: 18px; }
.hamburger span:nth-child(3) { width: 24px; }
.hamburger.open span:nth-child(1) { width: 24px; transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { width: 24px; transform: translateY(-7.5px) rotate(-45deg); }

.nav-mobile {
  display: none; flex-direction: column;
  background: white; border-top: 1px solid var(--line);
  padding: 16px 28px 28px;
}
.nav-mobile.open { display: flex; animation: mobileIn 0.3s var(--ease); }
@keyframes mobileIn { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:none; } }
.nav-mobile a {
  padding: 12px 0; border-bottom: 1px solid var(--line);
  font-size: 15px; color: var(--muted);
  transition: color 0.2s, padding-left 0.2s;
}
.nav-mobile a:hover { color: var(--ink); padding-left: 8px; }
.nav-mobile a:last-child { border-bottom: none; }
.btn-login-mobile {
  margin-top: 16px; padding: 13px 20px;
  background: var(--ink); color: white !important;
  text-align: center; font-weight: 500; border-bottom: none !important;
}

/* ── BOTONES ────────────────────────────────────────────── */
.btn-solid {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 32px; background: var(--ink); color: white;
  border-radius: 2px; font-size: 14px; font-weight: 500;
  letter-spacing: 0.03em; position: relative; overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
  border: none;
}
.btn-solid::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  opacity: 0; transition: opacity 0.35s;
}
.btn-solid span, .btn-solid svg { position: relative; z-index: 1; }
.btn-solid:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,0.18); }
.btn-solid:hover::before { opacity: 1; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 32px; background: transparent; color: var(--ink);
  border: 1px solid var(--line2); border-radius: 2px;
  font-size: 14px; font-weight: 400; letter-spacing: 0.02em;
  transition: all 0.25s;
}
.btn-ghost:hover { border-color: var(--ink); background: var(--f2); transform: translateY(-2px); }

/* ── SECCIÓN BASE ───────────────────────────────────────── */
.s-wrap { max-width: 1200px; margin: 0 auto; padding: 100px 40px; }
.s-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 16px;
}
.s-label::before { content: ''; display: block; width: 28px; height: 1px; background: var(--muted2); }
.s-title {
  font-family: var(--serif); font-size: clamp(32px, 5vw, 52px);
  font-weight: 300; color: var(--ink);
  line-height: 1.1; letter-spacing: -1px; margin-bottom: 20px;
}
.s-title strong { font-weight: 600; }
.s-title em {
  font-style: italic;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

/* ── HERO ───────────────────────────────────────────────── */
.hero {
  min-height: 100vh; padding-top: var(--nav-h);
  background: var(--f1); display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  opacity: 0.5;
}
.hero-inner {
  max-width: 1200px; margin: 0 auto; padding: 80px 40px;
  position: relative; z-index: 1; width: 100%;
  display: flex; align-items: center; justify-content: center;
}
.hero-content {
  max-width: 680px; text-align: center;
  animation: heroIn 0.8s var(--ease) both;
}
@keyframes heroIn { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:none; } }

.hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 36px; justify-content: center;
}
.hero-tag-line { width: 32px; height: 1px; background: var(--blue); }
.hero-tag-text {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--blue);
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(44px, 7vw, 88px);
  font-weight: 300; line-height: 1.0;
  color: var(--ink); letter-spacing: -2px; margin-bottom: 28px;
}
.hero-title strong { font-weight: 700; display: block; }
.hero-title em {
  font-style: italic; font-weight: 300;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 17px; color: var(--muted); line-height: 1.85;
  margin-bottom: 44px; max-width: 520px;
  margin-left: auto; margin-right: auto;
}

.hero-actions {
  display: flex; gap: 14px; flex-wrap: wrap; justify-content: center;
}

/* ── NOSOTROS ───────────────────────────────────────────── */
.nosotros { background: var(--w); border-top: 1px solid var(--line); }

.mv-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: 4px;
  overflow: hidden; margin-bottom: 72px;
}
.mv-item {
  background: var(--w); padding: 40px 36px;
  transition: background 0.25s;
}
.mv-item:hover { background: var(--f1); }

.mv-icon-wrap {
  width: 42px; height: 42px; border-radius: 2px;
  border: 1px solid var(--line2);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue); margin-bottom: 18px;
  transition: all 0.3s var(--spring);
}
.mv-item:hover .mv-icon-wrap {
  background: var(--blue); color: white;
  border-color: var(--blue); transform: rotate(-6deg) scale(1.08);
}
.mv-body h3 {
  font-family: var(--serif); font-size: 24px; font-weight: 600;
  color: var(--ink); margin-bottom: 10px; letter-spacing: -0.3px;
}
.mv-body p { font-size: 14.5px; color: var(--muted); line-height: 1.8; }

.nosotros-bottom { max-width: 640px; }
.nosotros-quote {
  font-family: var(--serif); font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 300; color: var(--ink); line-height: 1.5;
  font-style: italic; margin: 20px 0 24px;
  padding-left: 20px; border-left: 2px solid var(--blue);
}
.nosotros-desc { font-size: 15px; color: var(--muted); line-height: 1.85; }

/* ── FOOTER ─────────────────────────────────────────────── */
.footer { background: var(--ink); color: white; }
.footer-line-top {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), var(--teal), var(--gold), transparent);
}
.footer-top {
  max-width: 1200px; margin: 0 auto; padding: 64px 40px 48px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-brand .logo-top    { color: white; }
.footer-brand .logo-top em { color: #60a9d0; }
.footer-brand .logo-bottom { color: rgba(255,255,255,0.3); }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-tagline {
  font-family: var(--serif); font-size: 15px; font-style: italic;
  color: rgba(255,255,255,0.35); font-weight: 300;
}
.footer-col-title {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: rgba(255,255,255,0.3);
  margin-bottom: 20px; display: block;
}
.footer-col a {
  display: block; font-size: 14px; color: rgba(255,255,255,0.5);
  padding: 6px 0; transition: color 0.2s, padding-left 0.2s;
}
.footer-col a:hover { color: white; padding-left: 6px; }
.footer-bottom {
  max-width: 1200px; margin: 0 auto; padding: 20px 40px;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.2); font-family: var(--mono); }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .mv-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: flex; }
  .s-wrap    { padding: 72px 24px; }
  .hero-inner{ padding: 48px 24px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .footer-top    { padding: 48px 24px 36px; }
}