﻿/* Variables actualizadas para el logo de SANCRISTOBAL */
:root {
    /* Colores principales basados en el logo de San Cristóbal */
    --primary-color: #4A90E2 !important; /* Azul del círculo del logo */
    --primary-hover: #5BA0F2 !important; /* Azul más claro para hover */
    --primary-active: #3A80D2 !important; /* Azul más oscuro para active */
    --secondary-color: #FF6B35 !important; /* Naranja/rojo del gradiente superior */
    --secondary-hover: #FF8A65 !important; /* Naranja más claro para hover */
    --accent-color: #7ED321; /* Verde del gradiente inferior */
    
    /* Colores de apoyo */
    --text-color: #2e2e2e; /* Gris oscuro similar al negro del logo */
    --background-color: #f8f9fa; /* Fondo claro */
    --border-color: #e0e0e0;
    --texto-menu: white;
    --texto-hover: white;
    
    /* Variables de diseño */
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --card-shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.2);
    --transition-speed: 0.3s;
    --border-radius: 8px;
    --border-color-animate: rgba(255, 255, 255, 0.8);
}
/* Reset y estilos básicos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
}


/* Contenedor principal del menú */
#nav {
    padding: 20px;
    box-sizing: border-box;
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    margin-bottom: 20px;
}

/* Barra de búsqueda */
.search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto 20px;
}

.search-container input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-size: 16px;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.search-container input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(19, 145, 180, 0.2);
}

.search-container .search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 20px;
}

/* Contenedor principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Loading overlay */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.loading-content {
    text-align: center;
    background-color: white;
    padding: 30px 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    max-width: 90%;
    width: 350px;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
    margin: 0 auto 20px;
}

.loading-text {
    color: var(--text-color);
    font-size: 18px;
    font-weight: 500;
}

.loading-subtext {
    color: #777;
    font-size: 14px;
    margin-top: 10px;
}


/* PDF Viewer */
.pdf-viewer {
    width: 100%;
    margin: 20px 0;
    padding: 20px;
    background-color: #f5f5f5;
    border-radius: var(--border-radius);
    text-align: center;
}

.pdf-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color var(--transition-speed) ease, transform 0.2s ease;
    min-width: 180px;
}

.action-button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.action-button i {
    margin-right: 10px;
    font-size: 18px;
}


/* Nuevo estilo de menú con tarjetas */
#menu-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
    position: relative;
}

/* Estilo del botón con efecto shadow-float */
.menu-item {
    position: relative;
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: all var(--transition-speed) ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px 15px;
    min-height: 50px;
    transform: translateY(0);
    border-bottom: 3px solid var(--accent-color); /* Borde inferior con el color acento */
}

/* Efecto shadow-float al pasar el cursor */
.menu-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-shadow-hover);
    background-color: var(--primary-hover);
    border-bottom-color: var(--secondary-color);
}

.menu-text {
    font-size: 16px;
    font-weight: 600;
    color: white;
    position: relative;
}

/* Estilo para cuando un elemento está seleccionado */
.menu-item.selected {
    background-color: var(--primary-active);
    border-left: 4px solid var(--secondary-color);
}

/* Nuevo botón "Mostrar todos" */
.show-all-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    box-shadow: var(--card-shadow);
    transform: translateY(0);
    border-bottom: 3px solid var(--accent-color);
}

.show-all-button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: var(--card-shadow-hover);
    border-bottom-color: var(--secondary-color);
}

.show-all-button svg {
    width: 20px;
    height: 20px;
}

/* Mensaje de no resultados */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 30px;
    color: #666;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    border: 1px dashed #ddd;
}

/* Estilos para dispositivos móviles */
@media (max-width: 768px) {
    #menu-container {
        grid-template-columns: 1fr;
    }
    
    .menu-item {
        padding: 20px 15px;
    }
    
    .search-container {
        margin-bottom: 15px;
    }
}

/* Estilos para el iframe */
#content-iframe {
    width: 100%;
    height: calc(100vh - 180px);
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

/* Animaciones de entrada */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.menu-item {
    animation: fadeIn 0.5s ease forwards;
}

/* Animación para varios elementos con retardo */
.menu-item:nth-child(1) { animation-delay: 0.05s; }
.menu-item:nth-child(2) { animation-delay: 0.1s; }
.menu-item:nth-child(3) { animation-delay: 0.15s; }
.menu-item:nth-child(4) { animation-delay: 0.2s; }
.menu-item:nth-child(5) { animation-delay: 0.25s; }
.menu-item:nth-child(6) { animation-delay: 0.3s; }
.menu-item:nth-child(7) { animation-delay: 0.35s; }
.menu-item:nth-child(8) { animation-delay: 0.4s; }
.menu-item:nth-child(9) { animation-delay: 0.45s; }
.menu-item:nth-child(10) { animation-delay: 0.5s; }
.menu-item:nth-child(n+11) { animation-delay: 0.55s; }

/* Encabezado */
.header-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}
/* Estilo personalizado para el header */
/*.header-container {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-active));
    color: white;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    box-shadow: var(--card-shadow);
    border-bottom: 4px solid var(--accent-color);
}*/

.logo-column img {
    max-width: 100px;
    height: auto;
    border-radius: 10px;
}

/*.logo-column img {
    max-width: 120px;
    height: auto;
    border-radius: 10px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}*/

.name-column {
    margin-left: 20px;
}

.name-column h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.name-column p {
    color: var(--primary-hover);
    font-size: 1.1rem;
    font-weight: 400;
}

/*.name-column {
    font-size: 28px;
    font-weight: bold;
    margin-left: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}*/
/* Tarjetas */
.card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card h2 {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    padding: 20px;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.card h2 i {
    margin-right: 10px;
    font-size: 1.3rem;
}

/* Información del cliente */
.cliente-info {
    padding: 25px;
}

.cliente-details h2 {
    background: none;
    color: var(--primary-color);
    padding: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
}

.info-row {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.info-row:hover {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding-left: 10px;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row i {
    color: var(--primary-color);
    margin-right: 15px;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.info-label {
    font-weight: 600;
    color: var(--primary-color);
    margin-right: 10px;
    min-width: 120px;
}

.info-value {
    color: var(--text-color);
    font-weight: 400;
}

/* Visor de PDF */
.pdf-viewer {
    padding: 25px;
    text-align: center;
}

.status-message {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 500;
}

.status-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-left: 5px solid #28a745;
}

.status-message i {
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Botones de acción - actualizado para usar los existentes */
.pdf-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
    padding: 20px 25px;
    background-color: #f8f9fa;
}

.action-button {
    display: inline-flex;
    align-items: center;
    padding: 12px 25px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.action-button:hover {
    background: linear-gradient(135deg, var(--primary-hover), var(--primary-active));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 47, 94, 0.3);
    color: white;
    text-decoration: none;
}

.action-button i {
    margin-right: 8px;
    font-size: 1.1rem;
}

/* Tarjeta de error */
.alert {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-left: 5px solid #dc3545;
    border-radius: 10px;
    margin: 20px;
}

.alert i {
    margin-right: 15px;
    font-size: 1.5rem;
    margin-top: 2px;
    color: #dc3545;
}

.alert strong {
    display: block;
    margin-bottom: 5px;
    font-size: 1.1rem;
}