/* Conectado Pro - Estilos Completos */

/* Reset y basics */
* {
    box-sizing: border-box;
}

body.conectado-page {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
}

/* Ocultar elementos de WordPress en páginas de Conectado */
.conectado-page .site-header,
.conectado-page .site-footer,
.conectado-page #masthead,
.conectado-page #colophon,
.conectado-page .entry-header,
.conectado-page .entry-meta,
.conectado-page .entry-footer {
    display: none !important;
}

.conectado-page #primary,
.conectado-page #main,
.conectado-page .site-main {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.conectado-page .entry-content {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Contenedor principal de React */
#conectado-root {
    width: 100%;
    min-height: 100vh;
    background: #f9fafb;
}

/* Line clamp utility */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Animaciones suaves */
.smooth-transition {
    transition: all 0.3s ease;
}

/* Scrollbar personalizado */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Loading spinner */
.conectado-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #8b5cf6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mejoras para modales */
.conectado-modal-backdrop {
    backdrop-filter: blur(4px);
}

/* Estilos para empleos tipo flyer */
.empleo-flyer {
    aspect-ratio: 9/16;
    max-height: 600px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Badges y tags mejorados */
.conectado-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Tarjetas con hover effect */
.conectado-card {
    transition: all 0.2s ease;
}

.conectado-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Botones personalizados */
.conectado-btn {
    transition: all 0.2s ease;
    font-weight: 600;
}

.conectado-btn:active {
    transform: scale(0.95);
}

/* Responsive utilities */
@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .show-mobile-only {
        display: none !important;
    }
}

/* Admin notices */
.conectado-admin-notice {
    background: #f0f0f1;
    border-left: 4px solid #8b5cf6;
    padding: 12px;
    margin: 20px 0;
}

.conectado-admin-notice.success {
    border-left-color: #10b981;
}

.conectado-admin-notice.error {
    border-left-color: #ef4444;
}

/* Imagen placeholder */
.conectado-placeholder {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 2rem;
}

/* Skeleton loading */
.conectado-skeleton {
    animation: skeleton-loading 1s linear infinite alternate;
}

@keyframes skeleton-loading {
    0% {
        background-color: hsl(200, 20%, 80%);
    }
    100% {
        background-color: hsl(200, 20%, 95%);
    }
}

/* Toast notifications */
.conectado-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    animation: toast-slide-in 0.3s ease;
}

@keyframes toast-slide-in {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
}
