@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;700&family=Roboto:wght@400;700&display=swap');

:root {
    --bg-color: #1a1c20; /* Gris carbón oscuro */
    --card-color: #25282e; /* Un poco más claro que el fondo */
    --text-color: #d1d5db; /* Gris claro para texto */
    --header-text-color: #ffffff;
    --accent-color: #00aaff; /* Azul eléctrico */
    --accent-color-hover: #0088cc;
    --border-color: #3e4451;
    --font-primary: 'Roboto', sans-serif;
    --font-mono: 'Fira Code', monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-image: url('Imagenes/FONDO_WEB.png'); /* Ruta a la imagen */
    background-size: cover; /* Cubrir todo el fondo */
    background-position: center; /* Centrar la imagen */
    background-attachment: fixed; /* Fijar la imagen de fondo */
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: grid;
    gap: 2rem;
}

/* --- NEW HEADER BANNER STYLES --- */
.new-header-banner {
    background-color: rgba(0, 0, 0, 0.7); /* Dark semi-transparent background */
    padding: 4rem 2rem; /* Ample padding */
    text-align: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4); /* Subtle shadow */
    margin-bottom: 2rem; /* Space from the rest of the web */
    backdrop-filter: blur(5px); /* Optional: add a blur effect */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Subtle bottom border */
}

.header-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.header-name {
    font-family: 'Roboto', sans-serif; /* Modern sans-serif */
    color: #ffffff; /* Pure white */
    font-size: 3.5rem; /* Large size */
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.header-title {
    font-family: 'Fira Code', monospace; /* Monospaced for technical feel */
    color: #00ffff; /* Cyan blue */
    font-size: 1.2rem;
    letter-spacing: 5px; /* More spaced out letters */
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.header-contact-info {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem; /* Space between links and divider */
    font-size: 0.9rem;
}

.contact-link {
    color: #a0a0a0; /* Light grey */
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #ffffff; /* Bright hover effect */
}

.contact-icon {
    font-size: 1.2rem; /* Increased size for icons */
    margin-right: 0.5rem;
    color: #a0a0a0; /* Set default icon color to match contact-link */
    transition: color 0.3s ease; /* Ensure smooth color transition on hover */
}

.contact-link:hover .contact-icon {
    color: #ffffff; /* White on hover */
}

.contact-divider {
    color: #505050; /* Subtle divider color */
    font-size: 1.2rem;
    font-weight: 300;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .new-header-banner {
        padding: 3rem 1rem;
    }
    .header-name {
        font-size: 2.5rem;
    }
    .header-title {
        font-size: 1rem;
        letter-spacing: 3px;
    }
    .header-contact-info {
        flex-direction: column; /* Stack contact info on small screens */
        gap: 0.5rem;
    }
    .contact-divider {
        display: none; /* Hide divider when stacked */
    }
}


/* --- CARDS --- */
.card {
    background-color: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.card h2 {
    font-family: var(--font-mono);
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

/* --- SECTIONS --- */

/* Experience Section */
.job {
    margin-bottom: 2rem;
}
.job:last-child {
    margin-bottom: 0;
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.job-title {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--header-text-color);
    font-size: 1.1rem;
}

.job-company, .job-date {
    font-family: var(--font-mono);
    color: var(--text-color);
    font-size: 0.9rem;
}

.job-description {
    list-style: none;
    padding-left: 1rem;
}

.job-description li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.job-description li::before {
    content: '>>';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-family: var(--font-mono);
}

/* Skills Section */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-tag {
    font-family: var(--font-mono);
    background-color: var(--bg-color);
    color: var(--accent-color);
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.skill-tag:before {
    content: '<';
    opacity: 0.6;
}
.skill-tag:after {
    content: ' />';
    opacity: 0.6;
}

/* Education Section */
.education-item {
    margin-bottom: 1.5rem;
}
.education-item:last-child {
    margin-bottom: 0;
}
.education-title {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--header-text-color);
    font-size: 1.1rem;
}

.education-institution {
    font-size: 0.9rem;
    color: var(--text-color);
}

/* --- FOOTER --- */
.footer {
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--text-color);
    border-top: 1px solid var(--border-color);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
    .header-content h1 {
        font-size: 2rem;
    }
    .header-content .subtitle {
        font-size: 1rem;
    }
    .card {
        padding: 1.5rem;
    }
    .card h2 {
        font-size: 1.3rem;
    }
    .job-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .job-company {
        margin-top: 0.25rem;
    }
}

/* SAP Code Block Styling */
.sap-code-block {
    background-color: #1e1e1e; /* Dark background for code */
    color: #d4d4d4; /* Light grey for general text */
    font-family: var(--font-mono);
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
    overflow-x: auto; /* Enable horizontal scrolling for long lines */
    font-size: 0.9rem;
    line-height: 1.4;
    border: 1px solid #333; /* Subtle border */
}

.sap-code-block code {
    white-space: pre-wrap; /* Ensure line breaks are respected */
}

/* Basic syntax highlighting for common ABAP keywords */
.sap-code-block code strong { /* For keywords like CALL FUNCTION, EXPORTING, TABLES, EXCEPTIONS */
    color: #569cd6; /* A distinct blue */
    font-weight: normal; /* Keep normal font weight */
}

.sap-code-block code em { /* For string literals like 'Z_GET_SKILLS', 'Juan Carlos' */
    color: #ce9178; /* An orange/brown color */
    font-style: normal;
}

.sap-code-block code .variable { /* For variables like iv_name, et_skills */
    color: #9cdcfe; /* A lighter blue */
}

.sap-code-block code .number { /* For numbers like 1, 2, 3 */
    color: #b5cea8; /* A green color */
}
