/* Guías públicas para clientes (apps/TeamViewer.html, apps/NextCloud.html). Estilo de apps/asistencia-remota.html. */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    border-radius: 8px;
    overflow: hidden;
}

.pdf-content {
    padding: 60px;
}

.header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 3px solid #667eea;
}

.logo {
    margin-bottom: 20px;
    font-family: Arial, sans-serif;
}

.logo strong {
    display: block;
    color: #667eea;
    font-size: 28px;
}

.logo span {
    color: #4a5568;
    font-size: 14px;
}

h1 {
    color: #2d3748;
    font-size: 32px;
    margin-bottom: 10px;
}

.subtitle {
    color: #718096;
    font-size: 18px;
    margin-top: 15px;
}

.section {
    margin-bottom: 40px;
}

.section-title {
    color: #667eea;
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.info-box {
    background: #f7fafc;
    border-left: 4px solid #667eea;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 4px;
}

.info-box h3 {
    color: #2d3748;
    font-size: 18px;
    margin-bottom: 10px;
}

.info-box p {
    color: #4a5568;
    line-height: 1.6;
    font-size: 15px;
}

.step {
    display: flex;
    margin-bottom: 30px;
    align-items: flex-start;
    page-break-inside: avoid;
    break-inside: avoid;
}

.step-number {
    background: #667eea;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    flex-shrink: 0;
    margin-right: 20px;
}

.step-content {
    flex: 1;
    min-width: 0;
}

.step-content h3 {
    color: #2d3748;
    font-size: 18px;
    margin-bottom: 10px;
}

.step-content p {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 15px;
}

.step-content a,
.info-box a,
.important-note a {
    color: #5568d3;
    word-break: break-all;
}

.screenshot {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    margin-top: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    page-break-inside: avoid;
    break-inside: avoid;
}

.important-note {
    background: #fff5f5;
    border-left: 4px solid #fc8181;
    padding: 20px;
    margin: 30px 0;
    border-radius: 4px;
    page-break-inside: avoid;
    break-inside: avoid;
}

.important-note h3 {
    color: #c53030;
    margin-bottom: 10px;
}

.important-note p {
    color: #742a2a;
    line-height: 1.6;
}

.button-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    gap: 15px;
}

.action-btn {
    background: #48bb78;
    color: white;
    border: none;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(72, 187, 120, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.action-btn:hover {
    background: #38a169;
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(72, 187, 120, 0.5);
}

.footer {
    text-align: center;
    padding: 30px;
    background: #f7fafc;
    color: #718096;
    font-size: 14px;
}

.footer a {
    color: #5568d3;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: white;
    font-weight: bold;
    font-size: 15px;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(37,211,102,0.35);
    transition: all 0.3s ease;
    margin-top: 15px;
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(18,140,126,0.45);
}

.btn-whatsapp svg {
    width: 20px;
    height: 20px;
    fill: white;
    flex-shrink: 0;
}

@media print {
    body {
        background: white;
        padding: 0;
    }
    .container {
        box-shadow: none;
    }
    .button-container {
        display: none;
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    .pdf-content {
        padding: 24px 18px;
    }
    h1 {
        font-size: 24px;
    }
    .step-number {
        width: 32px;
        height: 32px;
        font-size: 15px;
        margin-right: 12px;
    }
    .button-container {
        bottom: 20px;
        right: 20px;
    }
    .action-btn {
        font-size: 14px;
        padding: 12px 24px;
    }
}
