/* Variables CSS - Paleta de Colores Dark Blue */
:root {
    --primary-color: #1a237e;
    --secondary-color: #283593;
    --accent-color: #303f9f;
    --light-color: #3949ab;
    --pale-color: #e8eaf6;
    --bg-color: #f5f6fa;
    --bg-alt: #ffffff;
    --text-color: #333333;
    --text-secondary: #666666;
    --white: #ffffff;
    --border-color: #c5cae9;
    --shadow: 0 2px 5px rgba(26, 35, 126, 0.1);
    --shadow-hover: 0 4px 15px rgba(26, 35, 126, 0.2);
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Scrollbar Personalizado - Color Azul */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Reset y Estilos Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

/* Iconos - Tamaño correcto y no deformes */
i.fas, i.far, i.fab {
    font-size: 1.2rem;
    width: auto;
    height: auto;
    line-height: 1;
}

.section-title i.fas,
.section-title i.far {
    font-size: 1.5rem;
    margin-right: 10px;
}

.content-title i.fas,
.content-title i.far,
.content-title i.fab {
    font-size: 1.1rem;
    margin-right: 8px;
    color: var(--primary-color);
}

/* Navegación */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 15px 0;
}

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

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    gap: 20px;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 8px 16px;
    border-radius: 25px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.3s ease;
}

.lang-toggle:hover {
    background: var(--secondary-color);
}

.lang-toggle i {
    font-size: 1rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero-section {
    padding: 120px 0 80px;
    background: var(--bg-alt);
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 2.6rem;
    margin-bottom: 10px;
}

.hero-text h2 {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

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

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    border-radius: 25px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.hero-image {
    flex-shrink: 0;
    position: relative;
}

.hero-image img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--white);
    box-shadow: var(--shadow-hover);
}

/* Animación de anillo alrededor de la foto */
.hero-image::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 3px solid transparent;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 3s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Toast Notification para descargas */
.toast-download {
    position: fixed;
    top: 100px;
    right: 20px;
    background: var(--primary-color);
    color: var(--white);
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: var(--shadow-hover);
    z-index: 2000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    font-family: var(--font-heading);
    font-size: 0.95rem;
}

.toast-download.active {
    opacity: 1;
    transform: translateX(0);
}

/* Acordeón */
.accordion-section {
    padding: 0 0 60px;
    background: var(--bg-color);
}

.accordion-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 18px 25px;
    background: var(--white);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary-color);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.accordion-toggle:hover {
    background: var(--pale-color);
}

.accordion-toggle i {
    transition: transform 0.3s ease;
}

.accordion-toggle.active i {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    max-width: 1140px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 0 0 10px 10px;
    box-shadow: var(--shadow);
    transition: max-height 0.5s ease, padding 0.3s ease;
}

.accordion-content.active {
    max-height: 2000px;
    padding: 25px;
}

.accordion-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 15px;
}

.accordion-content p:last-child {
    margin-bottom: 0;
}

/* Secciones Generales */
.section {
    padding: 60px 0;
}

.section:nth-child(even) {
    background: var(--bg-alt);
}

.section:nth-child(odd) {
    background: var(--bg-color);
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-size: 1rem;
}

.content-block {
    background: var(--white);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
}

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

.content-block:hover {
    box-shadow: var(--shadow-hover);
}

.content-title {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--pale-color);
}

.content-title span {
    font-family: var(--font-heading);
    font-weight: 600;
}

/* Formación Académica - Dos Columnas */
.education-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.education-info h4 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.education-location {
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.education-status {
    display: inline-block;
    background: var(--pale-color);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.education-details p {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.education-details strong {
    color: var(--text-color);
}

/* Logros */
.achievements-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.achievement-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    background: var(--bg-color);
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.achievement-item:hover {
    transform: translateX(5px);
}

.achievement-item i {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-top: 2px;
}

.achievement-item h4 {
    font-size: 1rem;
    margin-bottom: 3px;
}

.achievement-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Documentos */
.documents-section {
    background: var(--white);
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.documents-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.documents-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.document-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: var(--bg-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.document-item:hover {
    background: var(--pale-color);
    transform: translateY(-2px);
}

.document-item i {
    font-size: 1.3rem;
    color: var(--primary-color);
}

.document-item span {
    font-size: 0.9rem;
    color: var(--text-color);
}

.doc-count {
    background: var(--primary-color);
    color: var(--white);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    margin-left: auto;
}

/* Actividades - Dos Columnas como service-grid */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: var(--bg-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.activity-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.activity-item:hover {
    transform: translateX(5px);
}

.activity-item > i {
    font-size: 1.3rem;
    color: var(--primary-color);
    width: 35px;
    text-align: center;
}

.activity-item div {
    flex: 1;
}

.activity-item h4 {
    font-size: 1rem;
    margin-bottom: 3px;
}

.activity-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Idiomas */
.languages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.language-card {
    background: var(--bg-color);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.language-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.language-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.language-flag {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.language-card h4 {
    font-size: 1.1rem;
    margin-bottom: 3px;
}

.language-level {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.language-progress {
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-bar {
    height: 100%;
    width: var(--progress);
    background: linear-gradient(90deg, var(--primary-color), var(--light-color));
    border-radius: 3px;
    transition: width 1s ease;
}

/* Liderazgo - Dos Columnas */
.leadership-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
    margin-bottom: 25px;
}

.leadership-item {
    background: var(--bg-color);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.leadership-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.leadership-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.leadership-item > i {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.leadership-item h4 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.leadership-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Experiencia Timeline */
.experience-timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.experience-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--bg-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.experience-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.experience-item:hover {
    transform: translateX(5px);
}

.experience-icon {
    width: 45px;
    height: 45px;
    background: var(--pale-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.experience-icon i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.experience-content {
    flex: 1;
}

.experience-content h4 {
    font-size: 1rem;
    margin-bottom: 3px;
}

.experience-role {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 3px;
}

.experience-description {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Servicio Social */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    margin-bottom: 25px;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: var(--bg-color);
    border-radius: 12px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.service-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.service-item > i {
    font-size: 1.6rem;
    color: var(--primary-color);
    width: 45px;
    text-align: center;
}

.service-item h4 {
    font-size: 1rem;
    margin-bottom: 3px;
}

.service-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Talento */
.talent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
    margin-bottom: 25px;
}

.talent-item {
    background: var(--bg-color);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.talent-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.talent-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.talent-item > i {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.talent-item h4 {
    font-size: 1rem;
}

/* Galería */
.gallery-section {
    background: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.5s ease;
}

.gallery-item.visible {
    opacity: 1;
    transform: scale(1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 45px;
    height: 45px;
    background: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.8rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: var(--primary-color);
    color: var(--white);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.lightbox-nav:hover {
    background: var(--primary-color);
    color: var(--white);
}

.lightbox-prev {
    left: 25px;
}

.lightbox-next {
    right: 25px;
}

/* Contacto */
.contact-section {
    background: var(--white);
}

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

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(286px, 1fr));
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--bg-color);
    border-radius: 12px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.contact-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.contact-item i {
    width: 45px;
    height: 45px;
    background: var(--pale-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 0.95rem;
    margin-bottom: 3px;
}

.contact-item p {
    color: var(--text-secondary);
    word-break: break-word;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 35px 0;
    text-align: center;
}

.footer-text {
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.footer-numeric {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    opacity: 0.7;
    letter-spacing: 1px;
    word-break: break-all;
    margin-bottom: 12px;
    color: #1a237e;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image img {
        width: 250px;
        height: 250px;
    }
    
    .education-split {
        grid-template-columns: 1fr;
    }
    
    .leadership-split {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 20px;
        gap: 12px;
        box-shadow: var(--shadow);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .hamburger {
        display: flex;
    }

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

    .hero-text h2 {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .content-block {
        padding: 20px;
    }

    .activities-grid,
    .experience-timeline {
        gap: 10px;
    }

    .activity-item,
    .experience-item {
        padding: 12px;
    }

    .lightbox-nav {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .lightbox-prev {
        left: 12px;
    }

    .lightbox-next {
        right: 12px;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 100px 0 50px;
    }

    .hero-image img {
        width: 200px;
        height: 200px;
    }

    .hero-stats {
        gap: 15px;
    }

    .stat-number {
        font-size: 1.4rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    .documents-grid {
        flex-direction: column;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    animation: fadeIn 0.6s ease forwards;
}
