/*
Theme Name: Mircelab
Theme URI: https://mircelab.com
Description: Tema personalizado para la aplicación de resultados de laboratorio Mircelab. Sin dependencia de Elementor, FacetWP, CPTUI ni Ultimate Member. Solo requiere Advanced Custom Fields (ACF).
Author: Mircelab
Author URI: https://mircelab.com
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.7
Requires PHP: 8.2
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: mircelab
Tags: custom-post-types, laboratory, results
*/

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', 'Roboto Condensed', Arial, sans-serif;
    font-weight: 400;
    color: #333333;
    background-color: #f5f5f5;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: #3AABBB;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #2b8f9d;
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

ul, ol {
    list-style: none;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-main {
    flex: 1;
    padding: 30px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container--narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

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

/* Franja inferior bicolor (teal → lime, identidad del logo) */
.site-header::after {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(90deg, #2b8f9d 0%, #2b8f9d 55%, #8DC63F 55%, #8DC63F 100%);
}

.site-header::before {
    display: none;
}

.site-header {
    background-color: #3AABBB;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 24px;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.site-logo img {
    max-height: 70px;
    max-width: 220px;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}

.site-logo__text {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.site-logo__text span {
    color: #d4f0a0;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.site-nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: #ffffff;
    padding: 8px 14px;
    border-radius: 6px;
    transition: background-color 0.2s, color 0.2s;
    white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.active {
    background-color: rgba(0, 0, 0, 0.18);
    color: #ffffff;
    text-decoration: none;
}

.site-nav .nav-logout a {
    color: #ffd0ce;
}

.site-nav .nav-logout a:hover {
    background-color: rgba(229, 57, 53, 0.75);
    color: #ffffff;
}

/* Hamburger menu */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #ffffff;
    transition: all 0.3s;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background-color: #2b2b2b;
    color: #cccccc;
    padding: 30px 20px;
    margin-top: auto;
}

.site-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.site-footer p {
    font-size: 0.85rem;
    color: #aaaaaa;
}

.site-footer a {
    color: #8DC63F;
}

.site-footer a:hover {
    color: #ffffff;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 2px solid transparent;
    text-decoration: none;
    text-align: center;
    line-height: 1.4;
}

.btn--primary {
    background-color: #3AABBB;
    color: #ffffff;
    border-color: #3AABBB;
}

.btn--primary:hover {
    background-color: #2b8f9d;
    border-color: #2b8f9d;
    color: #ffffff;
    text-decoration: none;
}

.btn--secondary {
    background-color: #8DC63F;
    color: #ffffff;
    border-color: #8DC63F;
}

.btn--secondary:hover {
    background-color: #6fa832;
    border-color: #6fa832;
    color: #ffffff;
    text-decoration: none;
}

.btn--outline {
    background-color: transparent;
    color: #3AABBB;
    border-color: #3AABBB;
}

.btn--outline:hover {
    background-color: #3AABBB;
    color: #ffffff;
    text-decoration: none;
}

.btn--danger {
    background-color: #e53935;
    color: #ffffff;
    border-color: #e53935;
}

.btn--sm {
    padding: 6px 16px;
    font-size: 0.82rem;
}

.btn--full {
    width: 100%;
    display: block;
}

/* ============================================================
   CARDS & RESULT ITEMS
   ============================================================ */
.card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.card:hover {
    box-shadow: 0 4px 18px rgba(0,0,0,0.12);
}

.card__header {
    padding: 16px 20px;
    background-color: #f9f9f9;
    border-bottom: 1px solid #eeeeee;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card__header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.card__body {
    padding: 16px 20px;
}

.card__footer {
    padding: 12px 20px;
    border-top: 1px solid #eeeeee;
    background-color: #fafafa;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

/* ============================================================
   RESULTADOS LIST (archive)
   ============================================================ */
#resultados-archive {
    padding: 10px 0;
}

.resultados-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eeeeee;
}

.resultados-header h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #3AABBB;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.resultados-header .especialista-badge {
    font-size: 0.9rem;
    color: #777;
    background: #f0f9fb;
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid #b8dce2;
}

.resultados-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.resultado-item {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.resultado-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.11);
}

.resultado-item__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background-color: #f2fafc;
    border-bottom: 1px solid #c8e8ee;
    cursor: pointer;
}

.resultado-item__header .folder-icon {
    color: #3AABBB;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.resultado-item__header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    flex: 1;
}

.resultado-item__body {
    padding: 16px 18px;
}

.descargas {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.descarga {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    background-color: #f9f9f9;
    border-radius: 6px;
    border: 1px solid #eeeeee;
    transition: background-color 0.2s;
}

.descarga:hover {
    background-color: #f0f9fc;
    border-color: #b8dce2;
}

.descarga .pdf-icon {
    color: #e53935;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.descarga a.descargar {
    font-size: 0.88rem;
    font-weight: 500;
    color: #333;
    flex: 1;
    word-break: break-word;
}

.descarga a.descargar:hover {
    color: #3AABBB;
    text-decoration: none;
}

.resultado-item__footer {
    padding: 12px 18px;
    border-top: 1px solid #eeeeee;
    display: flex;
    justify-content: flex-end;
}

/* ============================================================
   LOAD MORE BUTTON
   ============================================================ */
.loadmore-wrap {
    text-align: center;
    margin: 30px 0 20px;
}

.loadMore {
    display: inline-block;
    padding: 10px 32px;
    border-radius: 50px;
    border: 2px solid #3AABBB;
    color: #3AABBB;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    background: #ffffff;
    user-select: none;
}

.loadMore:hover {
    background-color: #3AABBB;
    color: #ffffff;
}

.loadMore.loading {
    opacity: 0.6;
    cursor: wait;
}

/* ============================================================
   SEARCH BAR
   ============================================================ */
.search-bar-wrap {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.search-clear-btn {
    white-space: nowrap;
    flex-shrink: 0;
}

.search-bar {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    flex: 1;
}

.search-bar input[type="text"],
.search-bar input[type="search"] {
    flex: 1;
    min-width: 200px;
    padding: 9px 16px;
    border: 1.5px solid #cccccc;
    border-radius: 50px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
    background: #ffffff;
}

.search-bar input[type="text"]:focus,
.search-bar input[type="search"]:focus {
    border-color: #3AABBB;
    box-shadow: 0 0 0 3px rgba(58, 171, 187, 0.15);
}

.search-bar button,
.search-bar input[type="submit"] {
    padding: 9px 22px;
    background-color: #3AABBB;
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.search-bar button:hover,
.search-bar input[type="submit"]:hover {
    background-color: #2b8f9d;
}

/* ============================================================
   FILTER BAR (replaces FacetWP)
   ============================================================ */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}

.filter-bar label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    white-space: nowrap;
}

.filter-bar select,
.filter-bar input[type="text"],
.filter-bar input[type="date"] {
    padding: 8px 12px;
    border: 1.5px solid #cccccc;
    border-radius: 6px;
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.2s;
    background: #fafafa;
    min-width: 150px;
}

.filter-bar select:focus,
.filter-bar input:focus {
    border-color: #3AABBB;
    background: #ffffff;
}

/* ============================================================
   TAXONOMY TABLE (especialidades)
   ============================================================ */
.especialidades-table-wrap {
    overflow-x: auto;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}

#especialidades {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    font-size: 0.9rem;
}

#especialidades thead tr {
    background-color: #3AABBB;
    color: #ffffff;
}

#especialidades th {
    padding: 13px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

#especialidades td {
    padding: 11px 16px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
    color: #444;
}

#especialidades tbody tr:last-child td {
    border-bottom: none;
}

#especialidades tbody tr:hover {
    background-color: #f2fafc;
}

#especialidades a {
    color: #3AABBB;
    font-weight: 500;
}

#especialidades a:hover {
    text-decoration: underline;
}

/* Pagination */
.pagination-nav {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-top: 20px;
    flex-wrap: wrap;
}

.pagination-nav a {
    font-size: 0.88rem;
    font-weight: 600;
    color: #3AABBB;
    padding: 7px 18px;
    border: 1.5px solid #3AABBB;
    border-radius: 50px;
    transition: all 0.2s;
}

.pagination-nav a:hover {
    background: #3AABBB;
    color: #ffffff;
    text-decoration: none;
}

/* ============================================================
   SINGLE RESULTADO (detail + comments)
   ============================================================ */
.single-resultado {
    background: #ffffff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    margin-bottom: 30px;
}

.single-resultado h2 {
    font-size: 1.4rem;
    color: #3AABBB;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ============================================================
   COMMENTS
   ============================================================ */
.comments-section {
    background: #ffffff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}

.comments-section h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eeeeee;
}

.comment-list li {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.comment-list li:last-child {
    border-bottom: none;
}

.comment-author {
    font-weight: 600;
    color: #3AABBB;
    font-size: 0.9rem;
}

.comment-meta {
    font-size: 0.78rem;
    color: #999;
    margin-bottom: 6px;
}

.comment-content p {
    font-size: 0.92rem;
    color: #444;
}

.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"] {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #cccccc;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-bottom: 12px;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
}

.comment-form textarea:focus,
.comment-form input:focus {
    border-color: #3AABBB;
    box-shadow: 0 0 0 3px rgba(58, 171, 187, 0.12);
}

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

/* ============================================================
   AUTH PAGES (login / register)
   ============================================================ */
.auth-page {
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px 38px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.09);
    width: 100%;
    max-width: 420px;
}

.auth-box__logo {
    text-align: center;
    margin-bottom: 28px;
}

.auth-box__logo img {
    max-height: 60px;
}

.auth-box__logo h2 {
    font-size: 1.3rem;
    color: #3AABBB;
    margin-top: 10px;
}

.auth-box h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 22px;
    text-align: center;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #cccccc;
    border-radius: 6px;
    font-size: 0.92rem;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
    background: #fafafa;
}

.form-group input:focus {
    border-color: #3AABBB;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(58, 171, 187, 0.12);
}

.auth-box .btn {
    margin-top: 8px;
}

.auth-links {
    text-align: center;
    margin-top: 18px;
    font-size: 0.85rem;
    color: #888;
}

.auth-links a {
    color: #3AABBB;
    font-weight: 600;
}

/* ============================================================
   MESSAGES & NOTICES
   ============================================================ */
.notice {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notice--error {
    background-color: #fdecea;
    color: #c62828;
    border-left: 4px solid #e53935;
}

.notice--success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #43a047;
}

.notice--info {
    background-color: #e3f2fd;
    color: #1565c0;
    border-left: 4px solid #1e88e5;
}

/* ============================================================
   PAGE TITLE AREA
   ============================================================ */
.page-title-area {
    background: linear-gradient(135deg, #3AABBB 0%, #8DC63F 100%);
    color: #ffffff;
    padding: 30px 20px;
    margin-bottom: 30px;
}

.page-title-area h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.page-title-area p {
    margin: 6px 0 0;
    opacity: 0.85;
    font-size: 0.95rem;
}

/* ============================================================
   NO RESULTS
   ============================================================ */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #888;
}

.no-results i {
    font-size: 3rem;
    display: block;
    margin-bottom: 16px;
    color: #cccccc;
}

.no-results h2 {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 10px;
}


/* ============================================================
   PROFILE / ACCOUNT PAGE
   ============================================================ */
.account-page {
    padding: 30px 0;
}

.account-page .account-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    align-items: start;
}

.account-sidebar {
    background: #ffffff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}

.account-sidebar .user-avatar {
    text-align: center;
    margin-bottom: 18px;
}

.account-sidebar .user-avatar img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 3px solid #3AABBB;
}

.account-sidebar .user-name {
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}

.account-sidebar .user-role {
    text-align: center;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 18px;
}

.account-sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 500;
    color: #555;
    transition: all 0.2s;
    margin-bottom: 3px;
}

.account-sidebar-nav a:hover,
.account-sidebar-nav a.active {
    background-color: #3AABBB;
    color: #ffffff;
    text-decoration: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .site-header__inner {
        flex-wrap: wrap;
        padding: 12px 16px;
    }

    .nav-toggle {
        display: flex;
    }

    .site-nav {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        padding: 10px 0;
        gap: 2px;
    }

    .site-nav.open {
        display: flex;
    }

    .site-nav a {
        width: 100%;
        padding: 10px 16px;
    }

    .account-page .account-grid {
        grid-template-columns: 1fr;
    }

    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-bar select,
    .filter-bar input {
        min-width: 0;
        width: 100%;
    }

    .page-title-area h1 {
        font-size: 1.4rem;
    }

    .auth-box {
        padding: 28px 22px;
    }

    #especialidades th,
    #especialidades td {
        padding: 9px 10px;
        font-size: 0.82rem;
    }
}

@media (max-width: 480px) {
    .resultados-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .single-resultado,
    .comments-section {
        padding: 18px;
    }
}

/* ============================================================
   WORDPRESS NATIVE COMMENT FORM OVERRIDES
   ============================================================ */
.comment-form .form-submit {
    margin-top: 8px;
}

.comment-form p {
    margin-bottom: 14px;
}

.comment-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #cccccc;
    border-radius: 6px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
    background: #fafafa;
    box-sizing: border-box;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: #3AABBB;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(58, 171, 187, 0.12);
}

.comment-form textarea {
    resize: vertical;
    min-height: 110px;
}

.comment-form .submit {
    background-color: #3AABBB;
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    font-family: inherit;
}

.comment-form .submit:hover {
    background-color: #2b8f9d;
}

.comment-reply-title small a {
    font-size: 0.82rem;
    color: #888;
    margin-left: 10px;
    font-weight: 400;
}

/* Comment item styling */
.comment-item {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    list-style: none;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-item .comment-body {
    padding: 0;
}

.comment-item .comment-author .fn {
    font-weight: 600;
    color: #3AABBB;
    font-size: 0.9rem;
    font-style: normal;
}

.comment-item time {
    font-size: 0.78rem;
    color: #999;
}

.comment-item .comment-content p {
    font-size: 0.92rem;
    color: #444;
    margin: 8px 0 0;
}

.comment-item .reply a {
    font-size: 0.8rem;
    color: #3AABBB;
    font-weight: 500;
}

/* Nested comments */
.children {
    padding-left: 30px;
    list-style: none;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
    font-size: 0.82rem;
    color: #888;
    margin-bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.breadcrumb a {
    color: #3AABBB;
    font-weight: 500;
}

.breadcrumb-sep {
    color: #cccccc;
}

/* ============================================================
   REGISTRATION FORM
   ============================================================ */

/* Caja más ancha para el formulario de registro */
.auth-box--wide {
    max-width: 580px;
}

/* Grid de dos columnas para campos del formulario */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
}

.form-row--actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

/* Grupo de radios */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 4px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 400;
    color: #444;
    cursor: pointer;
}

.radio-label input[type="radio"] {
    width: auto;
    margin: 0;
    accent-color: #3AABBB;
    cursor: pointer;
}

/* Texto de ayuda bajo el campo */
.field-hint {
    display: block;
    font-size: 0.76rem;
    color: #aaa;
    margin-top: 3px;
}

/* Error inline por campo */
.field-error {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.79rem;
    color: #e53935;
    font-weight: 500;
    margin-top: 4px;
    line-height: 1.4;
}

.field-error i {
    flex-shrink: 0;
    font-size: 0.82rem;
}

/* Estado de error en el grupo */
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
    border-color: #e53935 !important;
    box-shadow: 0 0 0 3px rgba(229,57,53,0.10);
}

.form-group.has-error label {
    color: #e53935;
}

/* Indicador de campo requerido */
.required {
    color: #e53935;
    margin-left: 2px;
}

/* Auth links en fila (forgot + registrarse) */
.auth-links--row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

/* Responsive: formulario de registro en una columna */
@media (max-width: 540px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .auth-box--wide {
        max-width: 100%;
    }
}

/* ============================================================
   PASSWORD STRENGTH BAR
   ============================================================ */
.pw-strength-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pw-strength-bar {
    flex: 1;
    height: 6px;
    background: #e8e8e8;
    border-radius: 50px;
    overflow: hidden;
}

.pw-strength-fill {
    height: 100%;
    width: 0;
    border-radius: 50px;
    transition: width 0.3s ease, background 0.3s ease;
}

.pw-strength-label {
    font-size: 0.78rem;
    font-weight: 600;
    width: 80px;
    text-align: right;
    white-space: nowrap;
}

/* ============================================================
   FORGOT / RESET PASSWORD PAGES
   ============================================================ */

/* Ícono de check grande centrado para el estado de "enviado" */
.auth-box .notice--success {
    text-align: center;
    padding: 20px;
    border-radius: 10px;
}

.auth-box .notice--success i {
    font-size: 2.2rem;
    display: block;
    margin-bottom: 10px;
    color: #8DC63F;
}

.auth-box .notice--error i {
    margin-right: 6px;
}

/* Back-to-login link centered */
.auth-box .auth-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.87rem;
    color: #3AABBB;
    font-weight: 500;
    transition: color 0.2s;
}

.auth-box .auth-links a:hover {
    color: #2b8f9d;
    text-decoration: none;
}

/* Username badge on reset page */
.reset-user-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f0f9fb;
    border: 1px solid #c8e8ee;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 20px;
    font-size: 0.88rem;
    color: #444;
}

.reset-user-badge i {
    color: #3AABBB;
    font-size: 1.1rem;
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
    .site-header,
    .site-footer,
    .loadmore-wrap,
    .filter-bar,
    .search-bar,
    .btn {
        display: none !important;
    }
}
