/* ============================================================
   Obrazone — landing styles
   Paleta: azul industrial #1e4a7a sobre blanco + grises
   ============================================================ */

:root {
    --primary: #1e4a7a;
    --primary-dark: #143557;
    --primary-light: #2d6aa8;
    --accent: #f2b705;
    --text: #1a1a1a;
    --text-muted: #5a6470;
    --bg: #ffffff;
    --bg-alt: #f5f7fa;
    --bg-dark: #0f2540;
    --border: #e2e8f0;
    --success: #1e8a4d;
    --error: #c62828;
    --radius: 8px;
    --shadow-sm: 0 1px 3px rgba(15, 37, 64, 0.08);
    --shadow-md: 0 4px 12px rgba(15, 37, 64, 0.10);
    --shadow-lg: 0 12px 32px rgba(15, 37, 64, 0.14);
    --max-w: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); text-decoration: underline; }

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    padding-bottom: 1rem;
}
.brand {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}
.brand img {
    height: 38px;
    width: auto;
    display: block;
}
.brand-footer img { height: 36px; }
@media (max-width: 540px) {
    .brand img { height: 32px; }
}
.nav { display: flex; gap: 1.8rem; align-items: center; }
.nav a { color: var(--text); font-weight: 500; font-size: 0.95rem; }
.nav a:hover { color: var(--primary); text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.6rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    line-height: 1;
}
.btn-primary,
.btn-primary:link,
.btn-primary:visited {
    background: var(--primary);
    color: #ffffff !important;
    border-color: var(--primary);
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #ffffff !important;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
.btn-header {
    padding: 0.55rem 1.2rem;
    font-size: 0.9rem;
}
.btn-ghost {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-ghost:hover {
    background: var(--primary);
    color: #fff;
    text-decoration: none;
}
.btn-lg { padding: 1.05rem 2rem; font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero {
    padding: 5rem 0 4rem;
    background: linear-gradient(180deg, #ffffff 0%, var(--bg-alt) 100%);
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.hero-eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(30, 74, 122, 0.08);
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    margin-bottom: 1.2rem;
}
.hero h1 {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    line-height: 1.12;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
    margin-bottom: 1.2rem;
}
.hero h1 .accent { color: var(--primary); }
.hero p.lead {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 1.8rem;
    max-width: 540px;
}
.hero-cta { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.hero-meta {
    margin-top: 1.6rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    gap: 1.4rem;
    flex-wrap: wrap;
}
.hero-meta span::before { content: "✓ "; color: var(--success); font-weight: 700; }

/* Hero visual — browser mockup card */
.hero-visual {
    position: relative;
    aspect-ratio: 4 / 3.2;
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1a3658 55%, #0f2540 100%);
    border-radius: 14px;
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.04);
    overflow: hidden;
    padding: 1.1rem 1.1rem 1.3rem;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.hero-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 0%, rgba(242, 183, 5, 0.16) 0, transparent 38%),
        radial-gradient(circle at 95% 100%, rgba(45, 106, 168, 0.30) 0, transparent 45%);
    pointer-events: none;
    z-index: 0;
}
.hero-visual > * { position: relative; z-index: 1; }

.mockup-top { display: flex; align-items: center; gap: 0.75rem; }
.mockup-bar { display: flex; gap: 0.35rem; }
.mockup-bar i {
    width: 11px; height: 11px; border-radius: 50%;
    background: rgba(255,255,255,0.18);
}
.mockup-bar i:nth-child(1) { background: #ff5f57; }
.mockup-bar i:nth-child(2) { background: #ffbd2e; }
.mockup-bar i:nth-child(3) { background: #28c940; }
.mockup-url {
    flex: 1;
    font-family: ui-monospace, Menlo, monospace;
    font-size: 0.78rem;
    background: rgba(0,0,0,0.32);
    padding: 0.4rem 0.7rem;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.92);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mockup-url span { color: var(--accent); }

.mockup-toolbar {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    background: rgba(255,255,255,0.06);
    padding: 0.5rem 0.65rem;
    border-radius: 7px;
    border: 1px solid rgba(255,255,255,0.07);
}
.mockup-logo {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--accent);
    flex-shrink: 0;
}
.mockup-search {
    flex: 1;
    font-size: 0.72rem;
    background: rgba(0,0,0,0.28);
    padding: 0.3rem 0.55rem;
    border-radius: 5px;
    color: rgba(255,255,255,0.78);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mockup-cart {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.85);
    display: flex; align-items: center; gap: 0.25rem;
}
.mockup-cart b {
    background: var(--accent);
    color: var(--text);
    border-radius: 999px;
    padding: 0 0.45rem;
    font-size: 0.65rem;
    line-height: 1.4;
}

.mockup-chips {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}
.chip {
    font-size: 0.68rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.78);
    border: 1px solid rgba(255,255,255,0.06);
    font-weight: 500;
}
.chip-active {
    background: var(--accent);
    color: var(--text);
    border-color: var(--accent);
    font-weight: 700;
}

.mockup-products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
    margin-top: auto;
}
.mockup-product {
    position: relative;
    background: #fff;
    color: var(--text);
    border-radius: 8px;
    padding: 0.55rem 0.55rem 0.65rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.18);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.mockup-img {
    aspect-ratio: 1 / 1;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.3rem;
}
.mockup-img-1 { background: linear-gradient(135deg, #e8eef5 0%, #c9d6e6 100%); color: #4a6585; }
.mockup-img-2 { background: linear-gradient(135deg, #fff4d6 0%, #f7d76b 100%); color: #8a6500; }
.mockup-img-3 { background: linear-gradient(135deg, #ffe0d6 0%, #ff9b78 100%); color: #8a3700; }

.mockup-badge {
    position: absolute;
    top: 0.45rem;
    right: 0.45rem;
    background: var(--success);
    color: #fff;
    font-size: 0.55rem;
    font-weight: 700;
    padding: 0.12rem 0.4rem;
    border-radius: 999px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.mockup-badge-hot {
    background: var(--error);
}
.mockup-product strong {
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.15;
}
.mockup-product small {
    font-size: 0.6rem;
    color: var(--text-muted);
    line-height: 1.2;
}
.mockup-product em {
    font-style: normal;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 800;
    margin-top: 0.15rem;
}
.mockup-product em s {
    font-size: 0.6rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-left: 0.25rem;
}

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3rem;
}
.section-header h2 {
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.8rem;
    color: var(--text);
}
.section-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* ---------- Use cases ---------- */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}
.case-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 1.6rem;
    transition: all 0.2s ease;
}
.case-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}
.case-icon {
    width: 48px; height: 48px;
    border-radius: var(--radius);
    background: rgba(30, 74, 122, 0.08);
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.case-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.case-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ---------- Features ---------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.feature-icon {
    flex-shrink: 0;
    width: 40px; height: 40px;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
}
.feature h3 {
    font-size: 1.05rem;
    margin-bottom: 0.3rem;
    font-weight: 700;
}
.feature p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* ---------- How it works ---------- */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    counter-reset: step;
}
.step {
    background: #fff;
    border-radius: var(--radius);
    padding: 2rem 1.5rem 1.5rem;
    position: relative;
    border: 1px solid var(--border);
}
.step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    top: -18px; left: 1.5rem;
    width: 36px; height: 36px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800;
    font-size: 1.05rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.step p { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- CTA section ---------- */
.cta-section {
    background: var(--bg-dark);
    color: #fff;
    padding: 5rem 0;
    text-align: center;
}
.cta-section h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}
.cta-section p {
    max-width: 600px;
    margin: 0 auto 2rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
}
.cta-section .btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--text);
}
.cta-section .btn-primary:hover {
    background: #d9a405;
    border-color: #d9a405;
    color: var(--text);
}

/* ---------- Form ---------- */
.form-card {
    max-width: 580px;
    margin: 0 auto;
    background: #fff;
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}
.form-grid {
    display: grid;
    gap: 1rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 0.95rem;
    font-size: 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    color: var(--text);
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 74, 122, 0.12);
}
.form-group textarea { min-height: 90px; resize: vertical; }
.form-msg {
    padding: 0.85rem 1rem;
    border-radius: var(--radius);
    font-size: 0.95rem;
    display: none;
}
.form-msg.success { background: #e6f4ec; color: var(--success); border: 1px solid #b8e0c8; display: block; }
.form-msg.error { background: #fdecec; color: var(--error); border: 1px solid #f4c2c2; display: block; }
.form-legal { font-size: 0.8rem; color: var(--text-muted); }

/* ---------- Footer ---------- */
.site-footer {
    background: #0a1c33;
    color: rgba(255,255,255,0.75);
    padding: 3rem 0 1.5rem;
    font-size: 0.9rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}
.site-footer h4 {
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.4rem; }
.site-footer a { color: rgba(255,255,255,0.75); }
.site-footer a:hover { color: var(--accent); text-decoration: none; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: 1.2rem;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .hero { padding: 3rem 0; }
    .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero-visual { order: -1; max-width: 480px; margin: 0 auto; width: 100%; }
    .nav { display: none; }
    .section { padding: 3.5rem 0; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
}
