@font-face {
    font-family: 'Roboto';
    src: url('https://colegiosanantonio.ar/static/fonts/roboto/Roboto-Regular.ttf') format('truetype');
}

:root {
    --color_primary: #6b1728;
    --color_primary_light: #8b2a3d;
    --color_primary_dark: #4d0f1c;
    --color_bg: #f8f9fa;
    --color_text: #2c3e50;
    --color_text_light: #6c757d;
}

::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--color_primary);
    border-radius: 10px;
}

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

blockquote {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    margin: 20px 0;
    padding: 20px 30px;
    border-left: 4px solid var(--color_primary);
    border-radius: 8px;
    font-style: italic;
    color: var(--color_text);
}

blockquote:before {
    content: '"';
    float: left;
    font-size: 60px;
    line-height: 1;
    margin-right: 10px;
    color: var(--color_primary);
    opacity: 0.3;
}

blockquote:after {
    content: '"';
    float: right;
    font-size: 60px;
    line-height: 1;
    margin-left: 10px;
    color: var(--color_primary);
    opacity: 0.3;
}

video {
    width: 100%;
    height: auto;
    border-radius: 12px;
    background-color: #ccc;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

html {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--color_bg);
    color: var(--color_text);
    line-height: 1.6;
    overflow-x: hidden;
    overflow-y: hidden;
    max-width: 100%;
    width: 100%;
}

header {
    width: 100%;
    max-width: 100%;
    height: 80px;
    background: linear-gradient(135deg, var(--color_primary) 0%, var(--color_primary_dark) 100%);
    position: fixed;
    z-index: 5000;
    display: flex;
    align-items: center;
    color: white;
    top: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    padding: 0 30px;
    box-sizing: border-box;
}

header .logo {
    display: block;
    background-image: url("https://colegiosanantonio.ar/static/colegio_125.png");
    background-size: contain;
    width: 60px;
    height: 60px;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 15px;
}

header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

header p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

.body_container {
    display: flex;
    flex-direction: column;
    position: relative;
    top: 80px;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px);
    padding-bottom: 40px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.historial_review {
    width: 100%;
    max-width: 1200px;
    padding: 40px 20px;
    box-sizing: border-box;
}

.historial_review h1 {
    text-align: center;
    font-size: 36px;
    color: var(--color_primary);
    margin-bottom: 50px;
    font-weight: 700;
    position: relative;
}

.historial_review h1:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--color_primary);
    border-radius: 2px;
}

.thread_container {
    position: relative;
    padding: 40px 20px;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.timeline {
    position: relative;
    padding-left: 60px;
}

.timeline:before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--color_primary) 0%, var(--color_primary_light) 100%);
    border-radius: 2px;
}

.post_box {
    position: relative;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.post_box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(107, 23, 40, 0.15);
}

.post_box.active {
    opacity: 1;
    transform: translateY(0);
}

.post_box:before {
    content: '';
    position: absolute;
    left: -50px;
    top: 30px;
    width: 20px;
    height: 20px;
    background: var(--color_primary);
    border: 4px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--color_primary);
    z-index: 10;
}

.post_box .img_container {
    width: 100%;
    height: 300px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color_primary) 0%, var(--color_primary_dark) 100%);
}

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

.post_box:hover .img_container img {
    transform: scale(1.05);
}

.post_box .img_container h1 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: 25px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    color: white;
    font-size: 28px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.post_box .content {
    padding: 25px;
    background: white;
}

.post_box .content span {
    color: var(--color_text_light);
    font-size: 16px;
    line-height: 1.8;
    display: block;
}

.post_bottom {
    padding: 0 25px 25px;
    background: white;
}

.view_content {
    background: var(--color_primary);
    border: none;
    color: white;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.view_content:hover {
    background: var(--color_primary_dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 23, 40, 0.3);
}

.view_content svg {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.view_content:hover svg {
    transform: translateX(5px);
}

.view_content p {
    margin: 0;
}

.historic_moment {
    display: flex;
    width: 100%;
    max-width: 100%;
    flex-direction: column;
    margin: 0 auto;
    box-sizing: border-box;
    overflow-x: hidden;
}

.historic_images_container {
    width: 100%;
    max-width: 100%;
    position: relative;
    box-sizing: border-box;
}

.historic_images {
    width: 100%;
    max-width: 100%;
    height: 60vh;
    min-height: 500px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.img_container.full {
    width: 100%;
    height: 100%;
    position: relative;
}

.img_container.full img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#historic_title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: 40px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
    color: white;
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.historic_content_container {
    width: 90%;
    max-width: 1000px;
    margin: 40px auto;
    padding: 40px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-top: 5px solid var(--color_primary);
    box-sizing: border-box;
}

.historic_content_container p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--color_text);
    text-align: center;
    margin: 0;
}

.tab_container {
    width: 100%;
    max-width: 1000px;
    margin: 30px auto;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding: 0 20px;
    box-sizing: border-box;
}

.tab_container .tab {
    padding: 12px 24px;
    background: white;
    border: 2px solid var(--color_primary);
    border-radius: 25px;
    color: var(--color_primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.tab_container .tab:hover {
    background: var(--color_primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 23, 40, 0.2);
}

.tab_container .tab.active {
    background: var(--color_primary);
    color: white;
}

.historic_content_sections {
    width: 100%;
}

.blocks_container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.historic_block_container {
    width: 100%;
    max-width: 100%;
    margin: 50px 0;
    padding: 40px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: relative;
    box-sizing: border-box;
}

.historic_block_container:first-child {
    margin-top: 0;
}

.historic_block_container h1 {
    text-align: center;
    font-size: 32px;
    color: var(--color_primary);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--color_primary);
    position: relative;
    font-weight: 700;
}

.historic_block {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.historic_block .hcont {
    padding: 0;
}

.historic_block .hcont p {
    font-size: 17px;
    line-height: 1.9;
    color: var(--color_text);
    margin: 0;
}

.image_carousel {
    width: 100%;
    margin: 30px 0;
}

.image-gallery {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

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

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(107, 23, 40, 0.2);
}

.gallery-item-image {
    position: relative;
    width: 100%;
    padding-top: 75%;
    overflow: hidden;
    background: #f0f0f0;
}

.gallery-item-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(107, 23, 40, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-overlay svg {
    width: 40px;
    height: 40px;
}

.gallery-item-ref {
    padding: 10px 15px;
    font-size: 12px;
    color: var(--color_text_light);
    line-height: 1.4;
    background: white;
    max-height: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.gallery-grid .gallery-item-image {
    padding-top: 100%;
}

.gallery-grid .gallery-item-ref {
    font-size: 11px;
    padding: 8px 10px;
    max-height: 40px;
    -webkit-line-clamp: 1;
    line-clamp: 1;
}

.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.image-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    color: var(--color_primary);
}

.modal-close:hover {
    background: white;
    transform: scale(1.1);
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    color: var(--color_primary);
}

.modal-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.modal-prev {
    left: 15px;
}

.modal-next {
    right: 15px;
}

.modal-image-container {
    width: 100%;
    max-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    padding: 40px;
    box-sizing: border-box;
    overflow: auto;
}

.modal-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.modal-info {
    padding: 20px;
    background: white;
    border-top: 1px solid #e0e0e0;
}

.modal-counter {
    font-size: 14px;
    color: var(--color_text_light);
    margin-bottom: 10px;
    font-weight: 600;
}

.modal-reference {
    font-size: 14px;
    color: var(--color_text);
    line-height: 1.6;
    padding: 15px;
    background: linear-gradient(135deg, var(--color_primary) 0%, var(--color_primary_dark) 100%);
    color: white;
    border-radius: 8px;
}

.document_container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.document {
    padding: 25px;
    background: linear-gradient(135deg, var(--color_primary) 0%, var(--color_primary_light) 100%);
    border-radius: 12px;
    color: white;
    box-shadow: 0 4px 12px rgba(107, 23, 40, 0.2);
    transition: transform 0.3s ease;
}

.document:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(107, 23, 40, 0.3);
}

.document h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 700;
}

.document h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    opacity: 0.9;
    font-weight: 400;
}

.document p {
    margin: 0 0 20px 0;
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.95;
}

.download_button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    border-radius: 8px;
    color: white;
    padding: 12px 20px;
    width: 100%;
    transition: all 0.3s ease;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.download_button:hover {
    background: white;
    color: var(--color_primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.download_button svg {
    margin-right: 8px;
    width: 20px;
    height: 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

@media only screen and (max-width: 768px) {
    header {
        padding: 0 15px;
        height: 70px;
    }
    
    header p {
        display: none;
    }
    
    header h2 {
        font-size: 16px;
    }
    
    .body_container {
        top: 70px;
    }
    
    .historial_review h1 {
        font-size: 28px;
    }
    
    .thread_container {
        padding: 20px 10px;
    }
    
    .timeline {
        padding-left: 40px;
    }
    
    .timeline:before {
        left: 15px;
        width: 2px;
    }
    
    .post_box:before {
        left: -35px;
        width: 16px;
        height: 16px;
    }
    
    .post_box .img_container {
        height: 250px;
    }
    
    .post_box .img_container h1 {
        font-size: 22px;
        padding: 20px;
    }
    
    .historic_images {
        height: 40vh;
        min-height: 300px;
    }
    
    #historic_title {
        font-size: 28px;
        padding: 25px 20px;
    }
    
    .historic_content_container {
        width: 95%;
        padding: 25px 20px;
        margin: 20px auto;
    }
    
    .historic_block_container {
        padding: 25px 20px;
        margin: 30px 0;
    }
    
    .historic_block_container h1 {
        font-size: 24px;
    }
    
    .gallery-featured {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }
    
    .gallery-item-ref {
        font-size: 11px;
        padding: 8px 10px;
    }
    
    .modal-content {
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .modal-image-container {
        padding: 20px;
        max-height: 60vh;
    }
    
    .modal-nav {
        width: 40px;
        height: 40px;
    }
    
    .modal-prev {
        left: 10px;
    }
    
    .modal-next {
        right: 10px;
    }
    
    .modal-close {
        width: 35px;
        height: 35px;
        top: 10px;
        right: 10px;
    }
    
    .historic_block_container {
        padding: 25px 15px;
    }
    
    .historic_content_container {
        width: 95%;
        padding: 25px 15px;
    }
    
    .thread_container {
        padding: 20px 10px;
    }
    
    .timeline {
        padding-left: 40px;
    }
    
    .post_box:before {
        left: -35px;
    }
    
    header {
        padding: 0 15px;
    }
    
    .document_container {
        grid-template-columns: 1fr;
    }
    
    .tab_container {
        padding: 0 10px;
    }
    
    .tab_container .tab {
        padding: 10px 18px;
        font-size: 13px;
    }
}
