/* ==============================
    ESTILOS PARA EL PIE DE PÁGINA
============================== */

.footer {
    font-family: 'Open Sans', sans-serif;
    color: #333;
    width: 100%;
}

/* Sección principal del footer */
.footer-main {
    background-color: #106B40;
    padding: 1.5rem 0 2rem;
    color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Contenedor principal de 3 columnas */
.footer-details {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
}

/* Separadores verticales */
.footer-details::before,
.footer-details::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: white;
}

.footer-details::before {
    left: 31%;
}

.footer-details::after {
    right: 25%;
}

/* Columna 1: Logo y contacto */
.footer-info {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    width: 31%;
    padding-right: 15px;
}

.footer-logo {
    margin-bottom: 1.2rem;
}

.footer-logo img {
    max-width: 200px;
    height: auto;
}

/* Teléfono principal */
.phone-main-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.phone-icon {
    width: 18px;
    height: auto;
}

/* Teléfonos secundarios */
.footer-phones-secondary {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.phone-fixed-icon {
    width: 18px;
    height: auto;
    margin-top: 3px;
}

.phone-secondary-content {
    display: flex;
    flex-direction: column;
}

.phone-title {
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.phone-list {
    list-style: none;
    padding-left: 15px;
    margin: 0;
}

.phone-list li {
    font-size: 0.85rem;
    margin-bottom: 0.1rem;
    line-height: 1.4;
    position: relative;
}

.phone-list li::before {
    content: "•";
    position: absolute;
    left: -15px;
    color: white;
}

/* Email */
.email-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.email-icon {
    width: 18px;
    height: auto;
}

.email-item a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.email-item a:hover {
    color: #f0f0f0;
    text-decoration: underline;
}

/* Columna 2: Sedes */
.footer-offices {
    width: 44%;
    padding-left: 40px;
    padding-right: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 2%;
}

.office {
    margin-bottom: 0.8rem;
}

.office-title {
    font-size: 0.9rem;
    font-weight: bold;
    margin: 0 0 0.2rem 0;
    color: #ffffff;
    
}

.office-address {
    font-size: 0.85rem;
    margin: 0;
    color: #ffffff;
    line-height: 1.3;
}

.company-info {
    margin-top: 1rem;
}

.company-info p {
    font-size: 0.85rem;
    color: #ffffff;
    line-height: 1.4;
    margin: 0;
}

/* Columna 3: Contacto */
.footer-contact {
    width: 20%;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 2%;
}

.contact-title {
    font-size: 0.9rem;
    font-weight: normal;
    margin: 0 0 0.8rem 0;
    color: #ffffff;
}

.contact-button {
    margin-bottom: 1.5rem;
}

.btn-contact {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background-color: white;
    color: #106B40;
    text-align: center;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    border: 1px solid white;
}

.btn-contact:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: #106B40;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.social-media {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.social-media p {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
    font-weight: normal;
}

.social-icons {
    display: flex;
    gap: 0.8rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icons a i {
    font-size: 22px;
    color: white;
}

.social-icons a:hover {
    transform: translateY(-3px);
}

/* Copyright */
.footer-copyright {
    background-color: #333;
    color: white;
    padding: 0.8rem 0;
    font-size: 0.8rem;
    text-align: center;
}

.copyright-text p {
    margin: 0;
}

/* Responsive */
@media (max-width: 991px) {
    .footer-details {
        flex-direction: column;
    }
    
    .footer-details::before,
    .footer-details::after {
        display: none;
    }
    
    .footer-info, .footer-offices, .footer-contact {
        width: 100%;
        text-align: center;
        padding: 0;
    }
    
    .footer-info {
        margin-bottom: 1.5rem;
    }
    
    .footer-offices {
        margin: 1.5rem 0;
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.3);
        border-bottom: 1px solid rgba(255, 255, 255, 0.3);
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .office {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 1.2rem;
    }
    
    .office-title {
        margin-bottom: 0.3rem;
        text-align: center;
    }
    
    .map-link {
        display: block;
        text-align: center;
    }
    
    .office-address {
        text-align: center;
        max-width: 280px;
    }
    
    .company-info {
        text-align: center;
        max-width: 280px;
    }
    
    .company-info p {
        text-align: center;
    }
    
    .phone-main-item, .email-item, .footer-phones-secondary {
        justify-content: center;
    }
    
    .phone-secondary-content {
        align-items: center;
    }
    
    .phone-list {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-left: 0;
    }
    
    .phone-list li::before {
        display: none;
    }
    
    .social-media {
        align-items: center;
    }
    
    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .footer-main {
        padding: 1.5rem 0;
    }
    
    .office-address, .company-info p {
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    .footer-offices {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .footer-logo img {
        max-width: 150px;
    }
    
    .office-title {
        font-size: 0.85rem;
    }
    
    .office-address {
        font-size: 0.75rem;
    }
    
    .company-info p {
        font-size: 0.75rem;
    }
}

.map-link {
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.map-link:hover .office-address {
    color: #e0e0e0;
}

.map-link .office-address {
    transition: color 0.3s ease;
}

.phone-link {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.phone-link:hover {
    color: #e0e0e0;
}

/* ==============================
    ESTILOS PARA EL MODAL DE CONTACTO
============================== */

/* Modal de contacto */
.contact-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    overflow-y: auto;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Contenido del modal */
.modal-content {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    padding: 25px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: modalopen 0.4s;
    margin: auto;
}

/* Animación para abrir el modal */
@keyframes modalopen {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Botón de cerrar */
.close-modal {
    color: #777;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    position: absolute;
    top: 10px;
    right: 15px;
    height: 30px;
    width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.close-modal:hover,
.close-modal:focus {
    color: #000;
    text-decoration: none;
}

/* Título del modal */
.modal-content h2 {
    margin-top: 10px;
    margin-bottom: 20px;
    color: #106B40;
    font-family: 'Merriweather', serif;
    font-weight: 700;
    text-align: center;
    font-size: 1.6rem;
}

/* Grupos de formulario */
.form-group {
    margin-bottom: 18px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

/* Inputs del formulario */
.form-group select,
.form-group textarea,
.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    transition: border 0.3s;
    box-sizing: border-box;
}

.form-group select:focus,
.form-group textarea:focus,
.form-group input:focus {
    border-color: #106B40;
    outline: none;
}

/* Estructura de columnas para el formulario */
.form-row {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 0;
}

.form-group.half {
    width: calc(50% - 7.5px);
}

/* Campo DNI con botón de búsqueda */
.dni-input-container {
    display: flex;
    width: 100%;
}

.form-group small {
    font-size: 0.75rem;
    color: #666;
    font-weight: normal;
    margin-left: 5px;
}

.form-group.half .dni-input-container input[id="dni"] {
    flex: 1;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

#search-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 41px;
    border: none;
    background-color: #106B40;
    color: white;
    cursor: pointer;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

#search-button:hover {
    background-color: #0a5730;
}

#search-button svg {
    width: 20px;
    height: 20px;
    display: inline-block;
    margin: 0 auto;
}

.green_rya {
    background-color: #106B40;
}

/* Botones del formulario */
.form-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    gap: 10px;
}

.cancel-btn,
.submit-btn {
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s;
    flex: 1;
    text-align: center;
}

.cancel-btn {
    background-color: #f2f2f2;
    color: #333;
}

.submit-btn {
    background-color: #106B40;
    color: white;
}

.cancel-btn:hover {
    background-color: #e6e6e6;
}

.submit-btn:hover {
    background-color: #0a5730;
}

/* Estilos responsivos para el modal */
@media (max-width: 767px) {
    .contact-modal {
        align-items: flex-start;
        padding: 15px;
    }
    
    .modal-content {
        width: 100%;
        padding: 20px;
        margin-top: 30px;
        margin-bottom: 30px;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }
    
    .form-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .cancel-btn,
    .submit-btn {
        width: 100%;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-group.half {
        width: 100%;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group small {
        display: block;
        margin-left: 0;
        margin-top: 2px;
    }
}

/* Nuevos estilos responsive para el modal */
@media (max-width: 576px) {
    .contact-modal {
        padding: 10px;
    }
    
    .modal-content {
        padding: 15px;
        max-width: 100%;
        margin: 20px 0;
    }
    
    .modal-content h2 {
        font-size: 1.3rem;
        margin-bottom: 15px;
        margin-top: 5px;
        padding-right: 20px;
    }
    
    .form-group {
        margin-bottom: 12px;
    }
    
    .form-group label {
        font-size: 0.85rem;
    }
    
    .form-group select,
    .form-group textarea,
    .form-group input {
        padding: 8px;
        font-size: 0.85rem;
        height: auto;
    }
    
    .close-modal {
        top: 5px;
        right: 10px;
        font-size: 22px;
    }
    
    .form-buttons {
        margin-top: 15px;
    }
}

@media (max-width: 400px) {
    .modal-content {
        padding: 12px;
        margin: 10px 0;
    }
    
    .form-group label {
        font-size: 0.8rem;
    }
    
    .form-group select,
    .form-group textarea,
    .form-group input {
        font-size: 0.8rem;
        padding: 8px 6px;
    }
    
    .form-group small {
        font-size: 0.7rem;
    }
    
    .cancel-btn,
    .submit-btn {
        padding: 8px 15px;
        font-size: 0.85rem;
    }
} 