.dependencia {
    background: #fff9f6;
    text-align: center;
}

.dependencia-container {
    max-width: 650px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.dependencia-question {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2C3E50;
    margin-bottom: 1.5rem;
}

.dependencia-botones {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.btn-dependencia {
    background-color: #f0f0f0;
    border: 2px solid #ddd;
    color: #555;
    border-radius: 50px;
    padding: 0.6rem 2.5rem;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-dependencia:hover {
    background-color: #e0e0e0;
    transform: translateY(-3px);
}

.btn-dependencia.active {
    background-color: #b57f50;
    border-color: #b57f50;
    color: white;
}

.dependencia-content {
    padding: 1.5rem;
    background-color: #f9f9f9;
    border-radius: 10px;
    margin-top: 1rem;
    display: none;
    animation: fadeIn 0.5s ease;
    text-align: center;
}

.dependencia-content h3 {
    color: #b57f50;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.dependencia-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 1rem;
}

/* Añade o modifica estas reglas para el enlace-botón dentro de .dependencia-content */
.dependencia-content a.btn-dependencia {
    background-color: #b57f50;
    color: #fff;
    border: 2px solid #b57f50;
    border-radius: 50px;
    padding: 0.7rem 2.2rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin-top: 0.2rem; /* Más margen con el texto superior */
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(181,127,80,0.07);
}

.dependencia-content a.btn-dependencia:hover,
.dependencia-content a.btn-dependencia.active {
    background-color: #a06d40;
    border-color: #a06d40;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(181,127,80,0.13);
}

.nota-compatible {
    font-style: italic;
    font-size: 0.95rem !important;
    color: #666 !important;
    margin-top: 1rem;
    border-top: 1px solid #ddd;
    padding-top: 1rem;
}

.dependencia-explanation {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e5e5;
    text-align: left;
}

.dependencia-explanation p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 1rem;
}

.dependencia-explanation p:last-child {
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .dependencia-explanation {
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }
    
    .dependencia-explanation p {
        font-size: 1rem;
    }
}

/* Fix for title centering in all mobile formats */
.dependencia .titulo-seccion {
    text-align: center !important;
    width: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
}

/* Specific mobile adjustments */
@media (max-width: 600px) {
    .dependencia .titulo-seccion {
        margin: 1.5rem auto;
        font-size: 1.8rem;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive design for dependencia section */
@media (max-width: 600px) {
    .dependencia-botones {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .btn-dependencia {
        width: 80%;
    }
    
    .dependencia-container {
        padding: 1.5rem;
    }
}