/* ======================================
   J-CARTES.CSS - ESTILOS ESPECÍFICOS DE LA PÁGINA
   ====================================== */

/* Background images - ESPECÍFICO DE FUNDADOR */
.first-background {
    background-image: url('/media/images/j-cartes/daniel-roe-lpjb_UMOyx8-unsplash.jpg');
}

.second-background {
    background-image: url('/media/images/j-cartes/ivana-cajina-HDd-NQ_AMNQ-unsplash.jpg');
}

/* Hero section background - ESPECÍFICO DE FUNDADOR */
/* Hero Section - Versión corregida */
/* Hero section background - ESPECÍFICO DE FUNDADOR */
.hero {
    background-image: url('/media/images/j-cartes/ojos-salado_0002.jpg');
}

/* CTA section background - ESPECÍFICO DE FUNDADOR */
.cta {
    background: linear-gradient(rgba(var(--black-rgb), 0.6), rgba(var(--black-rgb), 0.6)),
        url('/media/images/cta/joshua-sortino-CTVGEm6V8qI-unsplash.jpg') center/cover;
}

/* ======================================
   PROFILE HEADER SECTION
   ====================================== */

.profile-header {
    padding: var(--section-padding);
}

/* Profile card ya está definido en components/cards.css */

/* Profile card, profile-image, profile-info, profile-contact ya están definidos en components/cards.css */

/* About card ya está definido en components/cards.css */

.about-content {
    font-size: 1.1rem;
    hyphens: none;
}

.about-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

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

/* ======================================
   LAYOUT ESPECÍFICO DE FUNDADOR - BASADO EN NOSOTROS
   ====================================== */

/* Secciones con efecto glassmorphism */
.profile-header,
.about-section,
.experience-section,
.mountaineering-section {
    background: rgba(var(--white-rgb), 0.4);
    backdrop-filter: blur(var(--blur-strong));
    border-radius: var(--border-radius-medium);
    margin-left: 8.33%;
    margin-right: 8.33%;
    margin-bottom: 6rem;
    border: 1px solid rgba(var(--white-rgb), 0.6);
    box-shadow: var(--shadow-medium);
    position: relative;
    z-index: 2;
    transition: var(--transition-standard);
}

/* Hover effects para secciones glassmorphism */
.profile-header:hover,
.about-section:hover,
.experience-section:hover,
.mountaineering-section:hover {
    background: rgba(var(--white-rgb), 0.5);
    transform: var(--hover-lift-medium);
    box-shadow: var(--shadow-heavy);
}

/* Márgenes superiores específicos - IGUAL QUE NOSOTROS */
.profile-header {
    margin-top: 6rem;
}

.mountaineering-section {
    margin-top: 6rem;
}

/* ======================================
   TIMELINE EXPERIENCE - SIMPLIFICADO
   ====================================== */

.timeline {
    position: relative;
    max-width: 80%;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--primary);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
    margin-bottom: var(--margin-bottom-standard);
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-year {
    padding: 0.5rem 1rem;
    background-color: var(--accent);
    color: var(--black);
    font-weight: 600;
    border-radius: var(--border-radius-badge);
    display: inline-block;
    margin-bottom: var(--margin-bottom-small);
}

.timeline-content {
    padding: var(--card-padding-medium);
    background-color: var(--white);
    border-radius: var(--border-radius-standard);
    box-shadow: var(--shadow-light);
    transition: var(--transition-standard);
}

.timeline-content:hover {
    transform: var(--hover-lift-medium);
    box-shadow: var(--shadow-medium);
}

.timeline-content h3 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* Mobile: Línea a la izquierda, cards todas a la derecha */
@media (max-width: 82rem) {
    .timeline {
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .timeline::before {
        left: 1.5rem;
        margin-left: 0;
    }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding: 0 0 0 3.5rem;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
    }
}

/* ======================================
   PHILOSOPHY SECTION
   ====================================== */

/* Philosophy grid ya está definido en components/grids.css */
/* Philosophy card ya está definido en components/cards.css */



.mountaineering-intro {
    text-align: center;
    margin-bottom: var(--margin-bottom-large);
    padding: 0 2rem;
}

.mountaineering-intro p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--black);
}

/* ======================================
   GALLERY LOADING & ERROR STATES
   ====================================== */

.gallery-loading,
.gallery-error {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(var(--white-rgb), 0.9);
    border-radius: var(--border-radius-standard);
    box-shadow: var(--shadow-light);
    margin: 2rem 0;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--gray-200);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-message {
    max-width: 400px;
    margin: 0 auto;
}

.error-message h3 {
    color: var(--accent-red);
    margin-bottom: var(--margin-bottom-small);
}

.error-message p {
    color: var(--black);
    margin-bottom: var(--margin-bottom-standard);
}