/**
 * POPUP DE CONTACTO - ESTILOS
 * Archivo: /dinamico/css/popup-contacto.css
 * Extraido de estilos inline del archivo original
 * Corregido: eliminados duplicados, unificado .popup-overlay
 */

/* ========================================
   OVERLAY DEL MODAL (unificado)
   ======================================== */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
}

/* ========================================
   CONTENIDO DEL MODAL
   ======================================== */
.popup-content {
    position: relative;
    background: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    margin: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: modalEntrance 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ========================================
   BOTON CERRAR
   ======================================== */
.close-popup {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #6c757d;
    transition: color 0.3s ease;
}

.close-popup:hover {
    color: #343a40;
}

/* ========================================
   FORMULARIO
   ======================================== */
#contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.popup-content .form-group {
    margin-bottom: 15px;
}

.popup-content .form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: verdana;
}

.popup-content .form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* ========================================
   BOTON ENVIAR
   ======================================== */
.popup-content .btn-primary {
    display: block;
    margin: 0 auto;
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease;
    text-align: center;
}

.popup-content .btn-primary:hover {
    transform: scale(1.05);
}

.popup-content .btn-primary img {
    display: block;
    margin: 0 auto;
}

/* ========================================
   CONTENEDOR DE CONFIRMACION
   ======================================== */
#confirmation-container {
    display: none;
}

#confirmation-container p {
    color: #28a745;
    font-size: 16px;
    font-weight: bold;
    margin: 15px 0;
}

/* ========================================
   CAPTCHA
   ======================================== */
.captcha-container {
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 280px;
    margin: 0 auto;
}

#captcha {
    font-size: 16px;
    font-weight: bold;
    color: #00698f;
    user-select: none;
    margin: 8px 0;
    padding: 8px;
    border: 2px solid #00698f;
    border-radius: 4px;
    background-color: #e9f5f9;
}

.captcha-container input[type="text"] {
    width: 100%;
    padding: 8px;
    margin: 8px 0;
    border: 2px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.captcha-container button {
    background-color: #00698f;
    color: white;
    border: none;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.captcha-container button:hover {
    background-color: #005f7f;
}

#resultado {
    margin-top: 8px;
    font-weight: bold;
}

/* ========================================
   ELEMENTOS DE TEXTO
   ======================================== */
.contacto_img {
    margin-bottom: 15px;
}

.popup-content .text-left {
    text-align: left;
    margin: 10px 0;
}

/* ========================================
   ANIMACIONES
   ======================================== */
@keyframes modalEntrance {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .popup-content {
        transform: translate(-50%, -50%) scale(0.95);
    }
}

@media (max-width: 576px) {
    .popup-content {
        padding: 20px;
    }
    
    .close-popup {
        top: 10px;
        right: 15px;
        font-size: 24px;
    }
    
    .popup-content .form-control {
        font-size: 12px;
    }
}

@media (max-width: 992px) {
    .popup-content .form-group.d-lg-flex {
        justify-content: center !important;
    }
}
