/* Botón de Contacto - Estilos CSS */

/* Botón flotante */
#boton-contacto-flotante {
    position: fixed;
    z-index: 9999;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#boton-contacto-flotante:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.boton-contacto-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: white;
    text-decoration: none;
    border-radius: 50%;
    font-weight: 600;
    font-size: 20px;
    transition: all 0.3s ease;
}

.boton-contacto-icono {
    font-size: 24px;
    transition: transform 0.3s ease;
}

#boton-contacto-flotante:hover .boton-contacto-icono {
    transform: rotate(10deg);
}

/* Tooltip */
.boton-contacto-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 10001;
}

.boton-contacto-tooltip::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border: 5px solid transparent;
}

/* Posiciones del tooltip */
.boton-contacto-bottom-right .boton-contacto-tooltip {
    right: 70px;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
}

.boton-contacto-bottom-right .boton-contacto-tooltip::after {
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border-left-color: rgba(0, 0, 0, 0.9);
}

.boton-contacto-bottom-left .boton-contacto-tooltip {
    left: 70px;
    top: 50%;
    transform: translateY(-50%) translateX(-10px);
}

.boton-contacto-bottom-left .boton-contacto-tooltip::after {
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    border-right-color: rgba(0, 0, 0, 0.9);
}

.boton-contacto-top-right .boton-contacto-tooltip {
    right: 70px;
    bottom: 50%;
    transform: translateY(50%) translateX(10px);
}

.boton-contacto-top-right .boton-contacto-tooltip::after {
    left: 100%;
    bottom: 50%;
    transform: translateY(50%);
    border-left-color: rgba(0, 0, 0, 0.9);
}

.boton-contacto-top-left .boton-contacto-tooltip {
    left: 70px;
    bottom: 50%;
    transform: translateY(50%) translateX(-10px);
}

.boton-contacto-top-left .boton-contacto-tooltip::after {
    right: 100%;
    bottom: 50%;
    transform: translateY(50%);
    border-right-color: rgba(0, 0, 0, 0.9);
}

/* Mostrar tooltip en hover */
#boton-contacto-flotante:hover .boton-contacto-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

.boton-contacto-bottom-left:hover .boton-contacto-tooltip,
.boton-contacto-top-left:hover .boton-contacto-tooltip {
    transform: translateY(-50%) translateX(0);
}

.boton-contacto-top-right:hover .boton-contacto-tooltip,
.boton-contacto-top-left:hover .boton-contacto-tooltip {
    transform: translateY(50%) translateX(0);
}

/* Posiciones */
.boton-contacto-bottom-right {
    bottom: 20px;
    right: 20px;
}

.boton-contacto-bottom-left {
    bottom: 20px;
    left: 20px;
}

.boton-contacto-top-right {
    top: 20px;
    right: 20px;
}

.boton-contacto-top-left {
    top: 20px;
    left: 20px;
}

/* Modal */
.boton-contacto-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.boton-contacto-modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    position: relative;
    animation: slideIn 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.boton-contacto-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 15px;
    top: 10px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.boton-contacto-close:hover {
    color: #000;
}

.boton-contacto-modal-content h3 {
    margin-top: 0;
    color: #333;
    font-size: 24px;
    margin-bottom: 20px;
}

.boton-contacto-info {
    margin-bottom: 20px;
}

.boton-contacto-info p {
    margin: 10px 0;
    font-size: 16px;
    color: #555;
}

.boton-contacto-info a {
    color: #007cba;
    text-decoration: none;
    font-weight: 600;
}

.boton-contacto-info a:hover {
    text-decoration: underline;
}

.boton-contacto-redes {
    text-align: center;
}

.boton-contacto-whatsapp {
    display: inline-block;
    background-color: #25D366;
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.boton-contacto-whatsapp:hover {
    background-color: #128C7E;
    color: white;
    text-decoration: none;
}

/* Botón inline (para shortcode) */
.boton-contacto-inline {
    display: inline-block;
    margin: 10px 0;
}

.boton-contacto-inline a {
    display: inline-block;
    padding: 12px 24px;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.boton-contacto-inline a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: white;
    text-decoration: none;
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    #boton-contacto-flotante {
        width: 50px;
        height: 50px;
    }
    
    .boton-contacto-icono {
        font-size: 20px;
    }
    
    .boton-contacto-tooltip {
        display: none; /* Ocultar tooltip en móviles */
    }
    
    .boton-contacto-modal-content {
        margin: 10% auto;
        padding: 20px;
        width: 95%;
    }
    
    .boton-contacto-bottom-right,
    .boton-contacto-bottom-left {
        bottom: 15px;
    }
    
    .boton-contacto-top-right,
    .boton-contacto-top-left {
        top: 15px;
    }
}

@media (max-width: 480px) {
    #boton-contacto-flotante {
        width: 45px;
        height: 45px;
    }
    
    .boton-contacto-icono {
        font-size: 18px;
    }
}

/* Estilos para la página de administración */
.boton-contacto-info-box {
    background: #f1f1f1;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 15px;
    margin-top: 20px;
}

.boton-contacto-info-box h3 {
    margin-top: 0;
    color: #23282d;
}

.boton-contacto-info-box code {
    background: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: Consolas, Monaco, monospace;
}

/* Estilos para el selector de iconos */
.icono-selector {
    margin: 10px 0;
}

.icono-selector select {
    width: 100%;
    max-width: 300px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.icono-preview {
    display: flex;
    align-items: center;
    padding: 10px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 10px;
}

.icono-preview i {
    margin-right: 10px;
    color: #007cba;
}

/* Estilos para campos de configuración */
.form-table th {
    width: 200px;
    padding: 20px 10px 20px 0;
}

.form-table td {
    padding: 15px 10px;
}

.form-table input[type="text"],
.form-table input[type="email"],
.form-table input[type="color"],
.form-table select {
    width: 100%;
    max-width: 300px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-table input[type="checkbox"] {
    margin-right: 8px;
}

.description {
    font-style: italic;
    color: #666;
    margin-top: 5px;
}
