/* ============================================================
   RESET
   ============================================================ */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: inherit;
}

ul,
ol {
    list-style: none;
}

img,
svg {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input,
select,
textarea {
    font: inherit;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #2E2E2E;
    background: #ECEAE4;
}

/* ============================================================
   ACCESIBILIDAD
   ============================================================ */

.saltar {
    position: absolute;
    left: 0;
    top: 0;
    transform: translateY(-100%);
    background: #FF5C39;
    color: #FFFFFF;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 9999;
    transition: transform 200ms ease;
    border-radius: 0 0 0.5rem 0;
}

.saltar:focus {
    transform: translateY(0);
}

.solo_lectores {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:focus-visible {
    outline: 2px solid #FF5C39;
    outline-offset: 2px;
}

.oculto {
    display: none;
}

/* ============================================================
   LAYOUT
   ============================================================ */

.contenedor {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.columnas_2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.disposicion {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
}

/* ============================================================
   BARRA LATERAL
   ============================================================ */

.barra_lateral {
    width: 240px;
    background: #1A1A1A;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    gap: 0.5rem;
    overflow-y: auto;
}

.barra_lateral .marca {
    display: flex;
    align-items: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.barra_lateral .marca:hover {
    opacity: 0.8;
}

.barra_lateral .marca_logo {
    filter: brightness(0) invert(1);
}

.barra_lateral .marca_nombre {
    font-size: 1rem;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: -0.02em;
    margin-left: 0.5rem;
    white-space: nowrap;
}

.barra_lateral .navegacion {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 0.5rem 0;
}

.barra_lateral .elemento_nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
    transition: background 200ms ease, color 200ms ease;
    width: 100%;
    text-align: left;
}

.barra_lateral .elemento_nav:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #FFFFFF;
}

.barra_lateral .elemento_nav[data-activo="true"] {
    background: #FF5C39;
    color: #FFFFFF;
}

.lateral_base {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.lateral_base a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.45);
    transition: color 200ms ease, background 200ms ease;
}

.lateral_base a:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.06);
}

/* ============================================================
   BARRA MÓVIL
   ============================================================ */

.barra_movil {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: #1A1A1A;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    z-index: 200;
    gap: 0.75rem;
}

.movil_marca {
    display: flex;
    align-items: center;
}

.movil_marca .marca_logo {
    filter: brightness(0) invert(1);
}

.movil_marca .marca_nombre {
    font-size: 1rem;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: -0.02em;
    margin-left: 0.5rem;
    white-space: nowrap;
}

.movil_boton {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    background: none;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    font-size: 1.125rem;
    transition: background 200ms ease, color 200ms ease;
}

.movil_boton:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
}

.fondo_lateral {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 149;
}

/* ============================================================
   CABECERA PÚBLICA
   ============================================================ */

.cabecera {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #FFFFFF;
    border-bottom: 1px solid #E4E1DA;
}

.cabecera_interior {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.marca {
    display: flex;
    align-items: center;
    transition: opacity 200ms ease;
}

.marca:hover {
    opacity: 0.8;
}

.marca_logo {
    height: 28px;
    width: auto;
    display: block;
}

.marca_nombre {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-left: 0.5rem;
    white-space: nowrap;
}

.navegacion {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.elemento_nav {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6B6B6B;
    transition: color 200ms ease;
}

.elemento_nav:hover {
    color: #111111;
}

/* ============================================================
   PIE DE PÁGINA
   ============================================================ */

.cabecera ~ .pie_pagina {
    margin-left: 0;
}

.pie_pagina {
    background: #1A1A1A;
    padding: 1.5rem 0;
    text-align: center;
}

.disposicion ~ .pie_pagina {
    margin-left: 240px;
}

.pie_derechos {
    font-size: 0.875rem;
    color: #9A9A9A;
}

/* ============================================================
   CONTENIDO PRINCIPAL
   ============================================================ */

.contenido_principal {
    grid-column: 2;
    min-width: 0;
    padding: 2rem;
    background: #ECEAE4;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.encabezado h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111111;
    line-height: 1.15;
}

.encabezado p {
    font-size: 0.875rem;
    color: #6B6B6B;
    margin-top: 0.25rem;
}

/* ============================================================
   TARJETAS
   ============================================================ */

.tarjeta {
    background: #FFFFFF;
    border-radius: 1.25rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tarjeta > h2 {
    font-size: 1rem;
    font-weight: 600;
    color: #111111;
}

a.tarjeta,
button.tarjeta {
    cursor: pointer;
    transition: box-shadow 200ms ease, transform 120ms ease;
}

a.tarjeta:hover,
button.tarjeta:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

a.tarjeta:active,
button.tarjeta:active {
    transform: translateY(0);
    box-shadow: none;
}

.tarjeta_oscura {
    background: #1A1A1A;
    color: #FFFFFF;
}

.tarjeta_peligro {
    border: 1px solid rgba(214, 69, 69, 0.3);
}

.texto_peligro {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.texto_peligro h2 {
    color: #D64545;
}

.texto_peligro p {
    font-size: 0.875rem;
    color: #6B6B6B;
    line-height: 1.5;
}

/* ============================================================
   COMPONENTES BASE
   ============================================================ */

.cuadricula {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.pildora {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: #F4F2EC;
    color: #6B6B6B;
}

.pildora_invertida {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.8);
}

.avatar {
    width: 96px;
    height: 96px;
    border-radius: 999px;
    object-fit: cover;
    display: block;
}

.icono {
    width: 44px;
    height: 44px;
    border-radius: 0.75rem;
    background: #F4F2EC;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2E2E2E;
    flex-shrink: 0;
    font-size: 1.125rem;
}

.icono_acento {
    background: #FFE6DF;
    color: #FF5C39;
}

/* ============================================================
   BOTONES
   ============================================================ */

.boton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 999px;
    border: none;
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 200ms ease, transform 120ms ease, color 200ms ease, box-shadow 200ms ease;
    background: #F4F2EC;
    color: #111111;
    text-decoration: none;
    white-space: nowrap;
}

.boton:hover {
    background: #E4E1DA;
}

.boton:active {
    transform: scale(0.97);
}

.boton:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.boton_primario {
    background: #FF5C39;
    color: #FFFFFF;
}

.boton_primario:hover {
    background: #E04A28;
    box-shadow: 0 4px 12px rgba(255, 92, 57, 0.3);
}

.boton_fantasma {
    background: transparent;
    border: 1px solid #CFCBC2;
    color: #2E2E2E;
}

.boton_fantasma:hover {
    background: #F4F2EC;
    border-color: #BFBBB2;
}

/* ============================================================
   FORMULARIOS
   ============================================================ */

form {
    display: grid;
    gap: 1.5rem;
}

.campo {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.campo.columnas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.campo label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #2E2E2E;
}

.campo input:not([type="checkbox"]):not([type="radio"]),
.campo select,
.campo textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #E4E1DA;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    color: #2E2E2E;
    background: #FFFFFF;
    transition: border-color 200ms ease, box-shadow 200ms ease;
}

.campo input:not([type="checkbox"]):not([type="radio"]):focus,
.campo select:focus,
.campo textarea:focus {
    outline: none;
    border-color: #FF5C39;
    box-shadow: 0 0 0 3px rgba(255, 92, 57, 0.12);
}

.campo input:disabled,
.campo select:disabled,
.campo textarea:disabled {
    background: #F4F2EC;
    color: #9A9A9A;
    cursor: not-allowed;
    border-color: #E4E1DA;
}

.campo input[type="file"] {
    cursor: pointer;
}

.campo textarea {
    resize: vertical;
    min-height: 100px;
}

.ayuda {
    font-size: 0.75rem;
    color: #9A9A9A;
    line-height: 1.4;
}

.contador {
    font-size: 0.75rem;
    color: #9A9A9A;
}

.mostrar_contrasena {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #6B6B6B;
    cursor: pointer;
    user-select: none;
    width: fit-content;
}

.consentimientos {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.consentimiento_check {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    font-size: 0.875rem;
    color: #2E2E2E;
    cursor: pointer;
    line-height: 1.5;
}

.consentimiento_check input[type="checkbox"] {
    flex-shrink: 0;
    margin-top: 0.2rem;
    cursor: pointer;
    width: 16px;
    height: 16px;
    accent-color: #FF5C39;
}

.consentimiento_enlace {
    color: #FF5C39;
    font-weight: 500;
    text-underline-offset: 2px;
}

.consentimiento_enlace:hover {
    color: #E04A28;
    text-decoration: underline;
}

.acciones {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.acciones form {
    display: block;
}

/* ============================================================
   LISTAS DE ÍTEMS
   ============================================================ */

.lista {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: 1px solid #E4E1DA;
    border-radius: 0.75rem;
    background: #FFFFFF;
}

.item form {
    display: block;
    flex-shrink: 0;
}

.informacion {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.informacion h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111111;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.informacion p {
    font-size: 0.75rem;
    color: #6B6B6B;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vacio {
    font-size: 0.875rem;
    color: #9A9A9A;
    text-align: center;
    padding: 2rem 0;
}

.vacio a {
    color: #FF5C39;
    font-weight: 500;
}

.vacio a:hover {
    color: #E04A28;
    text-decoration: underline;
}

.seccion_encabezado {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* ============================================================
   PÁGINAS DE ACCESO
   ============================================================ */

.pagina_acceso {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #ECEAE4;
}

.cuerpo_acceso {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
}

.acceso_tarjeta {
    width: 100%;
    max-width: 480px;
    gap: 1.5rem;
}

.acceso_logo {
    display: flex;
    align-items: center;
    width: fit-content;
    transition: opacity 200ms ease;
}

.acceso_logo:hover {
    opacity: 0.8;
}

.acceso_titulo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111111;
    line-height: 1.15;
}

.acceso_subtitulo {
    font-size: 0.875rem;
    color: #6B6B6B;
    margin-top: -0.75rem;
}

.acceso_formulario {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.acceso_formulario .boton {
    margin-top: 0.5rem;
}

.acceso_pie {
    text-align: center;
    font-size: 0.875rem;
    color: #6B6B6B;
}

.acceso_pie a {
    color: #FF5C39;
    font-weight: 500;
    transition: color 200ms ease;
}

.acceso_pie a:hover {
    color: #E04A28;
}

/* ============================================================
   PÁGINAS LEGALES
   ============================================================ */

.legal_cuerpo {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 3rem 1.5rem;
}

.legal_tarjeta {
    width: 100%;
    max-width: 760px;
    gap: 2rem;
}

.legal_meta {
    display: flex;
    align-items: center;
}

.legal_fecha {
    font-size: 0.75rem;
    color: #6B6B6B;
}

.legal_contenido {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: #2E2E2E;
    line-height: 1.5;
}

.legal_contenido h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111111;
    line-height: 1.15;
}

.legal_contenido h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #111111;
    margin-top: 0.5rem;
}

.legal_contenido p {
    color: #2E2E2E;
}

.legal_contenido ul {
    list-style: disc;
    padding-left: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* ============================================================
   PÁGINAS DE ERROR
   ============================================================ */

.pagina_error {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tarjeta_error {
    max-width: 480px;
    width: 100%;
    align-items: center;
    text-align: center;
}

.tarjeta_error h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111111;
    line-height: 1.15;
}

.tarjeta_error p {
    font-size: 0.875rem;
    color: #6B6B6B;
}

.error_numero {
    font-size: 2.5rem;
    font-weight: 700;
    color: #FF5C39;
    line-height: 1;
}

/* ============================================================
   GALERÍA DE PLANTILLAS / CURRÍCULUMS
   ============================================================ */

.galeria {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.plantilla {
    background: #FFFFFF;
    border-radius: 1.25rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 200ms ease, transform 120ms ease;
}

.plantilla:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.plantilla .vista_previa {
    height: 180px;
    background: #F4F2EC;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9A9A9A;
    font-size: 0.875rem;
    overflow: hidden;
}

.plantilla .vista_previa img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

.curriculum_previa,
.plantilla_previa {
    position: relative;
    background: #F4F2EC;
}

.curriculum_previa iframe,
.plantilla_previa iframe {
    position: absolute;
    top: 0;
    left: 0;
}

.previa_cargando {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #9A9A9A;
    background: #F4F2EC;
    z-index: 1;
}

.plantilla .detalle {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.plantilla h2,
.plantilla h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111111;
}

.plantilla p {
    font-size: 0.75rem;
    color: #6B6B6B;
    line-height: 1.5;
}

.plantilla .detalle form {
    display: block;
}

.detalle_acciones {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: auto;
}

/* ============================================================
   VISOR DE CURRÍCULUM
   ============================================================ */

.visor {
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background: #ECEAE4;
    min-height: 100vh;
    overflow: hidden;
}

.visor_marco {
    position: relative;
    flex-shrink: 0;
}

.visor iframe {
    width: 210mm;
    height: 297mm;
    border: none;
    display: block;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    transform-origin: top left;
}

.contenido_cv {
    grid-column: 2;
    min-width: 0;
    min-height: 100vh;
    background: #ECEAE4;
}

.visor_columna {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

/* ============================================================
   EDITOR DE CURRÍCULUM
   ============================================================ */

.editor_contenedor {
    padding: 2rem 2rem 3rem;
    background: #ECEAE4;
    min-height: 100vh;
}

.editor_guardar {
    display: flex;
    justify-content: flex-end;
    padding: 1rem 0 0.5rem;
}

.editor_aviso {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #FFF4F1;
    border: 1px solid rgba(255, 92, 57, 0.2);
    border-radius: 0.75rem;
    color: #6B6B6B;
    font-size: 0.875rem;
    padding: 0.625rem 0.875rem;
    margin-bottom: 1rem;
}

.editor_aviso i {
    flex-shrink: 0;
    color: #FF5C39;
}

.editor_tabs {
    display: flex;
    border-bottom: 2px solid #E4E1DA;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.editor_tabs::-webkit-scrollbar {
    display: none;
}

.editor_tab {
    padding: 0.75rem 1.5rem;
    border: none;
    background: none;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    color: #6B6B6B;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    transition: color 200ms ease;
}

.editor_tab:hover {
    color: #111111;
}

.editor_tab.editor_tab_activo {
    color: #111111;
    font-weight: 600;
    border-bottom-color: #FF5C39;
}

.editor_seccion {
    display: none;
}

.editor_seccion.activo {
    display: block;
}

.editor_lista {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.item_editor {
    border: 1px solid #E4E1DA;
    border-radius: 0.75rem;
    overflow: hidden;
}

.item_editor_cabecera {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    cursor: pointer;
    background: #F4F2EC;
    user-select: none;
    transition: background 200ms ease;
}

.item_editor_cabecera:hover {
    background: #EAE7E0;
}

.item_editor_cabecera span {
    font-size: 0.875rem;
    font-weight: 600;
    color: #2E2E2E;
}

.item_editor_cuerpo {
    display: none;
    padding: 1.5rem;
    border-top: 1px solid #E4E1DA;
    background: #FFFFFF;
}

.item_editor_cuerpo.abierto {
    display: grid;
}

.item_simple {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #FFFFFF;
    border-radius: 0.75rem;
    border: 1px solid #E4E1DA;
}

.item_simple input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    font-size: 0.875rem;
    color: #2E2E2E;
    padding: 0.25rem 0;
}

.item_simple input:focus {
    outline: none;
    color: #111111;
}

/* ============================================================
   HERRAMIENTA DE IA
   ============================================================ */

.ia_contenedor {
    max-width: 700px;
    margin: 0 auto;
}

.ia_descripcion {
    font-size: 0.875rem;
    color: #6B6B6B;
    line-height: 1.5;
}

.ia_acciones {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.ia_estado {
    font-size: 0.875rem;
    color: #6B6B6B;
}

.ia_estado.exito {
    color: #22A06B;
}

.ia_estado.error {
    color: #D64545;
}

.ia_estado.cargando {
    color: #9A9A9A;
    animation: ia_pulso 1.6s ease-in-out infinite;
}

@keyframes ia_pulso {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

/* ============================================================
   EDITOR DE CÓDIGO
   ============================================================ */

.editor_codigo_contenedor {
    border: 1px solid #CFCBC2;
    border-radius: 0.75rem;
    overflow: hidden;
}

.editor_codigo_contenedor .CodeMirror {
    height: 100%;
    min-height: 480px;
    font-size: 0.875rem;
    font-family: "Fira Code", "Cascadia Code", "Consolas", monospace;
    line-height: 1.6;
}

.editor_codigo_contenedor .CodeMirror-scroll {
    min-height: 480px;
}

/* ============================================================
   INSTRUCCIONES PARA CREADORES
   ============================================================ */

.instruccion_texto {
    font-size: 0.875rem;
    color: #2E2E2E;
    line-height: 1.6;
}

.instruccion_subtitulo {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111111;
}

.instruccion_etiqueta {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6B6B6B;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.instruccion_lista {
    margin: 0 0 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

ol.instruccion_lista {
    list-style: decimal;
}

.codigo_linea {
    background: #F4F2EC;
    border: 1px solid #E4E1DA;
    border-radius: 0.4rem;
    padding: 1px 0.4rem;
    font-family: monospace;
    font-size: 0.8em;
    color: #111111;
}

.bloque_codigo {
    background: #1A1A1A;
    color: #d1fae5;
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    font-family: monospace;
    font-size: 0.75rem;
    line-height: 1.8;
    overflow-x: auto;
    white-space: pre;
}

.ejemplo_col .bloque_codigo {
    flex: 1;
}

.bloque_ejemplo {
    color: #fde68a;
    border: 1px dashed rgba(253, 230, 138, 0.3);
}

.ejemplo_bloque {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    align-items: start;
}

.ejemplo_col {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* ============================================================
   LANDING PAGE
   ============================================================ */

.seccion_titulo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111111;
    text-align: center;
    line-height: 1.15;
    margin-bottom: 0.75rem;
}

.seccion_subtitulo {
    font-size: 1rem;
    color: #6B6B6B;
    text-align: center;
    margin-bottom: 3rem;
}

.heroe {
    padding: 4rem 0;
    background: #ECEAE4;
}

.heroe_interior {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.heroe_texto {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
}

.heroe_pildora {
    background: #FFE6DF;
    color: #FF5C39;
}

.heroe_titulo {
    font-size: clamp(2rem, 4vw + 0.5rem, 3rem);
    font-weight: 700;
    color: #111111;
    line-height: 1.15;
}

.heroe_descripcion {
    font-size: 1.125rem;
    color: #6B6B6B;
    line-height: 1.6;
    max-width: 480px;
}

.heroe_acciones {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.heroe_visual {
    display: flex;
    justify-content: center;
}

/* Maqueta decorativa */

.maqueta {
    background: #FFFFFF;
    border-radius: 1.75rem;
    padding: 1.5rem;
    width: 100%;
    max-width: 360px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
}

.maqueta_barra {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.maqueta_barra span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    display: block;
}

.maqueta_barra span:nth-child(1) { background: #FF5F57; }
.maqueta_barra span:nth-child(2) { background: #FEBC2E; }
.maqueta_barra span:nth-child(3) { background: #28C840; }

.maqueta_cuerpo {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.maqueta_perfil {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.maqueta_avatar {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: #FFE6DF;
    flex-shrink: 0;
}

.maqueta_info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.maqueta_linea {
    height: 10px;
    border-radius: 999px;
    background: #E4E1DA;
}

.maqueta_nombre { width: 65%; height: 13px; background: #CFCBC2; }
.maqueta_cargo  { width: 45%; }
.maqueta_grande  { width: 80%; }
.maqueta_mediana { width: 55%; }
.maqueta_pequena { width: 35%; height: 8px; }

.maqueta_separador {
    height: 1px;
    background: #E4E1DA;
}

.maqueta_bloque {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.maqueta_etiqueta {
    height: 8px;
    width: 72px;
    border-radius: 999px;
    background: #FF5C39;
    opacity: 0.3;
    margin-bottom: 0.25rem;
}

.maqueta_entrada {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.maqueta_chips {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.maqueta_chip {
    height: 22px;
    width: 58px;
    border-radius: 999px;
    background: #F4F2EC;
    display: block;
}

.maqueta_chip_acento {
    background: #FFE6DF;
}

/* Secciones landing */

.caracteristicas {
    padding: 4rem 0;
    background: #FFFFFF;
}

.caracteristica h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #111111;
}

.caracteristica > p {
    font-size: 0.875rem;
    color: #6B6B6B;
    line-height: 1.6;
}

.pasos {
    padding: 4rem 0;
}

.pasos_lista {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.paso_numero {
    font-size: 2.5rem;
    font-weight: 700;
    color: #FF5C39;
    opacity: 0.2;
    line-height: 1;
}

.paso h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #111111;
}

.paso > p {
    font-size: 0.875rem;
    color: #6B6B6B;
    line-height: 1.6;
}

.creadores {
    padding: 4rem 0;
    background: #FFFFFF;
}

.creadores_tarjeta {
    padding: 3rem;
    max-width: 800px;
    margin: 0 auto;
    align-items: flex-start;
    gap: 1.5rem;
}

.creadores_tarjeta h2 {
    font-size: clamp(1.5rem, 2vw + 1rem, 2rem);
    font-weight: 700;
    line-height: 1.15;
    color: #FFFFFF;
}

.creadores_tarjeta > p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.65);
    max-width: 500px;
    line-height: 1.6;
}

.cta_final {
    padding: 4rem 0;
}

.cta_interior {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.cta_interior h2 {
    font-size: clamp(1.5rem, 3vw + 0.5rem, 2rem);
    font-weight: 700;
    color: #111111;
    line-height: 1.15;
}

.cta_interior > p {
    font-size: 1rem;
    color: #6B6B6B;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (min-width: 768px) {
    .heroe_interior {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .heroe {
        padding: 6rem 0;
    }
}

@media (max-width: 639px) {
    .columnas_2 {
        grid-template-columns: 1fr;
    }

    .campo.columnas {
        grid-template-columns: 1fr;
    }

    .disposicion {
        grid-template-columns: 1fr;
    }

    .barra_lateral {
        transform: translateX(-240px);
        transition: transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
        z-index: 150;
    }

    .barra_lateral[data-open="true"] {
        transform: translateX(0);
    }

    .fondo_lateral[data-open="true"] {
        display: block;
    }

    .barra_movil {
        display: flex;
    }

    .contenido_principal {
        grid-column: 1;
        padding: calc(56px + 1.5rem) 1rem 1.5rem;
    }

    .disposicion ~ .pie_pagina {
        margin-left: 0;
    }

    .cabecera .navegacion .elemento_nav {
        display: none;
    }

    .heroe_visual {
        display: none;
    }

    .creadores_tarjeta {
        padding: 1.5rem;
    }

    .item_editor_cabecera {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .item_editor_cabecera span {
        flex: 1;
        min-width: 0;
        word-break: break-word;
    }

    .contenido_cv {
        grid-column: 1;
    }

    .visor {
        padding: calc(56px + 1rem) 0.75rem 1rem;
    }

    .editor_contenedor {
        padding: calc(56px + 1rem) 0.75rem 3rem;
    }

    .ejemplo_bloque {
        grid-template-columns: 1fr;
    }

    .informacion h4,
    .informacion p {
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }
}

@media print {
    .visor {
        padding: 0;
        background: none;
        min-height: auto;
    }

    .visor_marco {
        width: auto !important;
        height: auto !important;
    }

    .visor iframe {
        transform: none !important;
    }
}
