@charset "utf-8";
/* CSS Document - Estilos Modernos para Páginas de Soporte */

/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Contenedor principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header y título */
.header {
    text-align: center;
    margin-bottom: 3rem;
}

.title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 1rem;
}

/* Tarjetas principales */
.nav-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

/* Navegación */
.nav-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    list-style: none;
    margin-bottom: 1.5rem;
}

.nav-item {
    background: linear-gradient(45deg, #4facfe 0%, #00f2fe 100%);
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nav-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(79, 172, 254, 0.4);
}

.nav-item a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
}

/* Enlaces generales */
a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #4facfe;
}

a:visited {
    color: #667eea;
}

/* Enlaces específicos */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #4facfe;
}

.top-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    margin-top: 1rem;
    transition: color 0.3s ease;
}

.top-link:hover {
    color: #4facfe;
}

.download-link {
    display: inline-block;
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    margin: 0.5rem 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.download-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Secciones de aplicaciones */
.app-section {
    background: white;
    border-radius: 12px;
    margin-bottom: 2rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.app-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem 2rem;
}

.app-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.app-url {
    color: #e0e6ff;
    text-decoration: none;
    font-weight: 500;
}

.app-url:hover {
    color: white;
    text-decoration: underline;
}

.app-content {
    padding: 2rem;
}

.app-description {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #555;
}

/* Grillas de instrucciones */
.instructions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.instruction-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid #e9ecef;
}

.instruction-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.instruction-image:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.instruction-text {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
}

/* Sección de configuración */
.config-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 2rem;
    margin: 1.5rem 0;
    border-left: 4px solid #667eea;
}

.config-item {
    margin-bottom: 1rem;
}

.config-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    display: block;
}

.config-value {
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.75rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #2d3748;
    display: inline-block;
    margin-right: 0.5rem;
}

/* Botones */
.copy-btn {
    background: #667eea;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.copy-btn:hover {
    background: #5a67d8;
}

/* Elementos de separación */
.divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #ddd, transparent);
    margin: 3rem 0;
}

/* Destacados */
.highlight {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 1rem;
    margin: 1rem 0;
}

/* Clases de utilidad legacy (para compatibilidad) */
.fondo {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.textoconsola {
    font-family: "Courier New", Courier, monospace;
    font-weight: bold;
    color: #2d3748;
    background-color: #f7fafc;
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

/* === ESTILOS PARA LIGHTBOX === */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-in-out;
}

.lightbox-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease-in-out;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: #ccc;
}

/* Animaciones para lightbox */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive Design */

/* Tablets y pantallas medianas */
@media (max-width: 1024px) {
    .container {
        padding: 1.5rem;
    }
    
    .instructions-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .title {
        font-size: 2.2rem;
    }
}

/* Tablets pequeñas y móviles grandes */
@media (max-width: 768px) {
    .title {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .container {
        padding: 1rem;
    }
    
    .nav-list {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .nav-item {
        padding: 1rem 1.5rem;
    }
    
    .nav-item a {
        font-size: 1.2rem;
    }
    
    .instructions-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .app-header {
        padding: 1.5rem 1rem;
    }
    
    .app-content {
        padding: 1.5rem 1rem;
    }
    
    .config-section {
        padding: 1.5rem 1rem;
    }
    
    .instruction-card {
        padding: 1rem;
    }
    
    .instruction-image {
        max-width: 100%;
        height: auto;
    }
    
    .config-value {
        display: block;
        margin-bottom: 0.5rem;
        word-break: break-all;
        font-size: 0.85rem;
    }
    
    .copy-btn {
        display: block;
        width: 100%;
        margin-top: 0.5rem;
        padding: 0.75rem;
        font-size: 1rem;
    }
    
    .config-item {
        margin-bottom: 1.5rem;
    }
    
    /* Lightbox responsive */
    .lightbox-close {
        font-size: 30px;
        top: 15px;
        right: 20px;
    }
    
    .lightbox-image {
        max-width: 95%;
        max-height: 85%;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    .title {
        font-size: 1.6rem;
        line-height: 1.2;
    }
    
    .container {
        padding: 0.5rem;
    }
    
    .nav-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .nav-item {
        padding: 0.75rem 1rem;
    }
    
    .nav-item a {
        font-size: 1rem;
    }
    
    .app-header {
        padding: 1rem;
    }
    
    .app-content {
        padding: 1rem;
    }
    
    .app-title {
        font-size: 1.3rem;
    }
    
    .app-description {
        font-size: 1rem;
    }
    
    .instruction-card {
        padding: 1rem;
    }
    
    .instruction-text {
        font-size: 0.9rem;
    }
    
    .config-section {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .config-value {
        font-size: 0.75rem;
        padding: 0.5rem;
        word-break: break-all;
    }
    
    .copy-btn {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
    
    .highlight {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .download-link {
        display: block;
        text-align: center;
        margin: 1rem 0;
        padding: 1rem;
        font-size: 1rem;
    }
    
    .divider {
        margin: 2rem 0;
    }
}

/* Móviles muy pequeños */
@media (max-width: 320px) {
    .title {
        font-size: 1.4rem;
    }
    
    .container {
        padding: 0.25rem;
    }
    
    .nav-card {
        padding: 0.75rem;
    }
    
    .app-header {
        padding: 0.75rem;
    }
    
    .app-content {
        padding: 0.75rem;
    }
    
    .config-section {
        padding: 0.75rem;
    }
    
    .config-value {
        font-size: 0.7rem;
        padding: 0.4rem;
    }
}

/* Mejoras específicas para touch devices */
@media (pointer: coarse) {
    .nav-item {
        min-height: 44px; /* Tamaño mínimo recomendado para touch */
    }
    
    .copy-btn {
        min-height: 44px;
    }
    
    .back-link,
    .top-link {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
}

/* Mejoras para dispositivos con hover */
@media (hover: hover) {
    .nav-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 20px rgba(79, 172, 254, 0.4);
    }
    
    .download-link:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    }
}