/* Estilos para la página de contacto */
/* --- Estilos para la Cabecera de Contacto --- */

.contact-header-section {
    background-color: #f8f9fa;
    background-image: radial-gradient(#e0e0e0 1px, transparent 1px);
    background-size: 15px 15px;
    /* Se mantiene el padding superior, pero el inferior se pone a cero */
    padding-top: 3rem;
    padding-bottom: 0; 
    overflow: hidden;
}

.contact-header-title {
    font-size: 4rem;
    font-weight: 400;
    color: #212529;
    letter-spacing: 2px;
    margin-bottom: 0;
    line-height: 1;
}

.contact-header-subtitle {
    font-size: 2rem;
    font-weight: 300;
    color: #495057;
    margin-top: 0.5rem;
}

.contact-details-list {
    margin-top: 2.5rem !important;
}

.contact-details-list li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #495057;
}

.contact-details-list li i {
    color: #6c757d; /* Color gris para los iconos */
    font-size: 1.1rem;
    width: 30px; /* Ancho fijo para alinear el texto */
    text-align: center;
    margin-right: 0.5rem;
}

.contact-details-list li a {
    color: var(--color-dorado); /* Usando tu variable de color dorado */
    text-decoration: none;
    font-weight: 500;
}

.contact-details-list li a:hover {
    text-decoration: underline;
}

.contact-header-image-wrapper {
    width: 100%;
    height: 350px;
    background-image: url('../imagenes/cabecera-proyectos.jpg');
    background-size: cover;
    background-position: center;
    /* La magia del recorte con clip-path para ambos lados */
    clip-path: polygon(25% 0, 100% 0, 75% 100%, 0% 100%);
    /* Se elimina el margen inferior */
    margin-bottom: 0; 
}

/* Ajustes responsivos */
@media (max-width: 991.98px) {
    .contact-header-section {
        padding: 4rem 0;
        text-align: center;
    }

    .contact-details-list li {
        justify-content: center; /* Centra los items en pantallas medianas */
    }

    /* Ocultamos la imagen en tabletas y móviles, ya que el diseño no se adapta bien */
    .contact-header-image-wrapper {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .contact-header-title {
        font-size: 3rem;
    }
    .contact-header-subtitle {
        font-size: 1.5rem;
    }
}


.contact-form-container {
    background-color: #ffffff;
    border-radius: .5rem;
}

/* Estilos para el campo de subida de archivo personalizado */
.custom-file-upload {
    position: relative;
    display: block;
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 120px;
    border: 2px dashed #e0e0e0;
    border-radius: .375rem;
    background-color: #f8f9fa;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.file-upload-label:hover {
    border-color: var(--color-dorado);
    background-color: #f1f3f5;
}

.file-upload-icon i {
    font-size: 2.5rem;
    color: #adb5bd;
    margin-right: 1rem;
}

.file-upload-text {
    font-size: 1rem;
    color: #6c757d;
    font-weight: 400;
}