:root {
    --color-naranja: #fca311;
    --color-negro: #121212;
    --color-gris-oscuro: #1e1e1e;
    --color-fondo-mas-oscuro: #0a0a0a;
    --color-rojo: #d90429;
}

body {
    background-color: var(--color-negro);
    color: #e0e0e0;
    font-family: 'Montserrat', sans-serif;
}

.bg-darker {
    background-color: var(--color-fondo-mas-oscuro);
}

.section-padding {
    padding-top: 80px;
    padding-bottom: 80px;
}

.section-title {
    color: var(--color-naranja);
    font-weight: 700;
    margin-bottom: 5px;
}

.linea-decorativa {
    width: 80px;
    height: 4px;
    background-color: var(--color-rojo);
    margin-bottom: 30px;
}

.linea-decorativa.centrado {
    margin-left: auto;
    margin-right: auto;
}

.logo-text {
    font-size: 1.8rem;
    color: #ffffff;
    letter-spacing: 2px;
}

.hero-section {
    height: 100vh;
    background-position: center;
    background-size: cover;
    position: relative;
    background-color: var(--color-negro);
    background-attachment: fixed;
}

.capa-oscura {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.3) 0%, rgba(18, 18, 18, 1) 100%);
    z-index: 1;
}

.hero-contenido {
    position: relative;
    z-index: 2;
    top: 50%;
    transform: translateY(-50%);
}

.hero-title {
    font-size: 5rem;
    color: white;
    letter-spacing: 5px;
    text-shadow: 2px 2px 10px black;
    margin-bottom: 10px;
}

.hero-subtitulo {
    color: white;
    font-size: 1.2rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.btn-custom {
    background-color: var(--color-naranja);
    color: black;
    font-weight: 800;
    border-radius: 30px;
    padding: 10px 30px;
    text-transform: uppercase;
    font-family: 'Oswald', sans-serif;
    transition: background-color 0.3s;
}

.btn-custom:hover {
    background-color: #e59310;
    color: white;
}

.bio-img-container {
    border: 3px solid #333;
    border-radius: 15px;
    overflow: hidden;
    max-width: 400px;
}

.bio-img {
    width: 100%;
    transition: transform 0.4s;
}

.bio-img:hover {
    transform: scale(1.05);
}

.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #333;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item.left {
    left: 0;
}

.timeline-item.right {
    left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--color-naranja);
    border: 4px solid var(--color-negro);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item.right::after {
    left: -10px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: var(--color-gris-oscuro);
    position: relative;
    border-radius: 10px;
    border-left: 4px solid var(--color-naranja);
    transition: 0.3s;
}

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

.timeline-content h4 {
    color: white;
    margin-bottom: 15px;
}

@media screen and (max-width: 768px) {
    .timeline-container::after {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 0;
    }

    .timeline-item.right {
        left: 0;
    }

    .timeline-item.left::after,
    .timeline-item.right::after {
        left: 10px;
    }
}

.custom-card {
    background-color: var(--color-gris-oscuro) !important;
    border-radius: 15px;
    border-bottom: 5px solid transparent !important;
    transition: transform 0.3s, border-bottom-color 0.3s;
}

.custom-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--color-rojo) !important;
}

.card-icon {
    font-size: 3rem;
}

.galeria-collage {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 10px;
}

.foto-ancha {
    grid-column: span 2;
}

@media (max-width: 992px) {
    .galeria-collage {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .galeria-collage {
        grid-template-columns: 1fr;
    }

    .foto-ancha {
        grid-column: span 1;
    }
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    width: 100%;
    height: 100%;
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(217, 4, 41, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-overlay span {
    color: white;
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    text-transform: uppercase;
}

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

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

.custom-form {
    background-color: var(--color-gris-oscuro);
}

.custom-input {
    background-color: #2a2a2a;
    border: 1px solid #444;
    color: white;
    border-radius: 5px;
    padding: 10px;
}

.custom-input:focus {
    background-color: #333;
    border-color: var(--color-naranja);
    color: white;
}

.text-justify {
    text-align: justify;
}