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

/* ── Tokens ── */
:root {
    --bg: #FAFAFA;
    --surface: #FFFFFF;
    --border: #E5E7EB;
    --text: #0F0F0F;
    --muted: #6B7280;
    --accent: #2563EB;
    --accent-light: #EFF6FF;
    --accent-hover: #1D4ED8;
    --whatsapp: #25D366;
    --radius: 12px;
    --radius-lg: 20px;
    --max-w: 1160px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ── Nav ── */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 0 2rem;
    background: rgba(250,250,250,0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

nav {
    max-width: var(--max-w);
    margin: 0 auto;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 0.25rem;
}

nav ul a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

nav ul a:hover,
nav ul a.active {
    color: var(--text);
    background: var(--border);
}

.nav-cta {
    background: var(--text) !important;
    color: white !important;
    font-weight: 600 !important;
}

.nav-cta:hover {
    background: #333 !important;
}

.nav-cta.active {
    background: #333 !important;
    color: white !important;
}

/* ── Hamburger ── */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}

.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99;
}

.mobile-nav-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
}

.mobile-nav-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    background: white;
    padding: 5rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: -4px 0 24px rgba(0,0,0,0.08);
}

.mobile-nav-panel a {
    color: var(--text);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    transition: background 0.2s;
}

.mobile-nav-panel a:hover { background: var(--bg); }
.mobile-nav.open { display: block; }

/* ── Shared layout ── */
.section {
    padding: 96px 2rem;
}

.section-inner {
    max-width: var(--max-w);
    margin: 0 auto;
}

.section-header {
    margin-bottom: 3.5rem;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--text);
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--muted);
    font-size: 1rem;
    max-width: 520px;
    line-height: 1.7;
}

.alt-bg {
    background: white;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

/* ── Buttons ── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent);
    color: white;
    padding: 0.85rem 1.75rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s, transform 0.2s;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted);
    padding: 0.85rem 1.5rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border: 1px solid var(--border);
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.btn-ghost:hover {
    color: var(--text);
    border-color: #ccc;
    background: white;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--whatsapp);
    color: white;
    padding: 0.85rem 1.75rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: opacity 0.2s, transform 0.2s;
}

.whatsapp-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* ── Page hero (inner pages) ── */
.page-hero {
    padding: 140px 2rem 72px;
    max-width: var(--max-w);
    margin: 0 auto;
}

.page-hero .section-label { margin-bottom: 0.75rem; }

.page-hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
    margin-bottom: 1rem;
}

.page-hero p {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 540px;
    line-height: 1.7;
}

/* ── Home hero ── */
.hero {
    padding: 140px 2rem 100px;
    max-width: var(--max-w);
    margin: 0 auto;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    border-radius: 100px;
    border: 1px solid #BFDBFE;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.hero h1 {
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    max-width: 700px;
    margin-bottom: 1.25rem;
}

.hero h1 span { color: var(--accent); }

.hero > p {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 540px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

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

.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 4rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.stat-item { display: flex; flex-direction: column; }

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 500;
}

/* ── Service cards ── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
}

.service-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.service-card:hover {
    border-color: #d0d5dd;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

.service-icon-wrap {
    width: 48px;
    height: 48px;
    background: var(--accent-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.4rem;
}

.service-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.65;
}

/* ── Client cards ── */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.client-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    background: white;
    transition: box-shadow 0.2s;
}

.client-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06); }

.client-icon {
    font-size: 2.2rem;
    margin-bottom: 0.85rem;
}

.client-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.client-card p {
    font-size: 0.85rem;
    color: var(--muted);
}

/* ── Gallery ── */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 220px 220px;
    gap: 1.25rem;
}

.gallery-item {
    border-radius: var(--radius-lg);
    background: var(--bg);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.gallery-item:hover {
    border-color: #d0d5dd;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.gallery-item:first-child { grid-row: span 2; }

.gallery-item-icon {
    font-size: 2rem;
    opacity: 0.5;
}

.gallery-item-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted);
}

/* ── Gallery page filters ── */
.gallery-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.filter-btn {
    padding: 0.45rem 1rem;
    border-radius: 100px;
    border: 1px solid var(--border);
    background: white;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--text);
    color: white;
    border-color: var(--text);
}

.gallery-full-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.gallery-full-item {
    border-radius: var(--radius-lg);
    background: var(--bg);
    border: 1px solid var(--border);
    height: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.gallery-full-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-full-item:hover {
    border-color: #d0d5dd;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

/* ── Contact ── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-icon-wrap {
    width: 40px;
    height: 40px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-item-text strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.contact-item-text span {
    font-size: 0.9rem;
    color: var(--muted);
}

.contact-form {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.contact-form h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.45rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--text);
    background: var(--bg);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
    background: white;
}

.form-group textarea {
    resize: vertical;
    min-height: 110px;
}

.submit-btn {
    width: 100%;
    background: var(--accent);
    color: white;
    padding: 0.85rem;
    border: none;
    border-radius: 100px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.submit-btn:hover { background: var(--accent-hover); }

/* ── FAQ ── */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 760px;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: white;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 1.25rem 1.5rem;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: background 0.2s;
}

.faq-question:hover { background: var(--bg); }

.faq-chevron {
    flex-shrink: 0;
    transition: transform 0.3s;
}

.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-answer {
    display: none;
    padding: 0 1.5rem 1.25rem;
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.7;
}

.faq-item.open .faq-answer { display: block; }

/* ── Legal pages ── */
.legal-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 140px 2rem 96px;
}

.legal-content h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 0.5rem;
}

.legal-meta {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.legal-content h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 2.5rem 0 0.75rem;
    color: var(--text);
}

.legal-content p {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-content ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-content li {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 0.4rem;
}

.legal-content a {
    color: var(--accent);
    text-decoration: none;
}

.legal-content a:hover { text-decoration: underline; }

/* ── CTA strip ── */
.cta-strip {
    background: var(--text);
    color: white;
    padding: 72px 2rem;
    text-align: center;
}

.cta-strip h2 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 0.75rem;
}

.cta-strip p {
    color: #9CA3AF;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.cta-strip-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-white {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: var(--text);
    padding: 0.85rem 1.75rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: opacity 0.2s;
}

.btn-white:hover { opacity: 0.9; }

.btn-outline-white {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: white;
    padding: 0.85rem 1.75rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid rgba(255,255,255,0.3);
    transition: background 0.2s;
}

.btn-outline-white:hover { background: rgba(255,255,255,0.1); }

/* ── Footer ── */
footer {
    border-top: 1px solid var(--border);
    background: white;
    padding: 0 2rem;
}

.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 3rem 0 2.5rem;
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 3rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-brand p {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.6;
}

.footer-wa {
    align-self: flex-start;
    font-size: 0.875rem;
    padding: 0.6rem 1.25rem;
}

.footer-links-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-col h4 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.footer-col a,
.footer-col span {
    font-size: 0.875rem;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col a:hover { color: var(--text); }

.footer-bottom {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    font-size: 0.825rem;
    color: var(--muted);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    nav ul { display: none; }
    .hamburger { display: flex; }

    .hero { padding: 110px 1.5rem 72px; }
    .hero-stats { gap: 1.5rem; }
    .page-hero { padding: 110px 1.5rem 56px; }

    .section { padding: 64px 1.5rem; }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .gallery-item:first-child {
        grid-row: span 1;
        grid-column: span 2;
        height: 200px;
    }

    .gallery-item { height: 160px; }

    .contact-grid { grid-template-columns: 1fr; }

    .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
    .footer-links-group { grid-template-columns: repeat(2, 1fr); }

    .legal-content { padding: 110px 1.5rem 64px; }
}

@media (max-width: 480px) {
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-item:first-child { grid-column: span 1; }
    .footer-links-group { grid-template-columns: 1fr 1fr; }
}
