/* ============================================================
   Manuel·Dev — Portfolio Premium
   Archetype: Dark Gold Editorial (custom)
   v=20260531
============================================================ */

/* ── Variables ── */
:root {
  --bg:          #0a0a0f;
  --bg-2:        #111118;
  --bg-3:        #16161f;
  --gold:        #f0a500;
  --gold-dim:    rgba(240,165,0,0.15);
  --gold-border: rgba(240,165,0,0.2);
  --orange:      #e85d04;
  --text:        #f0f0f0;
  --text-muted:  #a0a0b0;
  --text-dim:    rgba(240,240,240,0.4);
  --card-bg:     rgba(255,255,255,0.04);
  --card-hover:  rgba(255,255,255,0.07);
  --nav-h:       72px;
  --radius:      12px;
  --radius-lg:   20px;
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  overflow-x: clip;
  font-size: 16px;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { border: none; background: none; cursor: pointer; font: inherit; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

/* ── Container ── */
.container {
  width: min(1200px, 100% - 3rem);
  margin-inline: auto;
}

/* ── Scroll Progress ── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--orange));
  z-index: 9999;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

/* ── Custom Cursor ── */
.cursor { pointer-events: none; position: fixed; inset: 0; z-index: 9998; opacity: 0; transition: opacity 0.25s var(--ease-out); }
.cursor.is-ready { opacity: 1; }
.cursor-dot {
  position: absolute;
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.1s var(--ease-out), background 0.2s;
}
.cursor-ring {
  position: absolute;
  width: 36px; height: 36px;
  border: 1.5px solid rgba(240,165,0,0.5);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.12s var(--ease-out), width 0.2s var(--ease-out), height 0.2s var(--ease-out), opacity 0.2s;
}
@media (hover: none) { .cursor { display: none; } }
@media (max-width: 768px) { .cursor { display: none; } }

/* ── Reveal animations ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
/* Safety: elements with data-split must not be hidden by reveal */
.reveal[data-split] { opacity: 1; transform: none; }

/* Stagger children */
.reveal:nth-child(1) { transition-delay: 0.05s; }
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.15s; }
.reveal:nth-child(4) { transition-delay: 0.2s; }

/* ── Typography helpers ── */
.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 1rem;
}
.section-title em { font-style: italic; color: var(--gold); }
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 56ch;
}
.section { padding-block: clamp(5rem, 10vw, 8rem); }
.section-header { margin-bottom: 4rem; text-align: center; }
.section-header .section-subtitle { margin-inline: auto; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s, background 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--gold);
  color: #0a0a0f;
}
.btn-primary:hover {
  background: #ffc107;
  box-shadow: 0 8px 30px rgba(240,165,0,0.35);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--gold-border);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 20px rgba(240,165,0,0.1);
}
.btn-dark {
  background: #0a0a0f;
  color: var(--gold);
  border: 1.5px solid rgba(0,0,0,0.2);
}
.btn-dark:hover {
  background: #111118;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

/* ============================================================
   NAV
============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: background 0.3s var(--ease-out), backdrop-filter 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10,10,15,0.9);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom-color: var(--gold-border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: min(1200px, 100% - 3rem);
  margin-inline: auto;
  gap: 2rem;
}
.nav-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  flex-shrink: 0;
  transition: color 0.2s;
}
.nav-logo:hover { color: var(--gold); }
.nav-logo-dot { color: var(--gold); margin-inline: 1px; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}
.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.nav-cta {
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--gold);
  color: #0a0a0f;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  margin-left: 0.5rem;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover {
  background: #ffc107;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(240,165,0,0.3);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  z-index: 1001;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    top: 0; right: -100%;
    width: min(340px, 85vw);
    height: 100dvh;
    background: var(--bg-2);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem;
    gap: 0.5rem;
    transition: right 0.4s var(--ease-out);
    border-left: 1px solid var(--gold-border);
  }
  .nav-menu.is-open { right: 0; }
  .nav-link { font-size: 1.1rem; padding: 0.6rem 1rem; width: 100%; }
  .nav-cta { margin: 1rem 0 0; width: 100%; text-align: center; padding: 0.75rem; }
}

/* ============================================================
   HERO
============================================================ */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow-x: clip;
  overflow-y: hidden;
  /* Background cubre todo el ancho — evita barras laterales */
  background:
    radial-gradient(ellipse 90% 70% at 65% 40%, rgba(240,165,0,0.07) 0%, transparent 65%),
    radial-gradient(ellipse 70% 80% at 20% 70%, rgba(232,93,4,0.04) 0%, transparent 60%),
    var(--bg);
}

/* Gradient halo — inset negativo para que cubra bordes */
.hero-halo {
  position: absolute;
  inset: -20% -5% -10% -5%;
  background:
    radial-gradient(ellipse 55% 55% at 68% 38%, rgba(240,165,0,0.13), transparent 70%),
    radial-gradient(ellipse 40% 50% at 28% 65%, rgba(232,93,4,0.07), transparent 70%);
  pointer-events: none;
}

/* Particles */
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.particle {
  position: absolute;
  width: 3px; height: 3px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat linear infinite;
}
@keyframes particleFloat {
  0%   { opacity: 0; transform: translateY(0) scale(0); }
  10%  { opacity: 0.6; transform: translateY(-10px) scale(1); }
  90%  { opacity: 0.2; }
  100% { opacity: 0; transform: translateY(-120px) scale(0.3); }
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding-block: 4rem 3rem;
  width: min(1200px, 100% - 3rem);
  margin-inline: auto;
}
.hero-content { position: relative; z-index: 1; }

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.hero-dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

.hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--text);
  text-wrap: balance;
}
.hero-title em {
  font-style: italic;
  color: var(--gold);
  display: inline-block;
  min-width: 12ch;
}

.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 48ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ── Hero Scroll hint ── */
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  animation: scrollHint 2s ease-in-out infinite;
}
@keyframes scrollHint {
  0%, 100% { opacity: 0.3; transform: translateX(-50%) translateY(0); }
  50%       { opacity: 0.7; transform: translateX(-50%) translateY(5px); }
}
.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold-border), transparent);
}

/* ── Device Mockups ── */
.hero-devices {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: devicesFloat 4s ease-in-out infinite;
}
@keyframes devicesFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

/* Laptop */
.device-laptop {
  position: relative;
  width: 320px;
  filter: drop-shadow(0 40px 60px rgba(0,0,0,0.6));
}
.device-laptop-top {
  background: #1a1a2e;
  border-radius: 10px 10px 0 0;
  padding: 8px;
  border: 2px solid #2a2a3e;
}
.device-laptop-screen {
  background: var(--bg-2);
  border-radius: 6px;
  aspect-ratio: 16/10;
  overflow: hidden;
  border: 1px solid var(--gold-border);
}
.device-screen-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px;
}
.device-laptop-bottom {
  background: #222232;
  height: 14px;
  border-radius: 0 0 16px 16px;
  border: 2px solid #2a2a3e;
  border-top: none;
  display: flex;
  justify-content: center;
  align-items: center;
}
.device-laptop-notch {
  width: 60px; height: 4px;
  background: #1a1a2e;
  border-radius: 2px;
}

/* Phone */
.device-phone {
  position: absolute;
  right: -30px;
  bottom: 14px;
  width: 90px;
  background: #1a1a2e;
  border-radius: 14px;
  padding: 6px;
  border: 2px solid #2a2a3e;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
  z-index: 2;
}
.device-phone-screen {
  background: var(--bg-2);
  border-radius: 10px;
  aspect-ratio: 9/18;
  overflow: hidden;
  border: 1px solid var(--gold-border);
}
.device-phone-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 3px;
}

/* Mock screen elements */
.mock-nav {
  height: 8px;
  background: rgba(240,165,0,0.2);
  border-radius: 2px;
  flex-shrink: 0;
}
.mock-hero-img {
  height: 45px;
  background: linear-gradient(135deg, rgba(240,165,0,0.2), rgba(232,93,4,0.15));
  border-radius: 3px;
  flex-shrink: 0;
}
.mock-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 3px 2px;
}
.mock-line { height: 4px; border-radius: 2px; background: rgba(240,240,240,0.3); }
.mock-line.wide { width: 80%; }
.mock-line.medium { width: 55%; }
.mock-btn {
  width: 40%;
  height: 7px;
  background: var(--gold);
  border-radius: 3px;
  margin-top: 2px;
}
.mock-cards {
  display: flex;
  gap: 3px;
  padding: 2px;
  flex: 1;
}
.mock-card {
  flex: 1;
  background: rgba(240,165,0,0.1);
  border-radius: 3px;
  border: 1px solid var(--gold-border);
}

/* Phone mock elements */
.mock-ph-hero {
  height: 30px;
  background: linear-gradient(135deg, rgba(240,165,0,0.2), rgba(232,93,4,0.15));
  border-radius: 3px;
  flex-shrink: 0;
}
.mock-ph-line { height: 3px; border-radius: 2px; background: rgba(240,240,240,0.3); }
.mock-ph-line.wide { width: 85%; }
.mock-ph-line.medium { width: 60%; }
.mock-ph-btn {
  width: 50%;
  height: 5px;
  background: var(--gold);
  border-radius: 3px;
  margin-top: 2px;
}
.mock-ph-cards {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 2px;
  flex: 1;
}
.mock-ph-card {
  background: rgba(240,165,0,0.1);
  border-radius: 3px;
  height: 18px;
  border: 1px solid var(--gold-border);
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-devices {
    justify-content: center;
    order: -1;
    transform: scale(0.85);
    transform-origin: center;
  }
}
@media (max-width: 480px) {
  .hero-devices { transform: scale(0.65); }
  .hero-title { font-size: 2rem; }
}
.hide-mobile { display: none; }
@media (min-width: 768px) { .hide-mobile { display: inline; } }

/* ============================================================
   ABOUT
============================================================ */
.about { background: var(--bg-2); }
.about-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5rem;
  align-items: start;
}

.about-avatar-wrap {
  position: relative;
  width: 160px;
  height: 160px;
  flex-shrink: 0;
}
.about-avatar {
  width: 160px; height: 160px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bg-3), var(--bg));
  border: 2px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.about-avatar-initial {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.about-avatar-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1.5px dashed rgba(240,165,0,0.4);
  animation: avatarSpin 12s linear infinite;
}
@keyframes avatarSpin { to { transform: rotate(360deg); } }
.about-avatar-glow {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240,165,0,0.15), transparent 70%);
  animation: avatarGlow 3s ease-in-out infinite;
}
@keyframes avatarGlow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%       { opacity: 1; transform: scale(1.1); }
}

.about-text {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--gold-border);
}
.stat { text-align: center; }
.stat-number {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.4;
}

/* ── About skills pills ── */
.about-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gold-border);
}
.skill-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  border-radius: 100px;
  padding: 0.45rem 1rem;
  font-size: 0.83rem;
  color: var(--text-muted);
  transition: background 0.2s var(--ease-out), color 0.2s, border-color 0.2s;
  cursor: default;
}
.skill-pill svg { color: var(--gold); flex-shrink: 0; }
.skill-pill:hover {
  background: rgba(240,165,0,0.12);
  color: var(--text);
  border-color: rgba(240,165,0,0.45);
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-avatar-wrap { margin-inline: auto; }
}

/* ============================================================
   SERVICES
============================================================ */
.services { background: var(--bg); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin-inline: auto;
  /* Espacio arriba para el badge que sobresale */
  padding-top: 1.5rem;
}

.service-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, background 0.3s, border-color 0.3s;
  /* Sin preserve-3d: evita que aplaste el badge posicionado */
}
.service-card:hover {
  background: var(--card-hover);
  border-color: rgba(240,165,0,0.45);
  box-shadow: 0 24px 60px rgba(240,165,0,0.08);
  transform: translateY(-6px);
}
.service-card--featured {
  border-color: var(--gold);
  background: rgba(240,165,0,0.04);
}
.service-card--featured:hover {
  border-color: var(--gold);
  box-shadow: 0 24px 60px rgba(240,165,0,0.18);
}

.service-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #0a0a0f;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.35rem 1rem;
  border-radius: 100px;
  white-space: nowrap;
}

.service-icon { color: var(--gold); flex-shrink: 0; }
.service-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
}
.service-desc { color: var(--text-muted); font-size: 0.95rem; }

.service-features {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.service-features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.check-icon {
  color: var(--gold);
  flex-shrink: 0;
  width: 18px; height: 18px;
}

.service-cta { margin-top: 0.5rem; width: 100%; justify-content: center; }

/* Stagger de entrada — la segunda card aparece un poco después */
.services-grid .service-card:nth-child(1) { transition-delay: 0.05s; }
.services-grid .service-card:nth-child(2) { transition-delay: 0.2s; }

@media (max-width: 700px) {
  .services-grid { grid-template-columns: 1fr; max-width: 480px; }
}

/* ============================================================
   PROJECTS
============================================================ */
.projects { background: var(--bg-2); }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, border-color 0.3s;
}
.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 32px 80px rgba(0,0,0,0.4);
  border-color: rgba(240,165,0,0.4);
}

/* Project mockup area */
.project-mockup {
  aspect-ratio: 16/10;
  overflow: hidden;
  padding: 0.75rem;
}
.project-mockup--cafe  { background: linear-gradient(135deg, #1a110a, #2d1a0a); }
.project-mockup--burger{ background: linear-gradient(135deg, #0a0000, #1a0505); }
.project-mockup--italian{ background: linear-gradient(135deg, #050f05, #0d1e0d); }

.mockup-browser {
  background: var(--bg-3);
  border-radius: 8px;
  overflow: hidden;
  height: 100%;
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
}
.mockup-browser-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.mockup-dot {
  display: block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}
.mockup-dot:nth-child(1) { background: rgba(255,95,86,0.7); }
.mockup-dot:nth-child(2) { background: rgba(255,189,46,0.7); }
.mockup-dot:nth-child(3) { background: rgba(39,201,63,0.7); }
.mockup-url {
  flex: 1;
  text-align: center;
  font-size: 0.6rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.05em;
}
.mockup-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Screen content */
.ms-nav { height: 12px; background: rgba(255,255,255,0.08); flex-shrink: 0; }
.ms-hero { flex: 0 0 45%; display: flex; align-items: flex-end; padding: 10px; }
.cafe-hero { background: linear-gradient(135deg, #3d2010, #1a0d05); }
.burger-hero { background: linear-gradient(135deg, #1a0000, #330000); }
.italian-hero { background: linear-gradient(135deg, #051505, #0d2a0d); }
.ms-hero-text { display: flex; flex-direction: column; gap: 4px; width: 100%; }
.ms-line { height: 5px; border-radius: 3px; }
.ms-line.wide { width: 70%; }
.ms-line.medium { width: 45%; }
.ms-btn { width: 30%; height: 8px; border-radius: 3px; margin-top: 3px; }
.ms-section { flex: 1; padding: 8px; }
.ms-3cards { display: flex; gap: 5px; height: 100%; }
.ms-mini-card { flex: 1; border-radius: 4px; }
.ms-2cards { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; height: 100%; }

/* Project info */
.project-info {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex: 1;
}
.project-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.project-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}
.project-location {
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}
.project-demo-note {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  padding: 0.18rem 0.55rem;
}
.project-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
}
.project-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.project-tech span {
  font-size: 0.72rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 0.2rem 0.55rem;
  color: var(--text-muted);
}
.project-results {
  display: flex;
  gap: 1.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--gold-border);
  margin-top: auto;
}
.result-value {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.result-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

/* ============================================================
   VALUES / MI ENFOQUE
============================================================ */
.values { background: var(--bg); }
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.value-card {
  background: var(--card-bg);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, border-color 0.3s;
}
.value-card:hover {
  transform: translateY(-6px);
  border-color: rgba(240,165,0,0.4);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.value-icon {
  width: 48px; height: 48px;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
  transition: background 0.2s;
}
.value-card:hover .value-icon { background: rgba(240,165,0,0.15); }
.value-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}
.value-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
  flex: 1;
}

@media (max-width: 700px) {
  .values-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   FAQ
============================================================ */
.faq { background: var(--bg-2); }
.faq-list {
  max-width: 780px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid var(--gold-border);
}
.faq-item:first-child { border-top: 1px solid var(--gold-border); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  color: var(--text);
  transition: color 0.2s;
  user-select: none;
}
.faq-question:hover { color: var(--gold); }
.faq-question::-webkit-details-marker { display: none; }

.faq-icon {
  display: block;
  width: 22px; height: 22px;
  flex-shrink: 0;
  position: relative;
  border: 1.5px solid var(--gold-border);
  border-radius: 50%;
  transition: border-color 0.2s, background 0.2s;
}
.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  background: var(--gold);
  border-radius: 1px;
  transition: transform 0.3s var(--ease-out);
}
.faq-icon::before { width: 10px; height: 1.5px; transform: translate(-50%, -50%); }
.faq-icon::after  { width: 1.5px; height: 10px; transform: translate(-50%, -50%); }

details[open] .faq-icon::after { transform: translate(-50%, -50%) scaleY(0); }
details[open] .faq-icon { background: var(--gold-dim); border-color: var(--gold); }
details[open] .faq-question { color: var(--gold); }

.faq-answer {
  padding-bottom: 1.5rem;
  overflow: hidden;
}
.faq-answer p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.95rem;
}
.faq-answer strong { color: var(--text); }

/* ============================================================
   CTA BANNER
============================================================ */
.cta-banner {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding-block: 6rem;
}
.cta-banner-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #b37800, #f0a500, #e85d04);
  z-index: 0;
}
.cta-banner-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cta-banner-inner {
  position: relative;
  z-index: 1;
}
.cta-banner-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 900;
  color: #0a0a0f;
  margin-bottom: 1rem;
}
.cta-banner-sub {
  font-size: 1.1rem;
  color: rgba(10,10,15,0.75);
  margin-bottom: 2.5rem;
}
.cta-banner-btn {
  background: #0a0a0f !important;
  color: var(--gold) !important;
  border: none !important;
  padding: 1rem 2.5rem;
  font-size: 1rem;
}
.cta-banner-btn:hover {
  background: #111118 !important;
  box-shadow: 0 12px 40px rgba(0,0,0,0.3) !important;
  transform: translateY(-3px) !important;
}

/* ============================================================
   CONTACT
============================================================ */
.contact { background: var(--bg); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: start;
}

.contact-desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}
.contact-items {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contact-item-icon {
  width: 40px; height: 40px;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}
.contact-item strong { display: block; font-size: 0.85rem; color: var(--text); margin-bottom: 0.15rem; }
.contact-item span { font-size: 0.9rem; color: var(--text-muted); }

/* Form */
.contact-form {
  background: var(--card-bg);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
}

.form-group {
  position: relative;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 1rem 1rem 0.5rem;
  font-size: 0.95rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  appearance: none;
  -webkit-appearance: none;
}
.form-group select option { background: var(--bg-2); color: var(--text); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: transparent; }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold);
  background: rgba(240,165,0,0.04);
}

/* Floating labels */
.form-group label {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  font-size: 0.9rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: top 0.2s var(--ease-out), font-size 0.2s, color 0.2s, transform 0.2s;
}
.form-group textarea + label { top: 1rem; transform: none; }
.select-label { top: 50%; }

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: 0.4rem;
  font-size: 0.72rem;
  color: var(--gold);
  transform: none;
}
.form-group select:focus ~ label,
.form-group select:valid ~ label {
  top: 0.4rem;
  font-size: 0.72rem;
  color: var(--gold);
  transform: none;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
  padding-top: 1.5rem;
}

.form-submit {
  width: 100%;
  justify-content: center;
  padding: 1rem;
  font-size: 1rem;
  position: relative;
  gap: 0.6rem;
}
.submit-text {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

/* Hint debajo del botón */
.form-wa-hint {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: -0.25rem;
  line-height: 1.5;
}
.form-wa-hint strong { color: var(--text-muted); }
.submit-loading {
  display: none;
  animation: submitSpin 1s linear infinite;
}
@keyframes submitSpin { to { transform: rotate(360deg); } }
.form-submit.is-loading .submit-text { display: none; }
.form-submit.is-loading .submit-loading { display: block; }

.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  padding: 2rem;
  color: var(--gold);
}
.form-success.is-visible { display: flex; }
.form-success p { color: var(--text-muted); font-size: 0.9rem; }

@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
}

/* ============================================================
   FOOTER
============================================================ */
.footer { background: var(--bg-2); border-top: 1px solid var(--gold-border); padding-top: 5rem; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--gold-border);
}

.footer-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  display: block;
  margin-bottom: 1rem;
}
.footer-logo span { color: var(--gold); }
.footer-tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}
.footer-social a {
  width: 40px; height: 40px;
  background: var(--card-bg);
  border: 1px solid var(--gold-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
}
.footer-social a:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: var(--gold-dim);
  transform: translateY(-2px);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.footer-nav-col h3 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.footer-nav-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-nav-col li,
.footer-nav-col a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-nav-col a:hover { color: var(--text); }

.footer-bottom { padding: 1.5rem 0; }
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p { font-size: 0.8rem; color: var(--text-dim); }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { color: var(--text-dim); font-size: 0.8rem; transition: color 0.2s; }
.footer-legal a:hover { color: var(--text-muted); }

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr; gap: 3rem; }
  .footer-nav { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .footer-nav { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ============================================================
   WHATSAPP BUTTON
============================================================ */
.whatsapp-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s;
  animation: waBounce 3s ease-in-out infinite;
}
.whatsapp-btn:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 30px rgba(37,211,102,0.55);
  animation: none;
}

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

/* Pulse ring */
.whatsapp-btn::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(37,211,102,0.4);
  animation: waPulse 2.5s ease-in-out infinite;
}
@keyframes waPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50%       { transform: scale(1.25); opacity: 0; }
}

.whatsapp-icon { width: 28px; height: 28px; color: white; }

.whatsapp-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-2);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--gold-border);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  transform: translateY(-50%) translateX(6px);
}
.whatsapp-btn:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* ============================================================
   UTILITIES / MISC
============================================================ */
@media (prefers-reduced-motion: reduce) {
  .hero-particles { display: none; }
  .about-avatar-ring { animation: none; }
  .hero-devices { animation: none; }
  .whatsapp-btn { animation: none; }
  .whatsapp-btn::before { animation: none; }
}

/* Selection */
::selection { background: rgba(240,165,0,0.25); color: var(--text); }

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}
