/* --- CONFIGURACIÓN AXIOMÁTICA Y VARIABLES GLOBALES --- */
:root {
    --color-background: #050608;
    --color-surface: #111317;
    --color-primary-text: #EAECEE;
    --color-secondary-text: #8A9199;
    --color-accent: #B89A5B; /* Oro Soberano */
    --color-accent-dark: #8c7646;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
    --transition-fast: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-slow: 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- RESET Y ESTILOS BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    background-color: var(--color-background);
    color: var(--color-primary-text);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.7;
    overflow-x: hidden;
    cursor: none; /* Oculta el cursor por defecto */
}

/* --- CURSOR PERSONALIZADO --- */
.cursor, .cursor-follower {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out;
}
.cursor {
    width: 8px;
    height: 8px;
    background-color: var(--color-accent);
}
.cursor-follower {
    width: 30px;
    height: 30px;
    border: 1px solid var(--color-accent);
    transition: transform 0.3s ease-out, background-color 0.2s, width 0.2s, height 0.2s;
}
body:hover .cursor-follower.hover-effect {
    transform: translate(-50%, -50%) scale(1.5);
    background-color: rgba(184, 154, 91, 0.2);
}
body:hover .cursor.hover-effect {
    transform: translate(-50%, -50%) scale(0);
}


/* --- CAPA DE VIDEO Y HERO --- */
.video-background {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
}
.video-background::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(ellipse at center, rgba(5, 6, 8, 0.5) 0%, rgba(5, 6, 8, 0.9) 70%, #050608 100%);
}
.video-background video {
    width: 100%; height: 100%;
    object-fit: cover;
}

#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    position: relative;
}
.profile-image-container {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid var(--color-accent);
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 30px rgba(184, 154, 91, 0.3);
}
.profile-image-container img { width: 100%; height: 100%; object-fit: cover; }

#hero h1 {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: clamp(2.5rem, 8vw, 5rem);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary-text);
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
#hero .subtitle {
    font-family: var(--font-mono);
    color: var(--color-secondary-text);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.contact-links { margin-top: 2rem; }
.contact-link { display: inline-block; margin: 0 1rem; }
.contact-link img { width: 24px; height: 24px; transition: var(--transition-fast); filter: grayscale(1) brightness(2); }
.contact-link:hover img { transform: scale(1.2); filter: none; }

.scroll-down-indicator {
    position: absolute;
    bottom: 2rem;
    animation: bounce 2s infinite;
}
.scroll-down-indicator img { width: 20px; }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-10px); } 60% { transform: translateY(-5px); } }

/* --- SECCIONES DE CONTENIDO --- */
.content-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 100px 2rem;
    border-bottom: 1px solid rgba(184, 154, 91, 0.1);
}
.section-title {
    font-family: var(--font-mono);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-accent);
    margin-bottom: 3rem;
    position: relative;
    padding-left: 50px;
}
.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 30px;
    height: 1px;
    background-color: var(--color-accent);
}
.professional-summary {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--color-secondary-text);
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

/* --- ARSENAL ESTRATÉGICO --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.skill-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(184, 154, 91, 0.2);
    aspect-ratio: 3 / 4;
    transition: var(--transition-slow);
}
.skill-card:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.skill-card-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    filter: grayscale(80%) brightness(0.6);
    transition: var(--transition-slow);
}
.skill-card:hover .skill-card-bg {
    filter: grayscale(0%) brightness(0.8);
    transform: scale(1.1);
}
.skill-card-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(5, 6, 8, 0.95) 30%, rgba(5, 6, 8, 0));
}
.skill-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-slow);
}
.skill-card:hover .skill-icon {
    opacity: 1;
    transform: translateY(0);
}
.skill-card h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-primary-text);
    margin-bottom: 1rem;
}
.skill-card ul {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: var(--transition-slow);
}
.skill-card:hover ul {
    max-height: 300px;
    opacity: 1;
}
.skill-card li {
    font-size: 0.9rem;
    color: var(--color-secondary-text);
    padding-left: 1rem;
    position: relative;
}
.skill-card li::before {
    content: '›';
    color: var(--color-accent);
    position: absolute;
    left: 0;
}

/* --- TRAYECTORIA DE IMPACTO (TIMELINE) --- */
.timeline {
    position: relative;
    padding-left: 50px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: rgba(184, 154, 91, 0.2);
}
.timeline-item {
    position: relative;
    margin-bottom: 4rem;
}
.timeline-point {
    position: absolute;
    left: -45px;
    top: 5px;
    width: 12px;
    height: 12px;
    background-color: var(--color-background);
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    transition: var(--transition-fast);
}
.timeline-item:hover .timeline-point {
    transform: scale(1.5);
    background-color: var(--color-accent);
}
.timeline-content {
    background-color: var(--color-surface);
    border: 1px solid transparent;
    padding: 2rem;
    transition: var(--transition-fast);
}
.timeline-item:hover .timeline-content {
    border-color: rgba(184, 154, 91, 0.3);
    transform: translateX(10px);
}
.timeline-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}
.company-logo {
    width: 40px;
    height: 40px;
    margin-right: 1rem;
    opacity: 0.8;
}
.timeline-date {
    font-family: var(--font-mono);
    color: var(--color-secondary-text);
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}
.timeline-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--color-primary-text);
}
.timeline-company {
    color: var(--color-accent);
    font-size: 0.9rem;
}
.timeline-body p {
    color: var(--color-secondary-text);
    margin-bottom: 1rem;
}
.timeline-body ul {
    list-style: none;
    color: var(--color-secondary-text);
}
.timeline-body li {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    padding-left: 1.2rem;
    position: relative;
}
.timeline-body li::before {
    content: '✓';
    color: var(--color-accent);
    position: absolute;
    left: 0;
}
.timeline-body strong { color: var(--color-primary-text); font-weight: 400; }

/* --- FUNDAMENTOS --- */
.foundations-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}
.foundation-block {
    background-color: var(--color-surface);
    padding: 2rem;
    border-left: 3px solid var(--color-accent);
}
.foundation-block h4 {
    font-family: var(--font-heading);
    color: var(--color-accent);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}
.foundation-block p {
    color: var(--color-secondary-text);
    margin-bottom: 0.5rem;
}
.foundation-block strong { color: var(--color-primary-text); font-weight: 400; }
.foundation-block small { color: var(--color-secondary-text); opacity: 0.8; }

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 3rem 2rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--color-secondary-text);
    border-top: 1px solid rgba(184, 154, 91, 0.1);
}
footer p:first-child { margin-bottom: 0.5rem; }

/* --- ANIMACIONES DE SCROLL --- */
.animate-section, .animate-in {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.animate-section.is-visible, .animate-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.animate-in {
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* --- MEDIA QUERIES --- */
@media (max-width: 768px) {
    html { font-size: 14px; }
    .content-section { padding: 80px 1rem; }
    .timeline { padding-left: 30px; }
    .timeline-point { left: -25px; }
    .foundations-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* PUEDES AÑADIR ESTO AL FINAL DEL ARCHIVO css/style.css */

.scroll-down-indicator svg {
    width: 20px;
    height: 20px;
    stroke: #8a9199; /* Usamos 'stroke' para íconos de línea, 'fill' para íconos rellenos */
}