/* ============================================================
   LOZARK EMPRENDIMIENTO — Sitio Corporativo
   Paleta: indigo #3D3D5C, acento cálido, fondos claros
   ============================================================ */

:root {
    --primary: #3D3D5C;
    --primary-dark: #2A2A44;
    --primary-light: #4D4D6E;
    --accent: #C9A961;
    --accent-light: #E8D8A8;
    --bg: #FFFFFF;
    --bg-alt: #F7F7FB;
    --bg-dark: #1F1F2E;
    --text: #1F1F2E;
    --text-muted: #55556B;
    --text-light: #8E8EA5;
    --border: #E5E5EE;
    --success: #2F8A5F;
    --warning: #B87333;
    --shadow-sm: 0 2px 6px rgba(31,31,46,0.06);
    --shadow: 0 6px 24px rgba(31,31,46,0.08);
    --shadow-lg: 0 12px 40px rgba(31,31,46,0.12);
    --radius: 10px;
    --radius-lg: 16px;
    --max-w: 1200px;
    --font-head: 'Poppins', 'Segoe UI', -apple-system, sans-serif;
    --font-body: 'Inter', 'Segoe UI', -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--primary-light); }

h1, h2, h3, h4, h5 { font-family: var(--font-head); color: var(--primary); font-weight: 600; line-height: 1.25; }
h1 { font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 1rem; letter-spacing: -.01em; }
h3 { font-size: 1.35rem; margin-bottom: .7rem; }
h4 { font-size: 1.1rem; margin-bottom: .5rem; }

p { margin-bottom: 1rem; color: var(--text-muted); }

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

/* ============ HEADER ============ */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--primary);
    font-size: 1.35rem;
    letter-spacing: -.01em;
}
.logo img { height: 44px; width: auto; }
.logo-sub { font-size: .68rem; color: var(--text-light); font-weight: 500; letter-spacing: .05em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 8px; }
.nav a {
    color: var(--text);
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 8px;
    transition: all .2s ease;
    font-size: .95rem;
}
.nav a:hover { background: var(--bg-alt); color: var(--primary); }
.nav a.active { color: var(--primary); background: var(--bg-alt); }
.nav a.cta {
    background: var(--primary);
    color: #fff;
    padding: 10px 22px;
    margin-left: 8px;
}
.nav a.cta:hover { background: var(--primary-dark); }

.menu-toggle {
    display: none;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 8px;
    color: var(--primary);
}
.menu-toggle svg { width: 28px; height: 28px; }

@media (max-width: 900px) {
    .menu-toggle { display: block; }
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        gap: 4px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
    }
    .nav.open { display: flex; }
    .nav a { padding: 12px 16px; }
    .nav a.cta { margin-left: 0; text-align: center; }
}

/* ============ HERO ============ */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(201,169,97,0.15) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero .lead {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 32px;
    line-height: 1.6;
}
.hero-badge {
    display: inline-block;
    background: rgba(201,169,97,0.2);
    color: var(--accent-light);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: .85rem;
    font-weight: 500;
    letter-spacing: .03em;
    margin-bottom: 20px;
    border: 1px solid rgba(201,169,97,0.3);
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    transition: all .2s ease;
    cursor: pointer;
    border: 0;
    font-family: inherit;
}
.btn-primary { background: var(--accent); color: var(--primary-dark); }
.btn-primary:hover { background: var(--accent-light); color: var(--primary-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.3); }
.btn-outline:hover { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.6); }
.btn-solid { background: var(--primary); color: #fff; }
.btn-solid:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }

.hero-visual {
    background: rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    padding: 32px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
}
.hero-visual h3 { color: #fff; margin-bottom: 20px; font-size: 1.1rem; }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.stat { padding: 16px; background: rgba(0,0,0,0.15); border-radius: var(--radius); }
.stat-value { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; color: var(--accent-light); }
.stat-label { font-size: .8rem; color: rgba(255,255,255,0.8); margin-top: 4px; }

@media (max-width: 900px) {
    .hero { padding: 50px 0 60px; }
    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .hero .lead { font-size: 1.1rem; }
}

/* ============ SECTION ============ */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); color: rgba(255,255,255,0.9); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: rgba(255,255,255,0.75); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head h2 { margin-bottom: 14px; }
.section-head p { font-size: 1.1rem; }
.eyebrow { color: var(--accent); font-weight: 600; text-transform: uppercase; font-size: .82rem; letter-spacing: .12em; margin-bottom: 8px; display: inline-block; }

/* ============ SERVICES GRID ============ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.service-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: all .25s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
    background: var(--primary);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .25s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.service-card:hover::before { transform: scaleY(1); }
.service-icon {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #fff;
}
.service-icon svg { width: 30px; height: 30px; }
.service-card h3 { color: var(--primary); }
.service-card .meta {
    display: inline-block;
    font-size: .8rem;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 10px;
}
.service-card .card-cta {
    margin-top: auto;
    padding-top: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 600;
    font-size: .95rem;
}

/* ============ PRODUCT DETAIL ============ */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 48px;
    align-items: start;
    background: #fff;
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    margin-bottom: 32px;
    box-shadow: var(--shadow-sm);
}
.product-detail.reverse { grid-template-columns: 1.4fr 1fr; }
.product-detail.reverse .product-visual { order: 2; }
.product-visual {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: 32px;
    border-radius: var(--radius);
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.product-visual .p-icon { width: 64px; height: 64px; background: rgba(255,255,255,0.15); border-radius: 16px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.product-visual .p-icon svg { width: 36px; height: 36px; color: var(--accent-light); }
.product-visual h3 { color: #fff; font-size: 1.4rem; margin-bottom: 8px; }
.product-visual .subtitle { color: var(--accent-light); font-size: .95rem; margin-bottom: 20px; font-weight: 500; }
.product-features { list-style: none; padding: 0; }
.product-features li {
    padding: 10px 0 10px 32px;
    position: relative;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}
.product-features li:last-child { border-bottom: 0; }
.product-features li::before {
    content: '✓';
    position: absolute;
    left: 0; top: 10px;
    width: 22px; height: 22px;
    background: var(--success);
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .8rem;
    font-weight: 700;
}
.product-features li strong { color: var(--primary); }

@media (max-width: 900px) {
    .product-detail, .product-detail.reverse { grid-template-columns: 1fr; padding: 24px; }
    .product-detail.reverse .product-visual { order: 0; }
}

/* ============ CTA BAND ============ */
.cta-band {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.85); font-size: 1.1rem; max-width: 640px; margin: 12px auto 28px; }

/* ============ ABOUT ============ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.about-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
}
.about-values .value {
    background: #fff;
    padding: 24px;
    border-radius: var(--radius);
    border-left: 4px solid var(--accent);
    box-shadow: var(--shadow-sm);
}
.about-values .value h4 { color: var(--primary); margin-bottom: 6px; }
.about-values .value p { margin-bottom: 0; font-size: .95rem; }

@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ============ CONTACT FORM ============ */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 48px;
    align-items: start;
}
.contact-info {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: 40px;
    border-radius: var(--radius-lg);
    position: sticky;
    top: 100px;
}
.contact-info h3 { color: #fff; margin-bottom: 20px; }
.contact-info p { color: rgba(255,255,255,0.85); }
.info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}
.info-item:last-child { border-bottom: 0; }
.info-icon {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.12);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.info-icon svg { width: 20px; height: 20px; color: var(--accent-light); }
.info-item .label { color: var(--accent-light); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; margin-bottom: 2px; }
.info-item .value { color: #fff; font-size: .98rem; font-weight: 500; }
.info-item a { color: #fff; }

.contact-form {
    background: #fff;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
.form-group { margin-bottom: 20px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text);
    font-size: .92rem;
}
.form-group label .required { color: #C0392B; }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    color: var(--text);
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.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(61,61,92,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group .hint { font-size: .82rem; color: var(--text-light); margin-top: 6px; }

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    background: var(--bg-alt);
    border-radius: var(--radius);
    margin-bottom: 20px;
}
.form-check input { margin-top: 3px; flex-shrink: 0; }
.form-check label { font-size: .88rem; color: var(--text-muted); margin: 0; font-weight: 400; line-height: 1.5; }

.form-message {
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    display: none;
    font-weight: 500;
}
.form-message.success { display: block; background: #E6F5EC; color: #1F6B44; border-left: 4px solid var(--success); }
.form-message.error { display: block; background: #FCEAEA; color: #A02525; border-left: 4px solid #C0392B; }

@media (max-width: 900px) {
    .contact-layout { grid-template-columns: 1fr; }
    .contact-info { position: static; padding: 28px; }
    .contact-form { padding: 28px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
}

/* ============ SOFOM NOTICE ============ */
.sofom-notice {
    background: #FFF9EB;
    border: 1px solid #F0D998;
    border-left: 4px solid var(--warning);
    padding: 20px 24px;
    border-radius: var(--radius);
    margin: 20px 0;
    font-size: .88rem;
    color: #5A4218;
    line-height: 1.6;
}
.sofom-notice strong { color: var(--warning); }

/* ============ LEGAL PAGE ============ */
.legal-content {
    max-width: 860px;
    margin: 0 auto;
    background: #fff;
    padding: 48px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.legal-content h2 { margin-top: 32px; margin-bottom: 12px; font-size: 1.5rem; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { margin-top: 24px; margin-bottom: 10px; font-size: 1.15rem; color: var(--primary-light); }
.legal-content p, .legal-content li { color: var(--text); line-height: 1.75; }
.legal-content ul { margin: 12px 0 16px 24px; }
.legal-content ul li { margin-bottom: 6px; }
.legal-content .updated { color: var(--text-light); font-size: .88rem; font-style: italic; }

@media (max-width: 900px) { .legal-content { padding: 24px; } }

/* ============ PAGE HEADER ============ */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute;
    top: -30%; right: -10%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(201,169,97,0.12) 0%, transparent 70%);
    border-radius: 50%;
}
.page-header h1 { color: #fff; position: relative; margin-bottom: 12px; }
.page-header p { color: rgba(255,255,255,0.85); font-size: 1.15rem; max-width: 640px; margin: 0 auto; position: relative; }

/* ============ FOOTER ============ */
.site-footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.8);
    padding: 60px 0 30px;
    font-size: .92rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-brand h4 { color: #fff; margin-bottom: 12px; font-size: 1.05rem; }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: .88rem; line-height: 1.6; }
.footer-col h5 { color: #fff; text-transform: uppercase; font-size: .82rem; letter-spacing: .1em; margin-bottom: 18px; font-family: var(--font-head); font-weight: 600; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,0.7); font-size: .92rem; }
.footer-col a:hover { color: var(--accent-light); }
.footer-col p { color: rgba(255,255,255,0.7); font-size: .88rem; line-height: 1.6; margin-bottom: 8px; }

.footer-legal {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    font-size: .78rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.7;
}
.footer-legal p { color: rgba(255,255,255,0.55); font-size: .78rem; margin-bottom: 10px; }
.footer-legal strong { color: rgba(255,255,255,0.8); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    flex-wrap: wrap;
    gap: 12px;
}
.footer-bottom span { color: rgba(255,255,255,0.5); font-size: .82rem; }
.footer-bottom .links a { color: rgba(255,255,255,0.6); font-size: .82rem; margin-left: 20px; }

@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .footer-bottom .links a { margin: 0 20px 0 0; }
}
@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* ============ FEATURE STRIP ============ */
.feature-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    padding: 40px 0;
    text-align: center;
}
.feature-strip .item svg { width: 40px; height: 40px; color: var(--accent); margin: 0 auto 10px; }
.feature-strip .item h4 { color: var(--primary); font-size: 1rem; }
.feature-strip .item p { font-size: .88rem; margin: 0; }

/* ============ PROCESS TIMELINE ============ */
.process {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    counter-reset: step;
}
.step {
    background: #fff;
    border: 1px solid var(--border);
    padding: 28px 20px;
    border-radius: var(--radius-lg);
    text-align: center;
    position: relative;
    counter-increment: step;
}
.step::before {
    content: counter(step);
    display: block;
    width: 46px; height: 46px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 46px;
    margin: 0 auto 14px;
}
.step h4 { color: var(--primary); font-size: 1.02rem; margin-bottom: 6px; }
.step p { font-size: .88rem; margin: 0; }

/* ============ UTIL ============ */
.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }
