/* ===== BASE ===== */
:root {
    --white:   #FFFFFF;
    --black:   #0A0A0A;
    --olive:   #9AB800;
    --orange:  #FF5500;
    --blue:    #1A4BFF;
    --pink:    #FF2878;
    --yellow:  #FFD900;
    --green:   #009B6B;
    --muted:   #666666;
    --muted2:  #999999;
    --border:  #E8E8E8;
    --font-hero: 'Big Shoulders Display', sans-serif;
    --font-head: 'Bricolage Grotesque', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --max: 1280px;
    --gap: clamp(5rem, 9vw, 8rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background: var(--white);
    color: var(--black);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* grain */
body::after {
    content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 9999; opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 180px;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 clamp(1.5rem, 5vw, 4rem); }
.section { padding: var(--gap) 0; }

/* ===== NAV ===== */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 500;
    padding: 1.1rem clamp(1.5rem, 5vw, 4rem);
    background: rgba(255,255,255,0.93);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}
.nav-inner { max-width: var(--max); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.logo { font-family: var(--font-hero); font-weight: 900; font-size: 1.3rem; letter-spacing: 0.12em; color: var(--black); }
.logo-light { color: white; }
.nav-links { list-style: none; display: flex; gap: 2.5rem; }
.nav-links a { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--black); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; position: relative; z-index: 101; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--black); }

/* ===== HERO ===== */
.hero {
    min-height: 100vh; padding: 7rem clamp(1.5rem, 5vw, 4rem) 4rem;
    display: flex; flex-direction: column; justify-content: flex-end;
    position: relative; overflow: hidden; background: var(--white);
}
/* Single soft spray blob — orange, one accent only */
.hero::before {
    content: '';
    position: absolute;
    width: clamp(300px, 50vw, 600px); height: clamp(300px, 50vw, 600px);
    background: var(--orange);
    top: -8%; right: -8%;
    border-radius: 50%;
    filter: blur(clamp(80px, 12vw, 140px));
    opacity: 0.18;
    pointer-events: none;
}
.hero-label {
    font-size: 0.72rem; font-weight: 500; letter-spacing: 0.28em;
    text-transform: uppercase; color: var(--muted2);
    margin-bottom: 1.5rem;
    display: flex; align-items: center; gap: 0.75rem;
}
.hero-label::before { content: ''; width: 24px; height: 1.5px; background: var(--orange); display: block; }
.hero-h1 {
    font-family: var(--font-hero); font-weight: 900;
    font-size: clamp(5.5rem, 18vw, 18rem);
    line-height: 0.85; letter-spacing: -0.02em;
    color: var(--black);
    margin-bottom: 3rem;
}
.hero-bottom {
    display: grid; grid-template-columns: 1fr auto;
    align-items: end; gap: 2rem;
    border-top: 1px solid var(--border);
    padding-top: 2rem;
}
.hero-desc { font-size: clamp(0.9rem, 1.6vw, 1.05rem); color: var(--muted); max-width: 420px; line-height: 1.75; }
.hero-cta { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; justify-content: flex-end; }
.hero-scroll {
    font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--muted2); writing-mode: vertical-rl;
    position: absolute; right: clamp(1.5rem, 5vw, 4rem); bottom: 8rem;
    display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
}
.hero-scroll::after { content: ''; width: 1px; height: 44px; background: linear-gradient(to bottom, var(--black), transparent); animation: line-drop 2.2s ease-in-out infinite; }
@keyframes line-drop { 0% { transform: scaleY(0); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: top; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ===== BUTTONS ===== */
.btn { display: inline-block; padding: 0.8rem 1.8rem; font-family: var(--font-body); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; transition: all 0.22s; border: none; white-space: nowrap; }
.btn-dark   { background: var(--black); color: var(--white); }
.btn-dark:hover { background: var(--orange); }
.btn-outline { background: transparent; color: var(--black); border: 1.5px solid var(--black); }
.btn-outline:hover { background: var(--black); color: var(--white); }
.btn-orange { background: var(--orange); color: var(--white); font-weight: 600; }
.btn-orange:hover { background: var(--black); }
.btn-outline-white { background: transparent; color: white; border: 1.5px solid white; }
.btn-outline-white:hover { background: white; color: var(--black); }

/* ===== TICKER ===== */
.ticker-section { background: var(--black); padding: 1rem 0; overflow: hidden; }
.ticker-wrap { overflow: hidden; }
.ticker { display: flex; gap: 2rem; align-items: center; white-space: nowrap; animation: tick 30s linear infinite; width: max-content; }
.ticker span { font-family: var(--font-hero); font-weight: 900; font-size: 0.95rem; letter-spacing: 0.2em; color: white; }
.ticker .dot { font-size: 0.7rem; }
.ticker .dot-o { color: var(--orange); }
.ticker .dot-b { color: var(--blue); }
.ticker .dot-p { color: var(--pink); }
.ticker .dot-y { color: var(--yellow); }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-section:hover .ticker { animation-play-state: paused; }

/* ===== LABELS ===== */
.label { font-size: 0.68rem; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted2); display: flex; align-items: center; gap: 0.6rem; }
.label::before { content: ''; width: 18px; height: 1.5px; background: var(--orange); display: block; }
.label-blue::before  { background: var(--blue); }
.label-pink::before  { background: var(--pink); }
.label-olive::before { background: var(--olive); }
.label-light { color: rgba(255,255,255,0.4); }
.label-light::before { background: var(--orange); }

/* ===== SOBRE ===== */
.sobre { background: var(--white); }
.sobre-top { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: end; margin-bottom: 5rem; padding-bottom: 3rem; border-bottom: 1px solid var(--border); }
.sobre-h2 { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.5rem, 5vw, 4.5rem); letter-spacing: -0.03em; line-height: 1; }
.sobre-h2 em { font-style: normal; color: var(--orange); }
.sobre-intro { font-size: 1rem; color: var(--muted); line-height: 1.8; align-self: end; }
.sobre-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.sobre-item { padding: 2.5rem 0; padding-right: 2rem; border-right: 1px solid var(--border); padding-left: 2rem; transition: background 0.2s; }
.sobre-item:first-child { padding-left: 0; }
.sobre-item:last-child  { border-right: none; }
.sobre-num { font-family: var(--font-hero); font-weight: 900; font-size: 3.5rem; line-height: 1; display: block; margin-bottom: 1.25rem; }
.sobre-item:nth-child(1) .sobre-num { color: var(--orange); }
.sobre-item:nth-child(2) .sobre-num { color: var(--blue); }
.sobre-item:nth-child(3) .sobre-num { color: var(--pink); }
.sobre-item h3 { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; margin-bottom: 0.6rem; }
.sobre-item p  { font-size: 0.85rem; color: var(--muted); line-height: 1.7; }

/* ===== SERVICIOS ===== */
.servicios { background: var(--white); padding-top: 0; }
.servicios-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 2.5rem; }
.servicios-h2 { font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -0.03em; }
.serv-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--border); }
.serv-card {
    padding: 2.5rem 2rem; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
    position: relative; transition: background 0.2s; cursor: default;
}
.serv-card:hover { background: #FAFAFA; }
.serv-card:nth-child(3n) { border-right: none; }
.serv-card:nth-child(n+4) { border-bottom: none; }
.serv-card-num { font-family: var(--font-hero); font-weight: 900; font-size: 3rem; line-height: 1; margin-bottom: 1.5rem; display: block; }
.serv-card:nth-child(1) .serv-card-num { color: var(--orange); }
.serv-card:nth-child(2) .serv-card-num { color: var(--blue); }
.serv-card:nth-child(3) .serv-card-num { color: var(--pink); }
.serv-card:nth-child(4) .serv-card-num { color: var(--yellow); }
.serv-card:nth-child(5) .serv-card-num { color: var(--green); }
.serv-card:nth-child(6) .serv-card-num { color: var(--olive); }
.serv-card h3 { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; margin-bottom: 0.6rem; }
.serv-card p  { font-size: 0.83rem; color: var(--muted); line-height: 1.7; }
.serv-arrow { position: absolute; top: 2rem; right: 2rem; font-size: 1.1rem; color: var(--border); transition: color 0.2s; }
.serv-card:hover .serv-arrow { color: var(--black); }

/* ===== PROCESO ===== */
.proceso {
    background: var(--black);
    position: relative; overflow: hidden;
}
.proceso::before {
    content: ''; position: absolute;
    width: 500px; height: 500px;
    background: var(--pink);
    top: -150px; right: -100px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.18;
    pointer-events: none;
}
.proceso-head { margin-bottom: 4rem; position: relative; z-index: 1; }
.proceso-h2 { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.5rem, 5vw, 4.5rem); letter-spacing: -0.03em; color: white; }
.proceso-h2 em { font-style: normal; color: var(--pink); }
.accordion { border-top: 1px solid rgba(255,255,255,0.1); position: relative; z-index: 1; }
.acc-item { border-bottom: 1px solid rgba(255,255,255,0.1); }
.acc-header { display: flex; align-items: center; gap: 1.5rem; padding: 1.5rem 0; cursor: pointer; user-select: none; }
.acc-num { font-family: var(--font-hero); font-weight: 900; font-size: 1rem; color: rgba(255,255,255,0.2); min-width: 2rem; }
.acc-header h3 { font-family: var(--font-head); font-weight: 600; font-size: clamp(1rem, 2vw, 1.25rem); color: white; flex: 1; transition: color 0.2s; }
.acc-header:hover h3 { color: var(--pink); }
.acc-icon { color: rgba(255,255,255,0.3); font-size: 1.4rem; font-weight: 300; transition: transform 0.3s, color 0.2s; line-height: 1; }
.acc-item.open .acc-icon { transform: rotate(45deg); color: var(--pink); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.acc-body p { font-size: 0.9rem; color: rgba(255,255,255,0.5); line-height: 1.8; padding: 0 0 1.5rem 3.5rem; }
.acc-item.open .acc-body { max-height: 200px; }

/* ===== CTA ===== */
.cta { background: var(--orange); padding: var(--gap) 0; position: relative; overflow: hidden; }
.cta::before {
    content: 'LAMAT';
    position: absolute; font-family: var(--font-hero); font-weight: 900;
    font-size: clamp(8rem, 22vw, 24rem); color: rgba(0,0,0,0.07);
    white-space: nowrap; top: 50%; left: 50%; transform: translate(-50%,-50%);
    pointer-events: none; letter-spacing: -0.02em; line-height: 1;
}
.cta-inner { position: relative; z-index: 1; max-width: 700px; }
.cta-h2 { font-family: var(--font-hero); font-weight: 900; font-size: clamp(3.5rem, 9vw, 8rem); line-height: 0.88; letter-spacing: -0.02em; color: var(--black); margin-bottom: 1.5rem; }
.cta-sub { font-size: 0.95rem; color: rgba(0,0,0,0.6); max-width: 480px; line-height: 1.75; margin-bottom: 2.5rem; }
.cta-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ===== FOOTER ===== */
.footer { background: var(--black); padding: 3rem 0 2.5rem; }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 1.5rem; }
.footer-brand p { font-size: 0.82rem; color: rgba(255,255,255,0.35); margin-top: 0.5rem; line-height: 1.6; max-width: 300px; }
.footer-nav { display: flex; flex-direction: column; align-items: flex-end; gap: 0.75rem; }
.footer-nav a { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.3); transition: color 0.2s; }
.footer-nav a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; }
.footer-bottom p { font-size: 0.68rem; color: rgba(255,255,255,0.2); }

/* ===== REVEAL ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .hero-bottom { grid-template-columns: 1fr; gap: 1.5rem; }
    .hero-cta { justify-content: flex-start; }
    .hero-scroll { display: none; }
    .sobre-top { grid-template-columns: 1fr; gap: 2rem; }
    .sobre-grid { grid-template-columns: 1fr; }
    .sobre-item { border-right: none; border-bottom: 1px solid var(--border); padding-left: 0; padding-right: 0; }
    .sobre-item:last-child { border-bottom: none; }
    .serv-grid { grid-template-columns: 1fr 1fr; }
    .serv-card:nth-child(2n) { border-right: none; }
    .serv-card:nth-child(3n) { border-right: 1px solid var(--border); }
    .footer-inner { grid-template-columns: 1fr; }
    .footer-nav { align-items: flex-start; }
}
@media (max-width: 768px) {
    .nav-links { display: none; position: fixed; inset: 0; background: var(--white); flex-direction: column; align-items: center; justify-content: center; gap: 3rem; z-index: 99; }
    .nav-links.open { display: flex; }
    .nav-links a { font-size: 1.2rem; }
    .nav-toggle { display: flex; }
    .serv-grid { grid-template-columns: 1fr; }
    .serv-card { border-right: none !important; }
    .serv-card:nth-child(n+4) { border-bottom: 1px solid var(--border) !important; }
    .serv-card:last-child { border-bottom: none !important; }
    .footer-bottom { flex-direction: column; gap: 0.4rem; }
}
