/* =========================================
   CASE STUDY STYLES
   Role: Specific styles for all Case Study pages
   Order: Header > Hero > Layout > Components > Footer > Responsive
   ========================================= */

/* -----------------------------------------
   1. HEADER & NAVIGATION
   ----------------------------------------- */
.cs-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    z-index: 1001;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
}

/* Back Link Button */
.back-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 30px;
    background: var(--bg-tech-grey);
    padding: 4px 24px 4px 6px;
    border-radius: 50px;
    border: 2px solid var(--text-main);
    transition: var(--transition-fast);
    box-shadow: var(--tactile-shadow-s), var(--tactile-shadow-inset);
}

.back-link .label {
    margin: 0;
    line-height: 1;
}

.back-link:hover {
    transform: translate(calc(var(--hover-lift) * 0.5), calc(var(--hover-lift) * 0.5));
    box-shadow: var(--tactile-shadow-ml), var(--tactile-shadow-inset);
}

.back-link:active {
    transform: translate(0, 0);
    box-shadow: var(--tactile-shadow-xs);
}

.back-link .icon {
    background: var(--accent-yellow);
    color: var(--navy-dark);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
    transition: transform 0.6s ease;
    border: 2px solid var(--text-main);
}

.back-link:hover {
    transform: translate(calc(var(--hover-lift) * 0.5), calc(var(--hover-lift) * 0.5));
    box-shadow: var(--tactile-shadow-ml), var(--tactile-shadow-inset);
}

.back-link:hover .icon {
    transform: rotate(-360deg);
}

/* -----------------------------------------
   2. HERO SECTION
   ----------------------------------------- */
.cs-hero-full {
    position: relative;
    width: 100%;
    height: 60vh;
    overflow: hidden;
    border-bottom-left-radius: 60px;
    border-bottom-right-radius: 60px;
    margin-bottom: 60px;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    filter: brightness(0.7);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.hero-text-container h1 {
    color: var(--bg-white);
    font-size: 3.5rem;
    margin: 1rem 0;
    font-weight: 800;
}

.categoria-white {
    color: var(--bg-white);
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

.hero-subtitle {
    color: var(--bg-white);
    font-size: 1.35rem;
    margin-top: 10px;
    opacity: 0.9;
}

/* -----------------------------------------
   3. LAYOUT & WRAPPERS
   ----------------------------------------- */
.case-study-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Project Meta Grid (Role, Timeline, Tools) */
.project-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    width: 100%;
    padding: 60px 0;
    border-color: var(--bg-tech-grey);
    margin-bottom: 100px;
}

.meta-col {
    padding: 0 1em;
}

.meta-col.align-left {
    text-align: left;
}

.meta-col.align-center {
    text-align: center;
}

.meta-col.align-right {
    text-align: right;
}

.label {
    display: block;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary-blue);
    margin-bottom: 10px;
    font-weight: 700;
}

.meta-col .value {
    font-size: 24px;
    font-weight: 500;
    color: var(--text-main);
}

/* Project Statement (Intro Text) */
.project-statement {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 60px auto;
}

.project-statement p {
    font-size: 1.5rem;
    line-height: 1.7;
    color: var(--text-muted);
    text-align: left;
}

/* Phase Index (Roadmap) */
.phase-index {
    width: 100%;
    background: var(--bg-soft-blue-grey);
    padding: 100px 0;
    margin: 60px 0 100px;
    border-top: 1px solid var(--bg-tech-grey);
    border-bottom: 1px solid var(--bg-tech-grey);
    text-align: center;
}

.phase-index h3 {
    color: var(--text-main);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 80px;
    font-weight: 900;
}

.phase-index ul {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    list-style: none;
}

.phase-index ul::before {
    content: '';
    position: absolute;
    top: 32px;
    left: 50px;
    right: 50px;
    height: 2px;
    background: #CBD5E1;
    z-index: 0;
}

.phase-index li {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    justify-content: center;
}

.phase-index a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease;
    width: 100%;
}

.phase-icon {
    font-size: 1.8rem;
    background: var(--bg-white);
    color: var(--text-main);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-m);
    border: 2px solid var(--text-main);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--tactile-shadow-m);
}

.phase-index a:hover {
    color: var(--primary-blue);
}

.phase-index a:hover .phase-icon {
    border-color: var(--navy-dark);
    color: var(--navy-dark);
    background: var(--accent-yellow);
    transform: translate(var(--hover-lift), var(--hover-lift));
    box-shadow: var(--tactile-shadow-l);
}

.phase-index a .text-link {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    background: var(--bg-soft-blue-grey);
    padding: 5px 12px;
    z-index: 2;
    border-radius: 4px;
}

/* Phase Sections (1. Research, 2. Design...) */
.phase-section {
    padding: 80px 0;
    border-color: var(--bg-tech-grey);
    position: relative;
}

.phase-section:last-of-type {
    border-bottom: none;
}

.phase-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), #0088FF);
    border-radius: 2px;
}

.phase-section h2 {
    font-size: 2.2rem;
    color: var(--text-main);
    margin-bottom: 3rem;
    font-weight: 700;
}

.phase-section h3 {
    font-size: 1.25rem;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 3rem 0 1.5rem 0;
    font-weight: 600;
}

.phase-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* -----------------------------------------
   4. CONTENT COMPONENTS
   ----------------------------------------- */

/* Strategy Cards */
.strategy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 80px;
}

.strategy-card {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius-m);
    border: 2px solid var(--text-main);
    box-shadow: var(--tactile-shadow-l);
    transition: var(--transition-fast);
}

.strategy-card:hover {
    transform: translate(var(--hover-lift), var(--hover-lift));
    box-shadow: var(--tactile-shadow-xl);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.icon {
    font-size: 2rem;
}

.strategy-card .label {
    margin-bottom: 0px;
}

.strategy-card p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Highlight Box */
.highlight-box {
    background: #fff8e6;
    padding: 30px;
    border-radius: var(--radius-m);
    border: 2px solid var(--text-main);
    box-shadow: inset 4px 4px 0px rgba(0, 0, 0, 0.05), var(--tactile-shadow-ml);
    margin: 3rem 0;
}

.highlight-box p {
    margin: 0;
    font-weight: 700;
    color: var(--text-main);
}

/* Charts & Stats */
.charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 3rem 0;
}

.chart-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: var(--radius-m);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.chart-card h4 {
    font-size: 1.1rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-weight: 600;
}

.chart-bar {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.chart-label {
    width: 120px;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;

}

.chart-value-container {
    flex-grow: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chart-bar-fill {
    height: 30px;
    background: linear-gradient(90deg, var(--primary-blue), #0088FF);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    padding-left: 5px;
    color: var(--bg-white);
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 40px;
}

/* Cognitive Grid */
.cognitive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin: 3rem 0;
}

.cognitive-card {
    background: var(--bg-soft-blue-grey);
    padding: 30px;
    border-radius: var(--radius-m);
    text-align: center;
    transition: 0.3s;
}

.cognitive-card:hover {
    transform: translate(calc(var(--hover-lift) * 1.25), calc(var(--hover-lift) * 1.25));
    box-shadow: 0 10px 25px rgba(0, 89, 255, 0.15);
}

.cognitive-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.cognitive-card h4 {
    color: var(--primary-blue);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.cognitive-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
}

/* User Personas */
.persona-container {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius-l);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    margin: 3rem 0;
}

.persona-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--bg-tech-grey);
}

.persona-avatar {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--bg-white);
    border-radius: var(--radius-m);
    overflow: hidden;
    border: 1px solid var(--text-main);
}

.persona-avatar .persona-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
    max-width: 100%;
    border-radius: 0;
    box-shadow: none;
    cursor: default;
}

.persona-intro h3 {
    font-size: 2rem;
    color: var(--text-main);
    margin-bottom: 5px;
    text-transform: none;
    letter-spacing: 0;
}

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

.persona-details {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.detail-item {
    text-align: center;
}

.detail-item .label {
    font-size: 0.8rem;
    color: var(--primary-blue);
    margin-bottom: 5px;
}

.detail-item .value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
}

.persona-section {
    margin-bottom: 25px;
}

.persona-section h4 {
    color: var(--primary-blue);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.persona-section ul {
    list-style: none;
    padding: 0;
}

.persona-section li {
    padding: 8px 0 8px 25px;
    position: relative;
    color: var(--text-muted);
}

.persona-section li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-size: 1.5rem;
    line-height: 1;
}

/* Test Results Grid */
.test-results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin: 3rem 0;
}

.test-results-grid .test-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.test-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: var(--radius-m);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.test-card h4 {
    color: var(--primary-blue);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.test-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--bg-tech-grey);
}

.test-stat:last-child {
    border-bottom: none;
}

.test-stat-label {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.test-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
}

/* Study Box */
.study-box {
    background: var(--text-main);
    color: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius-l);
    margin: 3rem 0;
}

.study-box h4 {
    color: var(--primary-blue);
    font-size: 1.2rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.study-box p {
    color: #ddd;
    line-height: 1.8;
}

/* Solution Grid */
.solution-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin: 3rem 0;
}

.sol-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: var(--radius-m);
    border: 2px solid var(--text-main);
    box-shadow: var(--tactile-shadow-ml);
    position: relative;
    transition: var(--transition-fast);
}

.sol-card:hover {
    transform: translate(calc(var(--hover-lift) * 0.75), calc(var(--hover-lift) * 0.75));
    border-color: var(--primary-blue);
    box-shadow: var(--tactile-shadow-xl);
}

.sol-num {
    position: absolute;
    top: -15px;
    left: 25px;
    background: var(--primary-blue);
    color: var(--bg-white);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

.sol-card strong {
    display: block;
    color: var(--text-main);
    font-size: 1.2rem;
    margin: 15px 0 10px 0;
}

.sol-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

/* Donut Charts */
.donut-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin: 3rem 0;
}

.donut-grid .donut-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.donut-item {
    display: flex;
    flex-direction: col;
    align-items: center;
    gap: 65px;
    padding: 50px 50px;
    background: var(--bg-white);
    border-radius: var(--radius-l);
    border: 1px solid var(--bg-tech-grey);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: var(--transition-smooth);
}

.donut-item:hover {
    transform: translate(calc(var(--hover-lift) * 1.25), calc(var(--hover-lift) * 1.25));
    box-shadow: 0 10px 25px rgba(0, 89, 255, 0.08);
    border-color: var(--primary-blue);
}

.donut-text {
    width: 100%;
    text-align: left;
}

.donut-question {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 20px;
}

.donut-legend {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-muted);
    width: 100%;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 6px;
}

.legend-yes {
    background-color: #EC6543;
}

.legend-no {
    background-color: #FFE9DD;
}

.donut-visual {
    position: relative;
    width: 150px;
    height: 150px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.donut-hole {
    width: 80px;
    height: 80px;
    background: var(--bg-white);
    border-radius: 50%;
    z-index: 2;
}

.donut-label {
    position: absolute;
    background: var(--text-main);
    color: var(--bg-white);
    padding: 5px 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    z-index: 3;
}

/* Empathy Map */
.empathy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 3rem 0;
}

.empathy-quadrant {
    background: var(--bg-soft-blue-grey);
    padding: 30px;
    border-radius: var(--radius-m);
    border: 1px solid var(--bg-tech-grey);
}

.empathy-quadrant h4 {
    color: var(--primary-blue);
    font-size: 1.1rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.empathy-quadrant ul {
    list-style: none;
    padding: 0;
}

.empathy-quadrant li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    color: var(--text-muted);
    line-height: 1.6;
}

.empathy-quadrant li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: bold;
}

/* -----------------------------------------
   5. VISUAL & MEDIA COMPONENTS
   ----------------------------------------- */
.case-study-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-m);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin: 2rem 0;
    display: block;
    border: 1px solid var(--bg-tech-grey);
}

.step-content img,
.phase-section img {
    max-width: 85%;
    display: block;
    margin: 3rem auto;
    height: auto;
    border-radius: var(--radius-m);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    cursor: zoom-in;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-content img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 50, 200, 0.15);
}

/* Long Image Container (Scrollable Mockup) */
.long-image-container {
    width: 100%;
    max-height: 700px;
    overflow-y: auto;
    border: 2px solid var(--text-main);
    border-radius: var(--radius-m);
    box-shadow: var(--tactile-shadow-l);
    margin-top: 2rem;
    position: relative;
    background: #f8f9fa;
    scrollbar-width: thin;
}

.long-image-container:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(0, 89, 255, 0.2), var(--tactile-shadow-l);
}

.long-image-container img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 !important;
    max-width: 100% !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

/* Browser Mockup Header */
.browser-header {
    height: 35px;
    background: #eee;
    border-bottom: 2px solid var(--text-main);
    display: flex;
    align-items: center;
    padding: 0 15px;
    gap: 8px;
    position: sticky;
    top: 0;
    z-index: 5;
}

.browser-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    border: 1px solid #999;
}

.browser-dot:nth-child(1) {
    background: #ff5f56;
    border-color: #e0443e;
}

.browser-dot:nth-child(2) {
    background: #ffbd2e;
    border-color: #dea123;
}

.browser-dot:nth-child(3) {
    background: #27c93f;
    border-color: #1aab29;
}

/* -----------------------------------------
   6. STYLE GUIDE & SHOWCASE
   ----------------------------------------- */
.design-section-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    margin: 4rem 0;
}

.style-guide-container {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius-l);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.style-guide-title {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 30px;
    font-weight: 700;
}

/* Color Palette */
.color-palette {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.color-swatch {
    text-align: center;
}

.swatch-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 15px auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.swatch-circle:hover {
    transform: scale(1.1);
}

.swatch-info strong {
    display: block;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.swatch-info span {
    color: #888;
    font-family: monospace;
    font-size: 0.9rem;
}

/* Typography Display */
.typography-display {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.type-example {
    display: flex;
    align-items: baseline;
    gap: 30px;
}

.type-label {
    min-width: 100px;
    color: #999;
    font-weight: 600;
    font-size: 0.9rem;
}

.type-preview {
    color: var(--text-muted);
}

.type-preview.h1 {
    font-size: 2.5rem;
    font-weight: 800;
}

.type-preview.h2 {
    font-size: 1.8rem;
    font-weight: 700;
}

.type-preview.body {
    font-size: 1rem;
    line-height: 1.6;
}

/* UI Showcase 3D Cards */
.ui-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
    perspective: 1000px;
}

.screen-mockup {
    background: var(--bg-white);
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    position: relative;
    border: 8px solid var(--text-main);
    aspect-ratio: 9/19.5;
    transition: transform 0.4s ease;
}

.screen-mockup:hover {
    transform: translateY(-15px);
}

.screen-content {
    background: #FAF9F6;
    height: 100%;
    width: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

/* Mockup Internal UI */
.mock-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-top: 20px;
}

.mock-title {
    font-weight: 700;
    font-size: 1.2rem;
}

.mock-card {
    background: var(--bg-white);
    padding: 15px;
    border-radius: var(--radius-m);
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.mock-stat-big {
    font-size: 2rem;
    font-weight: 800;
    color: #FF6B6B;
}

.mock-btn {
    background: #FF6B6B;
    color: var(--bg-white);
    padding: 12px;
    border-radius: var(--radius-m);
    text-align: center;
    font-weight: 600;
    margin-top: auto;
}

/* Mock Alert & Timeline */
.mock-alert {
    background: #E8F5E9;
    color: #2E7D32;
    padding: 15px;
    border-radius: var(--radius-m);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.mock-alert-icon {
    font-size: 1.5rem;
}

.mock-timeline-item {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.mock-time {
    font-size: 0.8rem;
    color: #999;
    min-width: 40px;
}

.mock-event {
    background: var(--bg-white);
    padding: 10px;
    border-radius: 8px;
    flex-grow: 1;
    font-size: 0.9rem;
    border-left: 3px solid #FF6B6B;
}

/* -----------------------------------------
   7. FOOTER & NAVIGATION (Next Project)
   ----------------------------------------- */
.case-study-footer {
    text-align: center;
    padding: 100px 0 0 0;
    margin-top: 100px;
}

.case-study-footer p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.case-study-footer h2 {
    font-size: 3rem;
    color: var(--text-main);
    margin-bottom: 20px;
}

.case-study-footer a {
    color: var(--primary-blue);
    font-weight: 700;
    text-decoration: none;
    font-size: 1.1rem;
}

.case-study-footer a:not(.p-card):hover {
    text-decoration: underline;
}

.other-projects {
    border-top: 2px solid #eee;
    padding-top: 10rem;
    margin-top: 10rem;
}

.other-projects .projects-archive-grid {
    margin-top: 4rem;
}

/* Case Study Utilities */
.content-list {
    list-style-type: disc;
    padding-left: 20px;
    line-height: 1.8;
    color: var(--text-muted);
}

.style-guide-caption {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
    font-style: italic;
}

.typography-showcase {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: var(--radius-m);
}

.type-title {
    margin-top: 0;
    color: var(--text-main);
}

.type-example-large {
    font-size: 2rem;
    font-weight: 800;
    margin: 0.5rem 0;
}

.type-example-medium {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0.5rem 0;
}

.section-spacer {
    margin-top: 6rem;
}

.mb-3 {
    margin-bottom: 3rem;
}

.upper-grid-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6rem;
}

/* -----------------------------------------
   8. RESPONSIVE MEDIA QUERIES
   ----------------------------------------- */
@media (max-width: 768px) {

    /* Header Fixed on Mobile */
    .cs-header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background-color: #0D2355 !important;
        /* Force Navy Dark */
        padding: 1rem;
        z-index: 1001;
    }

    .cs-header.scrolled {
        background-color: #0D2355 !important;
        /* Force Navy Dark */
        padding: 0.8rem 1.5rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    .cs-header.scrolled .back-link {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }

    .cs-header.scrolled .hamburger {
        width: 28px;
        height: 20px;
    }

    .cs-header.scrolled .hamburger span {
        height: 3px;
    }

    /* Back Link simplified */
    .back-link {
        padding: 0;
        gap: 0;
        width: 44px;
        height: 44px;
        background: var(--bg-tech-grey);
        border: 2px solid var(--text-main);
        box-shadow: var(--tactile-shadow-s);
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .back-link:hover,
    .back-link:active {
        transform: none;
        box-shadow: var(--tactile-shadow-s);
    }

    .back-link .label {
        display: none;
    }

    .back-link .icon {
        width: 44px;
        height: 44px;
        margin: 0;
        font-size: 1.5rem;
        background: var(--accent-yellow);
        color: var(--navy-dark);
        border: none;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .cs-header {
        background: rgba(255, 255, 255, 0.9);
    }

    .back-link:hover .icon {
        transform: none;
    }

    .back-link::before {
        display: none !important;
    }

    /* Layout Adjustments */
    .cs-hero-full {
        height: 40vh;
        border-bottom-left-radius: 30px;
        border-bottom-right-radius: 30px;
        margin-bottom: 30px;
    }

    .active-hero-text h1 {
        font-size: 2rem;
    }

    .hero-text-container h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .categoria-white {
        font-size: 0.75rem;
    }

    .case-study-wrapper {
        padding: 0 1.25rem;
    }

    .project-meta-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 30px 0;
        margin-bottom: 50px;
    }

    .meta-col {
        text-align: center !important;
        padding: 0;
    }

    .meta-col .value {
        font-size: 18px;
    }

    .label {
        font-size: 12px;
    }

    .project-statement {
        margin-bottom: 40px;
    }

    .project-statement p {
        font-size: 1rem;
    }

    /* Component Adjustments */
    .phase-index {
        display: none;
    }

    .strategy-grid,
    .cognitive-grid,
    .solution-grid,
    .personas-grid,
    .testing-grid,
    .donut-grid,
    .test-results-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .strategy-card,
    .cognitive-card,
    .sol-card,
    .persona-card,
    .test-card {
        padding: 25px;
        width: 100%;
    }

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

    .persona-header {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }

    /* Persona Details */
    .persona-details {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .detail-item .value {
        font-size: 0.9rem;
        word-wrap: break-word;
    }

    /* Donut Chart */
    .donut-item {
        flex-direction: column !important;
        text-align: center;
    }

    .donut-chart {
        order: 2;
        margin-top: 15px;
    }

    .chart-label {
        order: 1;
        margin-bottom: 0;
    }

    /* Empathy Map */
    .empathy-grid {
        grid-template-columns: 1fr !important;
    }

    /* Chart Bars */
    .chart-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .chart-label {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .chart-value-container {
        width: 100%;
    }

    /* Long Image */
    .long-image-container {
        max-height: 500px;
    }

    .browser-header {
        height: 28px;
        padding: 0 10px;
    }

    .browser-dot {
        width: 8px;
        height: 8px;
    }

    /* Footer */
    .next-project-footer {
        padding: 4rem 1rem;
    }

    .next-project-footer h2 {
        font-size: 1.8rem;
    }
}