#seccion-agradecimiento {
    background-color: #408b6e; 
    padding: 80px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    /* Animación de entrada */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.5s ease, transform 1.5s ease;
}

#seccion-agradecimiento.active {
    opacity: 1;
    transform: translateY(0);
}

.thank-you-container {
    max-width: 1200px; /* Reducido de 1500px a 1000px para una lectura de libros más cómoda en PC */
    text-align: center;
    color: #fff;
    width: 100%;
}

.thank-you-title {
    font-size: 2.5rem; /* Ajustado sutilmente para balancear el diseño */
    font-weight: 300;
    margin: 40px 0;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #f5da95; 
}

/* --- LOGICA DE SCROLL GLOBAL (Aplica a PC por defecto) --- */
.thank-you-text {
    font-size: 1.25rem;
    line-height: 1.8;
    font-weight: 300;
    color: #ffffff;
    text-align: justify; 
    
    max-height: 45vh;             /* Limita la altura en PC al 45% de la pantalla */
    overflow-y: auto;             /* Activa el scroll vertical */
    padding: 0 30px 0 10px;       /* Margen derecho extra para separar el texto de la barra de scroll */
    border: 1px solid rgba(245, 218, 149, 0.15); /* Borde sutil */
    background: rgba(0, 0, 0, 0.15);            /* Fondo ligero para la caja de texto */
}

.thank-you-text p {
    margin-bottom: 25px;
}

.thank-you-text p:last-child {
    margin-bottom: 0; /* Evita espacio extra al final del scroll */
}

/* --- DISEÑO DE LA BARRA DE SCROLL GLOBAL --- */
.thank-you-text::-webkit-scrollbar {
    width: 6px; /* Barra delgada y elegante */
}

.thank-you-text::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.thank-you-text::-webkit-scrollbar-thumb {
    background: #f5da95; 
    border-radius: 10px;
}

/* Divisores elegantes */
.divider {
    display: block;
    width: 50%;
    height: 1px;
    background-color: #f5da95;
    margin: 0 auto;
}

/* --- AJUSTES ESPECÍFICOS PARA MÓVILES (Cambios de layout) --- */
@media (max-width: 768px) {
    #seccion-agradecimiento {
        min-height: auto; 
        padding: 50px 20px;
    }

    .thank-you-title {
        font-size: 1.8rem;
        margin: 25px 0; 
    }

    .thank-you-text {
        font-size: 1.1rem;
        text-align: center; /* En móviles suele leerse mejor centrado en bloques cortos */
        max-height: 40vh;   /* Ajuste de altura específico para pantallas pequeñas */
        padding: 0 15px;    
    }
    
    .divider {
        width: 70%; /* Divisor un poco más ancho en móviles */
    }
}