/* ═══════════════════════════════════════════
   SAHIAM ESTEBAN — PORTAFOLIO
   Design: Luxury Editorial × Dark
   Fonts: Playfair Display + DM Sans
   Palette: Rose (#f9a8d4) + Sage (#86efac) on Dark Navy
═══════════════════════════════════════════ */

/* ── CUSTOM PROPERTIES ── */
:root {
  --navy:     #FAF8F5;
  --navy-2:   #F5F1EB;
  --navy-3:   #EDE8DF;
  --navy-4:   #E6DFCF;
  --rose:     #7A6652;
  --rose-light: #EDE8DF;
  --rose-dim: rgba(122,102,82,0.12);
  --sage:     #7A6652;
  --sage-dim: rgba(122,102,82,0.10);
  --white:    #FAF8F5;
  --muted:    #8C7E6E;
  --border:   rgba(44,35,26,0.10);
  --border-hover: rgba(122,102,82,0.35);
  --text:     #2E2820;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --section-pad: clamp(80px, 10vw, 140px);
  --container:   1200px;
  --radius:      16px;
  --radius-sm:   8px;

  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 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);
  background-color: var(--navy);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
ul { list-style: none; }

/* ── CONTAINER ── */
.container {
  width: min(var(--container), 92vw);
  margin-inline: auto;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rose);
  border: 1px solid var(--rose-dim);
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 1.2rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3rem;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: var(--text);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--rose);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(44,35,26,0.18);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--rose);
  color: var(--rose);
  transform: translateY(-2px);
}

.btn-story {
  display: inline-flex;
  align-items: center;
  color: var(--sage);
  font-weight: 500;
  font-size: 0.9rem;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: var(--transition);
  margin-top: 1.5rem;
}
.btn-story:hover {
  border-color: var(--sage);
  letter-spacing: 0.02em;
}

/* ══════════════════════════════════
   NAV
══════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 0 clamp(1rem, 4vw, 3rem);
  height: 72px;
  background: rgba(250,248,245,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.nav-logo {
  display: flex;
  align-items: center;
}

.logo-svg {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.05em;
  background: transparent;
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 8px;
  transition: var(--transition);
}
.logo-svg:hover { background: var(--navy-3); }

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--muted);
  transition: color var(--transition-fast);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text);
  transition: width var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-toggle {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: var(--transition);
}
.lang-toggle:hover { border-color: var(--rose); color: var(--text); }
.lang-toggle .active { color: var(--text); font-weight: 600; }
.lang-sep { opacity: 0.4; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ══════════════════════════════════
   HERO
══════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 72px;
  overflow: hidden;
}

/* Background effects */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
}
.hero-orb-1 {
  width: 500px; height: 500px;
  background: #D9D0C2;
  top: -100px; right: 5%;
  animation: float 8s ease-in-out infinite;
}
.hero-orb-2 {
  width: 350px; height: 350px;
  background: #C8BFB0;
  bottom: 10%; left: -100px;
  animation: float 10s ease-in-out infinite reverse;
}
.hero-orb-3 {
  width: 250px; height: 250px;
  background: #BFB5A4;
  top: 50%; left: 40%;
  opacity: 0.10;
  animation: float 12s ease-in-out infinite;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(44,35,26,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44,35,26,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.4) 0%, transparent 70%);
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-30px) scale(1.05); }
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto auto auto auto;
  gap: 0;
  padding: var(--section-pad) clamp(1.5rem, 6vw, 6rem);
  align-items: start;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}

.hero-eyebrow {
  grid-column: 1;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-name {
  grid-column: 1;
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.name-accent {
  color: var(--muted);
  font-style: italic;
}

.hero-role {
  grid-column: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.role-line {
  width: 40px;
  height: 1px;
  background: var(--rose);
  flex-shrink: 0;
}
.role-text {
  font-size: 1rem;
  font-weight: 300;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.hero-tagline {
  grid-column: 1;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--muted);
  line-height: 1.8;
  max-width: 520px;
  margin-bottom: 2.5rem;
}

.hero-cta {
  grid-column: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Photo */
.hero-photo {
  grid-column: 2;
  grid-row: 1 / 6;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 2rem;
}

.photo-frame {
  position: relative;
  width: 260px;
  height: 320px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--navy-3);
  flex-shrink: 0;
}

.photo-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.photo-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: var(--muted);
  font-style: italic;
  text-align: center;
  padding: 1rem;
  letter-spacing: 0.04em;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 1;
}
.scroll-arrow {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--rose), transparent);
  animation: scrollDown 2s ease-in-out infinite;
}
@keyframes scrollDown {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.5); opacity: 0.5; }
}

/* ══════════════════════════════════
   ABOUT
══════════════════════════════════ */
.about {
  padding: var(--section-pad) 0;
  background: var(--navy-2);
  position: relative;
}
.about::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  margin-bottom: 4rem;
}

.about-text p {
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 1.2rem;
}

.about-values {
  display: grid;
  gap: 1rem;
}

.value-card {
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: var(--transition);
}
.value-card:hover {
  border-color: var(--rose);
  transform: translateX(4px);
}

.value-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.value-card h3 {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 4px;
  color: var(--text);
}
.value-card p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Tech section */
.tech-section { text-align: center; }
.tech-label {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.tech-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  border: 1px solid var(--border);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  transition: var(--transition);
  cursor: default;
}
.tech-badge svg { width: 20px; height: 20px; }
.tech-badge:hover {
  border-color: var(--rose);
  background: var(--navy-3);
  transform: translateY(-3px);
}

.tech-badge-soft .tech-icon { font-size: 1rem; }

/* ══════════════════════════════════
   OFFER
══════════════════════════════════ */
.offer {
  padding: var(--section-pad) 0;
  position: relative;
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.offer-card {
  background: var(--navy-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.offer-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--rose-dim), transparent);
  opacity: 0;
  transition: var(--transition);
}
.offer-card:hover {
  border-color: var(--rose);
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(44,35,26,0.08);
}
.offer-card:hover::before { opacity: 1; }

.offer-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--border);
  line-height: 1;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}
.offer-icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}
.offer-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--text);
  position: relative;
  z-index: 1;
}
.offer-card p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.75;
  position: relative;
  z-index: 1;
}

/* ══════════════════════════════════
   PROJECTS
══════════════════════════════════ */
.projects {
  padding: var(--section-pad) 0;
  background: var(--navy-2);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}
.project-card:hover {
  border-color: var(--rose);
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(44,35,26,0.10);
}

/* Project visual previews */
.project-visual {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.project-visual-1 { background: linear-gradient(135deg, #EDE8DF, #E2DAD0); }
.project-visual-2 { background: linear-gradient(135deg, #E6DFCF, #DDD5C4); }
.project-visual-3 { background: linear-gradient(135deg, #EDE8DF, #D9D0C2); }

/* Mockup code window */
.pv-mockup {
  background: #2E2820;
  border-radius: 8px;
  width: 75%;
  font-family: 'Courier New', monospace;
  font-size: 0.72rem;
  overflow: hidden;
  border: 1px solid rgba(44,35,26,0.15);
}
.pv-bar {
  background: #3D3428;
  padding: 8px 12px;
  display: flex;
  gap: 6px;
}
.pv-bar span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #ff5f57;
}
.pv-bar span:nth-child(2) { background: #febc2e; }
.pv-bar span:nth-child(3) { background: #28c840; }
.pv-code {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #EDE8DF;
}
.pv-line { display: block; }
.pv-line em { color: #D9C4A8; font-style: normal; }
.pv-line b { color: #B8C4A8; }
.pv-line i { color: #C8D4A8; font-style: normal; }
.pv-line.pl { padding-left: 1rem; }

/* UI mockup */
.pv-ui {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 70%;
}
.pv-ui-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}
.pv-ui-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose), #818cf8);
  flex-shrink: 0;
}
.pv-ui-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.pv-ui-lines span {
  height: 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.12);
}
.pv-ui-lines span:last-child { width: 65%; }
.pv-ui-btn {
  height: 32px;
  border-radius: 999px;
  background: var(--rose-dim);
  border: 1px solid var(--rose);
  width: 100%;
}

/* Circles animation */
.pv-anim {
  display: flex;
  gap: 16px;
  align-items: center;
}
.pv-circle {
  border-radius: 50%;
  opacity: 0.8;
}
.c1 { width: 60px; height: 60px; background: var(--rose); animation: pulse 2s ease-in-out infinite; }
.c2 { width: 45px; height: 45px; background: var(--sage); animation: pulse 2s ease-in-out infinite 0.6s; }
.c3 { width: 30px; height: 30px; background: #818cf8; animation: pulse 2s ease-in-out infinite 1.2s; }
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
}

.project-info {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 0.75rem;
}

.ptag {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--rose);
  background: var(--rose-dim);
  border: 1px solid rgba(122,102,82,0.2);
  padding: 3px 10px;
  border-radius: 999px;
}

.project-info h3 {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}
.project-info p {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.7;
  flex: 1;
  margin-bottom: 1.5rem;
}

.project-links {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: auto;
}

.plink {
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
}
.plink-primary { color: var(--rose); }
.plink-primary:hover { color: var(--text); letter-spacing: 0.02em; }
.plink-ghost { color: var(--muted); }
.plink-ghost:hover { color: var(--text); }

/* ══════════════════════════════════
   MISSION
══════════════════════════════════ */
.mission {
  padding: var(--section-pad) 0;
  position: relative;
  overflow: hidden;
}
.mission::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: radial-gradient(ellipse, rgba(122,102,82,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.mission-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 3rem;
  align-items: stretch;
  margin-bottom: 4rem;
}

.mission-card {
  background: var(--navy-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  transition: var(--transition);
}
.mission-card:hover {
  border-color: var(--rose);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(44,35,26,0.08);
}

.mission-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.mission-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text);
}
.mission-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.85;
}

.mission-divider {
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--border), transparent);
  align-self: stretch;
}

/* Differentiator */
.differentiator {
  text-align: center;
  padding: 2.5rem;
  background: var(--navy-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.diff-label {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.5rem;
}

.diff-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.diff-items span {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  padding: 8px 24px;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: var(--transition);
}
.diff-items span:hover {
  border-color: var(--rose);
  color: var(--rose);
  transform: scale(1.05);
}

/* ══════════════════════════════════
   CONTACT
══════════════════════════════════ */
.contact {
  padding: var(--section-pad) 0;
  background: var(--navy-2);
  text-align: center;
}

.contact-subtitle {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 3rem;
  max-width: 560px;
  margin-inline: auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin-inline: auto;
}

.contact-card {
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: var(--transition);
  text-align: left;
  color: var(--text);
}
.contact-card:hover {
  border-color: var(--rose);
  transform: translateY(-4px);
  background: var(--navy-3);
  box-shadow: 0 12px 32px rgba(44,35,26,0.08);
}

.contact-card-cv {
  border-color: var(--border);
}
.contact-card-cv:hover {
  border-color: var(--rose);
}

.contact-icon {
  width: 44px; height: 44px;
  background: var(--rose-dim);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rose);
  flex-shrink: 0;
}
.contact-icon svg { width: 20px; height: 20px; }
.contact-card-cv .contact-icon {
  background: var(--rose-dim);
  color: var(--rose);
}

.cc-label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 3px;
}
.cc-value {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}

/* ══════════════════════════════════
   FOOTER
══════════════════════════════════ */
.footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  background: var(--navy);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-links a {
  font-size: 0.85rem;
  color: var(--muted);
  transition: color var(--transition-fast);
}
.footer-links a:hover { color: var(--text); }

/* ══════════════════════════════════
   RESPONSIVE
══════════════════════════════════ */

/* Tablets */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: rgba(250,248,245,0.98);
    backdrop-filter: blur(20px);
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border);
    z-index: 99;
  }
  .nav-links a { font-size: 1.1rem; color: var(--text); }
  .nav-toggle { display: flex; }

  .hero-content {
    grid-template-columns: 1fr;
    padding-bottom: 2rem;
  }
  .hero-photo {
    grid-column: 1;
    grid-row: auto;
    padding-left: 0;
    margin-top: 2rem;
    justify-content: flex-start;
  }
  .photo-frame { width: 200px; height: 250px; }

  .about-grid { grid-template-columns: 1fr; }
  .offer-grid { grid-template-columns: 1fr; }
  .mission-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .mission-divider {
    width: 100%; height: 1px;
    background: linear-gradient(to right, transparent, var(--border), transparent);
  }
}

/* Mobile */
@media (max-width: 600px) {
  .hero-name { font-size: clamp(2.5rem, 10vw, 3.5rem); }
  .section-title { font-size: clamp(1.7rem, 6vw, 2.5rem); }

  .hero-cta { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .contact-card { flex-direction: column; text-align: center; }
}

/* ══════════════════════════════════
   ACCESSIBILITY
══════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── AOS overrides ── */
[data-aos] { will-change: transform, opacity; }
/* ══════════════════════════════════
   CORTINA (INTRO)
══════════════════════════════════ */
#intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
  pointer-events: all;
}

.curtain {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  will-change: transform;
  transition: transform 1.4s cubic-bezier(0.76, 0, 0.24, 1);
}

.curtain.left {
  left: 0;
  background: linear-gradient(
    105deg,
    #EDE8DF 0%,
    #E5DED4 40%,
    #EDE8DF 60%,
    #E0D9CF 100%
  );
  box-shadow: inset -8px 0 24px rgba(100,85,65,0.08);
}

.curtain.right {
  right: 0;
  background: linear-gradient(
    -105deg,
    #EDE8DF 0%,
    #E5DED4 40%,
    #EDE8DF 60%,
    #E0D9CF 100%
  );
  box-shadow: inset 8px 0 24px rgba(100,85,65,0.08);
}

/* Línea central decorativa */
#intro::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    #C8BFB0 20%,
    #C8BFB0 80%,
    transparent 100%
  );
  z-index: 3;
  transition: opacity 0.4s ease;
}

/* Texto central */
.intro-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 4;
  text-align: center;
  padding: 2rem;
  gap: 1.2rem;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.intro-content h1 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.5vw, 2.4rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #2E2820;
  line-height: 1.4;
}

.intro-hint {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8C7E6E;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  animation: hint-pulse 2.4s ease-in-out infinite;
}

.intro-hint::after {
  content: '↓';
  display: inline-block;
  animation: bounce-hint 1.6s ease-in-out infinite;
}

@keyframes bounce-hint {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(5px); }
}

@keyframes hint-pulse {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1; }
}

/* Apertura */
#intro.open .curtain.left  { transform: translateX(-100%); }
#intro.open .curtain.right { transform: translateX(100%); }
#intro.open::after         { opacity: 0; }

/* Contenido principal entra suavemente */
#main-content {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.9s ease 0.3s, transform 0.9s ease 0.3s;
}

#main-content.show {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════
   CORTINA (INTRO)
══════════════════════════════════ */
#intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
  pointer-events: all;
}

.curtain {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  will-change: transform;
  transition: transform 1.4s cubic-bezier(0.76, 0, 0.24, 1);
}

.curtain.left {
  left: 0;
  background: linear-gradient(105deg, #EDE8DF 0%, #E5DED4 40%, #EDE8DF 60%, #E0D9CF 100%);
  box-shadow: inset -8px 0 24px rgba(100,85,65,0.08);
}

.curtain.right {
  right: 0;
  background: linear-gradient(-105deg, #EDE8DF 0%, #E5DED4 40%, #EDE8DF 60%, #E0D9CF 100%);
  box-shadow: inset 8px 0 24px rgba(100,85,65,0.08);
}

/* Línea central (costura) */
#intro::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent 0%, #C8BFB0 20%, #C8BFB0 80%, transparent 100%);
  z-index: 3;
  transition: opacity 0.3s ease;
}

.intro-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 4;
  text-align: center;
  padding: 2rem;
  gap: 1.2rem;
  transition: opacity 0.5s ease;
}

.intro-content h1 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.5vw, 2.4rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #2E2820;
  line-height: 1.4;
}

.intro-hint {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8C7E6E;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  animation: hint-pulse 2.4s ease-in-out infinite;
}

.intro-hint::after {
  content: '↓';
  display: inline-block;
  animation: bounce-hint 1.6s ease-in-out infinite;
}

@keyframes bounce-hint {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(5px); }
}

@keyframes hint-pulse {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1; }
}

/* Apertura */
#intro.opening .intro-content {
  opacity: 0;
  pointer-events: none;
}
#intro.open .curtain.left  { transform: translateX(-100%); }
#intro.open .curtain.right { transform: translateX(100%); }
#intro.open::after         { opacity: 0; }

/* Main content fade-in */
#main-content {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.9s ease 0.2s, transform 0.9s ease 0.2s;
}
#main-content.show {
  opacity: 1;
  transform: translateY(0);
}