/* ===== ESTILOS ESPECÍFICOS PARA LA PÁGINA DE VISTA ===== */

.view-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
    min-height: 100vh;
}

/* Header mejorado */
.view-header {
    background: white;
    padding: 25px 30px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    border-left: 5px solid #3a6ea5;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-content h1 {
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 1.9rem;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.header-content p {
    color: #7f8c8d;
    font-size: 1rem;
    font-weight: 400;
}

.header-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Botones mejorados */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(40, 40);
        opacity: 0;
    }
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.btn:active {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, #3a6ea5 0%, #2d5a8a 100%);
    color: white;
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2d5a8a 0%, #1e4168 100%);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
}

.btn-outline {
    background: transparent;
    color: #3a6ea5;
    border: 2px solid #3a6ea5;
}

.btn-outline:hover {
    background: linear-gradient(135deg, rgba(58, 110, 165, 0.1) 0%, rgba(45, 90, 138, 0.1) 100%);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* Display del CV mejorado */
.cv-display {
    background: white;
    padding: 40px;
    border-radius: 12px;
    margin: 25px 0;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    display: flex;
    justify-content: center;
    min-height: 1123px;
    position: relative;
    overflow: hidden;
}

.cv-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3a6ea5, #2ecc71, #e74c3c, #f39c12);
}

.cv-paper {
    width: 100%;
    max-width: 794px;
    min-height: 1123px;
    background: white;
    padding: 60px 50px;
    box-shadow: 0 0 40px rgba(0,0,0,0.08);
    border: 1px solid #e0e0e0;
    position: relative;
    overflow: hidden;
}

/* Estilos para los CV generados */
.cv-paper h1 {
    font-size: 32px;
    margin-bottom: 10px;
    color: #2c3e50;
    font-weight: 700;
    line-height: 1.2;
}

.cv-paper h2 {
    font-size: 20px;
    margin: 30px 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid currentColor;
    color: #3a6ea5;
    font-weight: 600;
    position: relative;
}

.cv-paper h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: currentColor;
}

.cv-paper h3 {
    font-size: 18px;
    margin: 20px 0 10px 0;
    color: #34495e;
    font-weight: 600;
}

.cv-paper p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: #2c3e50;
    text-align: justify;
}

.cv-paper ul, .cv-paper ol {
    margin: 15px 0 15px 25px;
    color: #2c3e50;
}

.cv-paper li {
    margin-bottom: 8px;
    line-height: 1.6;
    position: relative;
}

.cv-paper ul li::before {
    content: '•';
    color: #3a6ea5;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
    position: absolute;
    left: 0;
}

.cv-paper ol {
    counter-reset: item;
}

.cv-paper ol li {
    counter-increment: item;
}

.cv-paper ol li::before {
    content: counter(item) '.';
    color: #3a6ea5;
    font-weight: bold;
    display: inline-block;
    width: 2em;
    margin-left: -2em;
    position: absolute;
    left: 0;
}

/* Diseños específicos para CV */
.classic-cv {
    font-family: 'Times New Roman', Georgia, 'Palatino Linotype', serif;
    color: #2c3e50;
}

.classic-cv h1 {
    font-size: 36px;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-bottom: 3px solid;
    padding-bottom: 15px;
}

.classic-cv h2 {
    font-size: 22px;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-bottom: 2px solid;
    padding-bottom: 5px;
}

.classic-cv p {
    text-align: left;
}

.modern-cv {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.8;
}

.modern-cv h1 {
    font-size: 40px;
    font-weight: 300;
    margin-bottom: 20px;
    color: #2c3e50;
}

.modern-cv h2 {
    font-size: 24px;
    font-weight: 600;
    border-left: 5px solid;
    padding-left: 20px;
    border-bottom: none;
    margin-top: 40px;
}

.modern-cv h2::after {
    display: none;
}

.modern-cv p {
    padding-left: 25px;
}

.minimalist-cv {
    font-family: Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

.minimalist-cv h1 {
    font-size: 32px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.minimalist-cv h2 {
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid;
    padding-bottom: 5px;
    margin-top: 30px;
}

.minimalist-cv h2::after {
    display: none;
}

/* Tips de impresión mejorados */
.print-tips {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px 30px;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-left: 4px solid #3a6ea5;
}

.print-tips h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.print-tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.print-tip-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.print-tip-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    border-color: #3a6ea5;
}

.print-tip-item i {
    font-size: 1.5rem;
    color: #28a745;
    min-width: 30px;
}

/* Instructions mejoradas */
.instructions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.instruction-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-top: 4px solid #3a6ea5;
    position: relative;
    overflow: hidden;
}

.instruction-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3a6ea5, #2ecc71);
}

.instruction-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.instruction-card h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.instruction-card ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.instruction-card li {
    padding: 12px 0;
    color: #5a6c7d;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    padding-left: 25px;
    line-height: 1.5;
}

.instruction-card li:last-child {
    border-bottom: none;
}

.instruction-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #3a6ea5;
    font-weight: bold;
}

/* Ad lateral mejorado */
.side-ad-desktop {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 160px;
    z-index: 100;
    animation: fadeInRight 0.8s ease;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px) translateY(-50%);
    }
    to {
        opacity: 1;
        transform: translateX(0) translateY(-50%);
    }
}

.side-ad-desktop .ad-placeholder.vertical {
    height: 600px;
    border-radius: 12px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.15);
    border: 2px solid #3a6ea5;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

/* Footer mejorado */
.view-footer {
    text-align: center;
    padding: 40px 0 30px;
    color: #6c757d;
    border-top: 1px solid #e0e0e0;
    margin-top: 50px;
    background: white;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
}

.view-footer p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.view-footer p:first-child {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
}

.view-footer .footer-note {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #95a5a6;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Modal mejorado */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: scaleIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.modal-header h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.close-modal {
    background: none;
    border: none;
    font-size: 2rem;
    color: #95a5a6;
    cursor: pointer;
    padding: 5px 10px;
    line-height: 1;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    color: #e74c3c;
    background-color: rgba(231, 76, 60, 0.1);
}

/* Loading y error mejorados */
#loading-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(44, 62, 80, 0.95);
    color: white;
    padding: 25px 40px;
    border-radius: 12px;
    z-index: 3000;
    display: none;
    align-items: center;
    gap: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    border: 2px solid #3a6ea5;
}

#loading-message.show {
    display: flex;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.02); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

#error-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(220, 53, 69, 0.95);
    color: white;
    padding: 30px 40px;
    border-radius: 12px;
    z-index: 3000;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
    max-width: 400px;
    width: 90%;
}

#error-message.show {
    display: flex;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translate(-50%, -50%); }
    20%, 60% { transform: translate(-52%, -50%); }
    40%, 80% { transform: translate(-48%, -50%); }
}

/* Toast mejorado */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 4000;
}

.toast {
    background: white;
    color: #2c3e50;
    padding: 16px 24px;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 300px;
    border-left: 4px solid;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast.success {
    border-left-color: #28a745;
}

.toast.error {
    border-left-color: #dc3545;
}

.toast.warning {
    border-left-color: #ffc107;
}

.toast.info {
    border-left-color: #17a2b8;
}

/* Responsive design */
@media (max-width: 1024px) {
    .side-ad-desktop {
        display: none;
    }
    
    .view-header {
        flex-direction: column;
        text-align: center;
    }
    
    .header-actions {
        justify-content: center;
    }
    
    .cv-paper {
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    .view-container {
        padding: 15px;
    }
    
    .view-header {
        padding: 20px;
    }
    
    .header-content h1 {
        font-size: 1.6rem;
    }
    
    .btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
    
    .cv-display {
        padding: 20px;
    }
    
    .cv-paper {
        padding: 30px 20px;
    }
    
    .instructions {
        grid-template-columns: 1fr;
    }
    
    .print-tips-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .header-actions .btn {
        width: 100%;
    }
    
    .cv-paper h1 {
        font-size: 28px;
    }
    
    .cv-paper h2 {
        font-size: 18px;
    }
}

/* Estilos para impresión */
@media print {
    .view-header,
    .ad-banner,
    .print-tips,
    .instructions,
    .side-ad-desktop,
    .view-footer,
    #share-modal,
    #toast-container,
    .btn,
    .modal-overlay {
        display: none !important;
    }
    
    body {
        background: white !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .view-container {
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        background: white !important;
    }
    
    .cv-display {
        padding: 0 !important;
        margin: 0 !important;
        box-shadow: none !important;
        background: white !important;
    }
    
    .cv-paper {
        box-shadow: none !important;
        border: none !important;
        padding: 20mm !important;
        margin: 0 !important;
        max-width: 100% !important;
        min-height: auto !important;
    }
    
    .cv-paper::before {
        display: none !important;
    }
    
    /* Mejorar legibilidad para impresión */
    .cv-paper {
        color: #000 !important;
    }
    
    .cv-paper h1, 
    .cv-paper h2, 
    .cv-paper h3 {
        color: #000 !important;
    }
    
    /* Evitar que las secciones se corten */
    .cv-paper div {
        page-break-inside: avoid;
    }
    
    /* Control de márgenes de página */
    @page {
        margin: 20mm;
    }
}















































/* ===== ESTILOS ESPECÍFICOS PARA LA PÁGINA DE VISTA ===== */

.view-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
    min-height: 100vh;
    position: relative;
}

/* Header mejorado */
.view-header {
    background: white;
    padding: 25px 30px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    border-left: 5px solid #3a6ea5;
}

/* MODIFICADO: Contenedor principal para evitar solapamiento */
.main-view-content {
    position: relative;
    z-index: 1;
    max-width: 100%;
}

/* MODIFICADO: Anuncio lateral que no corta contenido */
.side-ad-desktop {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 160px;
    z-index: 10; /* Reducido de 100 a 10 */
    animation: fadeInRight 0.8s ease;
    pointer-events: auto; /* Permite hacer clic */
}

/* MODIFICADO: Contenido principal con margen derecho */
.cv-display,
.print-tips,
.instructions,
.view-footer {
    position: relative;
    z-index: 2; /* Mayor que el anuncio */
    max-width: calc(100% - 180px); /* Deja espacio para el anuncio */
    margin-right: 0;
}

/* MODIFICADO: En móviles, el anuncio se oculta */
@media (max-width: 1300px) {
    .side-ad-desktop {
        display: none !important;
    }
    
    .cv-display,
    .print-tips,
    .instructions,
    .view-footer {
        max-width: 100%;
    }
}

/* MODIFICADO: En pantallas pequeñas, ocultar anuncio */
@media (max-width: 1400px) {
    .side-ad-desktop {
        right: 10px;
        width: 140px;
    }
    
    .cv-display,
    .print-tips,
    .instructions,
    .view-footer {
        max-width: calc(100% - 150px);
    }
}

/* Display del CV mejorado */
.cv-display {
    background: white;
    padding: 40px;
    border-radius: 12px;
    margin: 25px 0;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    display: flex;
    justify-content: center;
    min-height: 1123px;
    position: relative;
    overflow: hidden;
}

.cv-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3a6ea5, #2ecc71, #e74c3c, #f39c12);
}

.cv-paper {
    width: 100%;
    max-width: 794px;
    min-height: 1123px;
    background: white;
    padding: 60px 50px;
    box-shadow: 0 0 40px rgba(0,0,0,0.08);
    border: 1px solid #e0e0e0;
    position: relative;
    overflow: hidden;
}

/* Tips de impresión mejorados */
.print-tips {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px 30px;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-left: 4px solid #3a6ea5;
}

/* Instructions mejoradas */
.instructions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.instruction-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-top: 4px solid #3a6ea5;
    position: relative;
    overflow: hidden;
}


/* Footer mejorado */
.view-footer {
    text-align: center;
    padding: 40px 20px 30px;
    color: #6c757d;
    border-top: 1px solid #e0e0e0;
    margin-top: 50px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.view-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #3a6ea5, #2ecc71);
    border-radius: 0 0 3px 3px;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.footer-line {
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0,0,0,0.1), 
        rgba(0,0,0,0.2), 
        rgba(0,0,0,0.1), 
        transparent
    );
    margin: 0 auto 25px;
    width: 80%;
}

.footer-main-text {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 400;
    line-height: 1.5;
}

.footer-main-text strong {
    font-weight: 600;
    color: #3a6ea5;
}

.footer-subtext {
    font-size: 0.95rem;
    color: #5a6c7d;
    margin-bottom: 25px;
    line-height: 1.5;
}

.footer-credits {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 15px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.credit-text {
    font-size: 0.95rem;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 5px;
}

.footer-link {
    color: #495057 !important;
    text-decoration: none;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(58, 110, 165, 0.05);
    border: 1px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.footer-link:hover {
    color: #2c3e50 !important;
    background: rgba(58, 110, 165, 0.1);
    border-color: rgba(58, 110, 165, 0.2);
    transform: translateY(-1px);
}

.footer-link::after {
    content: '↗';
    font-size: 0.8em;
    margin-left: 4px;
    opacity: 0.7;
}

.separator {
    color: #dee2e6;
    font-size: 1.2rem;
    user-select: none;
}

.copyright {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #495057;
}

.copyright-symbol {
    font-size: 0.9rem;
    font-weight: 500;
}

.copyright-text {
    font-style: italic;
    font-size: 0.9rem;
}

.rights {
    color: #495057;
    font-size: 0.9rem;
    font-weight: 500;
}

.footer-year {
    font-size: 0.85rem;
    color: #95a5a6;
    margin-bottom: 25px;
    padding: 5px 15px;
    background: rgba(0,0,0,0.02);
    border-radius: 20px;
    display: inline-block;
}

.footer-note {
    font-size: 0.9rem;
    color: #5a6c7d;
    padding: 15px 20px;
    background: rgba(243, 156, 18, 0.05);
    border-radius: 8px;
    border-left: 3px solid #f39c12;
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 500px;
}

.footer-note i {
    flex-shrink: 0;
}

/* Responsive design */
@media (max-width: 768px) {
    .view-footer {
        padding: 30px 15px 25px;
        margin-top: 30px;
    }
    
    .footer-credits {
        flex-direction: column;
        gap: 8px;
        padding: 12px 15px;
    }
    
    .separator {
        display: none;
    }
    
    .footer-main-text {
        font-size: 1rem;
    }
    
    .footer-subtext {
        font-size: 0.9rem;
    }
    
    .footer-note {
        padding: 12px 15px;
        font-size: 0.85rem;
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .footer-credits {
        padding: 10px;
    }
    
    .credit-text {
        flex-direction: column;
        gap: 5px;
    }
    
    .footer-note {
        padding: 10px;
        font-size: 0.8rem;
    }
}

/* Estilos para impresión */
@media print {
    .view-footer {
        display: none !important;
    }
}


/* MODIFICADO: Para impresión, ocultar anuncio y usar ancho completo */
@media print {
    .side-ad-desktop {
        display: none !important;
    }
    
    .cv-display,
    .print-tips,
    .instructions,
    .view-footer {
        max-width: 100% !important;
        margin-right: 0 !important;
    }
}

/* Animación para anuncio lateral */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px) translateY(-50%);
    }
    to {
        opacity: 1;
        transform: translateX(0) translateY(-50%);
    }
}

/* MODIFICADO: Asegurar que el contenido sea clickeable sobre el anuncio */
.cv-display *,
.print-tips *,
.instructions *,
.view-footer * {
    position: relative;
    z-index: 3;
}

/* MODIFICADO: Anuncio con transparencia en hover para ver contenido */
.side-ad-desktop .ad-placeholder.vertical {
    transition: all 0.3s ease;
    opacity: 0.9;
}

.side-ad-desktop .ad-placeholder.vertical:hover {
    opacity: 1;
    transform: translateX(-5px);
}

/* MODIFICADO: Responsive design mejorado */
@media (max-width: 1200px) {
    .view-container {
        padding: 15px;
    }
    
    .side-ad-desktop {
        display: none;
    }
    
    .cv-display,
    .print-tips,
    .instructions,
    .view-footer {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .cv-display {
        padding: 20px;
    }
    
    .cv-paper {
        padding: 30px 20px;
    }
    
    .instructions {
        grid-template-columns: 1fr;
    }
}

/* MODIFICADO: Scroll suave para no interferir con anuncio */
html {
    scroll-behavior: smooth;
}

/* MODIFICADO: Asegurar que el contenido principal tenga prioridad */
.view-header,
.cv-display,
.print-tips,
.instructions,
.view-footer {
    pointer-events: auto;
}

.side-ad-desktop {
    pointer-events: auto;
}














/* ===== ESTILOS PARA POPUPS DE ANUNCIOS ===== */

/* Overlay para popups */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.popup-overlay.active {
    display: flex;
}

/* Contenido del popup */
.popup-content {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    animation: popupIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

@keyframes popupIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Header del popup */
.popup-header {
    background: linear-gradient(135deg, #3a6ea5 0%, #2d5a8a 100%);
    color: white;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popup-header h3 {
    margin: 0;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.popup-header h3 i {
    font-size: 1.2rem;
}

/* Botón cerrar popup */
.close-popup {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
}

.close-popup:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Cuerpo del popup */
.popup-body {
    padding: 30px 25px;
    text-align: center;
}

.popup-body p {
    color: #5a6c7d;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 1.05rem;
}

/* Anuncio dentro del popup */
.popup-ad {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.popup-ad:hover {
    border-color: #3a6ea5;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(58, 110, 165, 0.15);
}

.popup-ad i {
    font-size: 3rem;
    color: #3a6ea5;
    margin-bottom: 15px;
    display: block;
}

.popup-ad h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.popup-ad p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

/* Botones del popup */
.popup-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
    flex-wrap: wrap;
}

.popup-btn {
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 140px;
}

.popup-btn-primary {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    color: white;
}

.popup-btn-primary:hover {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.3);
}

.popup-btn-secondary {
    background: #f8f9fa;
    color: #495057;
    border: 2px solid #dee2e6;
}

.popup-btn-secondary:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

/* Contador de tiempo */
.popup-timer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.popup-timer p {
    font-size: 0.9rem;
    color: #95a5a6;
    margin-bottom: 5px;
}

.timer-display {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    font-weight: bold;
    color: #3a6ea5;
    background: #f8f9fa;
    padding: 8px 15px;
    border-radius: 6px;
    display: inline-block;
    margin-top: 5px;
}

/* Popup pequeño (para notificaciones) */
.small-popup {
    max-width: 400px;
}

.small-popup .popup-body {
    padding: 25px;
}

/* Popup lateral */
.side-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 9997;
    animation: slideInRight 0.5s ease;
    border-left: 4px solid #3a6ea5;
    overflow: hidden;
    display: none;
}

.side-popup.active {
    display: block;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.side-popup-header {
    background: #f8f9fa;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e9ecef;
}

.side-popup-header h4 {
    margin: 0;
    color: #2c3e50;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.side-popup-body {
    padding: 20px;
}

.side-popup-body p {
    margin: 0 0 15px 0;
    color: #5a6c7d;
    font-size: 0.95rem;
    line-height: 1.5;
}

.side-popup-close {
    background: none;
    border: none;
    color: #95a5a6;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.side-popup-close:hover {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

/* Banner inferior */
.bottom-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 15px 20px;
    z-index: 9996;
    display: none;
    animation: slideUp 0.5s ease;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}

.bottom-banner.active {
    display: block;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.bottom-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.bottom-banner-text {
    flex: 1;
    min-width: 300px;
}

.bottom-banner-text p {
    margin: 0;
    font-size: 0.95rem;
    color: #ecf0f1;
}

.bottom-banner-actions {
    display: flex;
    gap: 10px;
}

.banner-btn {
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 0.9rem;
}

.banner-btn-primary {
    background: #3a6ea5;
    color: white;
}

.banner-btn-primary:hover {
    background: #2d5a8a;
}

.banner-btn-outline {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.banner-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

.close-banner {
    background: none;
    border: none;
    color: #bdc3c7;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.close-banner:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}






/* MODIFICADO: Estilos para compartir en redes sociales */

/* Grid de redes sociales */
.social-share-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.social-share-item {
    background: white;
    border-radius: 10px;
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #f0f0f0;
    text-align: center;
}

.social-share-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.social-share-item i {
    font-size: 2rem;
    margin-bottom: 5px;
}

.social-share-item span {
    font-size: 0.85rem;
    font-weight: 600;
    color: #2c3e50;
}

/* Colores específicos para cada red social */
.social-share-item.whatsapp {
    border-color: #25D366;
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.1) 0%, rgba(37, 211, 102, 0.05) 100%);
}

.social-share-item.whatsapp:hover {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.15) 0%, rgba(37, 211, 102, 0.1) 100%);
    border-color: #25D366;
}

.social-share-item.whatsapp i {
    color: #25D366;
}

.social-share-item.facebook {
    border-color: #1877F2;
    background: linear-gradient(135deg, rgba(24, 119, 242, 0.1) 0%, rgba(24, 119, 242, 0.05) 100%);
}

.social-share-item.facebook:hover {
    background: linear-gradient(135deg, rgba(24, 119, 242, 0.15) 0%, rgba(24, 119, 242, 0.1) 100%);
    border-color: #1877F2;
}

.social-share-item.facebook i {
    color: #1877F2;
}

.social-share-item.linkedin {
    border-color: #0077B5;
    background: linear-gradient(135deg, rgba(0, 119, 181, 0.1) 0%, rgba(0, 119, 181, 0.05) 100%);
}

.social-share-item.linkedin:hover {
    background: linear-gradient(135deg, rgba(0, 119, 181, 0.15) 0%, rgba(0, 119, 181, 0.1) 100%);
    border-color: #0077B5;
}

.social-share-item.linkedin i {
    color: #0077B5;
}

.social-share-item.twitter {
    border-color: #1DA1F2;
    background: linear-gradient(135deg, rgba(29, 161, 242, 0.1) 0%, rgba(29, 161, 242, 0.05) 100%);
}

.social-share-item.twitter:hover {
    background: linear-gradient(135deg, rgba(29, 161, 242, 0.15) 0%, rgba(29, 161, 242, 0.1) 100%);
    border-color: #1DA1F2;
}

.social-share-item.twitter i {
    color: #1DA1F2;
}

.social-share-item.instagram {
    border-color: #E4405F;
    background: linear-gradient(135deg, rgba(228, 64, 95, 0.1) 0%, rgba(228, 64, 95, 0.05) 100%);
}

.social-share-item.instagram:hover {
    background: linear-gradient(135deg, rgba(228, 64, 95, 0.15) 0%, rgba(228, 64, 95, 0.1) 100%);
    border-color: #E4405F;
}

.social-share-item.instagram i {
    color: #E4405F;
}

.social-share-item.gmail {
    border-color: #EA4335;
    background: linear-gradient(135deg, rgba(234, 67, 53, 0.1) 0%, rgba(234, 67, 53, 0.05) 100%);
}

.social-share-item.gmail:hover {
    background: linear-gradient(135deg, rgba(234, 67, 53, 0.15) 0%, rgba(234, 67, 53, 0.1) 100%);
    border-color: #EA4335;
}

.social-share-item.gmail i {
    color: #EA4335;
}

/* Responsive para grid de redes sociales */
@media (max-width: 768px) {
    .social-share-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .social-share-grid {
        grid-template-columns: 1fr;
    }
    
    .social-share-item {
        padding: 18px 12px;
    }
}

/* Estilos para toast notifications */
.toast {
    position: relative;
    background: white;
    color: #2c3e50;
    padding: 16px 24px;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 300px;
    border-left: 4px solid;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast.success {
    border-left-color: #28a745;
}

.toast.error {
    border-left-color: #dc3545;
}

.toast.info {
    border-left-color: #17a2b8;
}

.toast i {
    font-size: 1.2rem;
}

.toast.success i {
    color: #28a745;
}

.toast.error i {
    color: #dc3545;
}

.toast.info i {
    color: #17a2b8;
}

/* Mejoras en el modal de compartir */
.modal-content {
    max-width: 600px;
}

@media (max-width: 768px) {
    .modal-content {
        max-width: 90%;
    }
}