/* ========== Fondo de la Página de Contacto ========== */
.contact-page-bg {
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
}

/* ========== Wrapper y Contenedor de Contacto ========== */
.contact-wrapper {
    background: #fff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    padding: 3rem 2.5rem;
    border: 1px solid rgba(129, 196, 8, 0.1);
}

.map-container {
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.map-container:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* ========== Formulario de Contacto ========== */
.form-group {
    margin-bottom: 1.25rem;
}

.form-input {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-input:focus {
    border-color: #81c408;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(129, 196, 8, 0.1);
}

.form-input::placeholder {
    color: #adb5bd;
}

.btn-submit {
    background: linear-gradient(135deg, #81c408 0%, #6da307 100%);
    border: none;
    border-radius: 8px;
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(129, 196, 8, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-submit:active::before {
    width: 300px;
    height: 300px;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #6da307 0%, #5a8906 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(129, 196, 8, 0.4);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ========== Tarjetas de Contacto ========== */
.contact-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.75rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(129, 196, 8, 0.1), transparent);
    transition: left 0.5s;
}

.contact-card:hover::before {
    left: 100%;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #81c408;
}

.contact-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #81c408 0%, #6da307 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(129, 196, 8, 0.3);
    position: relative;
    z-index: 1;
}

.contact-card h4 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.contact-card p,
.contact-card a {
    color: #666;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-card a:hover {
    color: #81c408;
    text-decoration: underline;
}

/* ========== Alertas ========== */
#ajaxErrors {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    border-left: 4px solid #f44336;
    color: #c62828;
    border-radius: 8px;
    padding: 1rem 1.25rem;
}

#ajaxErrors i {
    color: #f44336;
}

#ajaxSuccess {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-left: 4px solid #4caf50;
    color: #2e7d32;
    border-radius: 8px;
    padding: 1rem 1.25rem;
}

#ajaxSuccess i {
    color: #4caf50;
}

/* ========== Animaciones ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-card {
    animation: fadeInUp 0.6s ease-out backwards;
}

.contact-card:nth-child(1) {
    animation-delay: 0.2s;
}

.contact-card:nth-child(2) {
    animation-delay: 0.3s;
}

.contact-card:nth-child(3) {
    animation-delay: 0.4s;
}

/* ========== Media Queries ========== */
@media (max-width: 1024px) {
    .contact-wrapper {
        padding: 2.5rem 2rem;
    }
}

@media (max-width: 768px) {
    .contact-wrapper {
        padding: 1.75rem 1.5rem;
    }

    .form-input {
        padding: 0.65rem 0.875rem;
        font-size: 0.9rem;
    }

    .btn-submit {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }

    .contact-card {
        padding: 1.5rem 1.25rem;
        margin-bottom: 1.25rem;
    }

    .map-container {
        height: 300px !important;
    }
}

@media (max-width: 576px) {
    .contact-wrapper {
        padding: 1.5rem 1rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .btn-submit {
        padding: 0.65rem 1.25rem;
        font-size: 0.9rem;
        width: 100%;
    }

    .contact-card {
        padding: 1.25rem 1rem;
    }

    .map-container {
        height: 250px !important;
    }

    #ajaxErrors,
    #ajaxSuccess {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}