@font-face {
  font-family: 'Ahsing';
  src: url('../fonts/typogama-ahsing.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    --black: #1c1c1c;
    --white: #ffffff;
    --cream: #ffffff;
    --orange: #b68fff;
    --orange-dark: #9b6ff0;
    --orange-light: #caaeff;
    --gray-mid: #d9d9d6;
    --gray-light: #d9d9d6;
    --gray-dark: #2a2a2a;
    --section-pad: 120px 5vw;
  }

  html { scroll-behavior: smooth; }

  body {
    font-family: 'DM Sans', sans-serif;
    background: var(--black);
    color: var(--white);
    overflow-x: hidden;
  }

  /* ─── NAV ─────────────────────────────────────────────── */
  nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; justify-content: space-between; align-items: center;
    padding: 22px 5vw;
    background: rgba(28,28,28,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .nav-logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 22px;
    letter-spacing: 1px;
    color: var(--white);
    text-decoration: none;
    display: flex; align-items: baseline; gap: 0;
  }
  .nav-logo .nexo-part {
    font-family: 'Ahsing', 'Bungee', 'Black Han Sans', sans-serif;
    font-weight: 400;
    font-size: 24px;
    color: var(--orange);
    letter-spacing: 3px;
    text-transform: uppercase;
  }
  .nav-logo .studio-part {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 17px;
    color: var(--white);
    letter-spacing: 2px;
    margin-left: 6px;
  }

  .nav-links {
    display: flex; gap: 36px; list-style: none;
  }
  .nav-links a {
    text-decoration: none;
    color: var(--gray-mid);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.02em;
    transition: color 0.2s;
  }
  .nav-links a:hover { color: var(--white); }

  .nav-cta {
    background: var(--orange);
    color: var(--white) !important;
    padding: 10px 22px;
    border-radius: 100px;
    font-weight: 500 !important;
    transition: background 0.2s !important;
  }
  .nav-cta:hover { background: var(--orange-dark) !important; color: var(--white) !important; }

  /* ─── HERO ────────────────────────────────────────────── */
  #hero {
    min-height: 100vh;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 0 5vw 80px;
    position: relative;
    overflow: hidden;
  }

  .hero-bg {
    position: absolute; inset: 0; z-index: 0;
    background: radial-gradient(ellipse 60% 55% at 70% 40%, #2a1a40 0%, transparent 65%),
                radial-gradient(ellipse 40% 40% at 20% 70%, #1a1030 0%, transparent 60%),
                var(--black);
  }

  .hero-noise {
    position: absolute; inset: 0; z-index: 1; opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  }

  .hero-tag {
    position: relative; z-index: 2;
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 500; letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 28px;
  }
  .hero-tag::before {
    content: '';
    width: 28px; height: 1px;
    background: var(--orange);
  }

  .hero-headline {
    position: relative; z-index: 2;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(52px, 9vw, 110px);
    font-weight: 800;
    line-height: 0.92;
    letter-spacing: -0.03em;
    color: var(--white);
    margin-bottom: 40px;
  }
  .hero-headline em {
    font-style: normal;
    color: var(--orange);
  }

  .hero-bottom {
    position: relative; z-index: 2;
    display: flex; justify-content: space-between; align-items: flex-end;
    gap: 40px;
  }

  .hero-desc {
    max-width: 380px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-mid);
    font-weight: 300;
  }

  .hero-actions {
    display: flex; gap: 14px; align-items: center; flex-shrink: 0;
  }

  .btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--orange);
    color: var(--white);
    padding: 16px 32px;
    border-radius: 100px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    white-space: nowrap;
  }
  .btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); }

  .btn-secondary {
    display: inline-flex; align-items: center; gap: 8px;
    background: transparent;
    color: var(--white);
    padding: 16px 32px;
    border-radius: 100px;
    border: 1px solid rgba(255,255,255,0.2);
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 400;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
    white-space: nowrap;
  }
  .btn-secondary:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.05); }

  /* Scroll indicator */
  .scroll-line {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    z-index: 2;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
  }
  .scroll-line span { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-mid); }
  .scroll-line-bar {
    width: 1px; height: 50px;
    background: linear-gradient(to bottom, var(--orange), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
  }
  @keyframes scrollPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
  }

  /* ─── STATS TICKER ─────────────────────────────────────── */
  .ticker {
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.02);
    padding: 22px 0;
    overflow: hidden;
  }
  .ticker-track {
    display: flex; gap: 60px;
    animation: ticker 20s linear infinite;
    width: max-content;
  }
  .ticker-item {
    display: flex; align-items: center; gap: 14px;
    white-space: nowrap;
  }
  .ticker-item span {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px; font-weight: 700;
    color: var(--orange);
  }
  .ticker-item p {
    font-size: 13px; color: var(--gray-mid);
    letter-spacing: 0.05em; text-transform: uppercase;
  }
  .ticker-dot { color: rgba(255,255,255,0.15); font-size: 20px; }

  @keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }

  /* ─── SECTIONS ─────────────────────────────────────────── */
  section { padding: var(--section-pad); }

  .section-tag {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 11px; font-weight: 500; letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 20px;
  }
  .section-tag::before {
    content: ''; width: 20px; height: 1px; background: var(--orange);
  }

  h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--white);
    margin-bottom: 20px;
  }
  h2 em { font-style: normal; color: var(--orange); }

  .section-sub {
    font-size: 16px; line-height: 1.7;
    color: var(--gray-mid); font-weight: 300;
    max-width: 480px;
    margin-bottom: 60px;
  }

  /* ─── QUIENES SOMOS ────────────────────────────────────── */
  #about {
    background: var(--black);
    border-top: 1px solid rgba(255,255,255,0.06);
  }

  .about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
  }

  .about-visual {
    position: relative;
    aspect-ratio: 1 / 1.1;
    max-width: 480px;
  }

  .about-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    position: relative;
    overflow: hidden;
  }

  .about-card-bg {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 30%, rgba(182,143,255,0.15) 0%, transparent 70%);
  }

  .about-monogram {
    font-family: 'Montserrat', sans-serif;
    font-size: 120px;
    font-weight: 800;
    color: rgba(255,255,255,0.04);
    letter-spacing: -8px;
    line-height: 1;
    position: absolute;
    user-select: none;
  }

  .about-badge {
    position: absolute;
    background: var(--orange);
    color: var(--white);
    border-radius: 100px;
    padding: 12px 24px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
  }
  .badge-1 { top: 30px; right: -20px; transform: rotate(3deg); }
  .badge-2 { bottom: 50px; left: -20px; transform: rotate(-2deg); background: var(--gray-dark); border: 1px solid rgba(255,255,255,0.15); }

  .stat-pill {
    position: absolute;
    bottom: 24px; right: 24px;
    background: rgba(28,28,28,0.95);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 16px 20px;
    text-align: center;
  }
  .stat-pill strong {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: var(--orange);
    line-height: 1;
  }
  .stat-pill small {
    font-size: 11px;
    color: var(--gray-mid);
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }

  .about-values {
    display: flex; flex-direction: column; gap: 28px;
    margin-top: 40px;
  }

  .value-item {
    display: flex; gap: 16px; align-items: flex-start;
  }
  .value-icon {
    width: 40px; height: 40px; flex-shrink: 0;
    background: rgba(182,143,255,0.12);
    border: 1px solid rgba(182,143,255,0.25);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
  }
  .value-item h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px; font-weight: 700;
    color: var(--white); margin-bottom: 4px;
  }
  .value-item p { font-size: 14px; color: var(--gray-mid); line-height: 1.6; }

  /* ─── PRODUCTOS ────────────────────────────────────────── */
  #productos {
    background: rgba(255,255,255,0.01);
    border-top: 1px solid rgba(255,255,255,0.06);
  }

  .products-header {
    display: flex; justify-content: space-between; align-items: flex-end;
    margin-bottom: 60px; gap: 40px;
  }

  .products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
  }

  .product-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 40px 32px;
    position: relative;
    overflow: hidden;
    transition: background 0.3s;
    cursor: default;
  }
  .product-card:hover { background: rgba(182,143,255,0.06); border-color: rgba(182,143,255,0.2); }
  .product-card:first-child { border-radius: 20px 0 0 0; }
  .product-card:nth-child(3) { border-radius: 0 20px 0 0; }
  .product-card:nth-child(4) { border-radius: 0 0 0 20px; }
  .product-card:last-child { border-radius: 0 0 20px 0; }

  .product-icon {
    font-size: 36px;
    margin-bottom: 20px;
    display: block;
    filter: none;
  }
  .product-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px; font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
  }
  .product-card p {
    font-size: 14px; color: var(--gray-mid);
    line-height: 1.6;
  }
  .product-card-num {
    position: absolute; top: 20px; right: 24px;
    font-family: 'Montserrat', sans-serif;
    font-size: 48px; font-weight: 800;
    color: rgba(255,255,255,0.03);
    line-height: 1;
  }

  /* ─── PROCESO ──────────────────────────────────────────── */
  #proceso {
    background: var(--black);
    border-top: 1px solid rgba(255,255,255,0.06);
  }

  .process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
    margin-top: 60px;
  }

  .process-step {
    padding: 40px 32px;
    border-right: 1px solid rgba(255,255,255,0.06);
    position: relative;
  }
  .process-step:last-child { border-right: none; }

  .step-num {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 24px;
    display: flex; align-items: center; gap: 8px;
  }
  .step-num::after {
    content: ''; flex: 1;
    height: 1px; background: rgba(182,143,255,0.3);
  }

  .process-step h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px; font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
    line-height: 1.2;
  }
  .process-step p { font-size: 14px; color: var(--gray-mid); line-height: 1.7; }

  /* ─── TRABAJOS ─────────────────────────────────────────── */
  #trabajos {
    background: rgba(255,255,255,0.01);
    border-top: 1px solid rgba(255,255,255,0.06);
  }

  .works-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 12px;
    margin-top: 60px;
  }

  .work-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    aspect-ratio: auto;
  }

  .work-card.featured {
    grid-row: span 2;
    aspect-ratio: 0.75 / 1;
  }

  .work-inner {
    width: 100%; height: 100%;
    min-height: 180px;
    display: flex; align-items: flex-end;
    padding: 24px;
    position: relative;
    background: rgba(255,255,255,0.02);
  }

  .work-placeholder {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 60px;
    opacity: 0.12;
  }

  .work-card.featured .work-placeholder { font-size: 120px; }

  .work-label {
    position: relative; z-index: 1;
    background: rgba(28,28,28,0.9);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 100px;
    padding: 8px 16px;
    font-size: 12px;
    color: var(--white);
    letter-spacing: 0.04em;
  }

  .work-tag {
    position: absolute; top: 16px; left: 16px;
    background: var(--orange);
    color: #1c1c1c;
    border-radius: 100px;
    padding: 4px 12px;
    font-size: 11px; font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  /* BG patterns para work cards */
  .wc-1 { background: linear-gradient(135deg, #1a1028 0%, #261540 50%, #1c1c1c 100%); }
  .wc-2 { background: linear-gradient(135deg, #0d1520 0%, #0a1535 50%, #1c1c1c 100%); }
  .wc-3 { background: linear-gradient(135deg, #101a10 0%, #152515 50%, #1c1c1c 100%); }
  .wc-4 { background: linear-gradient(135deg, #1e1028 0%, #2a1540 50%, #1c1c1c 100%); }
  .wc-5 { background: linear-gradient(135deg, #1a1520 0%, #252030 50%, #1c1c1c 100%); }

  /* ─── TESTIMONIOS ──────────────────────────────────────── */
  #testimonios {
    background: var(--black);
    border-top: 1px solid rgba(255,255,255,0.06);
  }

  .testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 60px;
  }

  .testimonial {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 20px;
    padding: 32px;
    position: relative;
  }

  .testimonial:first-child {
    border-color: rgba(182,143,255,0.3);
    background: rgba(182,143,255,0.06);
  }

  .stars {
    color: var(--orange);
    font-size: 16px;
    letter-spacing: 2px;
    margin-bottom: 16px;
  }

  .testimonial blockquote {
    font-size: 15px;
    line-height: 1.7;
    color: var(--white);
    font-weight: 300;
    margin-bottom: 24px;
    font-style: italic;
  }

  .testimonial-author {
    display: flex; align-items: center; gap: 12px;
  }
  .author-avatar {
    width: 40px; height: 40px;
    background: var(--orange);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800; font-size: 14px;
    color: #1c1c1c;
    flex-shrink: 0;
  }
  .author-info strong { display: block; font-size: 14px; font-weight: 500; color: var(--white); }
  .author-info span { font-size: 12px; color: var(--gray-mid); }

  /* ─── CONTACTO CTA ─────────────────────────────────────── */
  #contacto {
    padding: 100px 5vw;
    background: #151515;
    border-top: 1px solid rgba(182,143,255,0.2);
    position: relative;
    overflow: hidden;
  }

  .cta-bg {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(182,143,255,0.08) 0%, transparent 70%),
                radial-gradient(ellipse 40% 60% at 10% 30%, rgba(182,143,255,0.05) 0%, transparent 60%);
  }

  .cta-noise {
    position: absolute; inset: 0; opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  }

  .cta-inner {
    position: relative; z-index: 1;
    display: flex; justify-content: space-between; align-items: center; gap: 60px;
  }

  .cta-text h2 {
    color: var(--white);
    font-size: clamp(40px, 5vw, 70px);
    margin-bottom: 16px;
  }
  .cta-text h2 em { color: var(--orange); }
  .cta-text p {
    font-size: 16px;
    color: var(--gray-mid);
    font-weight: 300;
    max-width: 440px;
    line-height: 1.7;
  }

  .cta-actions {
    display: flex; flex-direction: column; gap: 14px; align-items: center; flex-shrink: 0;
  }

  .btn-whatsapp {
    display: inline-flex; align-items: center; gap: 10px;
    background: #25D366;
    color: var(--white);
    padding: 18px 36px;
    border-radius: 100px;
    font-family: 'DM Sans', sans-serif;
    font-size: 16px; font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    white-space: nowrap;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  }
  .btn-whatsapp:hover { background: #1fb555; transform: translateY(-3px); }

  .btn-whatsapp svg { width: 22px; height: 22px; fill: currentColor; }

  .cta-note {
    font-size: 12px;
    color: var(--gray-mid);
    text-align: center;
  }

  /* ─── FOOTER ───────────────────────────────────────────── */
  footer {
    background: #141414;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 60px 5vw 40px;
  }

  .footer-top {
    display: flex; justify-content: space-between; align-items: flex-start;
    margin-bottom: 50px;
    gap: 40px;
  }

  .footer-brand p {
    font-size: 14px; color: var(--gray-mid);
    max-width: 280px; line-height: 1.7;
    margin-top: 12px;
  }

  .footer-links h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px; font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-mid);
    margin-bottom: 16px;
  }
  .footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
  .footer-links ul a {
    text-decoration: none;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    transition: color 0.2s;
  }
  .footer-links ul a:hover { color: var(--white); }

  .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 30px;
    display: flex; justify-content: space-between; align-items: center;
    gap: 20px;
  }
  .footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.25); }
  .footer-bottom span { color: var(--orange); }

  /* ─── FLOATING WA BUTTON ────────────────────────────────── */
  .wa-float {
    position: fixed;
    bottom: 30px; right: 30px;
    z-index: 999;
    background: #25D366;
    width: 60px; height: 60px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    animation: waFloat 3s ease-in-out infinite;
  }
  .wa-float:hover { transform: scale(1.1); box-shadow: 0 8px 30px rgba(37,211,102,0.5); }
  .wa-float svg { width: 28px; height: 28px; fill: white; }

  @keyframes waFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
  }
  .wa-float:hover { animation: none; transform: scale(1.1); }

  /* ─── ANIMATIONS ─────────────────────────────────────────  */
  .fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .fade-up.visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* ─── RESPONSIVE ─────────────────────────────────────────  */
  @media (max-width: 900px) {
    .about-grid, .process-steps { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: 1fr 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .works-grid { grid-template-columns: 1fr 1fr; }
    .work-card.featured { grid-row: auto; aspect-ratio: auto; }
    .cta-inner { flex-direction: column; text-align: center; }
    .hero-bottom { flex-direction: column; align-items: flex-start; gap: 24px; }
    .nav-links { display: none; }
    .products-header { flex-direction: column; align-items: flex-start; }
    .footer-top { flex-direction: column; gap: 40px; }
    .process-step { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); }
    .process-step:last-child { border-bottom: none; }
  }