/* ========== ESTILOS ESPECÍFICOS – PÁGINA TESISTA ========== */

* {
    box-sizing: border-box;
}

/* --- Encabezado con imagen de fondo (estilo hero) --- */
.page-header {
    position: relative;
    color: white;
    padding: 0;
    text-align: center;
    margin-bottom: 2rem;
    margin-top: 70px;
    overflow: hidden;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-header__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.page-header__bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-header__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(30,59,47,0.7) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 2;
}

.page-header__content {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 7rem 1rem 4rem;
    animation: fadeInUp 1s ease-out;
}

.page-header h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.page-header p {
    font-size: 1.2rem;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Contenedor principal --- */
.content-section {
    max-width: 900px;
    margin: 2rem auto;
    background: transparent;
    border-radius: 1.8rem;
    padding: 2.5rem;
    box-shadow: none;
}

/* --- Lista simple --- */
.simple-list {
    list-style: none;
    padding-left: 0;
    margin: 1.5rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.simple-list li {
    background: #eef5e9;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: #1e3b2f;
}

/* --- Caja informativa (requisitos) --- */
.info-box {
    background: #f4f7f0;
    padding: 1.8rem;
    border-radius: 1.5rem;
    margin: 2rem 0;
    border-left: 5px solid var(--color-sunset-gold, #d49b3b);
}
.info-box h3 {
    margin-bottom: 1.5rem;
}
.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    background: rgba(255,255,255,0.6);
    padding: 1rem;
    border-radius: 1rem;
    transition: background 0.3s;
}
.detail-item:hover {
    background: rgba(255,255,255,0.9);
}
.detail-item i {
    font-size: 1.5rem;
    color: var(--color-sunset-gold, #d49b3b);
    width: 2rem;
    text-align: center;
    margin-top: 0.2rem;
    flex-shrink: 0;
}
.detail-item strong {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 1rem;
    color: #1e3b2f;
}
.detail-item p {
    margin: 0;
    font-size: 0.9rem;
    color: #5c5348;
    line-height: 1.3;
}

/* --- Formulario --- */
.form-group {
    margin-bottom: 1.2rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: #1e3b2f;
    font-size: 0.95rem;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border-radius: 1rem;
    border: 1px solid #d1d5c7;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: border 0.3s, box-shadow 0.3s;
    background: #fafafa;
    box-sizing: border-box;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--color-sunset-gold, #d49b3b);
    box-shadow: 0 0 0 3px rgba(212, 155, 59, 0.2);
    outline: none;
    background: white;
}
.form-group input[type="file"] {
    padding: 0.5rem;
    background: white;
}

/* --- Filas de dos columnas para el formulario --- */
.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.2rem;
}
.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

/* --- Botn de envío --- */
.btn-submit {
    background: linear-gradient(135deg, var(--color-sunset-gold, #d49b3b), var(--color-warm-orange, #e07b39));
    color: white;
    border: none;
    padding: 0.9rem 2.5rem;
    border-radius: 3rem;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-block;
}
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(224, 123, 57, 0.4);
}

.required {
    color: #d9534f;
    font-weight: 600;
}

.dropdown-link--active {
    color: var(--color-sunset-gold, #d49b3b) !important;
    font-weight: 700;
}

/* ========== ESTILOS DE VALIDACIÓN ========== */
.error-input {
    border: 2px solid #e74c3c !important;
    background-color: #fff5f5 !important;
}
.error-message {
    color: #e74c3c;
    font-size: 0.8rem;
    margin-top: 0.3rem;
    display: none;
    font-weight: 500;
}
.error-message.show {
    display: block;
}
.success-message {
    color: #27ae60;
    font-weight: 600;
    text-align: center;
    margin-top: 1rem;
    display: none;
}
.success-message.show {
    display: block;
}

/* ========== RESPONSIVE – TABLET ========== */
@media (max-width: 900px) {
    .content-section {
        width: calc(100% - 3rem);
        max-width: 100%;
        margin: 1.5rem auto;
        padding: 1.8rem;
    }
    .page-header__content {
        padding: 5rem 1.5rem 2.5rem;
    }
    .page-header {
        margin-top: 60px;
    }
}

/* ========== RESPONSIVE – MÓVIL ========== */
@media (max-width: 768px) {
    .page-header {
        min-height: 300px;
        margin-top: 60px;
    }
    .page-header__content {
        padding: 4.5rem 1rem 2rem;
    }
    .page-header h1 {
        font-size: 2rem;
    }
    .page-header p {
        font-size: 1rem;
    }
    
    .content-section {
        background: transparent;
        box-shadow: none;
        padding: 0 1rem;
        margin: 1rem auto 3rem auto;
        border-radius: 0;
        width: 100%;
    }
    
    .details-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        width: 100%;
        max-width: 100%;
    }
    .detail-item {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0.8rem 0.4rem;
        text-align: center;
        gap: 0.4rem;
        overflow: hidden;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    .detail-item i {
        font-size: 1.4rem;
        width: auto;
        margin-bottom: 0.2rem;
        margin-top: 0;
    }
    .detail-item strong {
        font-size: 0.75rem;
        margin-bottom: 0.2rem;
        line-height: 1.2;
    }
    .detail-item p {
        font-size: 0.7rem;
        line-height: 1.1;
    }
    
    .simple-list {
        flex-direction: column;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
        margin-bottom: 0;
    }
    .form-row .form-group {
        margin-bottom: 1.2rem;
    }
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.8rem 1rem;
        font-size: 0.95rem;
    }
    .btn-submit {
        width: 100%;
        text-align: center;
        padding: 0.9rem;
        font-size: 1rem;
    }
    h2 {
        font-size: 1.6rem;
    }
    p {
        font-size: 0.95rem;
    }
}
/* Deshabilitar redimensionamiento */
textarea {
    resize: none !important;
}
