/* ============================================
   HISTORIA.CSS - ESTILOS DE LA PÁGINA HISTORIA
   Club Judo Río Cruces
   ============================================ */

/* ============================================
   HERO SECTION HISTORIA
   ============================================ */

.history-hero {
    position: relative;
    height: 70vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1f2c 0%, #2c1810 50%, #1a1f2c 100%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/img/home/background.png') center center / cover no-repeat;
    background-attachment: fixed;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 31, 44, 0.85);
    z-index: 2;
}

.hero-decorations {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 3;
}

.kanji-decoration {
    position: absolute;
    top: 20%;
    right: 10%;
    font-family: 'Noto Sans JP', serif;
    font-size: 8rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    writing-mode: vertical-rl;
    text-orientation: upright;
    transform: rotate(10deg);
}

.floating-element {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(224, 15, 28, 0.2);
    animation: float 6s ease-in-out infinite;
}

.element-1 {
    top: 30%;
    left: 15%;
    animation-delay: 0s;
}

.element-2 {
    top: 60%;
    right: 20%;
    animation-delay: 2s;
}

.element-3 {
    bottom: 30%;
    left: 80%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-content {
    position: relative;
    z-index: 4;
    text-align: center;
    color: white;
}

.breadcrumb {
    font-size: 0.9rem;
    margin-bottom: 20px;
    opacity: 0.8;
}

.breadcrumb a {
    color: #E00F1C;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: white;
}

.breadcrumb span {
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.6);
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
}

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

.hero-stats .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: #E00F1C;
    margin-bottom: 5px;
}

.hero-stats .stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   SECTION HEADERS GLOBALES
   ============================================ */

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #1a1f2c;
    margin-bottom: 20px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #E00F1C;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    font-style: italic;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   TIMELINE SECTION
   ============================================ */

.history-timeline {
    background: #f8f9fa;
    padding: 100px 0;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #E00F1C, #ff1e2d, #E00F1C);
    transform: translateX(-50%);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.timeline-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #E00F1C, #ff1e2d);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 8px 25px rgba(224, 15, 28, 0.3);
    border: 4px solid white;
}

.timeline-item.featured .timeline-icon {
    width: 80px;
    height: 80px;
    font-size: 2rem;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    animation: pulse 2s infinite;
}

.timeline-item.current .timeline-icon {
    background: linear-gradient(135deg, #50cd89, #3abf75);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.timeline-content {
    width: calc(50% - 40px);
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: auto;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
    text-align: left;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.timeline-year {
    color: #E00F1C;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1f2c;
    margin-bottom: 15px;
}

.timeline-description {
    color: #6c757d;
    line-height: 1.7;
    margin-bottom: 20px;
}

.timeline-highlight {
    background: linear-gradient(135deg, rgba(224, 15, 28, 0.05), rgba(255, 30, 45, 0.02));
    border: 1px solid rgba(224, 15, 28, 0.2);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
}

.timeline-highlight.special {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 165, 0, 0.05));
    border-color: #FFD700;
}

.timeline-highlight i {
    color: #E00F1C;
    font-size: 1.2rem;
}

.timeline-highlight.special i {
    color: #FFD700;
}

.timeline-highlight span {
    color: #1a1f2c;
    font-weight: 600;
    font-size: 0.95rem;
}

.timeline-achievements {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    background: rgba(224, 15, 28, 0.05);
    border-radius: 6px;
    border-left: 3px solid #E00F1C;
}

.achievement-item i {
    color: #E00F1C;
    font-size: 1rem;
    width: 16px;
    text-align: center;
}

.achievement-item span {
    color: #1a1f2c;
    font-weight: 500;
    font-size: 0.9rem;
}

.timeline-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.timeline-stats .stat {
    text-align: center;
}

.timeline-stats .number {
    display: block;
    font-size: 1.8rem;
    font-weight: 900;
    color: #50cd89;
    margin-bottom: 5px;
}

.timeline-stats .label {
    font-size: 0.8rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   VALUES SECTION
   ============================================ */

.history-values {
    padding: 100px 0;
    background: white;
}

.values-content {
    padding-right: 40px;
}

.values-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1f2c;
    margin-bottom: 25px;
}

.values-description {
    font-size: 1.1rem;
    color: #6c757d;
    line-height: 1.7;
    margin-bottom: 40px;
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.value-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #E00F1C;
    transition: all 0.3s ease;
}

.value-item:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.value-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #E00F1C, #ff1e2d);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.value-content h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1f2c;
    margin-bottom: 8px;
}

.value-content p {
    color: #6c757d;
    margin: 0;
    line-height: 1.5;
}

.values-visual {
    padding-left: 40px;
}

.visual-placeholder {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px dashed #dee2e6;
    border-radius: 15px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.visual-placeholder:hover {
    border-color: #E00F1C;
    background: linear-gradient(135deg, rgba(224, 15, 28, 0.05), #f8f9fa);
}

.placeholder-content {
    text-align: center;
    color: #6c757d;
}

.placeholder-content i {
    font-size: 4rem;
    color: #E00F1C;
    margin-bottom: 20px;
    opacity: 0.5;
}

.placeholder-content p {
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.5;
}

/* ============================================
   LEADERSHIP SECTION
   ============================================ */

.history-leadership {
    background: #f8f9fa;
    padding: 100px 0;
}

.leadership-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 40px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.leadership-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

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

.leader-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #E00F1C;
    box-shadow: 0 10px 30px rgba(224, 15, 28, 0.3);
}

.leader-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: linear-gradient(135deg, #E00F1C, #ff1e2d);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(224, 15, 28, 0.4);
}

.leader-content {
    flex: 1;
}

.leader-name {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1f2c;
    margin-bottom: 10px;
}

.leader-title {
    font-size: 1.2rem;
    color: #E00F1C;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.leader-description {
    font-size: 1rem;
    color: #6c757d;
    line-height: 1.7;
    margin-bottom: 25px;
}

.leader-achievements {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.leader-achievements .achievement {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #E00F1C;
}

.leader-achievements .achievement i {
    color: #E00F1C;
    font-size: 1.1rem;
    width: 18px;
    text-align: center;
}

.leader-achievements .achievement span {
    color: #1a1f2c;
    font-weight: 500;
    font-size: 0.95rem;
}

/* ============================================
   CTA SECTION
   ============================================ */

.history-cta {
    background: linear-gradient(135deg, #1a1f2c 0%, #2c1810 50%, #1a1f2c 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.history-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(224, 15, 28, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-content {
    text-align: center;
    color: white;
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.cta-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    min-width: 180px;
    justify-content: center;
}

.btn-primary {
    background: #E00F1C;
    color: white;
    border: 2px solid #E00F1C;
}

.btn-primary:hover {
    background: transparent;
    color: #E00F1C;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(224, 15, 28, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #1a1f2c;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .history-hero {
        height: 60vh;
        min-height: 500px;
    }
    
    .hero-title {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }
    
    .hero-stats .stat-number {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        padding: 0 20px;
    }
    
    .history-timeline {
        padding: 60px 0;
    }
    
    .timeline::before {
        left: 30px;
        transform: none;
    }
    
    .timeline-item {
        flex-direction: row !important;
        padding-left: 80px;
    }
    
    .timeline-marker {
        left: 30px;
        transform: none;
    }
    
    .timeline-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .timeline-item.featured .timeline-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .timeline-content {
        width: 100%;
        text-align: left !important;
        margin: 0 !important;
    }
    
    .timeline-title {
        font-size: 1.4rem;
    }
    
    .timeline-achievements {
        gap: 8px;
    }
    
    .achievement-item {
        padding: 8px 12px;
    }
    
    .timeline-stats {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .values-content {
        padding-right: 0;
        margin-bottom: 40px;
    }
    
    .values-visual {
        padding-left: 0;
    }
    
    .visual-placeholder {
        height: 300px;
    }
    
    .placeholder-content i {
        font-size: 3rem;
    }
    
    .leadership-card {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
        gap: 30px;
    }
    
    .leader-img {
        width: 150px;
        height: 150px;
    }
    
    .leader-name {
        font-size: 1.6rem;
    }
    
    .leader-title {
        font-size: 1rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-description {
        font-size: 1rem;
        padding: 0 20px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 250px;
    }
}

@media (max-width: 480px) {
    .history-hero {
        height: 50vh;
        min-height: 400px;
    }
    
    .hero-title {
        font-size: 2rem;
        letter-spacing: 1px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .kanji-decoration {
        font-size: 6rem;
        right: 5%;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .history-timeline,
    .history-values,
    .history-leadership {
        padding: 50px 0;
    }
    
    .timeline-item {
        padding-left: 70px;
        margin-bottom: 40px;
    }
    
    .timeline-marker {
        left: 25px;
    }
    
    .timeline-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .timeline-item.featured .timeline-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .timeline-content {
        padding: 20px 15px;
    }
    
    .timeline-title {
        font-size: 1.2rem;
    }
    
    .timeline-year {
        font-size: 1rem;
    }
    
    .timeline-description {
        font-size: 0.9rem;
    }
    
    .values-title {
        font-size: 2rem;
    }
    
    .value-item {
        padding: 15px;
        gap: 15px;
    }
    
    .value-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .value-content h4 {
        font-size: 1.1rem;
    }
    
    .leadership-card {
        padding: 20px 15px;
    }
    
    .leader-img {
        width: 120px;
        height: 120px;
    }
    
    .leader-name {
        font-size: 1.4rem;
    }
    
    .leader-achievements .achievement {
        padding: 8px 10px;
    }
    
    .cta-title {
        font-size: 1.6rem;
    }
    
    .history-cta {
        padding: 60px 0;
    }
}

/* ============================================
   ANIMATIONS Y EFFECTS
   ============================================ */

.timeline-item {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }
.timeline-item:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.value-item {
    opacity: 0;
    transform: translateX(-30px);
    animation: fadeInLeft 0.6s ease forwards;
}

.value-item:nth-child(1) { animation-delay: 0.1s; }
.value-item:nth-child(2) { animation-delay: 0.2s; }
.value-item:nth-child(3) { animation-delay: 0.3s; }
.value-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}