/* ================================================
   EL SASTRE DEL CÓDIGO — Stylesheet
   ================================================ */

:root {
  /* Palette */
  --bg:          #080808;
  --surface:     #101010;
  --card:        #141414;
  --card-hover:  #1a1a1a;
  --border:      rgba(255, 255, 255, 0.07);
  --border-mid:  rgba(255, 255, 255, 0.12);

  --gold:        #c9a84c;
  --gold-light:  #e2c06a;
  --gold-dim:    rgba(201, 168, 76, 0.12);
  --gold-glow:   rgba(201, 168, 76, 0.25);

  --blue:        #4a8fe8;
  --blue-dim:    rgba(74, 143, 232, 0.12);

  --text:        #f0f0f0;
  --text-2:      #888;
  --text-3:      #484848;

  /* Type */
  --f-display: 'Playfair Display', Georgia, serif;
  --f-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Radii */
  --r-sm:  8px;
  --r-md:  14px;
  --r-lg:  22px;
  --r-xl:  999px;

  /* Ease */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

/* ---- Utilities ---- */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: var(--r-xl);
  font-family: var(--f-body);
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
  white-space: nowrap;
}
.btn--primary {
  background: var(--gold);
  color: #080808;
}
.btn--primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--gold-glow);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-mid);
}
.btn--ghost:hover {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.22);
  transform: translateY(-2px);
}
.btn--large { padding: 1rem 2.5rem; font-size: 1rem; }


/* ================================================
   NAVIGATION
   ================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding: 1.25rem 0;
  transition: padding .3s var(--ease), background .3s, border-color .3s;
}
.nav.is-scrolled {
  background: rgba(8, 8, 8, .88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  padding: .875rem 0;
}
.nav__container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  font-family: var(--f-display);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: .45rem;
  letter-spacing: -.01em;
}
.nav__logo-symbol { color: var(--gold); }
.nav__logo-img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.nav__links {
  list-style: none;
  display: flex;
  gap: 2rem;
}
.nav__links a {
  font-size: .825rem;
  font-weight: 500;
  letter-spacing: .05em;
  color: var(--text-2);
  text-decoration: none;
  text-transform: uppercase;
  transition: color .2s;
}
.nav__links a:hover { color: var(--text); }
.nav__menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  position: relative;
  z-index: 110;
}
.nav__menu-btn span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: transform .3s var(--ease), opacity .2s;
}
/* Hamburger → X */
.nav__menu-btn.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__menu-btn.is-open span:nth-child(2) { opacity: 0; }
.nav__menu-btn.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }


/* ================================================
   HERO
   ================================================ */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 9rem 0 6rem;
}
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 22%, rgba(201,168,76,.07) 0%, transparent 52%),
    radial-gradient(circle at 82% 78%, rgba(74,143,232,.05) 0%, transparent 52%);
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 64px 64px;
}
.hero__container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}
.hero__badge {
  display: inline-block;
  padding: .3rem 1rem;
  background: var(--gold-dim);
  border: 1px solid rgba(201,168,76,.28);
  border-radius: var(--r-xl);
  font-size: .7rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}
.hero__title {
  font-family: var(--f-display);
  font-size: clamp(2.4rem, 6vw, 5.25rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.015em;
  margin-bottom: 1.5rem;
}
.hero__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}
.hero__subtitle {
  font-size: clamp(.95rem, 1.8vw, 1.2rem);
  color: var(--text-2);
  font-weight: 300;
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: 3rem;
}
.hero__cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: var(--text-3);
  font-size: .65rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.hero__scroll-line {
  width: 1px;
  height: 38px;
  background: linear-gradient(to bottom, var(--text-3), transparent);
  animation: blink 2.2s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: .2; }
}


/* ================================================
   SECTIONS
   ================================================ */
.section { padding: 7rem 0; }
.section--alt { background: var(--surface); }

.section__header { margin-bottom: 4rem; }
.section__label {
  display: block;
  font-size: .7rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: .22em;
  text-transform: uppercase;
  margin-bottom: .65rem;
}
.section__title {
  font-family: var(--f-display);
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.08;
}


/* ================================================
   PROJECT CARD — FEATURED
   ================================================ */
.project-card--featured {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 3.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  overflow: hidden;
  margin-bottom: 2.5rem;
  transition: border-color .3s var(--ease);
}
/* Top gradient line */
.project-card--featured::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--blue) 60%, transparent 100%);
}
.project-card--featured:hover { border-color: var(--border-mid); }

/* Demo TikTok strip */
.project-card__demo {
  grid-column: 1 / -1;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  margin-top: .5rem;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 1.5rem 2.5rem;
  flex-wrap: wrap;
}
.demo__header {
  display: flex;
  align-items: center;
  gap: .55rem;
  flex-shrink: 0;
}
.demo__icon {
  width: 22px;
  height: 22px;
  color: var(--gold);
}
.demo__label {
  font-family: var(--f-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}
.demo__desc {
  font-size: .84rem;
  color: var(--text-2);
  line-height: 1.65;
  flex: 1;
  min-width: 200px;
}
.demo__btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .6rem 1.35rem;
  border-radius: var(--r-xl);
  background: var(--gold-dim);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s, transform .2s var(--ease);
  flex-shrink: 0;
}
.demo__btn:hover {
  background: var(--gold-glow);
  transform: translateY(-2px);
}

/* DP icon */
.project-card__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.dp-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, #4a8fe8, #6c3fc8);
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  letter-spacing: -.04em;
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(74,143,232,.35);
}
.dp-icon--img {
  background: none;
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
  object-fit: cover;
  display: block;
}
.project-card__tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 600;
  color: var(--blue);
  background: var(--blue-dim);
  border: 1px solid rgba(74,143,232,.2);
  padding: .22rem .75rem;
  border-radius: var(--r-xl);
  letter-spacing: .05em;
  margin-bottom: .25rem;
}
.project-card__year {
  display: block;
  font-size: .72rem;
  color: var(--text-3);
}

.project-card__title {
  font-family: var(--f-display);
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1;
  margin-bottom: 1.25rem;
}
.project-card__description {
  font-size: .9rem;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}
.project-card__features {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .45rem .5rem;
  margin-bottom: 1.75rem;
}
.project-card__features li {
  font-size: .8rem;
  color: var(--text-2);
  padding-left: 1.1rem;
  position: relative;
  line-height: 1.5;
}
.project-card__features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: .72rem;
  top: .1em;
}
.project-card__tech {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: 2rem;
}
.project-card__tech span {
  font-size: .72rem;
  color: var(--text-2);
  background: rgba(255,255,255,.08);
  border: 1px solid var(--border-mid);
  padding: .22rem .7rem;
  border-radius: var(--r-xl);
}
.project-card__links {
  display: flex;
  gap: .85rem;
  flex-wrap: wrap;
}

/* Store buttons */
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .65rem 1.35rem;
  border-radius: var(--r-md);
  text-decoration: none;
  font-size: .82rem;
  font-weight: 600;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), filter .2s;
}
.store-btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.store-btn--android { background: #01875f; color: #fff; }
.store-btn--android svg { fill: #fff; }
.store-btn--android:hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(1,135,95,.35);
}
.store-btn--ios { background: #0071e3; color: #fff; }
.store-btn--ios svg { fill: #fff; }
.store-btn--ios:hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,113,227,.35);
}


/* ================================================
   PHONE MOCKUPS
   ================================================ */
.project-card__mockups {
  position: relative;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone {
  position: absolute;
  width: 220px;
  transition: transform .45s var(--ease);
}
.phone__frame {
  background: #1c1c1e;
  border-radius: 38px;
  padding: 11px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.11),
    0 40px 80px rgba(0,0,0,.85),
    inset 0 0 0 1px rgba(255,255,255,.04);
  position: relative;
}
/* Dynamic island / notch */
.phone__frame::before {
  content: '';
  position: absolute;
  top: 17px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 5px;
  background: #2c2c2e;
  border-radius: 10px;
  z-index: 10;
}
/* Side button */
.phone__frame::after {
  content: '';
  position: absolute;
  right: -3px;
  top: 72px;
  width: 3px;
  height: 44px;
  background: #2c2c2e;
  border-radius: 0 4px 4px 0;
}
.phone__screen {
  width: 100%;
  aspect-ratio: 9 / 19;
  border-radius: 28px;
  overflow: hidden;
  background: #000;
}
.phone__screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.phone--back  { transform: translateX(-62px) translateY(-22px) rotate(-7deg); z-index: 1; }
.phone--front { transform: translateX(62px)  translateY(22px)  rotate( 5deg); z-index: 2; }

.project-card--featured:hover .phone--back  { transform: translateX(-72px) translateY(-28px) rotate(-9deg) scale(1.025); }
.project-card--featured:hover .phone--front { transform: translateX(68px)  translateY(18px)  rotate( 6deg) scale(1.025); }


/* ================================================
   APP SCREENS — CSS Illustrations
   ================================================ */
.app {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 10px 9px;
}
.app--dashboard { background: linear-gradient(180deg, #0d1829 0%, #1a2744 100%); }
.app--calendar  { background: linear-gradient(180deg, #0d1829 0%, #161f38 100%); }

.app__statusbar {
  flex-shrink: 0;
  height: 7px;
  margin-bottom: 2px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.app__statusbar::before {
  content: '9:41';
  font-size: 5.5px;
  font-weight: 700;
  color: rgba(255,255,255,.6);
}
.app__statusbar::after {
  content: '';
  width: 28px;
  height: 4px;
  background: rgba(255,255,255,.25);
  border-radius: 2px;
}

.app__topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  margin-bottom: 5px;
}
.app__topbar-title {
  font-size: 10px;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -.02em;
}
.app__avatar {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
}
.app__icon-btn {
  width: 20px; height: 20px;
  border-radius: 6px;
  background: rgba(255,255,255,.1);
}

/* Main driving card */
.app__card-main {
  flex-shrink: 0;
  background: linear-gradient(135deg, #1e40af, #3b6fd4);
  border-radius: 10px;
  padding: 10px 10px 8px;
}
.app__card-label {
  font-size: 6px;
  color: rgba(255,255,255,.65);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 3px;
}
.app__card-value {
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -.04em;
  margin-bottom: 6px;
  line-height: 1;
}
.app__card-sub {
  font-size: 5.5px;
  color: rgba(255,255,255,.5);
  margin-top: 5px;
}
.app__progress {
  height: 3px;
  background: rgba(255,255,255,.2);
  border-radius: 2px;
  overflow: hidden;
}
.app__progress-fill {
  height: 100%;
  background: rgba(255,255,255,.75);
  border-radius: 2px;
}

/* Stats row */
.app__stats-row {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}
.app__stat {
  flex: 1;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 7px;
  padding: 6px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.app__stat-dot {
  width: 14px; height: 14px;
  border-radius: 4px;
}
.app__stat--blue  .app__stat-dot { background: #3b82f6; }
.app__stat--green .app__stat-dot { background: #22c55e; }
.app__stat--amber .app__stat-dot { background: #f59e0b; }
.app__stat-lbl {
  font-size: 5.5px;
  color: rgba(255,255,255,.4);
  text-align: center;
}
.app__stat-val {
  font-size: 7.5px;
  font-weight: 700;
  color: rgba(255,255,255,.85);
}

/* Activity list */
.app__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.app__list-item {
  height: 24px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 5px;
  position: relative;
  overflow: hidden;
}
.app__list-item--short  { width: 65%; }
.app__list-item--medium { width: 80%; }
.app__list-item::before {
  content: '';
  position: absolute;
  left: 8px; top: 50%;
  transform: translateY(-50%);
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
}

/* Calendar screen */
.app__month-label {
  flex-shrink: 0;
  font-size: 9px;
  font-weight: 700;
  color: var(--gold);
  text-align: center;
  margin-bottom: 4px;
}
.app__cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  flex-shrink: 0;
}
.cal__h {
  font-size: 5.5px;
  font-weight: 700;
  color: rgba(255,255,255,.28);
  text-align: center;
  padding: 2px 0;
}
.cal__d {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6px;
  color: rgba(255,255,255,.5);
  border-radius: 50%;
}
.cal__d--work {
  background: rgba(59,130,246,.28);
  color: #93c5fd;
  font-weight: 600;
}
.cal__d--today {
  background: var(--gold);
  color: #080808;
  font-weight: 700;
}

.app__cal-legend {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 5px;
  flex-shrink: 0;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 6px;
  color: rgba(255,255,255,.4);
}
.legend-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.legend-dot--blue { background: rgba(59,130,246,.8); }
.legend-dot--gold { background: var(--gold); }

/* Week summary */
.app__week-summary {
  margin-top: auto;
  flex-shrink: 0;
  background: rgba(255,255,255,.05);
  border-radius: 7px;
  padding: 7px 8px;
}
.app__week-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}
.app__week-lbl { font-size: 6px; color: rgba(255,255,255,.4); }
.app__week-val { font-size: 6px; font-weight: 700; color: rgba(255,255,255,.8); }
.app__week-bar {
  height: 3px;
  background: rgba(255,255,255,.1);
  border-radius: 2px;
  overflow: hidden;
}
.app__week-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--blue));
  border-radius: 2px;
}


/* ================================================
   COMING SOON CARDS
   ================================================ */
.coming-soon__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}
.coming-soon__card {
  background: var(--card);
  border: 1px dashed var(--border);
  border-radius: var(--r-lg);
  padding: 3.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .65rem;
  text-align: center;
  transition: border-color .3s var(--ease), background .3s;
}
.coming-soon__card {
  flex: 0 1 680px;
  max-width: 100%;
}
.coming-soon__card:hover {
  border-color: var(--border-mid);
  background: var(--card-hover);
}
.coming-soon__glyph {
  font-size: 2.25rem;
  color: var(--text-3);
  margin-bottom: .35rem;
}
.coming-soon__title {
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-2);
}
.coming-soon__subtitle {
  font-size: .78rem;
  color: var(--text-3);
}


/* ================================================
   SKILLS
   ================================================ */
.skills__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 4.5rem;
}
.skill__name {
  font-size: .84rem;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: .45rem;
}
.skill__track {
  height: 2px;
  background: var(--border);
  border-radius: 2px;
}
.skill__bar {
  height: 100%;
  width: var(--w);
  background: linear-gradient(90deg, var(--gold), var(--blue));
  border-radius: 2px;
  transform-origin: left;
  transform: scaleX(0);
  animation: grow .0s ease forwards; /* paused until JS triggers */
  animation-play-state: paused;
}
@keyframes grow {
  to { transform: scaleX(1); }
}


/* ================================================
   SERVICES
   ================================================ */
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem 2rem 2.25rem;
  transition: border-color .3s var(--ease), background .3s, transform .25s var(--ease);
}
.service-card:hover {
  border-color: var(--border-mid);
  background: var(--card-hover);
  transform: translateY(-3px);
}
.service-card__icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
  line-height: 1;
}
.service-card__title {
  font-family: var(--f-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .6rem;
  line-height: 1.3;
}
.service-card__desc {
  font-size: .875rem;
  color: var(--text-2);
  line-height: 1.7;
}
.services__cta {
  text-align: center;
  margin-top: .5rem;
}

/* ================================================
   CONTACT
   ================================================ */
.contact__body {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}
.contact__quote {
  font-family: var(--f-display);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  color: var(--text-2);
  line-height: 1.55;
}
.contact__quote em { color: var(--text); }


/* ================================================
   FOOTER
   ================================================ */
.footer {
  padding: 1.75rem 0;
  border-top: 1px solid var(--border);
}
.footer__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer__brand {
  font-family: var(--f-display);
  font-size: .9rem;
  color: var(--gold);
}
.footer__copy {
  font-size: .75rem;
  color: var(--text-3);
}


/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 960px) {
  .project-card--featured {
    display: grid;
    grid-template-rows: auto auto auto auto auto auto auto;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 2.5rem;
  }
  /* display:contents hace que los hijos del content participen directo en el grid del article */
  .project-card__content { display: contents; }
  .project-card__meta        { grid-row: 1; margin-bottom: 1rem; }
  .project-card__title       { grid-row: 2; margin-bottom: 0; }
  /* Mockups entre título (row 2) y descripción (row 4) */
  .project-card__mockups     { grid-row: 3; height: 340px; margin: 2rem 0; }
  .project-card__description { grid-row: 4; margin-top: 0; }
  .project-card__features    { grid-row: 5; }
  .project-card__tech        { grid-row: 6; }
  .project-card__links       { grid-row: 7; }
  .project-card__demo        { grid-row: 8; grid-column: 1; }
  .phone { width: 185px; }
  .phone { width: 185px; }
  .phone--back  { transform: translateX(-52px) translateY(-18px) rotate(-7deg); }
  .phone--front { transform: translateX(52px)  translateY(18px)  rotate( 5deg); }
  /* Menor sombra en pantallas pequeñas para no cubrir contenido */
  .phone__frame { box-shadow: 0 18px 40px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.04); }
  .project-card__features { grid-template-columns: 1fr; }
  .skills__grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .coming-soon__grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav__links { display: none; position: absolute; }
  .nav__menu-btn { display: flex; }

  /* Mobile nav open */
  .nav__links.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 60px;
    right: 1rem;
    background: #161616;
    border: 1px solid var(--border-mid);
    border-radius: var(--r-md);
    padding: 1rem 1.5rem;
    gap: 1rem;
    z-index: 200;
    box-shadow: 0 16px 48px rgba(0,0,0,.6);
  }
  .nav__links.is-open a { font-size: .9rem; }

  .hero { padding: 7.5rem 0 5rem; }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { text-align: center; }
  .hero__scroll { display: none; }

  .project-card--featured { padding: 1.5rem; }
  /* Más margen para dejar espacio a la sombra de las mockups */
  .project-card__mockups { height: 300px; margin: 2.25rem 0; }
  .phone { width: 155px; }
  .phone--back  { transform: translateX(-42px) translateY(-14px) rotate(-6deg); }
  .phone--front { transform: translateX(42px)  translateY(14px)  rotate( 4deg); }
  .phone__frame { border-radius: 32px; }
  /* Reducir sombra en móviles muy pequeños */
  .phone__frame { box-shadow: 0 14px 28px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.04); }
  .phone__frame::before { width: 56px; top: 14px; }
  .phone__screen { border-radius: 22px; }

  .footer__row { flex-direction: column; gap: .5rem; text-align: center; }
  .services__grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .project-card__links { flex-direction: column; }
  .store-btn { justify-content: center; }
}


/* ================================================
   LANGUAGE SWITCHER
   ================================================ */
.lang-switcher {
  position: relative;
}
.lang-switcher__btn {
  display: flex;
  align-items: center;
  gap: .35rem;
  background: transparent;
  border: 1px solid var(--border-mid);
  border-radius: var(--r-xl);
  color: var(--text-2);
  cursor: pointer;
  font-family: var(--f-body);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .05em;
  padding: .35rem .7rem;
  transition: color .2s, border-color .2s, background .2s;
}
.lang-switcher__btn:hover {
  color: var(--text);
  border-color: rgba(255,255,255,.25);
  background: rgba(255,255,255,.04);
}
.lang-switcher__btn[aria-expanded="true"] {
  color: var(--text);
  border-color: var(--gold);
}
.lang-switcher__arrow {
  transition: transform .2s var(--ease);
  flex-shrink: 0;
  opacity: .6;
}
.lang-switcher__btn[aria-expanded="true"] .lang-switcher__arrow {
  transform: rotate(180deg);
}
.lang-switcher__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + .5rem);
  right: 0;
  min-width: 148px;
  background: var(--surface);
  border: 1px solid var(--border-mid);
  border-radius: var(--r-md);
  list-style: none;
  padding: .35rem;
  z-index: 200;
  box-shadow: 0 12px 40px rgba(0,0,0,.55);
}
.lang-switcher__dropdown.is-open { display: block; }
.lang-switcher__dropdown li button {
  display: flex;
  align-items: center;
  gap: .5rem;
  width: 100%;
  background: none;
  border: none;
  border-radius: var(--r-sm);
  color: var(--text-2);
  cursor: pointer;
  font-family: var(--f-body);
  font-size: .82rem;
  font-weight: 500;
  padding: .5rem .7rem;
  text-align: left;
  transition: color .15s, background .15s;
}
.lang-switcher__dropdown li button:hover,
.lang-switcher__dropdown li button.is-active {
  background: rgba(255,255,255,.05);
  color: var(--text);
}
.lang-switcher__dropdown li button.is-active { color: var(--gold); }


/* ================================================
   CONTACT CTA
   ================================================ */
.contact-cta {
  padding: 5rem 0;
}
.contact-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 3rem 3.5rem;
  position: relative;
  overflow: hidden;
}
.contact-cta__inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 50%, rgba(201,168,76,.06) 0%, transparent 60%);
  pointer-events: none;
}
.contact-cta__inner::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--blue) 60%, transparent 100%);
}
.contact-cta__text {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.contact-cta__question {
  font-family: var(--f-display);
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.15;
  color: var(--text);
}
.contact-cta__sub {
  font-size: .9rem;
  color: var(--text-2);
  line-height: 1.6;
}
.contact-cta__btn {
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .contact-cta__inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.75rem;
  }
  .contact-cta__btn { width: 100%; justify-content: center; }
}


/* ================================================
   WIP BANNER
   ================================================ */
.wip-banner {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(90deg,
    rgba(201,168,76,.04) 0%,
    rgba(74,143,232,.03) 50%,
    rgba(201,168,76,.04) 100%);
  padding: 1.1rem 0;
}
.wip-banner__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
}
.wip-banner__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  animation: wip-pulse 2.4s ease-in-out infinite;
}
@keyframes wip-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--gold-glow); }
  50%       { opacity: .55; box-shadow: 0 0 0 5px transparent; }
}
.wip-banner__icon {
  color: var(--text-3);
  flex-shrink: 0;
}
.wip-banner__text {
  font-size: .78rem;
  color: var(--text-2);
  letter-spacing: .02em;
  line-height: 1.5;
}
