* {
    box-sizing: border-box;
}


body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: #111827;
}


/* =========================
   HEADER
========================= */

header {
    width: 100%;
    padding: 22px 40px;
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
}


.logo {
    font-size: 24px;
    font-weight: 800;
}


.logo a {
    color: inherit;
    text-decoration: none;
}



/* =========================
   HERO
========================= */

.hero {
    max-width: 1000px;
    margin: 0 auto;
    padding: 70px 20px 40px;
    text-align: center;
}


.hero h1 {
    margin: 0 0 18px;
    font-size: 46px;
    line-height: 1.1;
}


.hero h2 {
    margin-bottom: 12px;
    font-size: 34px;
}


.hero p {
    max-width: 700px;
    margin: 0 auto 30px;
    color: #6b7280;
    font-size: 18px;
    line-height: 1.6;
}



/* =========================
   TRUST BAR
========================= */

.trust-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
    margin-top: 10px;
}


.trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #4b5563;
    font-size: 14px;
    font-weight: 600;
}



/* =========================
   TOOL BOX
========================= */

.tool-box {
    max-width: 850px;
    margin: 35px auto 0;
    padding: 35px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}


.upload-button {
    display: inline-block;
    padding: 15px 25px;
    background: #111827;
    color: #ffffff;
    border-radius: 9px;
    cursor: pointer;
    font-weight: 700;
    transition: 0.2s;
}


.upload-button:hover {
    background: #374151;
    transform: translateY(-1px);
}


.tool-box > p {
    color: #6b7280;
    line-height: 1.5;
}



/* =========================
   JPG TO PDF
========================= */

#imageInput {
    display: none;
}


#preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 16px;
    margin: 28px 0;
}


.preview-item {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    cursor: grab;
    transition: 0.2s;
}


.preview-item:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px);
}


.preview-item.dragging {
    opacity: 0.45;
}


.preview-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}


.preview-item p {
    margin: 8px 0;
    font-size: 13px;
    color: #4b5563;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.preview-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}


.move-button,
.remove-button {
    border: none;
    border-radius: 7px;
    padding: 7px 10px;
    cursor: pointer;
    font-size: 13px;
}


.move-button {
    background: #e5e7eb;
}


.remove-button {
    background: #fee2e2;
    color: #991b1b;
}


#convertButton {
    border: none;
    background: #111827;
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 9px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    margin-top: 15px;
    transition: 0.2s;
}


#convertButton:hover {
    background: #374151;
    transform: translateY(-1px);
}


#status {
    margin-top: 18px;
    font-weight: 700;
}



/* =========================
   TOOLS HOME
========================= */

.tools-section {
    max-width: 1100px;
    margin: 20px auto 70px;
    padding: 0 20px;
    text-align: center;
}


.tools-section h2 {
    margin-bottom: 10px;
}


.tools-intro {
    margin: 0 auto 30px;
    color: #6b7280;
}


.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}


.tool-card {
    display: block;
    padding: 30px 24px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    text-align: left;
    transition: 0.2s;
}


.tool-card:hover {
    transform: translateY(-4px);
    border-color: #cbd5e1;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}


.tool-card-icon {
    font-size: 42px;
    margin-bottom: 18px;
}


.tool-card h3 {
    margin-bottom: 10px;
    font-size: 20px;
}


.tool-card p {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 22px;
}


/* =========================
   BOTÓN EMPEZAR
========================= */

.tool-card-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 11px 16px;
    background: #111827;
    color: #ffffff;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.tool-card-link:hover {
    background: #1f2937;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(17, 24, 39, 0.18);
}


.tool-card-link:active {
    transform: translateY(0);
    box-shadow: none;
}


.tool-card-link span:first-child {
    color: #ffffff;
}


.tool-card-arrow {
    display: inline-block;
    color: #ffffff;
    font-size: 17px;
    line-height: 1;
    transition: transform 0.2s ease;
}


.tool-card-link:hover .tool-card-arrow {
    transform: translateX(4px);
}



/* =========================
   PRIVACIDAD
========================= */

.privacy-highlight {
    max-width: 900px;
    margin: 0 auto 70px;
    padding: 30px 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    text-align: center;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
}


.privacy-highlight-icon {
    font-size: 32px;
    flex-shrink: 0;
}


.privacy-highlight h2 {
    margin: 0 0 8px;
    font-size: 22px;
}


.privacy-highlight p {
    max-width: 650px;
    margin: 0;
    color: #6b7280;
    line-height: 1.6;
}



/* =========================
   TOOL CONTENT (SEO)
========================= */

.tool-content {
    max-width: 800px;
    margin: 0 auto 80px;
    padding: 0 20px;
    text-align: left;
}


.tool-content h2 {
    font-size: 28px;
    margin: 0 0 18px;
    color: #111827;
}


.tool-content h3 {
    font-size: 19px;
    margin: 30px 0 10px;
    color: #111827;
}


.tool-content p {
    color: #4b5563;
    line-height: 1.7;
    margin: 0 0 16px;
    font-size: 16px;
}


.tool-content ul {
    margin: 0 0 16px;
    padding-left: 22px;
    color: #4b5563;
    line-height: 1.8;
}


.tool-content li {
    margin-bottom: 6px;
}


.tool-content a {
    color: #111827;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}


.tool-content a:hover {
    color: #374151;
}



/* =========================
   INFO
========================= */

.info {
    max-width: 1100px;
    margin: 0 auto 80px;
    padding: 60px 20px;
    text-align: center;
}


.info h2 {
    font-size: 32px;
    margin-bottom: 15px;
}


.info > p {
    max-width: 700px;
    margin: 0 auto 40px;
    color: #6b7280;
    line-height: 1.6;
}



/* =========================
   FEATURES
========================= */

.features {
    max-width: 1100px;
    margin: 0 auto 80px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    text-align: center;
}


.features > div {
    padding: 15px;
}


.feature-icon {
    font-size: 28px;
    margin-bottom: 8px;
}


.features h3 {
    margin: 0 0 8px;
    font-size: 17px;
}


.features p {
    margin: 0;
    color: #6b7280;
    line-height: 1.5;
    font-size: 14px;
}



/* =========================
   FAQ
========================= */

.faq {
    max-width: 900px;
    margin: 0 auto 80px;
    padding: 0 20px;
}


.faq h2 {
    text-align: center;
    margin-bottom: 35px;
}


.faq-item {
    padding: 22px 0;
    border-bottom: 1px solid #e5e7eb;
}


.faq-item h3 {
    margin-bottom: 8px;
}


.faq-item p {
    color: #6b7280;
    line-height: 1.6;
}



/* =========================
   PDF MERGE
========================= */

#pdfInput {
    display: none;
}


#pdfPreview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin: 28px 0;
}


.pdf-item {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px 10px 10px;
    text-align: center;
    cursor: grab;
    transition: 0.2s;
}


.pdf-item:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px);
}


.pdf-item:active {
    cursor: grabbing;
}


.pdf-item.dragging {
    opacity: 0.45;
}


.pdf-icon {
    font-size: 55px;
    margin-bottom: 10px;
}


.pdf-item p {
    font-size: 13px;
    color: #4b5563;
    margin: 8px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


#mergeButton {
    border: none;
    background: #111827;
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 9px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    margin-top: 15px;
    transition: 0.2s;
}


#mergeButton:hover {
    background: #374151;
    transform: translateY(-1px);
}


#mergeStatus {
    margin-top: 18px;
    font-weight: 700;
}



/* =========================
   PDF COMPRESS
========================= */

#compressInput {
    display: none;
}


.compress-preview {
    margin: 28px 0;
}


.compress-file {
    max-width: 320px;
    margin: 0 auto;
    padding: 25px 20px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-align: center;
}


.compress-icon {
    font-size: 55px;
    margin-bottom: 12px;
}


.compress-file p {
    margin: 8px 0;
    font-size: 15px;
    font-weight: 700;
    color: #374151;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.compress-file span {
    font-size: 14px;
    color: #6b7280;
}


#compressButton {
    border: none;
    background: #111827;
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 9px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    margin-top: 15px;
    transition: 0.2s;
}


#compressButton:hover {
    background: #374151;
    transform: translateY(-1px);
}


#compressButton:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}


#compressStatus {
    margin-top: 18px;
    font-weight: 700;
}



/* =========================
   FOOTER
========================= */

footer {
    padding: 35px 20px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
    background: #f9fafb;
}


footer p {
    margin: 0;
    color: #6b7280;
}


.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 12px;
    flex-wrap: wrap;
}


.footer-links a {
    color: #6b7280;
    text-decoration: none;
}


.footer-links a:hover {
    color: #111827;
    text-decoration: underline;
}



/* =========================
   LEGAL PAGES
========================= */

.legal-page {
    max-width: 850px;
    margin: 60px auto 80px;
    padding: 0 20px;
}


.legal-page h1 {
    margin-bottom: 15px;
    font-size: 40px;
}


.legal-page h2 {
    margin-top: 40px;
    margin-bottom: 12px;
    font-size: 24px;
}


.legal-page p {
    color: #4b5563;
    line-height: 1.7;
}



/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {

    .features {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 800px) {

    header {
        padding: 20px;
    }


    .hero {
        padding-top: 50px;
    }


    .hero h1 {
        font-size: 36px;
    }


    .hero h2 {
        font-size: 28px;
    }


    .tools-grid {
        grid-template-columns: 1fr;
    }


    .tool-box {
        padding: 25px 18px;
    }


    .privacy-highlight {
        margin-left: 20px;
        margin-right: 20px;
    }


    .tool-content {
        margin-bottom: 60px;
    }


    .tool-content h2 {
        font-size: 24px;
    }

}


@media (max-width: 600px) {

    .features {
        grid-template-columns: 1fr;
    }


    .hero h1 {
        font-size: 32px;
    }


    .hero h2 {
        font-size: 25px;
    }


    .trust-bar {
        gap: 15px;
    }


    .tool-box {
        border-radius: 12px;
    }


    .privacy-highlight {
        flex-direction: column;
        padding: 25px 20px;
    }


    .privacy-highlight-icon {
        font-size: 28px;
    }


    .legal-page {
        margin-top: 40px;
    }


    .legal-page h1 {
        font-size: 32px;
    }


    .tool-content h2 {
        font-size: 22px;
    }


    .tool-content h3 {
        font-size: 17px;
    }

}