
:root {
    --primary: #1f1d1d;
    --primary-light: #2c2827;
    --accent: #c49a6c;
    --accent-hover: #a57c50;
    --accent-glow: rgba(196, 154, 108, 0.2);
    --secondary: #5c5552;
    --text: #2b2826;
    --text-muted: #736c67;
    --bg-light: #faf8f5;
    --bg-white: #ffffff;
    --border: #eae5df;
    --success: #15803d;
    --shadow-sm: 0 2px 5px rgba(0,0,0,0.04);
    --shadow-md: 0 6px 18px rgba(0,0,0,0.06);
    --shadow-lg: 0 14px 35px rgba(0,0,0,0.1);
    --radius: 4px;
    --radius-lg: 10px;
    --transition: all 0.25s ease;
}

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

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background: var(--primary);
    color: #e5e0dc;
    font-size: 0.85rem;
    padding: 7px 0;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.contact-quick {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.top-bar-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.top-wa {
    color: #4ade80;
    text-decoration: none;
    font-weight: 600;
}

.top-wa:hover {
    text-decoration: underline;
}

.top-cta {
    background: var(--accent);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
    transition: var(--transition);
}

.top-cta:hover {
    background: var(--accent-hover);
}

.main-nav-bar {
    padding: 14px 0;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--primary);
}

.logo-mark {
    background: var(--primary);
    color: var(--accent);
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: 1px;
    padding: 6px 10px;
    border-radius: 4px;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.logo-text strong {
    color: var(--accent);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary);
    margin: 5px 0;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 16px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 500;
    padding: 6px 4px;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--accent-hover);
    border-bottom-color: var(--accent-hover);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #1f1d1d 0%, #2c2827 100%);
    color: #fff;
    padding: 70px 0;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
}

.hero-tag {
    display: inline-block;
    background: rgba(196, 154, 108, 0.2);
    color: #e5c9a9;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
    border: 1px solid rgba(196, 154, 108, 0.3);
}

.hero-title {
    font-size: 2.6rem;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 28px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 26px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(196, 154, 108, 0.35);
}

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

.btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 24px;
}

.metric-item strong {
    display: block;
    font-size: 1.5rem;
    color: var(--accent);
}

.metric-item span {
    font-size: 0.8rem;
    color: #94a3b8;
}

.hero-img-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-img-card img {
    width: 100%;
    height: auto;
    display: block;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    padding: 50px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.page-header p {
    font-size: 1.05rem;
    color: #cbd5e1;
    max-width: 750px;
    margin: 0 auto;
}

/* Sections */
.section {
    padding: 60px 0;
}

.section-alt {
    background-color: var(--bg-light);
}

.section-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 40px;
}

.section-subtitle {
    color: var(--accent-hover);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 14px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Grids */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
    align-items: center;
}

.card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: #cbd5e1;
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 18px;
    display: inline-block;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.card-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 18px;
}

.card-link {
    color: var(--accent-hover);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.card-link:hover {
    text-decoration: underline;
}

.media-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.media-card:hover {
    box-shadow: var(--shadow-lg);
}

.media-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.media-card-body {
    padding: 24px;
}

/* Calculator */
.calc-wrapper {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 35px;
    box-shadow: var(--shadow-md);
}

.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--primary);
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
    background: #fff;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-hover);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.calc-result-box {
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.calc-price-total {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    margin: 15px 0 5px;
}

.calc-breakdown {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 20px;
    padding-top: 16px;
    font-size: 0.9rem;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

/* Reclamaciones */
.reclamacion-container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.reclamacion-header {
    border-bottom: 2px solid var(--border);
    padding-bottom: 20px;
    margin-bottom: 25px;
}

.rec-badge-box {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

/* Footer */
.site-footer {
    background: var(--primary);
    color: #cbd5e1;
    padding-top: 60px;
    border-top: 3px solid var(--accent);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr 1.3fr;
    gap: 30px;
    padding-bottom: 40px;
}

.footer-logo .logo-mark {
    background: var(--primary-light);
}

.footer-logo .logo-text {
    color: #fff;
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 15px 0;
    color: #94a3b8;
}

.legal-badge-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 0.85rem;
}

.ruc-tag {
    color: #fff;
    font-weight: 600;
}

.sunat-tag {
    color: #94a3b8;
    font-size: 0.78rem;
}

.footer-title {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 8px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent);
}

.footer-links, .footer-contact, .footer-legal-links {
    list-style: none;
}

.footer-links li, .footer-legal-links li {
    margin-bottom: 9px;
}

.footer-links a, .footer-legal-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover, .footer-legal-links a:hover {
    color: var(--accent);
    padding-left: 4px;
}

.footer-contact li {
    font-size: 0.88rem;
    margin-bottom: 10px;
    line-height: 1.5;
}

.footer-contact strong {
    color: #fff;
    display: block;
}

.footer-contact a {
    color: #cbd5e1;
    text-decoration: none;
}

.footer-contact a:hover {
    color: var(--accent);
}

.reclamaciones-widget {
    margin-bottom: 20px;
}

.libro-link {
    display: inline-block;
    text-decoration: none;
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    transition: var(--transition);
}

.libro-link:hover {
    transform: scale(1.02);
}

.libro-img {
    max-width: 140px;
    height: auto;
    display: block;
    margin-bottom: 6px;
}

.libro-caption {
    display: block;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.2;
}

.libro-caption small {
    font-size: 0.68rem;
    color: #64748b;
    font-weight: 400;
}

.footer-bottom {
    background: #141212;
    padding: 22px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.82rem;
    color: #94a3b8;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.compliance-note {
    max-width: 600px;
    font-size: 0.75rem;
    line-height: 1.4;
    color: #64748b;
}

@media (max-width: 992px) {
    .hero-grid, .grid-3, .calc-grid, .footer-content {
        grid-template-columns: 1fr;
    }
    .grid-2 {
        grid-template-columns: 1fr;
    }
    .nav-toggle {
        display: block;
    }
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--border);
        padding: 20px;
        box-shadow: var(--shadow-lg);
    }
    .nav-menu.open {
        display: block;
    }
    .nav-menu ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}
