* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #181818;
    background: #ffffff;
}

.container {
    width: min(1100px, 90%);
    margin: 0 auto;
}

header {
    padding: 24px 0;
    border-bottom: 1px solid #eeeeee;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    margin: 0;
    font-size: 22px;
}

nav {
    display: flex;
    gap: 24px;
}

nav a {
    color: #181818;
    text-decoration: none;
}

.hero {
    padding: 120px 0;
}

.hero h2 {
    max-width: 800px;
    margin: 10px 0 24px;
    font-size: clamp(48px, 7vw, 88px);
    line-height: 0.98;
    letter-spacing: -3px;
}

.eyebrow {
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 2px;
}

.intro {
    max-width: 650px;
    font-size: 22px;
    line-height: 1.5;
}

.quote-section {
    padding: 80px 0 120px;
    background: #f7f7f7;
}

#quote-card {
    max-width: 850px;
    margin-top: 40px;
}

.quote-text {
    margin: 0 0 30px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.15;
}

.quote-author {
    font-size: 20px;
    font-weight: bold;
}

.quote-topics {
    margin-top: 18px;
    color: #666666;
}

.quote-meta {
    display: flex;
    gap: 24px;
    margin-top: 24px;
    font-size: 14px;
    color: #666666;
}

.quote-source {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #dddddd;
}

.quote-source strong {
    display: block;
    margin-bottom: 10px;
}

.quote-source p {
    margin: 5px 0;
    color: #555555;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.author-photo {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
}

.author-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8e8e8;
    font-size: 24px;
    font-weight: bold;
}

.author-link {
    margin-top: 4px;
    font-size: 14px;
    color: #777;
}

.quote-rating {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 28px;
    font-size: 14px;
}

.stars {
    font-size: 25px;
    letter-spacing: 3px;
}

.quote-actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

.action-button {
    padding: 12px 20px;
    border: 1px solid #d5d5d5;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    font-size: 14px;
}

.action-button:hover {
    background: #f5f5f5;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    background: #f7f7f7;
}

.auth-card {
    width: 100%;
    max-width: 460px;
    padding: 48px;
    background: #ffffff;
    border-radius: 16px;
}

.auth-brand {
    display: inline-block;
    margin-bottom: 40px;
    color: #181818;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 2px;
}

.auth-card h1 {
    margin: 0 0 12px;
    font-size: 38px;
}

.auth-intro {
    margin-bottom: 32px;
    color: #666666;
    line-height: 1.5;
}

.auth-card form {
    display: flex;
    flex-direction: column;
}

.auth-card label {
    margin: 18px 0 8px;
    font-weight: bold;
}

.auth-card input {
    width: 100%;
    padding: 14px;
    border: 1px solid #cccccc;
    border-radius: 8px;
    font-size: 16px;
}

.auth-card small {
    margin-top: 8px;
    color: #777777;
}

.auth-button {
    margin-top: 28px;
    padding: 14px 20px;
    border: 0;
    border-radius: 8px;
    background: #181818;
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
}

.auth-footer {
    margin-top: 28px;
    color: #666666;
}

.auth-footer a {
    color: #181818;
}

#user-session {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
}

#user-session a {
    color: #181818;
    text-decoration: none;
}

#logout-button {
    border: 0;
    background: transparent;
    cursor: pointer;
    color: #666666;
}

.stars {
    display: flex;
    gap: 4px;
}

.star-button {
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
}

.star-button.active {
    transform: translateY(-1px);
}

.star-button:hover {
    transform: scale(1.08);
}

.conversation-section {
    padding: 100px 0;
}

.conversation-section h2 {
    margin-bottom: 32px;
    font-size: 36px;
}

#comment-form {
    max-width: 760px;
}

#comment-text {
    width: 100%;
    padding: 16px;
    border: 1px solid #cccccc;
    border-radius: 10px;
    font-family: inherit;
    font-size: 16px;
    resize: vertical;
}

#comment-message {
    margin-top: 14px;
    color: #666666;
}

#comments-list {
    max-width: 760px;
    margin-top: 50px;
}

.comment {
    padding: 24px 0;
    border-top: 1px solid #e3e3e3;
}

.comment-author {
    font-weight: bold;
}

.comment p {
    line-height: 1.6;
}

.comment-date {
    font-size: 13px;
    color: #777777;
}

.no-comments {
    color: #777777;
}

/* ======================================================
   CONVERSACIÓN Y RESPUESTAS
   ====================================================== */

.comment {
    padding: 28px 0;
    border-top: 1px solid #e7e7e7;
}

.comment-author {
    margin-bottom: 10px;
    font-size: 17px;
    font-weight: 700;
    color: #181818;
}

.comment>p,
.reply p {
    margin: 0 0 16px;
    font-size: 17px;
    line-height: 1.65;
    color: #2a2a2a;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 14px;
}

.comment-date {
    font-size: 13px;
    color: #888888;
}

.reply-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: #555555;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.reply-button:hover {
    color: #181818;
    text-decoration: underline;
}


/* RESPUESTAS */

.replies {
    margin-top: 24px;
    margin-left: 24px;
    padding-left: 22px;
    border-left: 2px solid #ececec;
}

.reply {
    padding: 18px 0;
}

.reply+.reply {
    border-top: 1px solid #eeeeee;
}


/* FORMULARIO DE RESPUESTA */

.reply-form-container {
    margin-top: 20px;
    max-width: 650px;
}

.reply-form {
    padding: 20px;
    background: #f8f8f8;
    border-radius: 12px;
}

.reply-form textarea {
    width: 100%;
    min-height: 110px;
    padding: 14px 16px;
    border: 1px solid #d6d6d6;
    border-radius: 10px;
    background: #ffffff;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;
    resize: vertical;
}

.reply-form textarea:focus {
    outline: none;
    border-color: #777777;
}

.reply-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.reply-actions .action-button {
    padding: 10px 18px;
    border: 1px solid #d6d6d6;
    border-radius: 8px;
    background: #ffffff;
    color: #181818;
    font-size: 14px;
    cursor: pointer;
}

.reply-actions .action-button:first-child {
    background: #181818;
    border-color: #181818;
    color: #ffffff;
}

.reply-actions .action-button:hover {
    opacity: 0.85;
}

.reply-message {
    margin: 12px 0 0;
    font-size: 14px;
    color: #666666;
}

/* ======================================================
   PANEL DE MODERACIÓN
   ====================================================== */

.admin-page {
    padding: 60px 0;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 40px;
}

.admin-header h1 {
    margin: 6px 0 10px;
    font-size: 36px;
}

.admin-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.admin-filter {
    padding: 10px 16px;
    border: 1px solid #dddddd;
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
}

.admin-filter.active {
    background: #181818;
    color: #ffffff;
    border-color: #181818;
}

.admin-message {
    margin-bottom: 20px;
    font-size: 14px;
    color: #555555;
}

.admin-comments-list {
    display: grid;
    gap: 20px;
}

.admin-comment-card {
    padding: 24px;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    background: #ffffff;
}

.admin-comment-top {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.admin-comment-author {
    font-weight: 700;
    font-size: 17px;
}

.admin-comment-email {
    margin-top: 3px;
    font-size: 13px;
    color: #888888;
}

.admin-comment-date {
    font-size: 13px;
    color: #888888;
}

.admin-reply-context {
    margin-bottom: 12px;
    font-size: 13px;
    color: #777777;
}

.admin-comment-text {
    margin-bottom: 22px;
    font-size: 18px;
    line-height: 1.6;
}

.admin-quote-context {
    padding: 18px;
    border-radius: 10px;
    background: #f7f7f7;
    font-size: 14px;
    line-height: 1.5;
}

.admin-context-label {
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #777777;
}

.admin-quote-author {
    margin-top: 6px;
    font-weight: 600;
}

.admin-comment-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.admin-action-button {
    padding: 10px 16px;
    border: 1px solid #dddddd;
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
}

.admin-action-button.approve {
    background: #181818;
    color: #ffffff;
    border-color: #181818;
}

.admin-action-button.danger {
    color: #a32626;
}

.admin-empty {
    padding: 40px;
    border: 1px dashed #dddddd;
    border-radius: 12px;
    text-align: center;
    color: #777777;
}

@media (max-width: 700px) {
    .admin-header {
        flex-direction: column;
    }

    .admin-comment-top {
        flex-direction: column;
    }
}

/* ======================================================
   DASHBOARD ADMINISTRATIVO
   ====================================================== */

.admin-dashboard {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.admin-dashboard-card {
    display: block;
    padding: 28px;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    background: #ffffff;
    color: inherit;
    text-decoration: none;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}

.admin-dashboard-card:not(.disabled):hover {
    transform: translateY(-2px);
    border-color: #aaaaaa;
}

.admin-dashboard-card h2 {
    margin: 8px 0 10px;
    font-size: 23px;
}

.admin-dashboard-card p {
    margin: 0 0 20px;
    color: #666666;
    line-height: 1.6;
}

.admin-dashboard-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #888888;
}

.admin-dashboard-card span {
    font-size: 14px;
    font-weight: 600;
}

.admin-dashboard-card.disabled {
    background: #fafafa;
    color: #888888;
}

@media (max-width: 700px) {
    .admin-dashboard {
        grid-template-columns: 1fr;
    }
}

/* ======================================================
   ADMINISTRACIÓN DE FRASES
   ====================================================== */

.admin-header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-primary-link {
    background: #181818;
    color: #ffffff;
    border-color: #181818;
    text-decoration: none;
}

.admin-list-toolbar {
    margin-bottom: 28px;
}

.admin-list-toolbar input {
    width: 100%;
    max-width: 480px;
    padding: 12px 14px;
    border: 1px solid #dddddd;
    border-radius: 9px;
    font: inherit;
}

.admin-quotes-list {
    display: grid;
    gap: 18px;
}

.admin-quote-card {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 24px;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    background: #ffffff;
}

.admin-quote-main {
    flex: 1;
}

.admin-quote-text {
    margin: 10px 0 16px;
    font-size: 21px;
    line-height: 1.5;
}

.admin-quote-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-quote-meta span {
    padding: 5px 9px;
    border-radius: 999px;
    background: #f2f2f2;
    font-size: 12px;
    color: #555555;
}

.admin-quote-actions {
    display: flex;
    align-items: flex-start;
}

@media (max-width: 700px) {
    .admin-quote-card {
        flex-direction: column;
    }

    .admin-header-actions {
        width: 100%;
    }
}

/* ======================================================
   FORMULARIO ADMINISTRATIVO
   ====================================================== */

.admin-form {
    max-width: 900px;
}

.admin-form-group {
    margin-bottom: 24px;
}

.admin-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

.admin-form-group input,
.admin-form-group textarea,
.admin-form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d8d8d8;
    border-radius: 9px;
    background: #ffffff;
    font: inherit;
}

.admin-form-group textarea {
    resize: vertical;
}

.admin-form-group small {
    display: block;
    margin-top: 7px;
    color: #777777;
    line-height: 1.4;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.admin-checkboxes {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 26px;
}

.admin-checkboxes label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

@media (max-width: 700px) {
    .admin-form-grid {
        grid-template-columns: 1fr;
    }
}

/* ======================================================
   SELECTOR DE TEMAS
   ====================================================== */

.admin-topic-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.admin-topic-option {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 13px;
    border: 1px solid #dddddd;
    border-radius: 999px;
    background: #ffffff;
    cursor: pointer;
    font-weight: 500;
}

.admin-topic-option:hover {
    border-color: #999999;
}

.admin-topic-option input {
    width: auto;
    margin: 0;
}

/* ======================================================
   SECCIONES DEL FORMULARIO
   ====================================================== */

.admin-form-section {
    margin: 38px 0;
    padding-top: 30px;
    border-top: 1px solid #e5e5e5;
}

.admin-form-section-header {
    margin-bottom: 24px;
}

.admin-form-section-header h2 {
    margin: 6px 0 8px;
    font-size: 24px;
}

.admin-form-section-header p:last-child {
    margin: 0;
    color: #666666;
    line-height: 1.6;
}

/* ======================================================
   FUENTES MÚLTIPLES
   ====================================================== */

.admin-sources-list {
    display: grid;
    gap: 14px;
    margin-bottom: 20px;
}

.admin-source-card {
    padding: 18px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    background: #ffffff;
}

.admin-source-card h3 {
    margin: 0 0 8px;
    font-size: 17px;
}

.admin-source-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 13px;
    color: #666666;
}

.admin-source-actions {
    display: flex;
    gap: 10px;
}

.admin-source-form-container {
    display: none;
    margin-top: 24px;
    padding: 24px;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    background: #fafafa;
}

.admin-source-form-container.active {
    display: block;
}

/* ======================================================
   SELECTOR DE TEMAS CON BÚSQUEDA
   ====================================================== */

.selected-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0;
}

.selected-topic-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 11px;
    border-radius: 999px;
    background: #181818;
    color: #ffffff;
    font-size: 13px;
}

.remove-topic-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

.selected-topics-empty {
    font-size: 13px;
    color: #888888;
}

.admin-topic-search-results {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.topic-search-option {
    padding: 8px 12px;
    border: 1px solid #dddddd;
    border-radius: 999px;
    background: #ffffff;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
}

.topic-search-option:hover {
    border-color: #999999;
}

.topic-search-empty {
    font-size: 13px;
    color: #888888;
}

/* ======================================================
   FILTROS Y PAGINACIÓN DE FRASES
   ====================================================== */

.admin-list-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.admin-list-toolbar input,
.admin-list-toolbar select {
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid #dddddd;
    border-radius: 9px;
    background: #ffffff;
    font: inherit;
}

.admin-list-toolbar input {
    flex: 1 1 360px;
    max-width: none;
}

.admin-list-toolbar select {
    flex: 0 1 260px;
}

.admin-list-summary {
    margin-bottom: 24px;
    color: #666666;
    font-size: 14px;
}

.admin-quote-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
}

.admin-quote-topics span {
    padding: 5px 9px;
    border-radius: 999px;
    background: #f5f5f5;
    font-size: 12px;
    color: #555555;
}

.admin-quote-source-summary {
    margin-top: 14px;
    font-size: 13px;
    color: #777777;
}

.admin-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin-top: 32px;
}

.admin-pagination button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

#page-info {
    font-size: 14px;
    color: #555555;
}

@media (max-width: 700px) {
    .admin-list-toolbar {
        flex-direction: column;
    }

    .admin-list-toolbar input,
    .admin-list-toolbar select {
        width: 100%;
        max-width: none;
    }

    .admin-pagination {
        gap: 10px;
    }
}

/* ======================================================
   ACCIONES FINALES DEL FORMULARIO
   ====================================================== */

.admin-form-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

#save-quote-button,
#save-next-button,
.admin-form-actions>a.action-button {
    min-height: 42px;
    padding: 0 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
}

#save-quote-button {
    border: 1px solid #181818;
    background: #181818;
    color: #ffffff;
    cursor: pointer;
}

#save-quote-button:hover {
    background: #2a2a2a;
}

#save-next-button {
    border: 1px solid #d6d6d6;
    background: #ffffff;
    color: #181818;
    cursor: pointer;
}

#save-next-button:hover {
    border-color: #999999;
    background: #fafafa;
}

.admin-form-actions>a.action-button {
    display: inline-flex;
    align-items: center;
    border: 1px solid #dddddd;
    background: #ffffff;
    color: #555555;
    text-decoration: none;
}

.admin-form-actions>a.action-button:hover {
    border-color: #aaaaaa;
    color: #181818;
}

#save-quote-button:disabled,
#save-next-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

@media (max-width: 700px) {
    .admin-form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    #save-quote-button,
    #save-next-button,
    .admin-form-actions>a.action-button {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

/* ======================================================
   AJUSTE FINAL BOTONES FORMULARIO DE FRASES
   ====================================================== */

.admin-form-actions {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin-top: 24px !important;
}

.admin-form-actions #save-quote-button,
.admin-form-actions #save-next-button,
.admin-form-actions>a.action-button {
    width: auto !important;
    min-width: 0 !important;
    min-height: 40px !important;
    height: 40px !important;
    padding: 0 16px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
}

.admin-form-actions #save-quote-button {
    border: 1px solid #181818 !important;
    background: #181818 !important;
    color: #ffffff !important;
}

.admin-form-actions #save-next-button {
    border: 1px solid #cccccc !important;
    background: #ffffff !important;
    color: #181818 !important;
}

.admin-form-actions>a.action-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid #dddddd !important;
    background: #ffffff !important;
    color: #666666 !important;
    text-decoration: none !important;
}

.admin-form-actions #save-quote-button:hover {
    background: #2a2a2a !important;
}

.admin-form-actions #save-next-button:hover,
.admin-form-actions>a.action-button:hover {
    border-color: #999999 !important;
    color: #181818 !important;
}

@media (max-width: 700px) {
    .admin-form-actions {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .admin-form-actions #save-quote-button,
    .admin-form-actions #save-next-button,
    .admin-form-actions>a.action-button {
        width: 100% !important;
    }
}

/* ======================================================
   BOTONES FINALES DEL FORMULARIO DE FRASES
   ====================================================== */

.admin-form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
}

.quote-action-button {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: auto;
    height: 44px;
    min-height: 44px;

    margin: 0;
    padding: 0 18px;

    border: 1px solid #d5d5d5;
    border-radius: 8px;

    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;

    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.quote-action-primary {
    background: #181818;
    border-color: #181818;
    color: #ffffff;
}

.quote-action-primary:hover {
    background: #2b2b2b;
}

.quote-action-secondary {
    background: #ffffff;
    border-color: #bfbfbf;
    color: #181818;
}

.quote-action-secondary:hover {
    border-color: #777777;
}

.quote-action-cancel {
    background: #ffffff;
    border-color: #dddddd;
    color: #666666;
}

.quote-action-cancel:hover {
    border-color: #aaaaaa;
    color: #181818;
}

.quote-action-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

@media (max-width: 700px) {
    .admin-form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .quote-action-button {
        width: 100%;
    }
}

.verification-progress {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin: 20px 0 28px;
    padding: 16px 18px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    background: #fafafa;
    font-size: 13px;
    color: #666666;
}

.verification-progress strong {
    color: #181818;
}

.verification-progress span {
    white-space: nowrap;
}

/* ======================================================
   ADMINISTRACIÓN DE AUTORES
   ====================================================== */

.admin-authors-list {
    display: grid;
    gap: 14px;
}

.admin-author-card {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 20px;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    background: #ffffff;
}

.admin-author-avatar {
    width: 56px;
    height: 56px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f2f2f2;
    font-size: 20px;
    font-weight: 700;
}

.admin-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-author-main h2 {
    margin: 0 0 7px;
    font-size: 18px;
}

.admin-author-main p {
    margin: 10px 0 0;
    color: #666666;
    line-height: 1.5;
}

.admin-author-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.admin-author-meta span {
    padding: 4px 8px;
    border-radius: 999px;
    background: #f3f3f3;
    color: #666666;
    font-size: 12px;
}

.admin-author-actions {
    align-self: start;
}

@media (max-width: 700px) {
    .admin-author-card {
        grid-template-columns: 48px 1fr;
    }

    .admin-author-actions {
        grid-column: 1 / -1;
    }

    .admin-author-avatar {
        width: 46px;
        height: 46px;
    }
}

/* ======================================================
   ADMINISTRACIÓN DE TEMAS
   ====================================================== */

.admin-topics-list {
    display: grid;
    gap: 14px;
}

.admin-topic-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: start;
    padding: 20px;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    background: #ffffff;
}

.admin-topic-main h2 {
    margin: 0 0 8px;
    font-size: 18px;
}

.admin-topic-main p {
    margin: 12px 0 0;
    color: #666666;
    line-height: 1.5;
}

.admin-topic-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.admin-topic-meta span {
    padding: 4px 8px;
    border-radius: 999px;
    background: #f3f3f3;
    color: #666666;
    font-size: 12px;
}

.admin-topic-actions {
    align-self: start;
}

@media (max-width: 700px) {
    .admin-topic-card {
        grid-template-columns: 1fr;
    }
}

/* ======================================================
   ADMINISTRACIÓN DE LIBROS
   ====================================================== */

.admin-books-list {
    display: grid;
    gap: 16px;
}

.admin-book-card {
    display: grid;
    grid-template-columns: 90px 1fr auto;
    gap: 20px;
    align-items: start;
    padding: 20px;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    background: #ffffff;
}

.admin-book-cover {
    width: 78px;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 8px;
    background: #f3f3f3;
}

.admin-book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-book-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999999;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.admin-book-main h2 {
    margin: 7px 0 10px;
    font-size: 20px;
}

.admin-book-main p {
    margin: 14px 0 0;
    color: #666666;
    line-height: 1.5;
}

.admin-book-meta,
.admin-book-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.admin-book-meta span,
.admin-book-topics span {
    padding: 4px 8px;
    border-radius: 999px;
    background: #f3f3f3;
    color: #666666;
    font-size: 12px;
}

.admin-book-topics {
    margin-top: 10px;
}

.admin-book-actions {
    align-self: start;
}

@media (max-width: 700px) {
    .admin-book-card {
        grid-template-columns: 64px 1fr;
    }

    .admin-book-actions {
        grid-column: 1 / -1;
    }

    .admin-book-cover {
        width: 58px;
    }
}

/* ======================================================
   FORMULARIO DE LIBROS
   ====================================================== */

.book-cover-preview {
    width: 150px;
    aspect-ratio: 2 / 3;
    margin-top: 14px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    overflow: hidden;
    background: #f6f6f6;
}

.book-cover-preview img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.book-cover-preview-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    color: #888888;
    font-size: 12px;
    text-align: center;
}

/* ======================================================
   ADMINISTRACIÓN DE USUARIOS
   ====================================================== */

.admin-users-list {
    display: grid;
    gap: 16px;
}

.admin-user-card {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 20px;
    align-items: start;
    padding: 22px;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    background: #ffffff;
}

.admin-user-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    background: #f2f2f2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666666;
    font-weight: 700;
}

.admin-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-user-heading {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.admin-user-heading h2 {
    margin: 0 0 4px;
    font-size: 19px;
}

.admin-user-heading p {
    margin: 0;
    color: #666666;
}

.admin-user-badges,
.admin-user-stats,
.admin-user-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.admin-user-badges span,
.admin-user-stats span,
.admin-user-meta span {
    padding: 4px 8px;
    border-radius: 999px;
    background: #f3f3f3;
    color: #666666;
    font-size: 12px;
}

.admin-user-stats {
    margin-top: 14px;
}

.admin-user-meta {
    margin-top: 8px;
}

.admin-user-actions {
    align-self: start;
}

@media (max-width: 700px) {
    .admin-user-card {
        grid-template-columns: 48px 1fr;
    }

    .admin-user-actions {
        grid-column: 1 / -1;
    }

    .admin-user-heading {
        display: block;
    }

    .admin-user-badges {
        margin-top: 10px;
    }

    .admin-user-avatar {
        width: 44px;
        height: 44px;
    }
}

/* ======================================================
   DETALLE DE USUARIO
   ====================================================== */

.admin-readonly-field {
    padding: 13px 15px;
    border: 1px solid #e5e5e5;
    border-radius: 9px;
    background: #f8f8f8;
    color: #555555;
}

.admin-user-detail-section {
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px solid #e5e5e5;
}

.admin-user-detail-section h2 {
    margin: 0 0 16px;
    font-size: 18px;
}

.admin-user-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.admin-user-detail-grid div {
    padding: 18px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    background: #fafafa;
}

.admin-user-detail-grid strong {
    display: block;
    margin-bottom: 4px;
    font-size: 24px;
}

.admin-user-detail-grid span {
    color: #666666;
    font-size: 13px;
}

.admin-user-account-meta p {
    margin: 8px 0;
    color: #555555;
}

@media (max-width: 700px) {
    .admin-user-detail-grid {
        grid-template-columns: 1fr;
    }
}

/* ======================================================
   FRONTEND PÚBLICO - HOME
   OmarMacias.com
   ====================================================== */

:root {
    --site-bg: #f7f3ed;
    --site-surface: #ffffff;
    --site-text: #1f1f1f;
    --site-muted: #6f6a63;
    --site-border: #ded7ce;
    --site-accent: #9b6b43;
}


/* ======================================================
   HEADER
   ====================================================== */

.site-header {
    background: var(--site-surface);
    border-bottom: 1px solid var(--site-border);
}

.site-header-inner {
    width: min(1200px, calc(100% - 48px));
    min-height: 88px;

    margin: 0 auto;

    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;

    gap: 32px;
}

.site-header-menu {
    display: contents;
}

.site-nav {
    justify-self: center;
}

.user-session {
    display: flex;
    align-items: center;
    gap: 20px;
    white-space: nowrap;
    justify-self: end;
}

.site-brand {
    color: var(--site-text);
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
}

.site-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.site-nav a {
    color: #181818;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    transition: color 0.2s ease;
}

.site-nav a:hover {
    color: #C89A4B;
}

.site-session {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
}

.site-session a,
.site-session button {
    font: inherit;
}

.site-session a {
    color: var(--site-text);
}

.site-session button {
    border: 0;
    background: transparent;
    color: var(--site-muted);
    cursor: pointer;
}


/* ======================================================
   HERO
   ====================================================== */

.home-hero {
    background: var(--site-bg);
    padding: 88px 0 76px;
}

.home-hero-inner {
    max-width: 920px;
}

.home-hero h1 {
    margin: 18px 0 24px;
    max-width: 850px;
    font-size: clamp(46px, 7vw, 86px);
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.home-hero-intro {
    max-width: 760px;
    margin: 0;
    font-size: 24px;
    line-height: 1.45;
}

.home-hero-secondary {
    max-width: 700px;
    margin: 18px 0 0;
    color: var(--site-muted);
    font-size: 17px;
    line-height: 1.6;
}


/* ======================================================
   ENCABEZADOS DE SECCIÓN
   ====================================================== */

.home-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 30px;
}

.home-section-heading h2 {
    margin: 8px 0 0;
    font-size: 34px;
    line-height: 1.1;
}

.home-section-heading p {
    color: var(--site-muted);
}

/* ==================================================
   MARCA DEL ENCABEZADO
================================================== */

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    color: #203A5B;
    text-decoration: none;
    white-space: nowrap;

    flex-shrink: 0;
}

.site-brand-logo {
    display: block;

    width: 38px;
    height: 38px;

    object-fit: contain;

    flex: 0 0 38px;
}

.site-brand-name {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;

    color: #203A5B;
    white-space: nowrap;
}

.site-brand:hover .site-brand-name {
    color: #C89A4B;
}

/* ======================================================
   FRASE DEL DÍA
   ====================================================== */

.home-quote-section {
    padding: 76px 0;
    background: var(--site-surface);
}

.home-quote-card {
    padding: 42px;
    border: 1px solid var(--site-border);
    border-radius: 22px;
    background: var(--site-bg);
}

.home-quote-card .author-info {
    margin-bottom: 26px;
}

.home-quote-card .quote-text {
    max-width: 1050px;
    margin: 24px 0;
    font-size: clamp(40px, 5.5vw, 72px);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.home-quote-card .quote-topics {
    margin-top: 22px;
    color: var(--site-muted);
}

.home-quote-card .quote-rating {
    margin-top: 26px;
}

.home-quote-card .quote-actions {
    margin-top: 24px;
}

.home-quote-card .quote-meta {
    margin-top: 28px;
}


/* ======================================================
   MANIFIESTO
   ====================================================== */

.home-manifesto {
    padding: 90px 0;
    background: #ede4d8;
}

.home-manifesto-inner {
    max-width: 980px;
}

.home-manifesto blockquote {
    margin: 20px 0 0;
    max-width: 900px;
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1.12;
    letter-spacing: -0.03em;
}


/* ======================================================
   CONVERSACIÓN
   ====================================================== */

.conversation-section {
    padding: 78px 0;
    background: var(--site-surface);
}

.conversation-container {
    max-width: 940px;
}

.home-comment-form {
    display: grid;
    gap: 14px;
    margin-bottom: 40px;
}

.home-comment-form textarea {
    width: 100%;
    min-height: 140px;
    padding: 18px;
    border: 1px solid var(--site-border);
    border-radius: 14px;
    background: #ffffff;
    font: inherit;
    resize: vertical;
}


/* ======================================================
   FOOTER
   ====================================================== */

.site-footer {
    padding: 42px 0;
    border-top: 1px solid var(--site-border);
    background: var(--site-bg);
}

.site-footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: flex-start;
}

.site-footer p {
    margin: 6px 0 0;
    color: var(--site-muted);
}


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

@media (max-width: 900px) {


    .site-nav {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 14px 20px;
    }

    .site-session {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .home-hero {
        padding: 64px 0 54px;
    }

    .home-quote-card {
        padding: 28px;
    }

    .site-footer-inner {
        display: block;
    }

    .site-footer-inner>p {
        margin-top: 18px;
    }

}


@media (max-width: 600px) {

    .home-hero h1 {
        font-size: 46px;
    }

    .home-hero-intro {
        font-size: 20px;
    }

    .home-section-heading h2 {
        font-size: 28px;
    }

    .home-quote-card {
        padding: 22px;
        border-radius: 16px;
    }

    .home-quote-card .quote-text {
        font-size: 38px;
    }

    .home-manifesto {
        padding: 64px 0;
    }

    .conversation-section {
        padding: 58px 0;
    }

}

/* ======================================================
   PÁGINA PÚBLICA DE FRASE
   ====================================================== */

.public-quote-page {
    padding: 56px 0 80px;
    background: var(--site-bg);
}

.public-quote-container {
    max-width: 1100px;
}

.public-back-link {
    display: inline-block;
    margin-bottom: 28px;
    color: var(--site-muted);
    text-decoration: none;
    font-size: 14px;
}

.public-back-link:hover {
    color: var(--site-text);
}

.public-quote-card {
    padding: 46px;
    border: 1px solid var(--site-border);
    border-radius: 22px;
    background: var(--site-surface);
}

.public-quote-author {
    display: flex;
    gap: 16px;
    align-items: center;
}

.public-quote-text {
    max-width: 980px;
    margin: 38px 0 30px;
    font-size: clamp(42px, 6vw, 78px);
    line-height: 1.07;
    letter-spacing: -0.04em;
}

.public-quote-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.public-quote-topics span {
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--site-bg);
    color: var(--site-muted);
    font-size: 13px;
}

.public-quote-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
    color: var(--site-muted);
    font-size: 13px;
}

.public-quote-source {
    margin-top: 34px;
    padding-top: 28px;
    border-top: 1px solid var(--site-border);
}

.public-quote-source p {
    margin: 8px 0 0;
    color: var(--site-muted);
}

@media (max-width: 700px) {

    .public-quote-page {
        padding: 36px 0 54px;
    }

    .public-quote-card {
        padding: 24px;
        border-radius: 16px;
    }

    .public-quote-text {
        font-size: 40px;
    }
}

/* ======================================================
   PÁGINA PÚBLICA DE AUTOR
   ====================================================== */

.public-author-page {
    padding: 56px 0 76px;
    background: var(--site-bg);
}

.public-author-container {
    max-width: 1100px;
}

.public-author-profile {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 48px;
    align-items: start;
}

.public-author-photo {
    width: 220px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 50%;
    background: #e9e1d7;
}

.public-author-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.public-author-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 72px;
    font-weight: 700;
    color: var(--site-muted);
}

.public-author-info h1 {
    margin: 12px 0 18px;
    font-size: clamp(46px, 7vw, 78px);
    line-height: 1;
    letter-spacing: -0.04em;
}

.public-author-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.public-author-meta span {
    padding: 6px 10px;
    border-radius: 999px;
    background: #ffffff;
    color: var(--site-muted);
    font-size: 13px;
}

.public-author-intro {
    max-width: 760px;
    margin: 26px 0 0;
    font-size: 21px;
    line-height: 1.55;
}

.public-author-bio {
    max-width: 800px;
    margin-top: 20px;
    color: var(--site-muted);
    line-height: 1.75;
    white-space: pre-line;
}

.author-content-section {
    padding: 72px 0;
    background: var(--site-surface);
}

.author-books-section {
    background: var(--site-bg);
}

.public-author-quotes-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.public-author-quote-card {
    display: block;
    padding: 28px;
    border: 1px solid var(--site-border);
    border-radius: 18px;
    color: var(--site-text);
    text-decoration: none;
    background: #ffffff;
}

.public-author-quote-card blockquote {
    margin: 0;
    font-size: 25px;
    line-height: 1.35;
}

.public-author-quote-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 20px;
}

.public-author-quote-topics span {
    padding: 5px 8px;
    border-radius: 999px;
    background: var(--site-bg);
    color: var(--site-muted);
    font-size: 12px;
}

.public-card-link {
    display: inline-block;
    margin-top: 22px;
    font-size: 13px;
    font-weight: 600;
}

.public-author-books-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.public-author-book-card {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 16px;
    align-items: start;
    padding: 18px;
    border: 1px solid var(--site-border);
    border-radius: 16px;
    background: #ffffff;
}

.public-author-book-cover {
    width: 70px;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 7px;
    background: #f1ede7;
}

.public-author-book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.public-author-book-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--site-muted);
    font-size: 10px;
    font-weight: 700;
}

.public-author-book-card h3 {
    margin: 0;
    font-size: 17px;
}

.public-author-book-card p {
    margin: 7px 0 0;
    color: var(--site-muted);
}

@media (max-width: 800px) {

    .public-author-profile {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .public-author-photo {
        width: 150px;
        margin: 0 auto;
    }

    .public-author-info {
        width: 100%;
        text-align: center;
    }

    .public-author-meta {
        justify-content: center;
    }

    .public-author-intro,
    .public-author-bio {
        margin-left: auto;
        margin-right: auto;
    }

    .public-author-quotes-grid {
        grid-template-columns: 1fr;
    }

    .public-author-books-grid {
        grid-template-columns: 1fr;
    }

}

/* ======================================================
   PÁGINA PÚBLICA DE TEMA
   ====================================================== */

.public-topic-page {
    padding: 56px 0 76px;
    background: var(--site-bg);
}

.public-topic-container {
    max-width: 1100px;
}

.public-topic-profile {
    max-width: 850px;
}

.public-topic-profile h1 {
    margin: 12px 0 20px;
    font-size: clamp(52px, 8vw, 92px);
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.public-topic-description {
    max-width: 760px;
    margin: 0;
    color: var(--site-muted);
    font-size: 21px;
    line-height: 1.6;
}

.public-topic-quote-author {
    margin-top: 18px;
    color: var(--site-muted);
    font-size: 14px;
}

/* ======================================================
   PÁGINA PÚBLICA DE LIBRO
   ====================================================== */

.public-book-page {
    padding: 56px 0 84px;
    background: var(--site-bg);
}

.public-book-container {
    max-width: 1100px;
}

.public-book-profile {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 54px;
    align-items: start;
}

.public-book-cover {
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 14px;
    background: #e9e1d7;
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.08);
}

.public-book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.public-book-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--site-muted);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.public-book-info h1 {
    margin: 12px 0 14px;
    font-size: clamp(44px, 6vw, 76px);
    line-height: 1;
    letter-spacing: -0.04em;
}

.public-book-author {
    margin: 0 0 20px;
    color: var(--site-muted);
    font-size: 18px;
}

.public-book-author a {
    color: var(--site-text);
    text-decoration: none;
    font-weight: 600;
}

.public-book-meta,
.public-book-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.public-book-meta span,
.public-book-topics a {
    padding: 6px 10px;
    border-radius: 999px;
    background: #ffffff;
    color: var(--site-muted);
    font-size: 13px;
}

.public-book-topics {
    margin-top: 14px;
}

.public-book-topics a {
    text-decoration: none;
}

.public-book-topics a:hover,
.public-book-author a:hover {
    color: var(--site-accent);
}

.public-book-description {
    max-width: 760px;
    margin-top: 30px;
    color: var(--site-muted);
    font-size: 19px;
    line-height: 1.7;
    white-space: pre-line;
}

.public-book-editorial-block {
    max-width: 760px;
    margin-top: 34px;
    padding-top: 28px;
    border-top: 1px solid var(--site-border);
}

.public-book-editorial-block p:last-child {
    color: var(--site-muted);
    line-height: 1.75;
    white-space: pre-line;
}

.public-book-details {
    margin-top: 34px;
    padding-top: 28px;
    border-top: 1px solid var(--site-border);
}

.public-book-details p {
    margin: 8px 0;
    color: var(--site-muted);
}

@media (max-width: 800px) {

    .public-book-profile {
        grid-template-columns: 1fr;
    }

    .public-book-cover {
        width: 180px;
    }

}

.public-author-book-card {
    color: var(--site-text);
    text-decoration: none;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}

.public-author-book-card:hover {
    border-color: #c8b8a6;
    transform: translateY(-2px);
}

/* ======================================================
   LISTADOS PÚBLICOS
   ====================================================== */

.public-list-page {
    padding: 70px 0 84px;
    background: var(--site-bg);
}

.public-list-container {
    max-width: 1100px;
}

.public-list-page h1 {
    max-width: 900px;
    margin: 12px 0 18px;
    font-size: clamp(48px, 7vw, 82px);
    line-height: 1;
    letter-spacing: -0.04em;
}

.public-list-intro {
    max-width: 720px;
    margin: 0;
    color: var(--site-muted);
    font-size: 20px;
    line-height: 1.6;
}

.public-list-search {
    margin-top: 42px;
}

.public-list-search input {
    width: 100%;
    padding: 16px 18px;
    border: 1px solid var(--site-border);
    border-radius: 12px;
    background: #ffffff;
    font: inherit;
}

.public-list-summary {
    margin: 14px 0 22px;
    color: var(--site-muted);
    font-size: 14px;
}

.public-quotes-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.public-quote-list-card {
    display: block;
    padding: 28px;
    border: 1px solid var(--site-border);
    border-radius: 18px;
    background: #ffffff;
    color: var(--site-text);
    text-decoration: none;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}

.public-quote-list-card:hover {
    transform: translateY(-2px);
    border-color: #c8b8a6;
}

.public-quote-list-card blockquote {
    margin: 0;
    font-size: 25px;
    line-height: 1.35;
}

.public-quote-list-author {
    margin-top: 22px;
    color: var(--site-muted);
    font-size: 14px;
    font-weight: 600;
}

.public-quote-list-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.public-quote-list-topics span {
    padding: 5px 8px;
    border-radius: 999px;
    background: var(--site-bg);
    color: var(--site-muted);
    font-size: 12px;
}

@media (max-width: 800px) {

    .public-quotes-grid {
        grid-template-columns: 1fr;
    }

}

/* ======================================================
   LISTADO PÚBLICO DE AUTORES
   ====================================================== */

.public-authors-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.public-author-list-card {
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: 18px;
    align-items: center;
    padding: 22px;
    border: 1px solid var(--site-border);
    border-radius: 18px;
    background: #ffffff;
    color: var(--site-text);
    text-decoration: none;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}

.public-author-list-card:hover {
    transform: translateY(-2px);
    border-color: #c8b8a6;
}

.public-author-list-photo {
    width: 74px;
    height: 74px;
    overflow: hidden;
    border-radius: 50%;
    background: var(--site-bg);
}

.public-author-list-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.public-author-list-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--site-muted);
    font-size: 28px;
    font-weight: 700;
}

.public-author-list-card h2 {
    margin: 0;
    font-size: 21px;
}

.public-author-list-card p {
    margin: 6px 0 0;
    color: var(--site-muted);
}

.public-author-list-card span {
    display: inline-block;
    margin-top: 5px;
    color: var(--site-muted);
    font-size: 13px;
}

@media (max-width: 800px) {

    .public-authors-grid {
        grid-template-columns: 1fr;
    }

}

/* ======================================================
   LISTADO PÚBLICO DE TEMAS
   ====================================================== */

.public-topics-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.public-topic-list-card {
    display: block;
    padding: 28px;
    border: 1px solid var(--site-border);
    border-radius: 18px;
    background: #ffffff;
    color: var(--site-text);
    text-decoration: none;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}

.public-topic-list-card:hover {
    transform: translateY(-2px);
    border-color: #c8b8a6;
}

.public-topic-list-card h2 {
    margin: 8px 0 12px;
    font-size: 28px;
}

.public-topic-list-card>p:not(.eyebrow) {
    margin: 0;
    color: var(--site-muted);
    line-height: 1.6;
}

.public-topic-list-card .public-card-link {
    display: inline-block;
    margin-top: 22px;
    color: var(--site-text);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.public-topic-list-card .eyebrow {
    color: var(--site-muted);
}

@media (max-width: 800px) {

    .public-topics-grid {
        grid-template-columns: 1fr;
    }

}

/* ======================================================
   LISTADO PÚBLICO DE LIBROS
   ====================================================== */

.public-books-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.public-book-list-card {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 22px;
    align-items: start;
    padding: 22px;
    border: 1px solid var(--site-border);
    border-radius: 18px;
    background: #ffffff;
    color: var(--site-text);
    text-decoration: none;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}

.public-book-list-card:hover {
    transform: translateY(-2px);
    border-color: #c8b8a6;
}

.public-book-list-cover {
    width: 110px;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 9px;
    background: var(--site-bg);
}

.public-book-list-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.public-book-list-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--site-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.public-book-list-info h2 {
    margin: 8px 0 8px;
    font-size: 24px;
    line-height: 1.2;
}

.public-book-list-author {
    margin: 0;
    color: var(--site-muted);
}

.public-book-list-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.public-book-list-topics span {
    padding: 5px 8px;
    border-radius: 999px;
    background: var(--site-bg);
    color: var(--site-muted);
    font-size: 12px;
}

@media (max-width: 800px) {

    .public-books-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 520px) {

    .public-book-list-card {
        grid-template-columns: 82px 1fr;
    }

    .public-book-list-cover {
        width: 76px;
    }

}

/* ==================================================
   HOME HERO
================================================== */

.home-hero {
    position: relative;
    width: 100%;
    min-height: 720px;
    height: min(90svh, 920px);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
}


/* --------------------------------------------------
   IMAGEN
-------------------------------------------------- */

.home-hero-media {
    position: absolute;
    inset: 0;
    z-index: -3;
}

.home-hero-image {
    width: 100%;
    height: 100%;
    display: block;

    object-fit: cover;
    object-position: 60% 45%;
}


/* --------------------------------------------------
   OVERLAY PARA LEGIBILIDAD
-------------------------------------------------- */

.home-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -2;

    background:
        linear-gradient(180deg,
            rgba(247, 243, 236, 0.10) 0%,
            rgba(247, 243, 236, 0.20) 45%,
            rgba(247, 243, 236, 0.08) 100%);
}


/* --------------------------------------------------
   CONTENIDO
-------------------------------------------------- */

.home-hero-content {
    width: min(1040px, calc(100% - 48px));

    margin: 0 auto;

    text-align: center;

    display: flex;
    flex-direction: column;
    align-items: center;

    transform: translateY(-12%);

    color: #203A5B;
}

.home-hero-logo {
    display: block;
    width: 135px;
    height: 135px;
    max-width: 135px;
    max-height: 135px;
    object-fit: contain;
    margin: 0 auto 20px;
    flex: 0 0 auto;
}

/* --------------------------------------------------
   MARCA OM
-------------------------------------------------- */

.home-hero-mark {
    margin-bottom: 16px;

    font-size: clamp(3rem, 6vw, 5.6rem);
    font-weight: 700;
    line-height: 1;

    letter-spacing: -0.08em;

    color: #203A5B;
}


/* --------------------------------------------------
   NOMBRE
-------------------------------------------------- */

.home-hero-title {
    margin: 0;

    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.22em;

    font-family:
        Montserrat,
        Arial,
        sans-serif;

    font-size: clamp(3rem, 6vw, 5.2rem);
    font-weight: 700;
    line-height: 1.05;

    letter-spacing: -0.035em;
}

.home-hero-title-first {
    color: #203A5B;
}

.home-hero-title-last {
    color: #C89A4B;
}


/* --------------------------------------------------
   ESLOGAN
-------------------------------------------------- */

.home-hero-tagline {
    margin:
        clamp(16px, 2.5vw, 26px) 0 0;

    font-family:
        Montserrat,
        Arial,
        sans-serif;

    font-size: clamp(1.25rem, 2.3vw, 2rem);
    font-weight: 400;
    line-height: 1.35;

    color: #203A5B;
}


/* --------------------------------------------------
   DIVISOR
-------------------------------------------------- */

.home-hero-divider {
    width: 70px;
    height: 3px;

    margin:
        18px auto;

    border-radius: 999px;

    background: #C89A4B;
}


/* --------------------------------------------------
   CATEGORÍAS
-------------------------------------------------- */

.home-hero-topics {
    margin: 0;

    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;

    gap: 8px 12px;

    font-family:
        Montserrat,
        Arial,
        sans-serif;

    font-size: clamp(0.72rem, 1.15vw, 0.95rem);
    font-weight: 600;

    line-height: 1.5;

    letter-spacing: 0.12em;

    color: #203A5B;

    opacity: 1;
}


/* ==================================================
   TABLET
================================================== */

@media (max-width: 900px) {

    .home-hero {
        min-height: 650px;
        height: 85svh;
    }

    .home-hero-content {
        width: min(760px,
                calc(100% - 40px));

        transform: translateY(-2%);
    }

}


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


@media (max-width: 767px) {

    .home-hero-logo {
        width: 105px;
        height: 105px;
        max-width: 105px;
        max-height: 105px;
        margin-bottom: 14px;
    }

    .site-brand {
        gap: 8px;
    }

    .site-brand-logo {
        width: 34px;
        height: 34px;

        flex-basis: 34px;
    }

    .site-brand-name {
        font-size: 1.05rem;
    }

    .home-hero-topics {
        display: flex !important;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;

        max-width: 340px;
        margin: 0 auto;

        gap: 4px 8px;

        font-size: 0.72rem;
        font-weight: 600;
        line-height: 1.5;
        letter-spacing: 0.08em;

        text-align: center;
        color: #203A5B;
    }

}


/* ==================================================
   TELÉFONOS PEQUEÑOS
================================================== */

@media (max-width: 390px) {

    .home-hero {
        min-height: 580px;
    }

    .home-hero-content {
        width: calc(100% - 28px);
    }

    .home-hero-title {
        font-size: 2.65rem;
    }

    .home-hero-tagline {
        font-size: clamp(1.2rem, 2vw, 1.8rem);
    }

}



/* --------------------------------------------------
   MARCA
-------------------------------------------------- */





/* --------------------------------------------------
   BOTÓN HAMBURGUESA
-------------------------------------------------- */

.site-menu-toggle {
    display: none;

    width: 44px;
    height: 44px;

    padding: 0;

    border: 0;
    background: transparent;

    cursor: pointer;

    align-items: center;
    justify-content: center;
}


.site-menu-toggle-icon {
    position: relative;

    display: flex;
    flex-direction: column;

    width: 26px;

    gap: 5px;
}


.site-menu-toggle-icon span {
    display: block;

    width: 100%;
    height: 2px;

    border-radius: 999px;

    background: #203A5B;

    transition:
        transform 0.25s ease,
        opacity 0.2s ease;
}




/* ☰ se convierte en X */

.site-header.menu-open .site-menu-toggle-icon span:nth-child(1) {
    transform:
        translateY(7px) rotate(45deg);
}


.site-header.menu-open .site-menu-toggle-icon span:nth-child(2) {
    opacity: 0;
}


.site-header.menu-open .site-menu-toggle-icon span:nth-child(3) {
    transform:
        translateY(-7px) rotate(-45deg);
}





/* ==================================================
   HEADER RESPONSIVE — CONTROL FINAL
================================================== */


/* ==================================================
   DESKTOP — 821px EN ADELANTE
================================================== */

@media (min-width: 821px) {

    .site-header .site-menu-toggle {
        display: none !important;
    }

    .site-header .site-header-menu {
        display: contents !important;
    }

    .site-header .site-nav {
        display: flex !important;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: center;

        gap: 30px;

        margin: 0;

        justify-self: center;
    }

    .site-header .user-session {
        display: flex !important;
        flex-direction: row;
        align-items: center;

        width: auto;

        gap: 20px;

        margin: 0;

        white-space: nowrap;

        justify-self: end;
    }

}


/* ==================================================
   MÓVIL + TABLET — HASTA 820px
================================================== */

@media (max-width: 820px) {

    .site-header-inner {
        width: 100%;
        min-height: 70px;

        padding: 0 18px;

        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;

        gap: 0;
    }


    .site-header .site-brand {
        flex: 0 1 auto;
    }


    .site-header .site-menu-toggle {
        display: flex !important;

        flex: 0 0 44px;

        width: 44px;
        height: 44px;
    }


    .site-header .site-header-menu {
        flex: 0 0 100%;

        width: 100%;

        display: none !important;

        text-align: center;
    }


    .site-header.menu-open .site-header-menu {
        display: block !important;
    }


    .site-header .site-nav {
        display: flex;
        flex-direction: column;
        align-items: center;

        width: 100%;

        gap: 0;

        margin: 0;
        padding: 16px 0 8px;

        text-align: center;

        justify-self: stretch;
    }


    .site-header .site-nav a {
        width: 100%;

        padding: 11px 0;

        text-align: center;
    }


    .site-header .user-session {
        display: flex !important;
        flex-direction: column;
        align-items: center !important;
        justify-content: center;

        width: 100%;

        gap: 10px;

        margin: 0 !important;
        margin-left: 0 !important;

        padding: 14px 0 20px;

        text-align: center;

        white-space: normal;

        justify-self: stretch !important;
    }

}
/* ======================================================
   PAGINA 404
   ====================================================== */

.not-found-page {
    padding-top: 80px;
    padding-bottom: 100px;
    text-align: center;
}

.not-found-code {
    margin: 0;
    font-size: 5rem;
    font-weight: 700;
}
