/* ============================================
   VARIABLES & DESIGN TOKENS
   ============================================ */
:root {
    /* Colors - Bold Industrial */
    --color-primary: #111111;
    /* Pitch black */
    --color-primary-dark: #000000;
    --color-primary-light: #2c2c2c;

    --color-accent: #ff4d00;
    /* Safety Orange - High Impact */
    --color-accent-dark: #cc3d00;
    --color-accent-light: #ff6a2a;

    --color-steel-blue: #2c3e50;

    --color-success: #00b894;
    --color-warning: #fdcb6e;
    --color-danger: #d63031;

    --color-bg: #f5f5f5;
    --color-bg-alt: #ffffff;
    --color-bg-dark: #e0e0e0;

    --color-text: #1a1a1a;
    --color-text-light: #636e72;
    --color-text-inverse: #ffffff;

    --color-border: #dfe6e9;
    --color-border-light: #ecf0f1;

    /* Typography - Impactful */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1.125rem;
    /* Increased base size */
    --font-size-lg: 1.25rem;
    --font-size-xl: 1.5rem;
    --font-size-2xl: 2rem;
    --font-size-3xl: 3rem;
    --font-size-4xl: 4.5rem;
    /* Massive headings */

    --line-height-tight: 1.1;
    --line-height-base: 1.5;

    /* Spacing */
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 5rem;
    --space-3xl: 8rem;

    /* Effects - Stronger Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.15);

    --radius-sm: 2px;
    /* Sharper corners for industrial look */
    --radius-md: 4px;
    --radius-lg: 0px;
    /* Square aesthetic */

    --transition-base: 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: var(--line-height-tight);
    font-weight: 800;
    /* Extra Bold */
    letter-spacing: -0.02em;
    color: var(--color-primary);
}

a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--color-accent-dark);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    background: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(10px);
    color: var(--color-text-inverse);
    padding: var(--space-md) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--color-accent);
}

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

.logo-text {
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.main-nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.main-nav a {
    color: var(--color-text-inverse);
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    font-weight: 700;
}

.main-nav a:hover {
    color: var(--color-accent);
    text-decoration: none;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8)), url('../hero.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--color-text-inverse);
    padding: 12rem 0 8rem;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    margin-bottom: -4rem;
}

.hero-title-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: var(--space-lg);
}

.hero-logo {
    height: 120px;
    width: auto;
}

.hero h1 {
    font-size: var(--font-size-4xl);
    line-height: 1;
    margin-bottom: 0;
    text-transform: uppercase;
    max-width: 900px;
    color: var(--color-text-inverse);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    max-width: 700px;
    border-left: 4px solid var(--color-accent);
    padding-left: 1.5rem;
    margin-bottom: 3rem;
}

.hero-meta {
    display: flex;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.1);
    display: inline-flex;
    padding: 1rem 2rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: var(--space-2xl) 0;
    scroll-margin-top: 100px;
}

.section-header {
    margin-bottom: 4rem;
    text-align: left;
}

.section-header h2 {
    font-size: 3rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-header h2::before {
    content: '';
    display: block;
    width: 12px;
    height: 48px;
    background: var(--color-accent);
}

/* ============================================
   CASE SUMMARY (IMPACT CARD)
   ============================================ */
.case-card {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    background: white;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.case-intro {
    padding: 4rem;
    font-size: 1.25rem;
    border-right: 1px solid var(--color-border);
}

.markup-price-block {
    background: var(--color-primary);
    color: white;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.markup-price-block::after {
    content: '!';
    position: absolute;
    right: -20px;
    top: -40px;
    font-size: 20rem;
    font-weight: 900;
    opacity: 0.1;
    color: white;
}

.data-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.big-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--color-accent);
}

.strike-through {
    text-decoration: line-through;
    opacity: 0.6;
}

.price-comparison-images {
    grid-column: 1 / -1;
    height: 300px;
    background-image: url('../detail.png');
    background-size: cover;
    background-position: center;
    position: relative;
}

.price-comparison-images.real-evidence {
    background-image: url('../insoex_cinta_rota.png');
    background-position: center 30%;
    /* Adjust to show the break */
}

.price-comparison-images::after {
    content: 'EVIDENCIA FÍSICA';
    position: absolute;
    bottom: 0;
    left: 0;
    background: var(--color-accent);
    color: black;
    font-weight: 900;
    padding: 0.5rem 2rem;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
}

/* ============================================
   TIMELINE
   ============================================ */
.timeline {
    border-left: 4px solid var(--color-primary);
    margin-left: 1rem;
    padding: 2rem 0;
}

.timeline-item {
    margin-bottom: 4rem;
    position: relative;
    padding-left: 3rem;
}

.timeline-marker {
    position: absolute;
    left: -13px;
    top: 5px;
    width: 22px;
    height: 22px;
    background: var(--color-bg);
    border: 4px solid var(--color-primary);
    border-radius: 50%;
}

.timeline-item.important .timeline-marker {
    background: var(--color-accent);
    border-color: var(--color-accent);
    box-shadow: 0 0 0 8px rgba(255, 77, 0, 0.2);
}

.timeline-date {
    font-weight: 900;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-light);
    display: block;
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.evidence-image-container {
    margin-top: 1.5rem;
    border: 1px solid var(--color-border);
    padding: 0.5rem;
    background: #f8f9fa;
}

.evidence-img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 400px;
    object-fit: cover;
    object-position: bottom;
    /* Ensure bottom of image is always visible */
}

.evidence-caption {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--color-text-light);
    font-style: italic;
    text-align: center;
}

.budget-list {
    list-style: none;
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--color-primary);
}

.budget-list li {
    padding: 0.25rem 0;
    font-weight: 500;
}

/* ============================================
   QUOTE BLOCK
   ============================================ */
.quote-block {
    background: var(--color-primary);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    margin: 4rem 0;
    position: relative;
}

.quote-text {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    max-width: 1000px;
    margin: 0 auto;
}

.quote-caption {
    margin-top: 1.5rem;
    font-size: 1.125rem;
    color: var(--color-accent);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.1em;
}

/* ============================================
   FAQ
   ============================================ */
.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid var(--color-border);
    background: white;
}

.faq-item summary {
    padding: 2rem;
    background: white;
    font-weight: 700;
    font-size: 1.25rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    color: var(--color-accent);
    font-size: 1.5rem;
    font-weight: 800;
}

.faq-item[open] summary::after {
    content: '-';
}

.faq-answer {
    padding: 0 2rem 2rem;
    background: white;
    line-height: 1.6;
    color: var(--color-text);
}

.faq-answer ul,
.faq-answer ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

/* ============================================
   FORMS & DATA
   ============================================ */
.experience-form-container {
    background: var(--color-primary);
    color: white;
    border-radius: 0;
    padding: 3rem;
    margin-bottom: 4rem;
}

.experience-form-container h3 {
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.experience-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.form-group label {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 0;
    font-family: var(--font-primary);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-accent);
    background: rgba(0, 0, 0, 0.3);
}

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

.char-count {
    text-align: right;
    font-size: 0.75rem;
    opacity: 0.6;
}

.checkbox-group {
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
}

.checkbox-group input {
    width: 24px;
    height: 24px;
    margin-top: 2px;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* DATA MANAGEMENT (Import/Export) */
.data-management {
    background: white;
    padding: 2rem;
    border: 1px solid var(--color-border);
    margin-bottom: 4rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.data-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}


/* EXPERIENCES LIST */
.experiences-list-container {
    margin-top: 4rem;
}

.experiences-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 1rem;
}

.experience-card {
    background: white;
    border: 1px solid var(--color-border);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--color-accent);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.experience-author {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-primary);
}

.experience-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--color-text-light);
    align-items: center;
}

.experience-type {
    background: var(--color-primary);
    color: white;
    padding: 0.25rem 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.experience-actions {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
    display: flex;
    gap: 1rem;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--color-primary);
    color: white;
    padding: 6rem 0 3rem;
    margin-top: 4rem;
    border-top: 8px solid var(--color-accent);
}

.notice-box {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem;
    margin-bottom: 3rem;
    background: rgba(255, 255, 255, 0.05);
}

.site-footer .notice-box h4 {
    color: #ffffff !important;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.footer-link {
    color: white;
    border-bottom: 1px solid var(--color-accent);
    padding-bottom: 0.25rem;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--color-accent);
    border-bottom-width: 3px;
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    opacity: 0.5;
    font-size: 0.875rem;
}

/* ============================================
   OTHER
   ============================================ */
.highlight-text {
    background: linear-gradient(120deg, rgba(255, 77, 0, 0.2) 0%, rgba(255, 77, 0, 0.2) 100%);
    background-repeat: no-repeat;
    background-size: 100% 0.5em;
    background-position: 0 88%;
    font-weight: 700;
}

.btn {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 800;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    cursor: pointer;
    border: none;
    transition: all var(--transition-base);
}

.btn-primary {
    background: var(--color-accent);
    color: white;
}

.btn-secondary {
    background: #333;
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--color-primary);
    color: white;
}

.btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.2);
}

.btn:active {
    transform: translate(2px, 2px);
    box-shadow: 0 0 0;
}

.status-badge {
    display: inline-block;
    background: var(--color-danger);
    color: white;
    padding: 0.5rem 1rem;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(17, 17, 17, 0.98);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .main-nav.active {
        max-height: 300px;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 1rem 0;
        gap: 0;
    }

    .main-nav li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-nav a {
        display: block;
        padding: 1rem 2rem;
    }

    .quote-text {
        font-size: 1.5rem !important;
    }

    .case-card {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .markup-price-block {
        padding: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .price-comparison-images {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.25rem;
    }

    .section-header h2 {
        font-size: 1.25rem;
    }

    .timeline-content {
        padding: 1rem;
    }

    .experience-form-container,
    .experiences-list-container {
        padding: 1rem;
    }

    .form-actions {
        flex-direction: column;
    }
}