/* Estilos específicos para la página de contacto */

/* Header de la página */
.contacto-header {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 3rem 0;
    text-align: center;
}

/* Contenido principal de contacto */
.contacto-content {
    padding: 4rem 0;
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

/* Información de contacto */
.contacto-info h3,
.contacto-form h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.contacto-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.contacto-icon {
    background-color: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.contacto-icon i {
    font-size: 1.2rem;
}

.contacto-details h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contacto-details p,
.contacto-details a {
    color: var(--text-color);
    text-decoration: none;
}

.contacto-details a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Redes sociales */
.social-media {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 140, 0, 0.4);
}

/* Formulario de contacto */
.contacto-form {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 140, 0, 0.2);
}

.btn-enviar {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
}

.btn-enviar:hover {
    background-color: var(--primary-dark);
}

/* Modal del mapa */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 8px;
    width: 80%;
    max-width: 800px;
    position: relative;
    animation: modalopen 0.5s;
}

@keyframes modalopen {
    from {opacity: 0; transform: translateY(-50px);}
    to {opacity: 1; transform: translateY(0);}
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 20px;
    cursor: pointer;
}

.close:hover {
    color: var(--primary-color);
}

.map-container {
    margin-top: 1rem;
}

/* Iconos flotantes de redes sociales */
.icon-group-left {
    position: fixed;
    left: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.icon-group-right {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1000;
}

.floating-icon {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF8C00, #E67E00);
    color: white !important;
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.4);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    text-decoration: none;
    font-size: 28px;
    cursor: pointer;
}

.floating-icon:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(255, 140, 0, 0.6);
}

.floating-icon i {
    color: white !important;
    font-size: 28px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 140, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 140, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 140, 0, 0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .contacto-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 1.5rem;
    }
    
    /* Responsive para iconos flotantes en tablets */
    .floating-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .floating-icon i {
        font-size: 24px;
    }
    
    .icon-group-left {
        left: 15px;
        bottom: 15px;
    }
    
    .icon-group-right {
        right: 15px;
        bottom: 15px;
    }
}

@media (max-width: 480px) {
    .contacto-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .contacto-icon {
        margin-bottom: 0.5rem;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    /* Responsive para iconos flotantes en móviles */
    .floating-icon {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .floating-icon i {
        font-size: 20px;
    }
    
    .icon-group-left {
        left: 10px;
        bottom: 10px;
        gap: 10px;
    }
    
    .icon-group-right {
        right: 10px;
        bottom: 10px;
    }
}

@media (max-width: 320px) {
    /* Responsive para iconos flotantes en móviles muy pequeños */
    .floating-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .floating-icon i {
        font-size: 18px;
    }
    
    .icon-group-left {
        left: 8px;
        bottom: 8px;
        gap: 8px;
    }
    
    .icon-group-right {
        right: 8px;
        bottom: 8px;
    }
}