/* ========================================
   CODEONE PDF - ESTILOS GENERALES
======================================== */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --dark: #0f172a;
    --text: #17243a;
    --muted: #64748b;
    --border: #e2e8f0;
    --background: #f5f7fc;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--background);
    color: var(--text);
    font: 16px/1.65 system-ui, sans-serif;
}

a {
    color: var(--primary);
    transition: all .2s ease;
}

/* ========================================
   ENCABEZADO
======================================== */

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    padding: 18px max(5%, calc((100% - 1200px) / 2));
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 3px 15px rgba(15,23,42,.04);
}

/* LOGOTIPO */

.site-header .logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--dark);
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 13px;
    background: linear-gradient(135deg,#3b82f6,#1d4ed8);
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(37,99,235,.25);
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    line-height: 1.1;
}

.logo-text > span {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.9px;
}

.logo-text b {
    color: var(--primary);
}

.logo-text small {
    font-size: 11px;
    font-weight: 500;
    color: var(--muted);
}

/* NAVEGACIÓN */

.site-header nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.site-header nav a {
    padding: 10px 13px;
    border-radius: 8px;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.site-header nav a:hover {
    background: #f1f5f9;
    color: var(--primary);
}

.site-header nav a.active {
    background: #eff6ff;
    color: var(--primary);
}

.site-header nav a.nav-rrhh {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    padding: 11px 19px;
    border-radius: 10px;
    background: linear-gradient(135deg,#2563eb,#6338e8);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37,99,235,.18);
}

.site-header nav a.nav-rrhh:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37,99,235,.25);
}

/* ========================================
   CONTENIDO PRINCIPAL
======================================== */

main {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
    flex: 1;
}

h1 {
    font-size: clamp(30px,5vw,48px);
    line-height: 1.15;
    margin: 15px 0;
    font-weight: 800;
    letter-spacing: -1.5px;
    color: var(--dark);
}

h2 {
    line-height: 1.3;
    color: var(--dark);
}

.hero {
    text-align: center;
    padding: 35px 0 40px;
}

.hero .tag {
    display: inline-block;
    padding: 7px 16px;
    background: #eaf1ff;
    border: 1px solid #dbeafe;
    border-radius: 30px;
    font-size: 12px;
    letter-spacing: .5px;
}

.hero .muted {
    font-size: 17px;
    margin: 15px auto 0;
    max-width: 650px;
}

.muted {
    color: var(--muted);
}

/* ========================================
   TARJETAS DE HERRAMIENTAS
======================================== */

.grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 20px;
    margin-bottom: 35px;
}

.tile {
    display: block;
    position: relative;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 26px;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 3px 12px rgba(15,23,42,.025);
    transition: all .25s ease;
}

.tile:hover {
    transform: translateY(-5px);
    border-color: #93c5fd;
    box-shadow: 0 12px 30px rgba(37,99,235,.10);
}

.tag {
    font-size: 11px;
    color: var(--primary);
    font-weight: 700;
}

.tile .tag {
    display: inline-block;
    background: #eff6ff;
    border-radius: 6px;
    padding: 5px 9px;
}

.tile h2 {
    font-size: 21px;
    margin: 15px 0 10px;
    letter-spacing: -.4px;
}

.tile p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.7;
    margin: 0 0 12px;
}

.tile::after {
    content: "Abrir herramienta →";
    display: block;
    margin-top: 18px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
}

/* ========================================
   ARTÍCULOS Y PANELES
======================================== */

article,
.panel {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 30px;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(15,23,42,.025);
}

article h2 {
    font-size: 24px;
    margin-top: 0;
    letter-spacing: -.5px;
}

article p,
article li {
    color: #475569;
    line-height: 1.8;
}

article a {
    font-weight: 600;
    text-decoration: none;
}

article a:hover {
    text-decoration: underline;
}

.panel {
    max-width: 760px;
    margin: 25px auto;
}

/* ========================================
   FORMULARIOS Y BOTONES
======================================== */

button {
    background: var(--primary);
    color: #ffffff;
    border: 0;
    border-radius: 10px;
    padding: 14px 22px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
}

button:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(37,99,235,.2);
}

button:disabled {
    opacity: .5;
    cursor: not-allowed;
}

input,
select,
textarea {
    max-width: 100%;
    padding: 12px 15px;
    margin: 10px 0;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    background: #ffffff;
    font: inherit;
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #bfdbfe;
    border-color: var(--primary);
}

label {
    display: block;
    font-weight: 600;
}

#estado {
    white-space: pre-wrap;
}

/* ========================================
   PIE DE PÁGINA PROFESIONAL
======================================== */

footer {
    margin-top: 35px;
    padding: 45px max(5%,calc((100% - 1200px) / 2)) 22px;
    background: #ffffff;
    border-top: 1px solid var(--border);
    color: #64748b;
    font-size: 14px;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.4fr 1.2fr 1fr;
    gap: 40px;
    padding-bottom: 35px;
}

.footer-brand strong {
    font-size: 25px;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -.8px;
}

.footer-brand b {
    color: var(--primary);
}

.footer-brand p {
    max-width: 300px;
    line-height: 1.8;
    margin: 12px 0;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-content: start;
    gap: 12px 20px;
    padding-top: 7px;
}

.footer-links a {
    color: #475569;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-support {
    padding-top: 4px;
}

.footer-support strong {
    font-size: 15px;
    color: var(--dark);
}

.footer-support a {
    color: var(--primary);
    text-decoration: none;
    overflow-wrap: anywhere;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
    font-size: 12px;
}

.footer-bottom a {
    color: var(--muted);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--primary);
}

/* ========================================
   DISEÑO RESPONSIVE
======================================== */

@media (max-width: 1000px) {

    .site-header {
        justify-content: center;
    }

    .site-header nav {
        justify-content: center;
    }

    .grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

@media (max-width: 600px) {

    .site-header {
        padding: 16px;
        gap: 16px;
    }

    .logo-icon {
        width: 44px;
        height: 44px;
    }

    .logo-text > span {
        font-size: 22px;
    }

    .site-header nav {
        width: 100%;
        gap: 4px;
    }

    .site-header nav a {
        font-size: 12px;
        padding: 9px;
    }

    .site-header nav a.nav-rrhh {
        margin-left: 0;
        padding: 10px 15px;
    }

    main {
        padding: 20px 16px;
    }

    .hero {
        padding: 25px 0;
    }

    .hero .muted {
        font-size: 15px;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .tile,
    article,
    .panel {
        padding: 22px;
    }

    footer {
        padding: 30px 20px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }

    .footer-brand p {
        margin: 12px auto;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ========================================
   CODEONE PDF - VISTA DE CONVERSORES
======================================== */

.tool-hero {
    text-align: center;
    max-width: 950px;
    margin: 0 auto;
    padding: 25px 0 30px;
}

.tool-hero h1 {
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 800;
    letter-spacing: -1.5px;
    margin: 20px 0 14px;
}

.tool-hero p {
    color: #64748b;
    font-size: 17px;
    max-width: 750px;
    margin: 12px auto;
}

.tool-hero .tag {
    display: inline-block;
    background: #eaf1ff;
    color: #2563eb;
    border: 1px solid #dbeafe;
    padding: 7px 16px;
    border-radius: 30px;
    font-size: 12px;
    letter-spacing: .5px;
}

/* RUTA DE NAVEGACIÓN */

.breadcrumb,
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 15px;
}

.breadcrumb a,
.breadcrumbs a {
    text-decoration: none;
    font-weight: 600;
}

/* BENEFICIOS */

.tool-benefits,
.tool-features,
.benefits {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.tool-benefits span,
.tool-features span,
.benefits span {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    padding: 7px 14px;
    font-size: 13px;
    color: #475569;
}

/* PANEL PRINCIPAL */

.tool-panel,
main:has(.tool-hero) .panel {
    width: 100%;
    max-width: 800px;
    margin: 20px auto 45px;
    padding: 32px;
    background: #ffffff;
    border: 1px solid #dce4ef;
    border-radius: 24px;
    box-shadow: 0 12px 45px rgba(15,23,42,.06);
}

/* ENCABEZADO DE CARGA */

.upload-heading {
    text-align: center;
    margin-bottom: 25px;
}

.upload-heading h2 {
    font-size: 25px;
    margin: 15px 0 8px;
    letter-spacing: -.6px;
}

.upload-heading p {
    color: #64748b;
    font-size: 15px;
    margin: 8px 0;
}

.upload-icon {
    width: 75px;
    height: 75px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    background: #eaf1ff;
    border: 1px solid #dbeafe;
    border-radius: 22px;
    color: #2563eb;
    font-size: 36px;
    font-weight: 600;
}

.upload-icon svg {
    width: 36px;
    height: 36px;
}

/* SELECTOR DE ARCHIVOS */

.tool-panel input[type="file"],
main:has(.tool-hero) .panel input[type="file"] {
    display: block;
    width: 100%;
    padding: 28px 18px;
    margin: 14px 0 20px;
    background: #f8faff;
    border: 2px dashed #b8cef8;
    border-radius: 16px;
    font-size: 14px;
    color: #475569;
    cursor: pointer;
    transition: .25s ease;
}

.tool-panel input[type="file"]:hover,
main:has(.tool-hero) .panel input[type="file"]:hover {
    background: #eff6ff;
    border-color: #2563eb;
}

input[type="file"]::file-selector-button {
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 13px 20px;
    margin-right: 14px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

input[type="file"]::file-selector-button:hover {
    background: #1d4ed8;
}

.file-label {
    color: #334155;
    font-size: 14px;
    font-weight: 600;
}

/* BOTÓN DE CONVERSIÓN */

.tool-button,
.tool-panel button,
main:has(.tool-hero) .panel button {
    display: block;
    width: 100%;
    min-height: 58px;
    padding: 17px 24px;
    margin-top: 22px;
    background: linear-gradient(135deg,#2563eb,#1d4ed8);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(37,99,235,.18);
    transition: .25s ease;
}

.tool-button:hover:not(:disabled),
.tool-panel button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(37,99,235,.25);
}

.tool-panel button:disabled {
    opacity: .5;
    cursor: not-allowed;
}

/* AVISOS Y PRIVACIDAD */

.tool-panel form p,
main:has(.tool-hero) .panel form p,
.privacy-note,
.upload-note {
    color: #64748b;
    font-size: 13px;
    line-height: 1.7;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
}

/* CAMPOS ADICIONALES */

.tool-panel input[type="number"],
.tool-panel select {
    width: 100%;
    background: #f8fafc;
    padding: 13px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
}

/* ESTADO DEL PROCESAMIENTO */

#estado {
    text-align: center;
    font-size: 14px;
    color: #475569;
    padding: 12px;
    overflow-wrap: anywhere;
}

#estado:empty {
    display: none;
}

/* PASOS DE CONVERSIÓN */

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 20px;
    margin: 25px 0;
}

.step,
.step-card,
.steps-grid > div {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 25px;
    text-align: center;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: #eaf1ff;
    color: #2563eb;
    font-size: 18px;
    font-weight: 700;
}

.steps-grid h3 {
    color: #0f172a;
    font-size: 17px;
    margin: 10px 0;
}

.steps-grid p {
    font-size: 14px;
    color: #64748b;
}

/* PREGUNTAS FRECUENTES */

.faq-item,
main:has(.tool-hero) details {
    padding: 18px 20px;
    margin-bottom: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
}

.faq-item summary,
main:has(.tool-hero) summary {
    color: #17243a;
    font-weight: 600;
    cursor: pointer;
}

.faq-item p {
    font-size: 14px;
    color: #64748b;
}

/* ADAPTACIÓN A CELULARES */

@media (max-width: 600px) {

    .tool-hero {
        padding: 15px 0 20px;
    }

    .tool-hero h1 {
        font-size: 30px;
    }

    .tool-hero p {
        font-size: 15px;
    }

    .tool-panel,
    main:has(.tool-hero) .panel {
        padding: 22px 16px;
        border-radius: 18px;
    }

    .upload-heading h2 {
        font-size: 22px;
    }

    .upload-icon {
        width: 60px;
        height: 60px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    input[type="file"]::file-selector-button {
        display: block;
        width: 100%;
        margin: 0 0 12px;
    }

    .tool-benefits,
    .tool-features,
    .benefits {
        gap: 8px;
    }
}


/* =========================================
   CODEONE PDF - CENTRO DE GUÍAS
========================================= */

.guides-hero {
    text-align: center;
    padding: 45px 20px 50px;
}

.guides-hero .tag {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 30px;
    background: #eaf1ff;
    border: 1px solid #dbeafe;
    letter-spacing: .8px;
}

.guides-hero h1 {
    margin: 22px 0 15px;
    font-size: clamp(30px, 5vw, 46px);
}

.guides-hero p {
    max-width: 720px;
    margin: auto;
    color: #64748b;
    font-size: 17px;
    line-height: 1.8;
}

.guides-index {
    margin-bottom: 45px;
}

.guides-index > h2 {
    font-size: 24px;
    margin-bottom: 25px;
}

.guides-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.guide-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 25px;
    text-decoration: none;
    color: #17243a;
    transition: all .25s ease;
    box-shadow: 0 4px 15px rgba(15,23,42,.035);
}

.guide-card:hover {
    transform: translateY(-5px);
    border-color: #93c5fd;
    box-shadow: 0 12px 30px rgba(37,99,235,.10);
}

.guide-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: #eff6ff;
    font-size: 26px;
    flex-shrink: 0;
}

.guide-category {
    display: block;
    color: #2563eb;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.guide-card .guide-category {
    margin-top: 18px;
}

.guide-card h3 {
    margin: 10px 0;
    font-size: 20px;
    line-height: 1.4;
    color: #0f172a;
}

.guide-card p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.7;
    margin: 0 0 20px;
}

.guide-read {
    margin-top: auto;
    color: #2563eb;
    font-size: 14px;
    font-weight: 700;
}

/* ARTÍCULOS */

.guides-content {
    max-width: 1000px;
    margin: auto;
}

.guide-article {
    max-width: 1000px;
    margin: 0 auto 30px;
    padding: 35px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    scroll-margin-top: 25px;
}

.guide-heading {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 25px;
}

.guide-heading h2 {
    font-size: 26px;
    margin: 5px 0 0;
    line-height: 1.3;
}

.guide-article h3 {
    margin: 30px 0 18px;
    color: #0f172a;
    font-size: 19px;
}

.guide-article p {
    color: #475569;
    line-height: 1.85;
}

.guide-steps {
    list-style: none;
    counter-reset: pasos;
    padding: 0;
}

.guide-steps li {
    counter-increment: pasos;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.guide-steps li::before {
    content: counter(pasos);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 50%;
    font-weight: 700;
}

.guide-example,
.guide-tip {
    padding: 22px;
    margin: 22px 0;
    border-radius: 12px;
}

.guide-example {
    background: #eff6ff;
    border-left: 4px solid #2563eb;
}

.guide-example strong {
    color: #1d4ed8;
}

.guide-tip {
    background: #f8fafc;
    border-left: 4px solid #94a3b8;
}

.guide-example p,
.guide-tip p {
    margin: 8px 0 0;
    font-size: 15px;
}

.guide-privacy,
.guide-cloud {
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 13px;
}

.guide-privacy {
    background: #f0fdf4;
    color: #166534 !important;
    border: 1px solid #bbf7d0;
}

.guide-cloud {
    background: #fffbeb;
    color: #92400e !important;
    border: 1px solid #fde68a;
}

.guide-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 23px;
    margin-top: 10px;
    background: #2563eb;
    color: #ffffff !important;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all .2s ease;
}

.guide-button:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

/* RESPONSIVE */

@media (max-width: 900px) {
    .guides-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .guides-grid {
        grid-template-columns: 1fr;
    }

    .guides-hero {
        padding: 25px 0;
    }

    .guides-hero p {
        font-size: 15px;
    }

    .guide-article {
        padding: 22px;
    }

    .guide-heading h2 {
        font-size: 21px;
    }

    .guide-heading {
        align-items: flex-start;
    }

    .guide-button {
        width: 100%;
    }
}
