/* 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: #1f2937;
    background-color: #f8fafc;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 3px solid #1e40af;
}

.header h1 {
    color: #1e40af;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

/* Sección de entrada */
.input-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    position: relative;
}

.input-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 640px) {
    .input-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.input-group input {
    padding: 12px 16px;
    border: 2px solid #22c55e;
    border-radius: 8px;
    font-size: 1rem;
    background-color: #f0fdf4;
    transition: all 0.3s ease;
    outline: none;
}

.input-group input:focus {
    border-color: #16a34a;
    background-color: #dcfce7;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.input-group input:invalid {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.input-hint {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 4px;
}

/* Botones de exportación */
.export-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.export-btn {
    flex: 1;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: white;
    border: none;
    padding: 15px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.png-btn {
    background: linear-gradient(135deg, #059669, #10b981);
}

.preview-btn {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
}

.export-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px -1px rgba(0, 0, 0, 0.15);
}

.imprimir-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px -1px rgba(0, 0, 0, 0.15);
}

/* Sección de resultados */
.results-section {
    margin-bottom: 30px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* Mejorar responsividad del grid */
@media (max-width: 1200px) {
    .results-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .results-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 640px) {
    .results-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.result-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #1e40af;
    transition: transform 0.3s ease;
}

.result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 12px -1px rgba(0, 0, 0, 0.15);
}

.result-card.wide {
    grid-column: span 2;
}

.result-card.emphasis {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-left-color: #f59e0b;
}

.result-card h3 {
    color: #374151;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.result-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 8px;
}

.result-value.large {
    font-size: 2.5rem;
}

.result-subtitle {
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 500;
}

.result-card textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
    outline: none;
    transition: border-color 0.3s ease;
}

.result-card textarea:focus {
    border-color: #1e40af;
}

/* Responsive Design */

/* Pantallas grandes (desktop) */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
    
    .results-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Laptops y tablets grandes */
@media (max-width: 1024px) {
    .container {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 2.2rem;
    }
    
    .input-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .result-card.wide {
        grid-column: span 2;
    }
    
    .age-timeline {
        grid-column: span 2;
    }
    
    .protection-section {
        grid-column: span 2;
    }
    
    .export-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .export-btn {
        width: 100%;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header {
        padding: 15px 0;
        margin-bottom: 20px;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    
    .header .subtitle {
        font-size: 1rem;
    }
    
    .input-section {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .input-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .result-card {
        padding: 15px;
    }
    
    .result-card.wide {
        grid-column: span 1;
    }
    
    .age-timeline {
        grid-column: span 1;
        padding: 15px;
    }
    
    .protection-section {
        grid-column: span 1;
        padding: 15px;
    }
    
    .export-buttons {
        flex-direction: column;
        gap: 10px;
        margin-top: 15px;
    }
    
    .export-btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .imprimir-btn {
        position: static;
        width: 100%;
        margin-top: 20px;
    }
}

/* Móviles grandes */
@media (max-width: 640px) {
    .container {
        padding: 8px;
    }
    
    .header h1 {
        font-size: 1.6rem;
    }
    
    .header .subtitle {
        font-size: 0.9rem;
    }
    
    .input-section {
        padding: 15px;
    }
    
    .input-group input {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .result-card {
        padding: 12px;
    }
    
    .result-value {
        font-size: 1.4rem;
    }
    
    .result-value.large {
        font-size: 1.6rem;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    .container {
        padding: 5px;
    }
    
    .header h1 {
        font-size: 1.4rem;
    }
    
    .header .subtitle {
        font-size: 0.8rem;
    }
    
    .input-section {
        padding: 12px;
    }
    
    .input-group label {
        font-size: 0.8rem;
    }
    
    .input-group input {
        padding: 8px 10px;
        font-size: 0.8rem;
    }
    
    .result-card {
        padding: 10px;
    }
    
    .result-card h3 {
        font-size: 0.9rem;
    }
    
    .result-value {
        font-size: 1.2rem;
    }
    
    .result-value.large {
        font-size: 1.4rem;
    }
    
    .result-subtitle {
        font-size: 0.7rem;
    }
    
    .export-btn {
        padding: 10px 15px;
        font-size: 0.8rem;
    }
}

/* Móviles muy pequeños */
@media (max-width: 360px) {
    .header h1 {
        font-size: 1.2rem;
    }
    
    .input-section {
        padding: 10px;
    }
    
    .result-card {
        padding: 8px;
    }
    
    .result-value {
        font-size: 1rem;
    }
    
    .result-value.large {
        font-size: 1.2rem;
    }
}

/* Mejoras para dispositivos táctiles */
@media (hover: none) and (pointer: coarse) {
    .input-group input {
        min-height: 44px;
        font-size: 16px; /* Evita zoom en iOS */
    }
    
    .export-btn {
        min-height: 44px;
        padding: 12px 20px;
    }
    
    .result-card {
        min-height: 44px;
    }
    
    .result-card textarea {
        min-height: 44px;
    }
}

/* Orientación landscape en móviles */
@media (max-width: 768px) and (orientation: landscape) {
    .header {
        padding: 10px 0;
        margin-bottom: 15px;
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
    
    .input-section {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mejoras de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Estilos de impresión - Diseño visual atractivo para cliente */
@media print {
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    
    body {
        background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #3b82f6 100%) !important;
        font-size: 8pt;
        line-height: 1.1;
        margin: 0;
        padding: 0;
        color: white !important;
    }
    
    .container {
        max-width: none;
        padding: 0;
        margin: 0;
        background: transparent !important;
    }
    
    /* Ocultar sección de entrada completamente */
    .input-section {
        display: none !important;
    }
    
    /* Header rediseñado */
    .header {
        background: rgba(255, 255, 255, 0.1) !important;
        padding: 10px 20px !important;
        margin-bottom: 0 !important;
        border-bottom: none !important;
        text-align: left !important;
        position: relative;
        overflow: hidden;
    }
    
    .header::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 200px;
        height: 200px;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="2"/><circle cx="50" cy="50" r="25" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/><circle cx="50" cy="50" r="10" fill="rgba(255,255,255,0.1)"/></svg>') no-repeat;
        background-size: contain;
        opacity: 0.3;
    }
    
    .header h1 {
        font-size: 16pt !important;
        color: #22c55e !important;
        font-weight: 800 !important;
        margin: 0 !important;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    }
    
    .header .subtitle {
        font-size: 9pt !important;
        color: white !important;
        margin-top: 4px !important;
        opacity: 0.9;
    }
    
    /* Sección de resultados rediseñada */
    .results-section {
        margin: 0 !important;
        padding: 15px !important;
        background: transparent !important;
    }
    
    .results-grid {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 8px !important;
        page-break-inside: avoid;
    }
    
    /* Timeline de edades */
    .age-timeline {
        grid-column: span 4 !important;
        background: rgba(255, 255, 255, 0.1) !important;
        padding: 8px !important;
        border-radius: 6px !important;
        margin-bottom: 8px !important;
        position: relative;
        overflow: hidden;
    }
    
    .age-timeline::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #22c55e, #3b82f6, #8b5cf6, #f59e0b);
    }
    
    .timeline-title {
        font-size: 10pt !important;
        color: #22c55e !important;
        font-weight: 700 !important;
        margin-bottom: 8px !important;
        text-align: center;
    }
    
    .timeline-grid {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 8px !important;
    }
    
    .timeline-item {
        text-align: center !important;
        padding: 8px !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border-radius: 6px !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        position: relative;
    }
    
    .timeline-item::before {
        content: '';
        position: absolute;
        top: -6px;
        left: 50%;
        transform: translateX(-50%);
        width: 12px;
        height: 12px;
        background: #22c55e;
        border-radius: 50%;
        border: 2px solid white;
    }
    
    .timeline-age {
        font-size: 8pt !important;
        color: #22c55e !important;
        font-weight: 700 !important;
        margin-bottom: 4px !important;
    }
    
    .timeline-value {
        font-size: 9pt !important;
        color: white !important;
        font-weight: 600 !important;
    }
    
    /* Tarjetas de resultados rediseñadas */
    .result-card {
        background: rgba(255, 255, 255, 0.1) !important;
        padding: 10px !important;
        border-radius: 8px !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        page-break-inside: avoid;
        position: relative;
        overflow: hidden;
    }
    
    .result-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #22c55e, #3b82f6);
    }
    
    .result-card.wide {
        grid-column: span 4 !important;
    }
    
    .result-card.emphasis {
        background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(59, 130, 246, 0.2)) !important;
        border-color: #22c55e !important;
    }
    
    .result-card h3 {
        font-size: 8pt !important;
        color: #22c55e !important;
        font-weight: 700 !important;
        margin-bottom: 6px !important;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .result-value {
        font-size: 12pt !important;
        font-weight: 800 !important;
        color: white !important;
        margin-bottom: 4px !important;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    }
    
    .result-value.large {
        font-size: 14pt !important;
    }
    
    .result-subtitle {
        font-size: 7pt !important;
        color: rgba(255, 255, 255, 0.8) !important;
        font-weight: 500 !important;
    }
    
    .result-card textarea {
        min-height: 40px !important;
        font-size: 8pt !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        background: rgba(255, 255, 255, 0.1) !important;
        color: white !important;
        border-radius: 6px !important;
    }
    
    .result-card textarea::placeholder {
        color: rgba(255, 255, 255, 0.6) !important;
    }
    
    /* Sección de protección */
    .protection-section {
        grid-column: span 4 !important;
        background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.2)) !important;
        padding: 8px !important;
        border-radius: 6px !important;
        border: 1px solid rgba(239, 68, 68, 0.3) !important;
        margin-top: 6px !important;
        text-align: center !important;
    }
    
    .protection-title {
        font-size: 9pt !important;
        color: #fca5a5 !important;
        font-weight: 700 !important;
        margin-bottom: 6px !important;
    }
    
    .protection-text {
        font-size: 7pt !important;
        color: white !important;
        line-height: 1.3 !important;
    }
    
    /* Footer con logo */
    .print-footer {
        position: fixed;
        bottom: 10px;
        right: 10px;
        background: rgba(0, 0, 0, 0.3);
        padding: 6px 10px;
        border-radius: 6px;
        color: white;
        font-size: 6pt;
    }
    
    /* Asegurar que todo quepa en una página */
    @page {
        margin: 0.1in;
        size: A4 landscape;
    }
    
    /* Evitar saltos de página */
    .results-grid {
        page-break-inside: avoid;
    }
    
    .result-card {
        page-break-inside: avoid;
    }
    
    .age-timeline {
        page-break-inside: avoid;
    }
}

/* Sistema de 3 hojas para exportación */
.export-pages {
    display: none;
}

.export-page {
    width: 100%;
    min-height: 800px;
    margin-bottom: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    display: none;
}

.export-pages.show .export-page {
    display: block;
}

/* Asegurar que las páginas se muestren cuando están activas */
.export-pages.show {
    display: block !important;
}

.export-pages.show .export-page {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.page-content {
    padding: 60px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* HOJA 1 - Portada */
.page-cover {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #3b82f6 100%);
    color: white;
}

.page-cover::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="2"/><circle cx="50" cy="50" r="25" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></svg>') no-repeat;
    background-size: 400px 400px;
    opacity: 0.3;
    animation: float 25s ease-in-out infinite;
}

.cover-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.cover-title {
    font-size: 3rem;
    font-weight: 800;
    color: #22c55e;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.cover-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    line-height: 1.4;
}

.cover-illustration {
    text-align: center;
    margin: 60px 0;
    position: relative;
    z-index: 2;
}

.family-illustration {
    position: relative;
    display: inline-block;
}

.person-icon {
    font-size: 8rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    animation: bounce 2s ease-in-out infinite;
}

.protection-umbrella {
    position: absolute;
    top: -20px;
    right: -30px;
    font-size: 3rem;
    animation: float 3s ease-in-out infinite;
}

.security-shield {
    position: absolute;
    bottom: -10px;
    left: -30px;
    font-size: 3rem;
    animation: float 3s ease-in-out infinite reverse;
}

.cover-message {
    text-align: center;
    margin: 40px 0;
    position: relative;
    z-index: 2;
}

.message-text {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.cover-footer {
    text-align: center;
    position: relative;
    z-index: 2;
}

.gnp-logo {
    font-size: 2rem;
    font-weight: 800;
    color: #22c55e;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.tagline {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

/* HOJA 2 - Línea de tiempo */
.page-timeline {
    background: linear-gradient(135deg, #059669 0%, #10b981 50%, #34d399 100%);
    color: white;
}

.timeline-header {
    text-align: center;
    margin-bottom: 50px;
}

.timeline-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.timeline-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.timeline-visual {
    position: relative;
    margin: 60px 0;
    padding: 40px 0;
}

.timeline-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #22c55e, #3b82f6, #8b5cf6, #f59e0b);
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.timeline-item {
    display: inline-block;
    width: 22%;
    text-align: center;
    position: relative;
    vertical-align: top;
    margin: 0 1%;
}

.timeline-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    background: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.timeline-age {
    font-size: 1.2rem;
    color: #22c55e;
    font-weight: 700;
    margin-bottom: 10px;
}

.timeline-cost {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 8px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.timeline-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.timeline-message {
    margin-top: 60px;
    text-align: center;
}

.message-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    max-width: 800px;
    margin: 0 auto;
}

.message-title {
    font-size: 1.8rem;
    color: #fbbf24;
    font-weight: 700;
    margin-bottom: 20px;
}

.message-text {
    font-size: 1.2rem;
    color: white;
    line-height: 1.6;
    margin-bottom: 20px;
}

.protection-illustration {
    font-size: 2rem;
    margin-top: 20px;
}

/* HOJA 3 - Proyección personalizada */
.page-custom {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #c084fc 100%);
    color: white;
}

.custom-header {
    text-align: center;
    margin-bottom: 40px;
}

.custom-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.client-name {
    font-size: 1.5rem;
    color: #fbbf24;
    font-weight: 600;
}

.custom-data {
    margin: 40px 0;
}

.data-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.data-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.data-label {
    font-size: 1rem;
    color: #fbbf24;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.data-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.custom-projection-visual {
    margin: 40px 0;
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.projection-title {
    font-size: 1.5rem;
    color: #fbbf24;
    font-weight: 700;
    text-align: center;
    margin-bottom: 25px;
}

.projection-chart {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.chart-bar {
    position: relative;
    background: rgba(255, 255, 255, 0.2);
    height: 40px;
    border-radius: 20px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #3b82f6);
    border-radius: 20px;
    transition: width 0.5s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.bar-label {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.custom-observations {
    margin: 40px 0;
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.obs-title {
    font-size: 1.3rem;
    color: #fbbf24;
    font-weight: 700;
    margin-bottom: 15px;
}

.obs-content {
    font-size: 1.1rem;
    color: white;
    line-height: 1.6;
}

.custom-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
}

.advisor-info {
    text-align: left;
}

.advisor-name, .advisor-contact {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin-bottom: 5px;
}

.gnp-branding {
    text-align: right;
}

.disclaimer {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 5px;
}

/* Animaciones */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Vista PNG - Diseño visual amigable (mantener para compatibilidad) */
.png-view {
    display: none;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #3b82f6 100%);
    color: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    min-height: 600px;
}

/* Responsive para páginas de exportación */
@media (max-width: 768px) {
    .export-page {
        min-height: 100vh;
    }
    
    .page-content {
        padding: 20px !important;
    }
    
    .cover-title {
        font-size: 2rem !important;
    }
    
    .cover-subtitle {
        font-size: 1.1rem !important;
    }
    
    .person-icon {
        font-size: 6rem !important;
    }
    
    .timeline-title {
        font-size: 1.8rem !important;
    }
    
    .timeline-item {
        width: 20% !important;
        margin: 0 2.5% !important;
    }
    
    .timeline-icon {
        font-size: 3rem !important;
        width: 80px !important;
        height: 80px !important;
    }
    
    .custom-title {
        font-size: 1.8rem !important;
    }
    
    .data-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
}

@media (max-width: 480px) {
    .page-content {
        padding: 15px !important;
    }
    
    .cover-title {
        font-size: 1.6rem !important;
    }
    
    .cover-subtitle {
        font-size: 1rem !important;
    }
    
    .person-icon {
        font-size: 5rem !important;
    }
    
    .timeline-title {
        font-size: 1.5rem !important;
    }
    
    .timeline-item {
        width: 18% !important;
        margin: 0 3.5% !important;
        padding: 15px !important;
    }
    
    .timeline-icon {
        font-size: 2.5rem !important;
        width: 60px !important;
        height: 60px !important;
    }
    
    .timeline-age {
        font-size: 1rem !important;
    }
    
    .timeline-cost {
        font-size: 1.2rem !important;
    }
    
    .custom-title {
        font-size: 1.5rem !important;
    }
    
    .data-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    .data-item {
        padding: 20px !important;
    }
}

.png-view::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="2"/><circle cx="50" cy="50" r="25" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/><circle cx="50" cy="50" r="10" fill="rgba(255,255,255,0.02)"/></svg>') no-repeat;
    background-size: 300px 300px;
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-20px, -20px) rotate(180deg); }
}

/* Header visual */
.visual-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.client-name {
    font-size: 2.5rem;
    font-weight: 800;
    color: #22c55e;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.visual-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Timeline visual */
.visual-timeline {
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.timeline-title {
    font-size: 1.5rem;
    color: #22c55e;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

.timeline-container {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    padding: 20px 0;
}

.timeline-item-visual {
    flex: 1;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timeline-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.timeline-age {
    font-size: 0.9rem;
    color: #22c55e;
    font-weight: 700;
    margin-bottom: 8px;
}

.timeline-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.timeline-bar {
    width: 20px;
    background: linear-gradient(to top, #22c55e, #3b82f6);
    border-radius: 10px 10px 0 0;
    margin: 0 auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.timeline-item-visual:hover .timeline-bar {
    transform: scaleY(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Tarjetas visuales */
.visual-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.visual-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.visual-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #22c55e, #3b82f6);
}

.visual-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.savings-card {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(59, 130, 246, 0.2));
}

.cost-card {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(236, 72, 153, 0.2));
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.card-title {
    font-size: 1.1rem;
    color: #22c55e;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-value {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.card-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* Protección visual */
.visual-protection {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.2));
    padding: 25px;
    border-radius: 15px;
    border: 2px solid rgba(239, 68, 68, 0.3);
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.protection-icon {
    font-size: 3rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.protection-text {
    text-align: left;
}

.protection-title {
    font-size: 1.2rem;
    color: #fca5a5;
    font-weight: 700;
    margin-bottom: 5px;
}

.protection-amount {
    font-size: 2.5rem;
    color: white;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 5px;
}

.protection-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Footer visual */
.visual-footer {
    text-align: center;
    position: relative;
    z-index: 2;
    padding-top: 20px;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #22c55e;
    margin-bottom: 5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.footer-tagline {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

/* Elementos solo para impresión */
.print-only {
    display: none;
}

@media print {
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    
    body {
        margin: 0;
        padding: 0;
        background: white !important;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    }
    
    .container {
        max-width: none;
        padding: 0;
        margin: 0;
    }
    
    /* Ocultar elementos no necesarios */
    .input-section {
        display: none !important;
    }
    
    .results-grid {
        display: none !important;
    }
    
    .png-view {
        display: none !important;
    }
    
    .print-only {
        display: none !important;
    }
    
    .age-timeline {
        display: none !important;
    }
    
    .protection-section {
        display: none !important;
    }
    
    .print-footer {
        display: none !important;
    }
    
    .export-buttons {
        display: none !important;
    }
    
    /* Ocultar elementos no necesarios para impresión */
    .input-section,
    .results-grid,
    .png-view,
    .print-only,
    .age-timeline,
    .protection-section,
    .print-footer,
    .export-buttons {
        display: none !important;
    }
    
    /* Mostrar páginas de exportación */
    .export-pages {
        display: block !important;
    }
    
    .export-page {
        display: block !important;
        width: 100% !important;
        height: 100vh !important;
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        page-break-after: always !important;
        page-break-inside: avoid !important;
        position: relative !important;
        overflow: hidden !important;
    }
    
    .export-page:last-child {
        page-break-after: auto !important;
    }
    
    .page-content {
        padding: 30px !important;
        height: 100% !important;
        width: 100% !important;
        max-width: 1200px !important;
        margin: 0 auto !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
    }
    
    /* Asegurar que el contenido sea visible */
    .cover-title,
    .cover-subtitle,
    .timeline-title,
    .timeline-subtitle,
    .custom-title,
    .client-name,
    .person-icon,
    .protection-umbrella,
    .security-shield,
    .timeline-icon,
    .timeline-age,
    .timeline-cost,
    .timeline-desc,
    .data-item,
    .data-label,
    .data-value {
        color: inherit !important;
        visibility: visible !important;
        opacity: 1 !important;
        display: block !important;
    }
    
    /* Forzar visibilidad de todos los elementos */
    .export-pages * {
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Asegurar que los gradientes se impriman */
    .page-cover {
        background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #3b82f6 100%) !important;
    }
    
    .page-timeline {
        background: linear-gradient(135deg, #059669 0%, #10b981 50%, #34d399 100%) !important;
    }
    
    .page-custom {
        background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #c084fc 100%) !important;
    }
    
    /* HOJA 1 - Portada mejorada */
    .page-cover {
        background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #3b82f6 100%) !important;
    }
    
    .cover-header {
        margin-bottom: 20px !important;
    }
    
    .cover-title {
        font-size: 2rem !important;
        font-weight: 900 !important;
        color: #22c55e !important;
        margin-bottom: 15px !important;
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4) !important;
        line-height: 1.1 !important;
    }
    
    .cover-subtitle {
        font-size: 1.1rem !important;
        color: rgba(255, 255, 255, 0.95) !important;
        font-weight: 600 !important;
        line-height: 1.3 !important;
    }
    
    .cover-illustration {
        margin: 20px 0 !important;
    }
    
    .person-icon {
        font-size: 8rem !important;
        margin-bottom: 20px !important;
    }
    
    .protection-umbrella {
        font-size: 3rem !important;
    }
    
    .security-shield {
        font-size: 3rem !important;
    }
    
    .message-text {
        font-size: 1.3rem !important;
        padding: 30px !important;
        max-width: 700px !important;
    }
    
    .gnp-logo {
        font-size: 2.5rem !important;
    }
    
    .tagline {
        font-size: 1.3rem !important;
    }
    
    /* HOJA 2 - Timeline mejorada */
    .page-timeline {
        background: linear-gradient(135deg, #059669 0%, #10b981 50%, #34d399 100%) !important;
    }
    
    .timeline-header {
        margin-bottom: 30px !important;
    }
    
    .timeline-title {
        font-size: 2rem !important;
        font-weight: 900 !important;
        color: white !important;
        margin-bottom: 10px !important;
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4) !important;
    }
    
    .timeline-subtitle {
        font-size: 1rem !important;
        color: rgba(255, 255, 255, 0.95) !important;
        font-weight: 600 !important;
    }
    
    .timeline-visual {
        margin: 30px 0 !important;
        padding: 20px 0 !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: end !important;
    }
    
    .timeline-line {
        position: absolute !important;
        top: 50% !important;
        left: 0 !important;
        right: 0 !important;
        height: 6px !important;
        background: linear-gradient(90deg, #22c55e, #3b82f6, #8b5cf6, #f59e0b) !important;
        border-radius: 3px !important;
        z-index: 1 !important;
    }
    
    .timeline-item {
        width: 22% !important;
        margin: 0 1.5% !important;
        position: relative !important;
        z-index: 2 !important;
        background: rgba(255, 255, 255, 0.1) !important;
        padding: 20px !important;
        border-radius: 15px !important;
        backdrop-filter: blur(10px) !important;
        border: 2px solid rgba(255, 255, 255, 0.2) !important;
    }
    
    .timeline-icon {
        font-size: 4rem !important;
        width: 100px !important;
        height: 100px !important;
        margin: 0 auto 20px !important;
    }
    
    .timeline-age {
        font-size: 1.4rem !important;
        color: #22c55e !important;
        font-weight: 800 !important;
        margin-bottom: 15px !important;
    }
    
    .timeline-cost {
        font-size: 1.8rem !important;
        font-weight: 900 !important;
        color: white !important;
        margin-bottom: 10px !important;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4) !important;
    }
    
    .timeline-desc {
        font-size: 1rem !important;
        color: rgba(255, 255, 255, 0.9) !important;
        font-weight: 600 !important;
    }
    
    .message-box {
        padding: 50px !important;
        max-width: 900px !important;
        margin: 80px auto 0 !important;
    }
    
    .message-title {
        font-size: 2.2rem !important;
        color: #fbbf24 !important;
        font-weight: 800 !important;
        margin-bottom: 25px !important;
    }
    
    .message-text {
        font-size: 1.4rem !important;
        color: white !important;
        line-height: 1.6 !important;
        margin-bottom: 25px !important;
    }
    
    .protection-illustration {
        font-size: 2.5rem !important;
        margin-top: 25px !important;
    }
    
    /* HOJA 3 - Proyección personalizada mejorada */
    .page-custom {
        background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #c084fc 100%) !important;
    }
    
    .custom-header {
        margin-bottom: 30px !important;
    }
    
    .custom-title {
        font-size: 1.8rem !important;
        font-weight: 900 !important;
        color: white !important;
        margin-bottom: 10px !important;
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4) !important;
    }
    
    .client-name {
        font-size: 1.2rem !important;
        color: #fbbf24 !important;
        font-weight: 700 !important;
    }
    
    .custom-data {
        margin: 20px 0 !important;
    }
    
    .data-grid {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 30px !important;
        max-width: 1000px !important;
        margin: 0 auto !important;
    }
    
    .data-item {
        padding: 35px !important;
        border-radius: 20px !important;
    }
    
    .data-label {
        font-size: 1.2rem !important;
        color: #fbbf24 !important;
        font-weight: 700 !important;
        margin-bottom: 15px !important;
    }
    
    .data-value {
        font-size: 2.2rem !important;
        font-weight: 900 !important;
        color: white !important;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4) !important;
    }
    
    .custom-projection-visual {
        margin: 30px 0 !important;
        padding: 20px !important;
        max-width: 600px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    .projection-title {
        font-size: 1.4rem !important;
        color: #fbbf24 !important;
        font-weight: 800 !important;
        margin-bottom: 20px !important;
    }
    
    .chart-bar {
        height: 40px !important;
        border-radius: 20px !important;
        margin-bottom: 15px !important;
    }
    
    .bar-label {
        font-size: 1rem !important;
        font-weight: 700 !important;
        left: 20px !important;
    }
    
    .custom-observations {
        margin: 30px 0 !important;
        padding: 20px !important;
        max-width: 600px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    .obs-title {
        font-size: 1.2rem !important;
        color: #fbbf24 !important;
        font-weight: 800 !important;
        margin-bottom: 15px !important;
    }
    
    .obs-content {
        font-size: 1rem !important;
        color: white !important;
        line-height: 1.4 !important;
    }
    
    .custom-footer {
        margin-top: 30px !important;
        padding-top: 20px !important;
        max-width: 600px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    .advisor-name, .advisor-contact {
        font-size: 1.1rem !important;
        color: rgba(255, 255, 255, 0.95) !important;
        margin-bottom: 8px !important;
    }
    
    .gnp-logo {
        font-size: 2rem !important;
        font-weight: 900 !important;
        color: #22c55e !important;
        margin-bottom: 10px !important;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3) !important;
    }
    
    .disclaimer {
        font-size: 0.9rem !important;
        color: rgba(255, 255, 255, 0.8) !important;
        margin-top: 8px !important;
    }
    
    /* Configuración de página horizontal */
    @page {
        margin: 0;
        size: A4 landscape;
    }
    
    /* Eliminar completamente espacios en blanco */
    .export-pages {
        height: 300vh !important; /* 3 páginas exactas */
    }
    
    /* Asegurar que cada página ocupe exactamente 100vh */
    .export-page:not(:last-child) {
        height: 100vh !important;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
    
    .export-page:last-child {
        height: 100vh !important;
    }
    
    /* Eliminar cualquier espacio entre elementos */
    .export-page * {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .page-content {
        margin: 0 !important;
    }
}

/* Estilos adicionales para mejor UX */
.input-group input::-webkit-outer-spin-button,
.input-group input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.input-group input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Animaciones suaves */
.result-card {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estados de validación */
.input-group input.valid {
    border-color: #22c55e;
    background-color: #f0fdf4;
}

.input-group input.invalid {
    border-color: #ef4444;
    background-color: #fef2f2;
}

/* Mejoras de accesibilidad */
.input-group input:focus-visible {
    outline: 2px solid #1e40af;
    outline-offset: 2px;
}

.imprimir-btn:focus-visible {
    outline: 2px solid #1e40af;
    outline-offset: 2px;
}

/* Estilos para modo de alto contraste */
@media (prefers-contrast: high) {
    .result-card {
        border: 2px solid #000;
    }
    
    .input-group input {
        border-width: 2px;
    }
}

/* SOLUCIÓN SIMPLE PARA PDF */
@media print {
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    
    body {
        margin: 0 !important;
        padding: 0 !important;
        background: white !important;
    }
    
    /* Ocultar elementos no necesarios */
    .input-section,
    .results-grid,
    .export-buttons,
    .png-view {
        display: none !important;
    }
    
    /* Mostrar páginas de exportación */
    .export-pages {
        display: block !important;
        position: static !important;
        width: 100% !important;
        height: auto !important;
        background: transparent !important;
    }
    
    .export-page {
        display: block !important;
        width: 100% !important;
        height: 100vh !important;
        margin: 0 !important;
        padding: 0 !important;
        page-break-after: always !important;
        page-break-inside: avoid !important;
        position: relative !important;
    }
    
    .export-page:last-child {
        page-break-after: auto !important;
    }
    
    .page-content {
        padding: 40px !important;
        height: 100vh !important;
        width: 100% !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }
    
    /* Asegurar que el contenido sea visible */
    .cover-title,
    .cover-subtitle,
    .timeline-title,
    .timeline-subtitle,
    .custom-title,
    .client-name {
        color: inherit !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Configuración de página */
    @page {
        margin: 0.3in;
        size: A4 landscape;
    }
}
