/* Estilos específicos para la página de etapas */
.etapas-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), url('images/hero-etapas.jpg')) no-repeat center center;
    background-size: cover;
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
}

.etapa-section {
    padding: 80px 0;
    position: relative;
}

.etapa-destacada {
    background-color: #f9f9f9;
}

.etapa-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.etapa-info {
    flex: 1;
    min-width: 300px;
    padding-right: 40px;
}

.etapa-imagen {
    flex: 1;
    min-width: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.etapa-imagen img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.etapa-imagen:hover img {
    transform: scale(1.03);
}

.etapa-fecha {
    display: inline-block;
    background-color: var(--turquoise);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    margin-bottom: 15px;
}

.etapa-titulo {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--dark-blue);
}

.etapa-subtitulo {
    font-size: 1.5rem;
    color: var(--gray);
    margin-bottom: 25px;
}

.etapa-datos {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.dato-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
}

.dato-item i {
    color: var(--turquoise);
    font-size: 1.3rem;
}

.strava-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #FC4C02;
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.strava-button:hover {
    background-color: #e04300;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(252, 76, 2, 0.3);
}

.etapa-detalles {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.detalle-col {
    flex: 1;
    min-width: 300px;
}

.detalle-col h3 {
    font-size: 1.8rem;
    color: var(--dark-blue);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.detalle-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--turquoise);
}

.puntos-destacados {
    list-style: none;
    padding: 0;
}

.puntos-destacados li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.puntos-destacados i {
    color: var(--turquoise);
    margin-top: 3px;
}

.altimetria-container {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.altimetria-img {
    width: 100%;
    height: auto;
    display: block;
}

.altimetria-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-around;
}

.altimetria-item {
    text-align: center;
}

.altimetria-item span {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
}

.altimetria-item strong {
    font-size: 1.2rem;
    display: block;
}

.etapa-galeria {
    margin-bottom: 60px;
}

.etapa-galeria h3 {
    font-size: 1.8rem;
    color: var(--dark-blue);
    margin-bottom: 30px;
    text-align: center;
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.galeria-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.galeria-grid img:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.documentos-section {
    text-align: center;
    margin-top: 40px;
}

.documentos-section h3 {
    font-size: 1.8rem;
    color: var(--dark-blue);
    margin-bottom: 30px;
}

.pdf-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--dark-blue);
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 10px;
}

.pdf-button:hover {
    background-color: #1a365d;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(26, 54, 93, 0.3);
}

.comparacion-etapas {
    padding: 80px 0;
    background-color: #f5f7fa;
}

.comparacion-grid {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.comparacion-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    background-color: var(--dark-blue);
    color: white;
}

.header-item {
    padding: 20px;
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
}

.comparacion-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    border-bottom: 1px solid #eee;
}

.comparacion-row:last-child {
    border-bottom: none;
}

.row-title {
    padding: 15px 20px;
    font-weight: bold;
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
}

.row-item {
    padding: 15px 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive */
@media (max-width: 768px) {
    .etapa-header {
        flex-direction: column;
    }
    
    .etapa-info {
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .comparacion-header,
    .comparacion-row {
        grid-template-columns: 1fr;
    }
    
    .row-title {
        justify-content: center;
    }
}