/*
Theme Name: René Pedreros Portfolio
Theme URI: https://renepedreros.com
Author: René Pedreros
Author URI: https://renepedreros.com
Description: Tema personalizado para portafolio de Product Designer con casos de estudio y página sobre mí
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rene-portfolio
Tags: portfolio, design, one-column, custom-menu, featured-images, full-width-template
*/

/* ===== UNIFIED STYLES - LIGHT THEME ===== */

/* ===== BASE RESET & CONFIGURATION ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #FFFFFF;              /* Invertido: ahora blanco */
    --white: #0A0A0A;              /* Invertido: ahora negro */
    --gray-light: #2A2A2A;         /* Invertido: gris oscuro para textos */
    --gray-mid: #666666;           /* Gris medio */
    --gray-dark: #F5F5F5;          /* Invertido: gris muy claro para fondos */
    --accent: #e28743;             /* Naranja principal */
    --accent-light: #f5a563;       /* Naranja claro */
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--black);
    color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, .display {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
}

html {
    scroll-behavior: smooth;
}

/* ===== SCROLL PROGRESS ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--accent);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* ===== NAVIGATION ===== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 32px 48px;
    z-index: 1000;
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

nav .container {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-mid) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

nav ul {
    display: flex;
    gap: 48px;
    list-style: none;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* ===== HERO SECTION (HOME) ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 48px 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(226, 135, 67, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    max-width: 1400px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 32px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.2s;
}

.hero h1 {
    font-size: clamp(48px, 8vw, 120px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
    margin-bottom: 48px;
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-mid) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.4s;
}

.hero-subtitle {
    font-size: clamp(20px, 2.5vw, 32px);
    line-height: 1.4;
    color: var(--gray-light);
    max-width: 900px;
    margin-bottom: 64px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.6s;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 48px;
    padding-top: 48px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.8s;
}

.stat-item {
    position: relative;
}

.stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-mid);
    margin-bottom: 12px;
}

.stat-value {
    font-size: 18px;
    line-height: 1.5;
    color: var(--white);
    font-weight: 500;
}




/* ===== CASE HERO SECTION ===== */
.case-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 160px 48px 80px;
    position: relative;
    overflow: hidden;
}

.case-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(226, 135, 67, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.case-hero-content {
    max-width: 1200px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-mid);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 32px;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: var(--accent);
    transform: translateX(-4px);
}

.case-hero-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.2s;
}

.case-hero-title {
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 32px;
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-mid) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.4s;
}

.case-hero-subtitle {
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.5;
    color: var(--gray-light);
    max-width: 900px;
    margin-bottom: 48px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.6s;
}

.case-hero-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    padding-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.8s;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.meta-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-mid);
}

.meta-value {
    font-size: 16px;
    font-weight: 500;
    color: var(--white);
    line-height: 1.4;
}

/* ===== FEATURED IMAGE ===== */
.case-featured-image {
    padding: 0 48px 80px;
}

.container-wide {
    max-width: 1600px;
    margin: 0 auto;
}

.featured-image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: var(--gray-dark);
    aspect-ratio: 16/9;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.featured-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-image-wrapper .image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(226, 135, 67, 0.08) 0%, rgba(245, 245, 245, 0.5) 100%);
    color: var(--gray-mid);
    font-size: 16px;
}

/* ===== CASES SECTION (HOME) ===== */
.case-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 80px 48px;
    position: relative;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.case-section.gray-bg {
    background: var(--gray-dark);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.case-container {
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.case-container.reverse {
    direction: rtl;
}

.case-container.reverse > * {
    direction: ltr;
}

.case-content {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.case-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.case-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 80px;
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.15);
    margin-bottom: 24px;
    line-height: 1;
}

.case-title {
    font-size: clamp(32px, 4vw, 56px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.case-description {
    font-size: 18px;
    line-height: 1.7;
    color: var(--gray-light);
    margin-bottom: 32px;
}

.case-meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 32px;
    font-size: 14px;
    color: var(--gray-mid);
}

.case-meta span {
    position: relative;
}

.case-meta span:not(:last-child)::after {
    content: '·';
    position: absolute;
    right: -14px;
}

.case-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.case-link span {
    transition: transform 0.3s ease;
}

.case-link:hover span {
    transform: translateX(4px);
}

.case-image {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.case-image.visible {
    opacity: 1;
    transform: translateY(0);
}

.image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: var(--gray-dark);
    aspect-ratio: 4/3;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.image-wrapper:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(226, 135, 67, 0.08) 0%, rgba(245, 245, 245, 0.5) 100%);
    color: var(--gray-mid);
    font-size: 14px;
}

/* ===== ABOUT HERO SECTION ===== */
.about-hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 160px 48px 80px;
    position: relative;
    overflow: hidden;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(226, 135, 67, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.about-hero-content {
    max-width: 1200px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.about-section {
    padding: 80px 48px;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
}

.about-profile {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 80px;
    margin-bottom: 120px;
    padding-bottom: 80px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.profile-image-wrapper {
    position: sticky;
    top: 120px;
}

.profile-image {
    width: 300px;
    height: 300px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 32px;
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.intro-text p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--gray-light);
    margin-bottom: 24px;
}

.about-approach {
    margin-bottom: 120px;
    padding-bottom: 80px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
    margin-top: 48px;
}

.approach-item {
    padding: 40px;
    background: var(--gray-dark);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.approach-item:hover {
    border-color: rgba(226, 135, 67, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.approach-icon {
    color: var(--accent);
    margin-bottom: 24px;
}

.approach-item h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.approach-item p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-light);
}

.about-experience {
    margin-bottom: 120px;
    padding-bottom: 80px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.timeline {
    position: relative;
    padding-left: 120px;
    margin-top: 48px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 100px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(0, 0, 0, 0.1);
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 40px;
    margin-bottom: 64px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 93px;
    top: 8px;
    width: 14px;
    height: 14px;
    background: var(--accent);
    border-radius: 50%;
    border: 3px solid var(--black);
}

.timeline-year {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-mid);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.timeline-content {
    padding-left: 0;
}

.timeline-content h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.timeline-company {
    font-size: 16px;
    color: var(--accent);
    margin-bottom: 16px;
    font-weight: 500;
}

.timeline-content p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-light);
    margin-bottom: 20px;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.timeline-tags span {
    font-size: 13px;
    padding: 6px 14px;
    background: var(--gray-dark);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    color: var(--gray-mid);
}

.about-education {
    margin-bottom: 120px;
    padding-bottom: 80px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.education-item {
    padding: 32px;
    background: var(--gray-dark);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.education-item:hover {
    border-color: rgba(226, 135, 67, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.education-degree {
    font-size: 20px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.education-school {
    font-size: 16px;
    color: var(--gray-light);
    margin-bottom: 8px;
}

.education-year {
    font-size: 14px;
    color: var(--gray-mid);
}

.about-tools {
    margin-bottom: 120px;
    padding-bottom: 80px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 48px;
}

.tools-category h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.tools-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tools-list span {
    font-size: 14px;
    padding: 8px 16px;
    background: var(--gray-dark);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    color: var(--gray-light);
    transition: all 0.3s ease;
}

.tools-list span:hover {
    border-color: rgba(226, 135, 67, 0.3);
    color: var(--white);
}

.about-cta {
    padding: 120px 48px;
    background: var(--gray-dark);
    position: relative;
    overflow: hidden;
}

.about-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(226, 135, 67, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: clamp(32px, 4vw, 56px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-text {
    font-size: 18px;
    line-height: 1.7;
    color: var(--gray-light);
    margin-bottom: 48px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.cta-button.primary {
    background: var(--accent);
    color: #FFFFFF;
    border: 1px solid var(--accent);
}

.cta-button.primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(226, 135, 67, 0.3);
}

.cta-button.secondary {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.cta-button.secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ===== CASE STUDY SECTIONS ===== */
.case-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 48px;
}

.section-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.15);
}

.section-header h2 {
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.content-main h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.content-main p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--gray-light);
    margin-bottom: 20px;
}

.content-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-card {
    padding: 24px;
    background: var(--gray-dark);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
}

.sidebar-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sidebar-card p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--gray-light);
}

.sidebar-card ul {
    list-style: none;
    padding: 0;
}

.sidebar-card li {
    font-size: 15px;
    line-height: 1.6;
    color: var(--gray-light);
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
}

.sidebar-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.research-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.method-card {
    padding: 32px;
    background: var(--black);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.method-card:hover {
    border-color: rgba(226, 135, 67, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.method-icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.method-card h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 12px;
}

.method-card p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--gray-light);
}

.insights-section {
    margin-top: 60px;
}

.insights-section h3 {
    font-size: 28px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 32px;
}

.insight-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 32px;
}

.insight-item {
    text-align: center;
    padding: 32px 24px;
    background: var(--black);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
}

.insight-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 16px;
}

.insight-item p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--gray-light);
}

.feature-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
}

.feature-showcase.reverse {
    direction: rtl;
}

.feature-showcase.reverse > * {
    direction: ltr;
}

.feature-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--gray-dark);
    aspect-ratio: 4/3;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-content h4 {
    font-size: 24px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 16px;
}

.feature-content p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-light);
    margin-bottom: 20px;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    font-size: 15px;
    line-height: 1.7;
    color: var(--gray-light);
    padding-left: 24px;
    position: relative;
    margin-bottom: 12px;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.impact-card {
    padding: 40px;
    background: var(--black);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.impact-card.primary {
    background: linear-gradient(135deg, rgba(226, 135, 67, 0.1) 0%, rgba(226, 135, 67, 0.05) 100%);
    border-color: rgba(226, 135, 67, 0.3);
}

.impact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.impact-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 56px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 12px;
}

.impact-label {
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 12px;
}

.impact-description {
    font-size: 15px;
    line-height: 1.6;
    color: var(--gray-light);
}

.testimonial-section {
    margin-top: 60px;
}

.testimonial {
    padding: 48px;
    background: var(--gray-dark);
    border-left: 4px solid var(--accent);
    border-radius: 12px;
}

.testimonial-quote {
    font-size: 20px;
    line-height: 1.7;
    color: var(--gray-light);
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.author-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
}

.author-role {
    font-size: 14px;
    color: var(--gray-mid);
}

.learnings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.learning-card {
    padding: 32px;
    background: var(--gray-dark);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.learning-card:hover {
    border-color: rgba(226, 135, 67, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.learning-card h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 12px;
}

.learning-card p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--gray-light);
}

.next-case-section {
    background: var(--gray-dark);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.next-case-header {
    margin-bottom: 40px;
}

.next-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-mid);
    display: block;
    margin-bottom: 16px;
}

.next-case-header h2 {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.next-case-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.next-case-description {
    font-size: 17px;
    line-height: 1.7;
    color: var(--gray-light);
    margin-bottom: 24px;
}

.next-case-meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 32px;
    font-size: 14px;
    color: var(--gray-mid);
}

.next-case-meta span {
    position: relative;
}

.next-case-meta span:not(:last-child)::after {
    content: '·';
    position: absolute;
    right: -14px;
}

.next-case-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--black);
    aspect-ratio: 4/3;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.next-case-image:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* ===== FOOTER ===== */
footer {
    padding: 80px 48px;
    background: var(--gray-dark);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 80px;
}

.footer-title {
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-text {
    font-size: 17px;
    line-height: 1.7;
    color: var(--gray-light);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

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

.footer-links a:hover::after {
    width: 100%;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    nav {
        padding: 24px 32px;
    }
    
    .hero,
    .about-hero,
    .about-section,
    .about-cta {
        padding: 80px 32px;
    }
    
    .case-hero {
        padding: 140px 32px 60px;
    }
    
    .case-featured-image {
        padding: 0 32px 60px;
    }
    
    .case-section {
        padding: 60px 32px;
    }
    
    .case-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .content-grid,
    .feature-showcase,
    .next-case-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .feature-showcase.reverse {
        direction: ltr;
    }
    
    .about-profile {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .profile-image-wrapper {
        position: relative;
        top: 0;
        display: flex;
        justify-content: center;
    }
    
    .timeline::before {
        left: 80px;
    }
    
    .timeline-item {
        grid-template-columns: 140px 1fr;
        gap: 30px;
    }
    
    .timeline-item::before {
        left: 80px;
    }
    
    .approach-grid,
    .education-grid,
    .tools-grid,
    .research-methods,
    .insight-list,
    .impact-grid,
    .learnings-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 20px 24px;
    }
    
    nav ul {
        gap: 24px;
    }
    
    .hero,
    .about-hero,
    .about-section,
    .about-cta {
        padding: 60px 24px;
    }
    
    .case-hero {
        padding: 120px 24px 48px;
        min-height: 50vh;
    }
    
    .case-featured-image {
        padding: 0 24px 48px;
    }
    
    .case-section {
        padding: 48px 24px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .section-number {
        font-size: 36px;
    }
    
    .case-hero-meta {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .testimonial {
        padding: 32px 24px;
    }
    
    .testimonial-quote {
        font-size: 18px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .profile-image {
        width: 240px;
        height: 240px;
    }
    
    .timeline {
        padding-left: 0;
    }
    
    .timeline::before {
        display: none;
    }
    
    .timeline-item {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 48px;
    }
    
    .timeline-item::before {
        display: none;
    }
    
    .timeline-content {
        padding-left: 0;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cta-button {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .impact-value {
        font-size: 42px;
    }
    
    .insight-number {
        font-size: 36px;
    }
    
    .profile-image {
        width: 200px;
        height: 200px;
    }
    
    .about-approach,
    .about-experience,
    .about-education,
    .about-tools {
        margin-bottom: 80px;
        padding-bottom: 60px;
    }
}







/* Desktop: botón oculto, menú visible */



/* --- Base --- */
nav .menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
  padding: 10px 12px;
}

nav .menu-toggle .label {
  font-weight: 600;
}

/* Mobile */
@media (max-width: 768px) {
  nav .container {
    flex-wrap: wrap; /* permite que el UL baje debajo */
  }

  nav .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto; /* empuja el botón a la derecha */
  }

  /* ✅ IMPORTANTE: apuntar al menú real */
  nav ul.menu {
    display: none;          /* oculto por defecto */
    width: 100%;
    flex-direction: column; /* dropdown */
    gap: 12px;
    margin-top: 12px;
    padding: 0;
  }

  nav.is-open ul.menu {
    display: flex; /* visible cuando abres */
  }
}

  
@media (max-width: 768px) {
  nav ul.menu li a {
    display: block;
    padding: 10px 0;
  }
}

.logo img,
.custom-logo {
  height: 48px;   /* puedes probar 40px–56px */
  width: auto;
  display: block;
}


/* ===== PILLARS GRID ===== */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-bottom: 60px;
}

.pillar-card {
    padding: 40px;
    background: var(--gray-dark);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.pillar-card:hover {
    border-color: rgba(226, 135, 67, 0.3);
    transform: translateY(-4px);
}

.pillar-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 16px;
}

.pillar-card h4 {
    font-size: 22px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.pillar-card p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-light);
}

.solution-details h3 {
    font-size: 28px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 48px;
    letter-spacing: -0.01em;
}

.content-full {
    margin-bottom: 48px;
}

.content-full p {
    font-size: 18px;
    line-height: 1.7;
    color: var(--gray-light);
}



.video-wrapper {
  width: 100%;
  max-width: 480px; /* ajusta al ancho que estás usando */
 /* aspect-ratio: 9 / 16;  formato vertical tipo mockup móvil */
 aspect-ratio: auto; /* formato vertical tipo mockup móvil */
  border-radius: 20px; 
  overflow: hidden;
  background: #000;
}


.video-wrapper video {
  width: 100%;
  height: 50%;
  object-fit: cover; /* mantiene proporción sin deformar */
}


.video-wrapper-proto {
max-width: 569px;
}

.footer-credit {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.8rem;
    opacity: 0.5;
}



