/*
Theme Name: OSCARDIAZPR
Theme URI: https://oscardiazpr.com
Author: Oscar Diaz
Author URI: https://oscardiazpr.com
Description: Strategic Communications Advisory - Official Theme
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: oscardiazpr
*/

:root {
    --bg-body: #0f172a;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --accent-color: #cda66f;
    --card-bg: #1e293b;
    --border-card: rgba(255, 255, 255, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.5;
    position: relative;
    overflow-x: hidden;
}

.container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3, h4, p, li { font-family: 'Space Grotesk', sans-serif; line-height: 1.4; }

.brand-name { color: #fff; transition: opacity 0.3s ease; }
.role-pr { 
    color: var(--accent-color); 
    font-weight: 500;
}

/* --- SELECTOR DE IDIOMA --- */
.lang-switch {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Space Grotesk', sans-serif;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--border-card);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

body.admin-bar .lang-switch {
    top: 56px;
}
@media screen and (min-width: 783px) {
    body.admin-bar .lang-switch {
        top: 60px;
    }
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 2px 4px;
    transition: color 0.2s ease;
}

.lang-btn:hover {
    color: #ffffff;
}

.lang-btn.active {
    color: var(--accent-color);
    font-weight: 700;
}

.lang-divider {
    color: var(--text-secondary);
    opacity: 0.4;
    user-select: none;
    font-size: 0.85rem;
}

/* --- STATUS BADGE --- */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(205, 166, 111, 0.08);
    border: 1px solid rgba(205, 166, 111, 0.25);
    border-radius: 20px;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 1.8rem;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: statusPulse 2.2s infinite ease-in-out;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

/* --- HEADER --- */
header { 
    padding: 7rem 0 4rem 0; 
    text-align: center; 
    min-height: 90vh; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center;
}

.header-content { 
    display: inline-block;
    margin: 0 auto;
    padding-bottom: 10px;
}

h1 { 
    font-size: clamp(3.2rem, 8.5vw, 5.8rem); 
    margin-bottom: 1.5rem; 
    line-height: 0.95; 
    text-align: center;
    letter-spacing: -1px;
}

.subtitle { 
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.1rem, 2.5vw, 1.25rem); 
    color: var(--text-secondary); 
    max-width: 640px; 
    margin: 0 auto 3rem auto; 
    text-align: center;
    line-height: 1.6;
}

/* --- BOTÓN CONSULTA CON MICRO-SHIMMER --- */
.btn-consultation {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    background-color: var(--card-bg); 
    color: #e2e8f0;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); 
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-consultation::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -80%;
    width: 50%;
    height: 200%;
    background: linear-gradient(
        60deg,
        transparent,
        rgba(255, 255, 255, 0.15),
        transparent
    );
    transform: rotate(25deg);
    transition: left 0.75s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.btn-consultation:hover::after {
    left: 140%;
}

.btn-consultation:hover { 
    background-color: #24344d; 
    color: #fff; 
    border-color: var(--accent-color); 
    transform: translateY(-2px); 
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35); 
}

/* --- BRANDS GRID CON SPOTLIGHT --- */
.brands-section { 
    padding: 3.5rem 0; 
    border-top: 1px solid var(--border-card); 
    border-bottom: 1px solid var(--border-card); 
    background: var(--card-bg); 
    margin-bottom: 2rem; 
}

.brands-title {
    text-align: center; 
    margin-bottom: 26px; 
    color: var(--accent-color); 
    font-size: 0.8rem; 
    letter-spacing: 2px; 
    text-transform: uppercase;
    font-weight: 600;
}

.brand-grid { 
    display: grid; 
    grid-template-columns: repeat(5, 1fr); 
    gap: 16px; 
    max-width: 950px; 
    margin: 0 auto; 
}

.brand-tag { 
    background: radial-gradient(
        220px circle at var(--mouse-x, -999px) var(--mouse-y, -999px),
        rgba(205, 166, 111, 0.15),
        transparent 60%
    ), rgba(255, 255, 255, 0.03); 
    border: 1px solid var(--border-card); 
    height: 64px;
    min-height: 64px;
    padding: 10px 14px; 
    text-align: center; 
    border-radius: 8px; 
    font-size: 0.88rem; 
    font-weight: 600; 
    color: var(--text-secondary); 
    transition: transform 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease; 
    overflow: hidden; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    box-sizing: border-box;
    line-height: 1.25;
    word-break: break-word;
    cursor: default;
}

.brand-tag:hover { 
    color: #ffffff; 
    transform: translateY(-3px); 
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25); 
    border-color: rgba(205, 166, 111, 0.4);
}

/* --- SERVICIOS / CARDS CON SPOTLIGHT --- */
.section-padding { padding: 6.5rem 0; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }

.card { 
    background: radial-gradient(
        350px circle at var(--mouse-x, -999px) var(--mouse-y, -999px),
        rgba(205, 166, 111, 0.12),
        transparent 60%
    ), var(--card-bg); 
    border: 1px solid var(--border-card); 
    padding: 32px; 
    border-radius: 8px; 
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease; 
    position: relative;
}

.card:hover { 
    transform: translateY(-5px); 
    border-color: var(--accent-color); 
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4); 
}

.card h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
    color: #ffffff;
}

.section-title { 
    font-size: clamp(2.2rem, 6vw, 3rem); 
    margin-bottom: 48px; 
    color: #fff; 
    text-align: center; 
    letter-spacing: -0.5px;
}

/* --- EXPERIENCE / TIMELINE CONECTADA --- */
.experience-section { 
    padding-top: 5rem; 
    position: relative; 
    background: linear-gradient(to bottom, var(--bg-body) 85%, #1e293b 100%); 
}

.timeline-wrapper { 
    max-width: 800px; 
    margin: 0 auto; 
    display: flex; 
    flex-direction: column; 
    gap: 3rem; 
    position: relative;
}

.timeline-wrapper::before {
    content: '';
    position: absolute;
    top: 28px;
    bottom: 30px;
    left: 0;
    width: 2px;
    background: linear-gradient(
        to bottom,
        var(--accent-color) 0%,
        rgba(205, 166, 111, 0.3) 70%,
        rgba(255, 255, 255, 0.05) 100%
    );
}

.time-dot { 
    width: 14px; 
    height: 14px; 
    background: var(--bg-body); 
    border: 2px solid var(--accent-color);
    border-radius: 50%; 
    position: absolute; 
    left: -6px; 
    top: 24px; 
    z-index: 2; 
    box-shadow: 0 0 10px rgba(205, 166, 111, 0.5);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.job-card { 
    position: relative; 
    padding-left: 3rem; 
    padding-bottom: 1.5rem; 
    background: transparent; 
}

.job-card:hover .time-dot {
    background: var(--accent-color);
    transform: scale(1.25);
    box-shadow: 0 0 14px rgba(205, 166, 111, 0.8);
}

.company-name { 
    font-size: clamp(1.25rem, 4vw, 1.6rem); 
    margin-bottom: 0.3rem; 
    display: block; 
    color: #fff; 
}

.job-role { 
    font-family: 'Space Grotesk', sans-serif; 
    color: var(--accent-color); 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    font-size: clamp(0.8rem, 3vw, 0.92rem); 
    margin-bottom: 1rem; 
    display: block; 
}

.description { 
    color: var(--text-secondary); 
    font-size: clamp(0.92rem, 2vw, 1rem); 
    line-height: 1.65; 
}

.job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.tag-pill {
    display: inline-block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.5px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    transition: border-color 0.25s ease, color 0.25s ease, background-color 0.25s ease;
}

.job-card:hover .tag-pill {
    border-color: rgba(205, 166, 111, 0.35);
    color: #f1f5f9;
    background: rgba(205, 166, 111, 0.06);
}

/* --- FOOTER EJECUTIVO --- */
.footer-section {
    padding: 5.5rem 0 3rem 0;
    margin-top: 3rem;
}

.footer-cta-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.75) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 1px solid rgba(205, 166, 111, 0.25);
    border-radius: 12px;
    padding: 4.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.footer-cta-card::before {
    content: '';
    position: absolute;
    top: 0; 
    left: 50%;
    transform: translateX(-50%);
    width: 65%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--accent-color), transparent);
}

.footer-pretitle {
    color: var(--accent-color);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    display: block;
    margin-bottom: 1rem;
}

.footer-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: #fff;
    max-width: 680px;
    margin: 0 auto 1.2rem auto;
    line-height: 1.25;
}

.footer-subtitle {
    color: var(--text-secondary);
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    max-width: 580px;
    margin: 0 auto 2.5rem auto;
    line-height: 1.6;
}

.footer-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 28px;
    background: rgba(255, 255, 255, 0.04);
    color: #cbd5e1;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    border: 1px solid var(--border-card);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 3.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.82rem;
    color: var(--text-secondary);
}

/* --- SCROLL REVEAL ANIMATIONS --- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.card-grid .card:nth-child(2) { transition-delay: 0.1s; }
.card-grid .card:nth-child(3) { transition-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .status-dot {
        animation: none !important;
    }
    .btn-consultation::after {
        display: none !important;
    }
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 768px) {
    .lang-switch {
        top: 16px;
        right: 16px;
        padding: 4px 10px;
    }
    .lang-btn {
        font-size: 0.8rem;
    }
    .header-content { margin: 0 auto; width: 100%; }
    
    .timeline-wrapper::before {
        left: 6px;
    }
    .job-card { 
        padding-left: 2rem; 
        padding-bottom: 1.2rem;
    }
    .time-dot { 
        display: block; 
        left: 0px; 
        top: 24px;
        width: 12px;
        height: 12px;
    }
    
    .brand-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 12px; 
    }
    .brand-tag {
        height: 56px;
        min-height: 56px;
        font-size: 0.82rem;
        padding: 8px 10px;
    }

    .footer-cta-card {
        padding: 2.8rem 1.4rem;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}
