body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

.container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.25rem;
    overflow: hidden;
}

.invoice-content {
    display: flex;
    gap: 1.25rem;
}

.content {
    display: flex;
    flex-direction: column;
    width: 30%;
}

.title {
    text-align: start;
    margin-bottom: 1.25rem;
    background: white;
    border-radius: 0.625rem;
    padding: 1rem;
    box-shadow: 0 0 0.625rem rgba(0, 0, 0, 0.1);
}

.title h2 {
    font-size: 1.375rem;
    text-transform: uppercase;
    color: #130C4B;
}

.title p {
    font-size: 0.875rem;
    color: #616161;
}

.info {
    background: #fff;
    padding: 0.9375rem;
    border-radius: 0.5rem;
    box-shadow: 0 0 0.3125rem rgba(0, 0, 0, 0.1);
    font-size: 0.75rem;
}

.info h3,
.footer a {
    color: #130C4B;
}

.info-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem;
    gap: 0.5rem;
    border-bottom: 1px solid #ccc;
}

.info-item strong {
    font-weight: bold;
    color: #616161;
}

.info-item span,
.info-item a {
    color: #616161;
}

#cufe {
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    display: block;
}

.pdf-viewer {
    width: 70%;
    background-color: #cccccc66;
    border-radius: 0.5rem;
    box-shadow: 0 0 0.3125rem rgba(0, 0, 0, 0.1);
}

.pdf-viewer iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0.5rem;
}

.footer-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: #fff;
    padding: 0.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 0 0.3125rem rgba(0, 0, 0, 0.1);
    font-size: 0.75rem;
    margin: 0;
}

.footer a {
    text-decoration: none;
    font-style: italic;
}

.detail {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.detail p {
    text-align: end;
    font-size: 0.6rem;
    color: #616161;
}

.detail img {
    width: 5rem;
}

@media (max-width: 1024px) { /* Para tablets */
    .invoice-content {
        flex-direction: column;
        align-items: center;
    }

    .title {
        text-align: center;
    }

    .content, .pdf-viewer {
        width: 100%;
    }

    .pdf-viewer {
        height: 70vh;
    }

    .pdf-viewer iframe {
        height: inherit;
    }
}

@media (max-width: 768px) { /* Para móviles */
    .invoice-content {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .content, .pdf-viewer {
        width: 100%;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .detail img {
        width: 4rem;
    }
}

