/* ========================================
   NUNCA
   Identidad visual
======================================== */

:root {
    --primary: #2563EB;
    --primary-dark: #1D4ED8;

    --background: #F6F7F9;
    --surface: #FFFFFF;

    --text: #17202A;
    --muted: #667085;

    --border: #E5E7EB;

    --success: #16A34A;
    --danger: #DC2626;

    --radius: 16px;
}


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

* {
    box-sizing: border-box;
}

body {
    margin: 0;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background: var(--background);

    color: var(--text);

    line-height: 1.5;
}

a {
    color: inherit;
}


/* ========================================
   CONTENEDOR
======================================== */

.container {
    width: 100%;
    max-width: 900px;

    margin: 0 auto;

    padding: 24px;
}


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

.header {
    display: flex;

    justify-content: space-between;
    align-items: center;

    margin-bottom: 40px;
}

.logo {
    font-size: 26px;
    font-weight: 800;

    letter-spacing: -1px;
}

.logo a {
    text-decoration: none;
}

.logout {
    color: var(--muted);

    font-size: 14px;

    text-decoration: none;
}

.logout:hover {
    color: var(--text);
}


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

.hero {
    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 24px;

    padding: 32px;

    margin-bottom: 36px;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.04);
}

.hero h1 {
    margin: 0 0 6px;

    font-size: 30px;

    letter-spacing: -0.8px;
}

.hero-intro {
    margin: 0 0 24px;

    color: var(--muted);

    font-size: 17px;
}


/* ========================================
   TEXTAREA
======================================== */

textarea {
    width: 100%;

    min-height: 120px;

    padding: 16px 18px;

    border: 1px solid var(--border);

    border-radius: 14px;

    background: #FAFBFC;

    color: var(--text);

    font-family: inherit;

    font-size: 16px;

    line-height: 1.5;

    resize: vertical;

    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}

textarea::placeholder {
    color: #98A2B3;
}

textarea:focus {
    outline: none;

    border-color: var(--primary);

    background: #FFFFFF;

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.10);
}


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

.button {
    display: inline-flex;

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

    margin-top: 14px;

    padding: 12px 20px;

    border: none;

    border-radius: 10px;

    background: var(--primary);

    color: white;

    font-family: inherit;

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s,
        transform 0.1s;
}

.button:hover {
    background: var(--primary-dark);
}

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

.button:disabled {
    opacity: 0.6;

    cursor: not-allowed;
}

.secondary-button {
    display: inline-flex;

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

    margin-top: 14px;
    margin-left: 8px;

    padding: 11px 20px;

    border: 1px solid var(--border);

    border-radius: 10px;

    background: white;

    color: var(--text);

    font-family: inherit;

    font-size: 15px;

    cursor: pointer;
}

.secondary-button:hover {
    background: #F9FAFB;
}


/* ========================================
   IA / CARGANDO
======================================== */

.loading {
    display: none;

    margin-top: 18px;

    color: var(--muted);

    font-size: 14px;
}

.error {
    display: none;

    margin-top: 18px;

    padding: 13px 15px;

    border: 1px solid #FECACA;

    border-radius: 10px;

    background: #FEF2F2;

    color: var(--danger);

    font-size: 14px;
}


/* ========================================
   RESULTADO IA
======================================== */

.result {
    display: none;

    margin-top: 24px;

    padding: 22px;

    border: 1px solid #DBEAFE;

    border-radius: 16px;

    background: #F8FBFF;
}

.result h3 {
    margin-top: 0;

    margin-bottom: 18px;

    font-size: 17px;
}

.result-row {
    margin: 10px 0;

    color: var(--muted);
}

.result-row strong {
    color: var(--text);
}


/* ========================================
   LISTA
======================================== */

.section-header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 16px;
}

.section-title {
    margin: 0;

    font-size: 21px;

    letter-spacing: -0.3px;
}


/* ========================================
   RECORDATORIO
======================================== */

.reminder {
    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: var(--radius);

    padding: 20px;

    margin-bottom: 12px;

    transition:
        box-shadow 0.2s,
        transform 0.2s;
}

.reminder:hover {
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.05);

    transform: translateY(-1px);
}

.reminder.completed {
    opacity: 0.60;
}

.reminder h3 {
    margin: 0 0 8px;

    font-size: 17px;

    letter-spacing: -0.2px;
}

.reminder-date {
    margin-bottom: 10px;

    color: var(--text);

    font-size: 14px;

    font-weight: 500;
}

.reminder-description {
    margin: 10px 0;

    color: var(--muted);

    font-size: 14px;
}

.reminder-recurrence {
    margin-bottom: 14px;

    color: var(--muted);

    font-size: 13px;
}


/* ========================================
   ESTADO
======================================== */

.status {
    display: inline-flex;

    align-items: center;

    padding: 4px 9px;

    margin-bottom: 10px;

    border-radius: 20px;

    background: #EFF6FF;

    color: var(--primary);

    font-size: 12px;

    font-weight: 600;
}

.completed .status {
    background: #F0FDF4;

    color: var(--success);
}


/* ========================================
   ACCIONES
======================================== */

.actions {
    display: flex;

    gap: 14px;

    padding-top: 12px;

    border-top: 1px solid #F0F1F3;
}

.actions a {
    color: var(--muted);

    font-size: 13px;

    text-decoration: none;
}

.actions a:hover {
    color: var(--text);
}


/* ========================================
   ESTADO VACÍO
======================================== */

.empty {
    padding: 45px 25px;

    border: 1px dashed var(--border);

    border-radius: var(--radius);

    background: white;

    text-align: center;
}

.empty h3 {
    margin-top: 0;

    font-size: 18px;
}

.empty p {
    margin-bottom: 0;

    color: var(--muted);
}


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

@media (max-width: 600px) {

    .container {
        padding: 16px;
    }

    .header {
        margin-bottom: 28px;
    }

    .hero {
        padding: 22px;

        border-radius: 18px;
    }

    .hero h1 {
        font-size: 25px;
    }

    .hero-intro {
        font-size: 16px;
    }

    .actions {
        flex-wrap: wrap;
    }

    .secondary-button {
        margin-left: 5px;
    }

}

/* ========================================
   SECCIONES DE RECORDATORIOS
======================================== */

.reminder-section {
    margin-bottom: 30px;
}

.reminder-section-title {
    display: flex;
    align-items: center;
    gap: 8px;

    margin: 0 0 12px;

    font-size: 16px;
    font-weight: 700;
}

.reminder-section-title .count {
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
}


/* VENCIDOS */

.section-overdue .reminder-section-title {
    color: var(--danger);
}


/* HOY */

.section-today .reminder-section-title {
    color: #D97706;
}


/* MAÑANA */

.section-tomorrow .reminder-section-title {
    color: var(--primary);
}


/* PRÓXIMOS */

.section-upcoming .reminder-section-title {
    color: var(--text);
}


/* COMPLETADOS */

.section-completed {
    margin-top: 40px;
}

.section-completed .reminder-section-title {
    color: var(--muted);
}

.section-completed .reminder {
    opacity: 0.58;
}


/* AVISO DE VENCIDO */

.reminder-overdue {
    border-left: 4px solid var(--danger);
}


/* AVISO DE HOY */

.reminder-today {
    border-left: 4px solid #F59E0B;
}


/* AVISO DE MAÑANA */

.reminder-tomorrow {
    border-left: 4px solid var(--primary);
}

/* ========================================
   EDITAR RECORDATORIO
======================================== */

.edit-reminder-form {
    margin-top: 25px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    font-family: inherit;
    font-size: 15px;
}

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

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.edit-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
}

.edit-actions .button,
.edit-actions .secondary-button {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

@media (max-width: 600px) {

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .edit-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .edit-actions .button,
    .edit-actions .secondary-button {
        width: 100%;
    }
}

/* ========================================
   NUEVO DISEÑO DE TARJETAS
======================================== */

.reminder {
    position: relative;

    padding: 22px 24px;

    border-radius: 18px;

    transition:
        box-shadow 0.2s ease,
        transform 0.2s ease,
        border-color 0.2s ease;
}

.reminder:hover {
    transform: translateY(-2px);

    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.06);
}


/* ========================================
   CABECERA
======================================== */

.reminder-header {
    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    margin-bottom: 16px;
}

.reminder-main {
    min-width: 0;
}

.reminder h3 {
    margin: 0 0 8px;

    font-size: 18px;

    line-height: 1.35;

    letter-spacing: -0.25px;
}


/* ========================================
   FECHA Y HORA
======================================== */

.reminder-datetime {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 10px;

    margin-bottom: 14px;
}

.reminder-date-box {
    display: flex;

    align-items: center;

    gap: 10px;

    padding: 11px 13px;

    border-radius: 12px;

    background: #F8FAFC;

    border: 1px solid #EEF0F3;
}

.reminder-icon {
    display: flex;

    align-items: center;

    justify-content: center;

    width: 30px;

    height: 30px;

    flex-shrink: 0;

    border-radius: 8px;

    background: #FFFFFF;

    font-size: 15px;
}

.reminder-date-box > div {
    display: flex;

    flex-direction: column;

    min-width: 0;
}

.reminder-meta-label {
    margin-bottom: 2px;

    color: var(--muted);

    font-size: 11px;

    font-weight: 500;

    text-transform: uppercase;

    letter-spacing: 0.3px;
}

.reminder-date-box strong {
    color: var(--text);

    font-size: 14px;

    font-weight: 600;
}


/* ========================================
   DETALLES
======================================== */

.reminder-details {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 14px;
}

.reminder-detail {
    display: inline-flex;

    align-items: center;

    gap: 5px;

    padding: 6px 9px;

    border-radius: 8px;

    background: #F8FAFC;

    color: var(--muted);

    font-size: 12px;

    border: 1px solid #F0F1F3;
}


/* ========================================
   DESCRIPCIÓN
======================================== */

.reminder-description {
    margin: 4px 0 16px;

    padding: 10px 12px;

    border-left: 3px solid #E5E7EB;

    color: var(--muted);

    font-size: 13px;

    line-height: 1.5;

    background: #FAFAFA;

    border-radius: 0 8px 8px 0;
}


/* ========================================
   ACCIONES
======================================== */

.reminder .actions {
    display: flex;

    align-items: center;

    gap: 16px;

    padding-top: 13px;

    border-top: 1px solid #F0F1F3;
}

.reminder .actions a {
    font-size: 12px;

    color: #667085;

    text-decoration: none;

    transition:
        color 0.2s ease;
}

.reminder .actions a:hover {
    color: var(--text);
}

.reminder .actions .action-complete {
    color: var(--success);

    font-weight: 600;
}

.reminder .actions .action-complete:hover {
    color: #15803D;
}

.reminder .actions .action-delete:hover {
    color: var(--danger);
}


/* ========================================
   HOY
======================================== */

.reminder-today {
    border-left: 4px solid #F59E0B;
}

.reminder-today .reminder-date-box:first-child {
    background: #FFFBEB;

    border-color: #FEF3C7;
}


/* ========================================
   MAÑANA
======================================== */

.reminder-tomorrow {
    border-left: 4px solid var(--primary);
}


/* ========================================
   VENCIDOS
======================================== */

.reminder-overdue {
    border-left: 4px solid var(--danger);
}

.reminder-overdue .reminder-date-box:first-child {
    background: #FEF2F2;

    border-color: #FEE2E2;
}


/* ========================================
   COMPLETADOS
======================================== */

.reminder.completed {
    opacity: 0.65;
}

.reminder.completed:hover {
    opacity: 0.8;
}

.reminder.completed .reminder-date-box {
    background: #F9FAFB;
}


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

@media (max-width: 600px) {

    .reminder {
        padding: 18px;
    }

    .reminder h3 {
        font-size: 17px;
    }

    .reminder-datetime {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .reminder-date-box {
        padding: 10px 12px;
    }

    .reminder .actions {
        gap: 14px;

        flex-wrap: wrap;
    }

}

/* ========================================
   CREAR RECORDATORIO
======================================== */

.hero {
    padding: 34px;
}


/* ========================================
   ENCABEZADO
======================================== */

.hero-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    margin-bottom: 4px;
}

.hero-eyebrow {
    display: block;

    margin-bottom: 7px;

    color: var(--primary);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1.5px;
}

.hero h1 {
    margin: 0;

    font-size: 30px;

    line-height: 1.2;

    letter-spacing: -0.8px;
}


/* ========================================
   TEXTO INTRODUCTORIO
======================================== */

.hero-intro {
    margin: 20px 0 5px;

    color: var(--text);

    font-size: 20px;

    font-weight: 600;

    letter-spacing: -0.2px;
}

.hero-helper {
    margin: 0 0 20px;

    color: var(--muted);

    font-size: 14px;

    line-height: 1.5;
}


/* ========================================
   ÁREA DE TEXTO
======================================== */

.input-wrapper {
    position: relative;
}

.input-wrapper textarea {
    min-height: 128px;

    padding: 18px;

    padding-bottom: 38px;

    border-radius: 15px;

    background: #FAFBFC;

    font-size: 16px;

    line-height: 1.55;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.input-wrapper textarea:focus {
    background: #FFFFFF;

    border-color: var(--primary);

    box-shadow:
        0 0 0 4px rgba(37, 99, 235, 0.08);
}

.input-hint {
    position: absolute;

    left: 18px;

    bottom: 12px;

    color: #98A2B3;

    font-size: 11px;

    pointer-events: none;
}


/* ========================================
   BOTÓN PRINCIPAL
======================================== */

#interpretButton {
    min-width: 190px;

    margin-top: 14px;

    padding: 13px 22px;

    border-radius: 11px;

    box-shadow:
        0 4px 10px rgba(37, 99, 235, 0.14);
}

#interpretButton:hover {
    box-shadow:
        0 6px 15px rgba(37, 99, 235, 0.20);

    transform: translateY(-1px);
}


/* ========================================
   RESULTADO IA
======================================== */

.result {
    margin-top: 22px;

    padding: 22px;

    border-radius: 15px;
}


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

@media (max-width: 600px) {

    .hero {
        padding: 23px;
    }

    .hero h1 {
        font-size: 25px;
    }

    .hero-intro {
        margin-top: 17px;

        font-size: 18px;
    }

    .hero-helper {
        font-size: 13px;
    }

    .input-wrapper textarea {
        min-height: 125px;
    }

    #interpretButton {
        width: 100%;
    }

}

/* ========================================
   ESTADO DE PROCESAMIENTO IA
======================================== */

.loading {
    display: none;

    margin-top: 18px;

    padding: 16px 18px;

    border: 1px solid #E5E7EB;

    border-radius: 14px;

    background: #FAFBFC;

    color: var(--muted);

    font-size: 14px;
}

.loading-content {
    display: flex;

    align-items: center;

    gap: 13px;
}


/* ========================================
   PUNTOS ANIMADOS
======================================== */

.loading-spinner {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 4px;

    width: 34px;

    height: 34px;

    flex-shrink: 0;

    border-radius: 10px;

    background: #EFF6FF;
}

.loading-spinner span {
    width: 5px;

    height: 5px;

    border-radius: 50%;

    background: var(--primary);

    animation: loadingDots 1.2s infinite ease-in-out;
}

.loading-spinner span:nth-child(1) {
    animation-delay: 0s;
}

.loading-spinner span:nth-child(2) {
    animation-delay: 0.15s;
}

.loading-spinner span:nth-child(3) {
    animation-delay: 0.30s;
}

@keyframes loadingDots {

    0%,
    60%,
    100% {
        opacity: 0.35;

        transform: translateY(0);
    }

    30% {
        opacity: 1;

        transform: translateY(-3px);
    }

}


/* ========================================
   TEXTO
======================================== */

.loading-text {
    display: flex;

    flex-direction: column;

    gap: 2px;
}

.loading-text strong {
    color: var(--text);

    font-size: 14px;

    font-weight: 600;
}

.loading-text span {
    color: var(--muted);

    font-size: 12px;
}


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

@media (max-width: 600px) {

    .loading {
        padding: 14px;
    }

}

/* ========================================
   AUTENTICACIÓN
======================================== */

.auth-page {
    min-height: 100vh;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 30px 20px;

    background:
        radial-gradient(
            circle at top,
            #FFFFFF 0%,
            #F6F7F9 55%,
            #EEF1F5 100%
        );
}


.auth-container {
    width: 100%;

    max-width: 430px;

    display: flex;

    flex-direction: column;

    align-items: center;
}


/* ========================================
   MARCA
======================================== */

.auth-brand {
    text-align: center;

    margin-bottom: 24px;
}

.auth-logo {
    display: inline-block;

    color: var(--text);

    font-size: 32px;

    font-weight: 800;

    letter-spacing: -1.5px;

    text-decoration: none;
}

.auth-tagline {
    margin: 5px 0 0;

    color: var(--muted);

    font-size: 13px;
}


/* ========================================
   TARJETA
======================================== */

.auth-card {
    width: 100%;

    padding: 34px;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 22px;

    box-shadow:
        0 15px 45px rgba(0, 0, 0, 0.06);
}


/* ========================================
   ENCABEZADO
======================================== */

.auth-header {
    margin-bottom: 26px;

    text-align: center;
}

.auth-header h1 {
    margin: 0 0 8px;

    color: var(--text);

    font-size: 25px;

    line-height: 1.25;

    letter-spacing: -0.5px;
}

.auth-header p {
    margin: 0;

    color: var(--muted);

    font-size: 14px;

    line-height: 1.5;
}


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

.auth-form {
    display: flex;

    flex-direction: column;

    gap: 20px;
}

.auth-field {
    display: flex;

    flex-direction: column;

    gap: 7px;
}

.auth-field label {
    color: var(--text);

    font-size: 13px;

    font-weight: 600;
}

.auth-field input {
    width: 100%;

    box-sizing: border-box;

    padding: 13px 14px;

    border: 1px solid var(--border);

    border-radius: 11px;

    background: #FAFBFC;

    color: var(--text);

    font-family: inherit;

    font-size: 15px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.auth-field input::placeholder {
    color: #A0A8B3;
}

.auth-field input:focus {
    outline: none;

    background: #FFFFFF;

    border-color: var(--primary);

    box-shadow:
        0 0 0 4px rgba(37, 99, 235, 0.08);
}


/* ========================================
   BOTÓN
======================================== */

.auth-button {
    width: 100%;

    margin-top: 2px;

    padding: 13px 20px;

    border: none;

    border-radius: 11px;

    background: var(--primary);

    color: white;

    font-family: inherit;

    font-size: 15px;

    font-weight: 600;

    cursor: pointer;

    box-shadow:
        0 4px 10px rgba(37, 99, 235, 0.14);

    transition:
        background 0.2s ease,
        transform 0.1s ease,
        box-shadow 0.2s ease;
}

.auth-button:hover {
    background: var(--primary-dark);

    box-shadow:
        0 6px 15px rgba(37, 99, 235, 0.20);

    transform: translateY(-1px);
}

.auth-button:active {
    transform: translateY(0);
}


/* ========================================
   ERROR
======================================== */

.auth-error {
    display: flex;

    align-items: center;

    gap: 9px;

    margin-bottom: 20px;

    padding: 11px 13px;

    border: 1px solid #FECACA;

    border-radius: 10px;

    background: #FEF2F2;

    color: var(--danger);

    font-size: 13px;

    line-height: 1.4;
}

.auth-error-icon {
    display: flex;

    align-items: center;

    justify-content: center;

    width: 19px;

    height: 19px;

    flex-shrink: 0;

    border-radius: 50%;

    background: #FEE2E2;

    font-size: 12px;

    font-weight: 700;
}


/* ========================================
   DIVISOR
======================================== */

.auth-divider {
    display: flex;

    align-items: center;

    gap: 12px;

    margin: 25px 0 20px;
}

.auth-divider span {
    flex: 1;

    height: 1px;

    background: var(--border);
}

.auth-divider small {
    color: #98A2B3;

    font-size: 12px;
}


/* ========================================
   REGISTRO
======================================== */

.auth-register {
    margin: 0;

    text-align: center;

    color: var(--muted);

    font-size: 13px;
}

.auth-register a {
    color: var(--primary);

    font-weight: 600;

    text-decoration: none;
}

.auth-register a:hover {
    text-decoration: underline;
}


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

.auth-footer {
    margin: 22px 0 0;

    color: #98A2B3;

    font-size: 12px;

    text-align: center;
}


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

@media (max-width: 600px) {

    .auth-page {
        align-items: flex-start;

        padding-top: 45px;
    }

    .auth-card {
        padding: 26px 22px;

        border-radius: 18px;
    }

    .auth-logo {
        font-size: 29px;
    }

    .auth-header h1 {
        font-size: 23px;
    }

}

/* ========================================
   MI CUENTA
======================================== */

.account-header-actions {
    display: flex;
    align-items: center;
    gap: 22px;
}

.account-back {
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.account-back:hover {
    color: var(--primary-dark);
}


/* ========================================
   INTRO
======================================== */

.account-intro {
    margin-bottom: 28px;
}

.account-eyebrow {
    margin-bottom: 6px;

    color: var(--primary);

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 1px;
    text-transform: uppercase;
}

.account-intro h1 {
    margin: 0 0 6px;

    font-size: 32px;
    line-height: 1.2;

    letter-spacing: -0.8px;
}

.account-intro p {
    margin: 0;

    color: var(--muted);

    font-size: 16px;
}


/* ========================================
   MENSAJES
======================================== */

.account-message,
.account-error {
    margin-bottom: 22px;

    padding: 14px 16px;

    border-radius: 12px;

    font-size: 14px;
    line-height: 1.5;
}

.account-message {
    background: #F0FDF4;

    border: 1px solid #BBF7D0;

    color: #166534;
}

.account-error {
    background: #FEF2F2;

    border: 1px solid #FECACA;

    color: #B91C1C;
}


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

.account-card {
    margin-bottom: 22px;

    padding: 28px;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 20px;

    box-shadow:
        0 6px 24px rgba(0, 0, 0, 0.03);
}

.account-card-header {
    display: flex;

    justify-content: space-between;
    align-items: flex-start;

    margin-bottom: 26px;
}

.account-card-header h2 {
    margin: 0 0 5px;

    font-size: 19px;

    letter-spacing: -0.2px;
}

.account-card-header p {
    margin: 0;

    color: var(--muted);

    font-size: 14px;
}


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

.account-form {
    width: 100%;
}

.account-form .form-group {
    margin-bottom: 22px;
}

.account-form label {
    display: block;

    margin-bottom: 7px;

    color: var(--text);

    font-size: 13px;
    font-weight: 600;
}

.account-form input,
.account-form select {
    width: 100%;

    min-height: 48px;

    padding: 12px 14px;

    background: #FAFBFC;

    border: 1px solid var(--border);

    border-radius: 12px;

    color: var(--text);

    font-family: inherit;
    font-size: 15px;

    transition:
        border-color 0.2s,
        box-shadow 0.2s,
        background 0.2s;
}

.account-form input:focus,
.account-form select:focus {
    outline: none;

    background: #FFFFFF;

    border-color: var(--primary);

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.10);
}

.account-form input:disabled {
    background: #F3F4F6;

    color: var(--muted);

    cursor: not-allowed;
}

.account-form small {
    display: block;

    margin-top: 7px;

    color: #98A2B3;

    font-size: 12px;
    line-height: 1.5;
}


/* ========================================
   ACCIONES
======================================== */

.account-actions {
    display: flex;

    justify-content: flex-end;

    margin-top: 4px;
}


/* ========================================
   PLAN
======================================== */

.account-plan {
    margin-bottom: 26px;
}

.plan-box {
    display: flex;

    align-items: center;
    justify-content: space-between;

    padding: 18px 20px;

    background: #F8FAFC;

    border: 1px solid #EEF0F3;

    border-radius: 14px;
}

.plan-box > div {
    display: flex;

    flex-direction: column;

    gap: 4px;
}

.plan-label {
    color: var(--muted);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.7px;
}

.plan-box strong {
    color: var(--text);

    font-size: 20px;
}

.plan-status {
    padding: 6px 11px;

    background: #EFF6FF;

    border: 1px solid #DBEAFE;

    border-radius: 999px;

    color: var(--primary);

    font-size: 12px;
    font-weight: 700;
}

.plan-coming {
    margin: 14px 0 0;

    color: var(--muted);

    font-size: 13px;
    line-height: 1.5;
}


/* ========================================
   PIE
======================================== */

.account-footer {
    padding: 10px 0 30px;

    text-align: center;
}

.account-logout {
    color: var(--muted);

    font-size: 13px;

    text-decoration: none;

    transition: color 0.2s;
}

.account-logout:hover {
    color: var(--danger);
}


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

@media (max-width: 700px) {

    .account-header-actions {
        gap: 12px;
    }

    .account-back {
        font-size: 13px;
    }

    .account-header-actions .logout {
        display: none;
    }

    .account-intro h1 {
        font-size: 28px;
    }

    .account-card {
        padding: 22px;
    }

    .account-card-header {
        margin-bottom: 22px;
    }

    .account-card-header h2 {
        font-size: 18px;
    }

    .account-actions {
        justify-content: stretch;
    }

    .account-actions .button,
    .account-actions .secondary-button {
        width: 100%;
        justify-content: center;
    }

    .plan-box {
        padding: 16px;
    }
}

/* ========================================
   HEADER DEL DASHBOARD
======================================== */

.dashboard-header-actions {
    display: flex;
    align-items: center;
    gap: 22px;
}

.account-link {
    color: var(--primary);

    font-size: 14px;
    font-weight: 600;

    text-decoration: none;

    transition: color 0.2s;
}

.account-link:hover {
    color: var(--primary-dark);
}


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

@media (max-width: 600px) {

    .dashboard-header-actions {
        gap: 12px;
    }

    .account-link {
        font-size: 13px;
    }

    .dashboard-header-actions .logout {
        display: none;
    }

}

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

.landing {
    min-height: 100vh;
}


/* HEADER */

.landing-header {
    max-width: 1100px;
    margin: 0 auto;
    padding: 26px 24px;

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

.landing-logo {
    color: var(--text);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -1.5px;
    text-decoration: none;
}

.landing-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.landing-login {
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.landing-login:hover {
    color: var(--text);
}

.landing-register {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 11px 18px;

    background: var(--primary);
    color: white;

    border-radius: 10px;

    font-size: 14px;
    font-weight: 600;

    text-decoration: none;

    transition:
        background .2s,
        transform .2s;
}

.landing-register:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}


/* HERO */

.landing-hero {
    max-width: 850px;
    margin: 0 auto;

    padding: 105px 24px 95px;

    text-align: center;
}

.landing-eyebrow {
    display: inline-block;

    margin-bottom: 24px;

    color: var(--primary);

    font-size: 13px;
    font-weight: 700;

    letter-spacing: .08em;
    text-transform: uppercase;
}

.landing-hero h1 {
    margin: 0;

    color: var(--text);

    font-size: clamp(42px, 6vw, 70px);
    line-height: 1.05;

    letter-spacing: -3px;

    font-weight: 800;
}

.landing-hero h1 span {
    display: block;

    color: var(--primary);
}

.landing-description {
    max-width: 650px;

    margin: 28px auto 0;

    color: var(--muted);

    font-size: 19px;
    line-height: 1.7;
}

.landing-actions {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 14px;

    margin-top: 36px;
}

.landing-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 52px;

    padding: 0 26px;

    border-radius: 12px;

    background: var(--primary);
    color: white;

    font-size: 15px;
    font-weight: 700;

    text-decoration: none;

    box-shadow:
        0 8px 20px rgba(37, 99, 235, .18);

    transition:
        background .2s,
        transform .2s,
        box-shadow .2s;
}

.landing-primary:hover {
    background: var(--primary-dark);

    transform: translateY(-2px);

    box-shadow:
        0 12px 26px rgba(37, 99, 235, .24);
}

.landing-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 52px;

    padding: 0 24px;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: white;

    color: var(--text);

    font-size: 15px;
    font-weight: 600;

    text-decoration: none;

    transition:
        border-color .2s,
        transform .2s;
}

.landing-secondary:hover {
    border-color: #CBD5E1;

    transform: translateY(-1px);
}

.landing-note {
    margin-top: 18px;

    color: #98A2B3;

    font-size: 13px;
}


/* SECTION HEADING */

.landing-section-heading {
    max-width: 700px;

    margin: 0 auto 48px;

    text-align: center;
}

.landing-section-heading > span {
    color: var(--primary);

    font-size: 13px;
    font-weight: 700;

    letter-spacing: .08em;
    text-transform: uppercase;
}

.landing-section-heading h2 {
    margin: 12px 0 0;

    color: var(--text);

    font-size: clamp(28px, 4vw, 42px);

    line-height: 1.15;

    letter-spacing: -1.5px;
}


/* HOW IT WORKS */

.landing-how {
    max-width: 1100px;

    margin: 0 auto;

    padding: 85px 24px;
}

.landing-steps {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 22px;
}

.landing-step {
    position: relative;

    padding: 34px 30px 32px;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 18px;

    box-shadow:
        0 8px 30px rgba(16, 24, 40, .04);

    transition:
        transform .2s,
        box-shadow .2s;
}

.landing-step:hover {
    transform: translateY(-4px);

    box-shadow:
        0 14px 36px rgba(16, 24, 40, .08);
}

.landing-step-number {
    position: absolute;

    top: 22px;
    right: 24px;

    color: #D0D5DD;

    font-size: 13px;
    font-weight: 700;
}

.landing-step-icon {
    width: 52px;
    height: 52px;

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

    margin-bottom: 24px;

    background: #EFF6FF;

    border-radius: 14px;

    font-size: 23px;
}

.landing-step h3 {
    margin: 0 0 10px;

    color: var(--text);

    font-size: 20px;
}

.landing-step p {
    margin: 0;

    color: var(--muted);

    font-size: 15px;
    line-height: 1.7;
}


/* EXAMPLE */

.landing-example {
    max-width: 1100px;

    margin: 0 auto;

    padding: 85px 24px;

    display: grid;

    grid-template-columns:
        .8fr 1.2fr;

    gap: 70px;

    align-items: center;
}

.landing-example-content {
    padding-right: 20px;
}

.landing-example-label {
    color: var(--primary);

    font-size: 13px;
    font-weight: 700;

    letter-spacing: .08em;
    text-transform: uppercase;
}

.landing-example-content h2 {
    margin: 14px 0 14px;

    color: var(--text);

    font-size: clamp(30px, 4vw, 44px);

    line-height: 1.12;

    letter-spacing: -1.5px;
}

.landing-example-content p {
    margin: 0;

    color: var(--muted);

    font-size: 17px;
    line-height: 1.7;
}


/* EXAMPLE CARD */

.landing-example-card {
    padding: 30px;

    background: white;

    border: 1px solid var(--border);

    border-radius: 20px;

    box-shadow:
        0 18px 50px rgba(16, 24, 40, .08);
}

.example-label {
    margin-bottom: 10px;

    color: #98A2B3;

    font-size: 12px;
    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: .06em;
}

.example-text {
    padding: 18px;

    background: #F8FAFC;

    border-radius: 12px;

    color: var(--text);

    font-size: 16px;
    line-height: 1.6;
}

.example-arrow {
    margin: 18px 0;

    color: var(--primary);

    text-align: center;

    font-size: 22px;
}

.example-result {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 10px;
}

.example-result div {
    padding: 14px 10px;

    background: #F8FAFC;

    border-radius: 10px;

    color: var(--text);

    font-size: 13px;
    font-weight: 600;

    text-align: center;
}

.example-result span {
    display: block;

    margin-bottom: 5px;

    font-size: 18px;
}


/* CTA */

.landing-cta {
    max-width: 1050px;

    margin: 70px auto 90px;

    padding: 55px 60px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 40px;

    background: #17202A;

    border-radius: 24px;
}

.landing-cta > div {
    max-width: 650px;
}

.landing-cta span {
    color: #93C5FD;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: .08em;
}

.landing-cta h2 {
    margin: 10px 0 10px;

    color: white;

    font-size: clamp(28px, 4vw, 42px);

    line-height: 1.15;

    letter-spacing: -1.5px;
}

.landing-cta p {
    margin: 0;

    color: #CBD5E1;

    font-size: 16px;
}

.landing-cta .landing-primary {
    flex-shrink: 0;

    background: white;

    color: var(--primary);

    box-shadow: none;
}

.landing-cta .landing-primary:hover {
    background: #EFF6FF;
}


/* FOOTER */

.landing-footer {
    max-width: 1100px;

    margin: 0 auto;

    padding: 30px 24px 45px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    border-top: 1px solid var(--border);

    color: #98A2B3;

    font-size: 13px;
}

.landing-footer div {
    color: var(--text);

    font-weight: 800;

    letter-spacing: -0.5px;
}


/* MOBILE */

@media (max-width: 800px) {

    .landing-hero {
        padding-top: 75px;
        padding-bottom: 70px;
    }

    .landing-hero h1 {
        letter-spacing: -2px;
    }

    .landing-steps {
        grid-template-columns: 1fr;
    }

    .landing-example {
        grid-template-columns: 1fr;

        gap: 35px;
    }

    .landing-example-content {
        padding-right: 0;

        text-align: center;
    }

    .landing-cta {
        margin-left: 24px;
        margin-right: 24px;

        padding: 40px 30px;

        flex-direction: column;

        align-items: flex-start;
    }

}


@media (max-width: 600px) {

    .landing-header {
        padding: 20px;
    }

    .landing-logo {
        font-size: 24px;
    }

    .landing-nav {
        gap: 12px;
    }

    .landing-login {
        font-size: 13px;
    }

    .landing-register {
        padding: 9px 13px;

        font-size: 13px;
    }

    .landing-hero {
        padding: 60px 20px 65px;
    }

    .landing-eyebrow {
        font-size: 11px;
    }

    .landing-hero h1 {
        font-size: 40px;
        letter-spacing: -1.8px;
    }

    .landing-description {
        font-size: 17px;
    }

    .landing-actions {
        flex-direction: column;

        width: 100%;
    }

    .landing-primary,
    .landing-secondary {
        width: 100%;
    }

    .landing-how,
    .landing-example {
        padding-left: 20px;
        padding-right: 20px;
    }

    .landing-section-heading h2 {
        font-size: 30px;
    }

    .landing-example-content h2 {
        font-size: 32px;
    }

    .landing-example-card {
        padding: 22px;
    }

    .example-result {
        grid-template-columns: 1fr;
    }

    .landing-cta {
        margin-top: 45px;
        margin-bottom: 60px;
    }

    .landing-cta h2 {
        font-size: 30px;
    }

    .landing-footer {
        padding-left: 20px;
        padding-right: 20px;

        flex-direction: column;

        gap: 8px;

        text-align: center;
    }

}

/* =========================================================
   AUTH PAGES
   ========================================================= */

.auth-page {
    min-height: 100vh;

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

    padding: 50px 20px;
}


.auth-container {
    width: 100%;
    max-width: 460px;

    text-align: center;
}


/* LOGO */

.auth-logo {
    display: inline-block;

    margin-bottom: 34px;

    color: var(--text);

    font-size: 30px;
    font-weight: 800;

    letter-spacing: -1.5px;

    text-decoration: none;
}


/* INTRO */

.auth-intro {
    margin-bottom: 30px;
}

.auth-eyebrow {
    margin-bottom: 12px;

    color: var(--primary);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: .08em;

    text-transform: uppercase;
}

.auth-intro h1 {
    margin: 0;

    color: var(--text);

    font-size: 36px;

    line-height: 1.15;

    letter-spacing: -1.5px;
}

.auth-intro p {
    max-width: 390px;

    margin: 14px auto 0;

    color: var(--muted);

    font-size: 15px;

    line-height: 1.6;
}


/* CARD */

.auth-card {
    padding: 34px;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 20px;

    text-align: left;

    box-shadow:
        0 18px 50px rgba(16, 24, 40, .07);
}


/* ERROR */

.auth-error {
    margin-bottom: 22px;

    padding: 13px 15px;

    background: #FEF2F2;

    border: 1px solid #FECACA;

    border-radius: 10px;

    color: #B91C1C;

    font-size: 13px;

    line-height: 1.5;
}


/* FORM */

.auth-form {
    display: flex;

    flex-direction: column;

    gap: 20px;
}


.auth-form-group {
    display: flex;

    flex-direction: column;

    gap: 8px;
}


.auth-form-group label {
    color: var(--text);

    font-size: 14px;

    font-weight: 600;
}


.auth-form-group input {
    width: 100%;

    box-sizing: border-box;

    padding: 14px 15px;

    background: #FFFFFF;

    border: 1px solid var(--border);

    border-radius: 10px;

    color: var(--text);

    font-family: inherit;

    font-size: 15px;

    outline: none;

    transition:
        border-color .2s,
        box-shadow .2s;
}


.auth-form-group input::placeholder {
    color: #98A2B3;
}


.auth-form-group input:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, .10);
}


.auth-hint {
    color: #98A2B3;

    font-size: 12px;
}


/* SUBMIT */

.auth-submit {
    width: 100%;

    min-height: 50px;

    margin-top: 4px;

    padding: 0 20px;

    border: none;

    border-radius: 11px;

    background: var(--primary);

    color: white;

    font-family: inherit;

    font-size: 15px;

    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 8px 20px rgba(37, 99, 235, .18);

    transition:
        background .2s,
        transform .2s,
        box-shadow .2s;
}


.auth-submit:hover {
    background: var(--primary-dark);

    transform: translateY(-1px);

    box-shadow:
        0 12px 26px rgba(37, 99, 235, .24);
}


/* DIVIDER */

.auth-divider {
    display: flex;

    align-items: center;

    gap: 12px;

    margin: 28px 0 22px;
}


.auth-divider span {
    flex: 1;

    height: 1px;

    background: var(--border);
}


.auth-divider small {
    color: #98A2B3;

    font-size: 12px;
}


/* LOGIN */

.auth-login {
    margin: 0;

    color: var(--muted);

    font-size: 14px;

    text-align: center;
}


.auth-login a {
    color: var(--primary);

    font-weight: 600;

    text-decoration: none;
}


.auth-login a:hover {
    color: var(--primary-dark);

    text-decoration: underline;
}


/* BACK */

.auth-back {
    display: inline-block;

    margin-top: 24px;

    color: #98A2B3;

    font-size: 13px;

    text-decoration: none;

    transition: color .2s;
}


.auth-back:hover {
    color: var(--text);
}


/* MOBILE */

@media (max-width: 600px) {

    .auth-page {
        align-items: flex-start;

        padding-top: 35px;
    }

    .auth-logo {
        margin-bottom: 28px;

        font-size: 27px;
    }

    .auth-intro h1 {
        font-size: 32px;
    }

    .auth-intro p {
        font-size: 14px;
    }

    .auth-card {
        padding: 25px 20px;

        border-radius: 17px;
    }

}

.auth-success {
    margin-bottom: 22px;

    padding: 14px 15px;

    background: #F0FDF4;

    border: 1px solid #BBF7D0;

    border-radius: 10px;

    color: #15803D;

    font-size: 13px;

    line-height: 1.5;
}

.auth-forgot {
    margin-top: -2px;
    text-align: right;
}

.auth-forgot a {
    color: var(--primary);

    font-size: 12px;
    font-weight: 600;

    text-decoration: none;

    transition: color .2s;
}

.auth-forgot a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* =========================================================
   PLAN USAGE
   ========================================================= */

.plan-usage {
    margin-bottom: 34px;
    padding: 20px 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.plan-usage-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 14px;
}

.plan-usage-header > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.plan-usage-label {
    color: var(--muted);
    font-size: 13px;
}

.plan-usage-plan {
    color: var(--text);
    font-size: 14px;
}

.plan-usage-count {
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
}

.plan-usage-count.premium {
    color: var(--success);
}

.plan-progress {
    width: 100%;
    height: 8px;
    overflow: hidden;
    background: #EEF0F3;
    border-radius: 999px;
}

.plan-progress-bar {
    height: 100%;
    background: var(--primary);
    border-radius: 999px;
    transition: width 0.3s ease;
}

.plan-usage-message {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.plan-limit-reached {
    color: var(--danger);
    font-weight: 600;
}

.plan-upgrade-link {
    display: inline-block;
    margin-top: 8px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.plan-upgrade-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

@media (max-width: 600px) {

    .plan-usage {
        padding: 18px;
    }

    .plan-usage-header {
        align-items: flex-start;
    }

    .plan-usage-header > div {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
    }

}

/* =========================================================
   PLANS
   ========================================================= */

.plans-page {
    min-height: 100vh;
    background: var(--background);
}

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

.plans-header-actions {
    display: flex;
    align-items: center;
}

.plans-back-link,
.plans-login-link {
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.plans-back-link:hover,
.plans-login-link:hover {
    color: var(--primary-dark);
}


/* Intro */

.plans-main {
    max-width: 1050px;
    margin: 0 auto;
    padding: 60px 20px 70px;
}

.plans-intro {
    max-width: 650px;
    margin: 0 auto 48px;
    text-align: center;
}

.plans-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.plans-intro h1 {
    margin: 0 0 14px;
    color: var(--text);
    font-size: 38px;
    line-height: 1.15;
    letter-spacing: -1px;
}

.plans-intro p {
    max-width: 570px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
}


/* Grid */

.plans-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

.plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
}

.plan-card-premium {
    border: 2px solid var(--primary);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.10);
}

.premium-label {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 13px;
    background: var(--primary);
    color: white;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .8px;
    white-space: nowrap;
}


/* Plan top */

.plan-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 7px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .7px;
}

.free-badge {
    background: #F2F4F7;
    color: #667085;
}

.premium-badge {
    background: #EFF6FF;
    color: var(--primary);
}

.plan-card h2 {
    margin: 18px 0 8px;
    color: var(--text);
    font-size: 25px;
    letter-spacing: -.4px;
}

.plan-description {
    min-height: 48px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin-top: 24px;
}

.plan-price strong {
    color: var(--text);
    font-size: 42px;
    line-height: 1;
    letter-spacing: -1.5px;
}

.plan-price span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.plan-period {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
}


/* Features */

.plan-features {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--border);
}

.plan-feature {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    color: var(--text);
    font-size: 13px;
    line-height: 1.45;
}

.plan-feature > span:first-child {
    flex: 0 0 auto;
    color: var(--success);
    font-weight: 800;
}

.plan-feature strong {
    font-weight: 700;
}


/* Actions */

.plan-action {
    margin-top: auto;
    padding-top: 20px;
}

.plan-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition:
        background .2s,
        color .2s,
        transform .2s,
        box-shadow .2s;
}

.plan-button:hover {
    transform: translateY(-1px);
}

.plan-button-secondary {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
}

.plan-button-secondary:hover {
    background: #F9FAFB;
}

.plan-button-primary {
    border: 0;
    background: var(--primary);
    color: white;
    box-shadow: 0 5px 14px rgba(37, 99, 235, 0.20);
}

.plan-button-primary:hover {
    background: var(--primary-dark);
}

.plan-current {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 10px;
    background: #F8FAFC;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.plan-current-premium {
    background: #EFF6FF;
    color: var(--primary);
}


/* Annual */

.annual-plan {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-top: 24px;
    padding: 25px 30px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.annual-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: var(--success);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

.annual-plan h2 {
    margin: 0 0 5px;
    color: var(--text);
    font-size: 17px;
}

.annual-plan p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.annual-price {
    flex: 0 0 auto;
    text-align: right;
}

.annual-price strong {
    display: block;
    color: var(--text);
    font-size: 27px;
}

.annual-price span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
}


/* Note */

.plans-note {
    margin-top: 25px;
    text-align: center;
}

.plans-note p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}


/* Footer */

.plans-footer {
    padding: 25px 20px 35px;
    text-align: center;
    color: var(--muted);
    font-size: 12px;
}


/* Mobile */

@media (max-width: 700px) {

    .plans-main {
        padding: 45px 16px 55px;
    }

    .plans-intro {
        margin-bottom: 38px;
    }

    .plans-intro h1 {
        font-size: 30px;
    }

    .plans-intro p {
        font-size: 14px;
    }

    .plans-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .plan-card {
        padding: 27px 22px;
    }

    .plan-card-premium {
        margin-top: 8px;
    }

    .annual-plan {
        flex-direction: column;
        align-items: flex-start;
        padding: 22px;
    }

    .annual-price {
        text-align: left;
    }

}

/* =========================================================
   PREMIUM
   ========================================================= */

.premium-main {
    max-width: 850px;
    margin: 0 auto;
    padding: 60px 20px 70px;
}

.premium-intro {
    max-width: 600px;
    margin: 0 auto 45px;
    text-align: center;
}

.premium-intro h1 {
    margin: 0 0 12px;
    color: var(--text);
    font-size: 38px;
    line-height: 1.15;
    letter-spacing: -1px;
}

.premium-intro p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}


.premium-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}


.premium-option {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 30px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
}


.premium-option-featured {
    border: 2px solid var(--primary);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.10);
}


.premium-option-popular {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 13px;
    background: var(--primary);
    color: white;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .8px;
    white-space: nowrap;
}


.premium-option-badge {
    display: inline-flex;
    width: fit-content;
    padding: 6px 10px;
    background: #EFF6FF;
    color: var(--primary);
    border-radius: 7px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .7px;
}


.premium-option h2 {
    margin: 17px 0 7px;
    color: var(--text);
    font-size: 25px;
}


.premium-option-header p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}


.premium-option-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 25px;
}


.premium-option-price strong {
    color: var(--text);
    font-size: 42px;
    line-height: 1;
    letter-spacing: -1.5px;
}


.premium-option-price span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}


.premium-saving {
    margin-top: 9px;
    color: var(--success);
    font-size: 12px;
    font-weight: 700;
}


.premium-option-list {
    margin: 28px 0;
    padding: 20px 0 5px;
    border-top: 1px solid var(--border);
    list-style: none;
}


.premium-option-list li {
    margin-bottom: 13px;
    color: var(--text);
    font-size: 13px;
    line-height: 1.45;
}


.premium-option .plan-button {
    margin-top: auto;
}


.premium-trust {
    margin-top: 28px;
    text-align: center;
}


.premium-trust p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}


@media (max-width: 700px) {

    .premium-main {
        padding: 45px 16px 55px;
    }

    .premium-intro h1 {
        font-size: 30px;
    }

    .premium-options {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .premium-option {
        padding: 25px 22px;
    }

}

/* =========================================================
   PAYMENT SUCCESS
   ========================================================= */

.payment-success-main {
    min-height: calc(100vh - 140px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px 70px;
}

.payment-success-card {
    width: 100%;
    max-width: 540px;
    padding: 46px 42px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.07);
}


/* Icono */

.payment-success-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 68px;
    height: 68px;

    margin: 0 auto 24px;

    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    border-radius: 50%;

    color: var(--success);

    font-size: 32px;
    font-weight: 800;

    line-height: 1;
}


/* Etiqueta */

.payment-success-card .plans-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
}


/* Título */

.payment-success-card h1 {
    margin: 0 0 14px;

    color: var(--text);

    font-size: 30px;
    line-height: 1.2;
    letter-spacing: -0.7px;
}


/* Texto */

.payment-success-card > p {
    margin: 0;

    color: var(--muted);

    font-size: 14px;
    line-height: 1.6;
}


/* Información */

.payment-success-info {
    display: flex;
    flex-direction: column;
    gap: 6px;

    margin: 28px 0;

    padding: 18px;

    background: #F8FAFC;
    border: 1px solid var(--border);
    border-radius: 12px;

    text-align: center;
}

.payment-success-info strong {
    color: var(--text);

    font-size: 13px;
    line-height: 1.4;
}

.payment-success-info span {
    color: var(--muted);

    font-size: 12px;
    line-height: 1.5;
}


/* Botón */

.payment-success-card .plan-button {
    width: 100%;
    min-height: 48px;

    border: 0;
    border-radius: 10px;

    font-family: inherit;
    font-size: 14px;
    font-weight: 700;

    cursor: pointer;
}


/* Enlace secundario */

.payment-success-secondary {
    display: inline-block;

    margin-top: 17px;

    color: var(--primary);

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;
}

.payment-success-secondary:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}


/* Mobile */

@media (max-width: 600px) {

    .payment-success-main {
        min-height: calc(100vh - 120px);
        padding: 40px 16px 55px;
    }

    .payment-success-card {
        padding: 36px 22px;
        border-radius: 18px;
    }

    .payment-success-icon {
        width: 62px;
        height: 62px;

        margin-bottom: 21px;

        font-size: 28px;
    }

    .payment-success-card h1 {
        font-size: 26px;
    }

}

/* =========================================================
   BOTONES DE ACCIONES DE RECORDATORIOS
   ========================================================= */

.actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.actions form {
    display: inline;
    margin: 0;
    padding: 0;
}

.actions a,
.actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 16px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.15s ease;
    box-sizing: border-box;
}


/* ---------------------------------------------------------
   COMPLETAR
   --------------------------------------------------------- */

.actions .action-complete {
    color: #16A34A;
    background: #F0FDF4;
    border: 1px solid #86EFAC;
}

.actions .action-complete:hover {
    background: #DCFCE7;
    border-color: #4ADE80;
    transform: translateY(-1px);
}


/* ---------------------------------------------------------
   EDITAR
   --------------------------------------------------------- */

.actions a[href^="edit_reminder.php"] {
    color: #2563EB;
    background: #EFF6FF;
    border: 1px solid #93C5FD;
}

.actions a[href^="edit_reminder.php"]:hover {
    background: #DBEAFE;
    border-color: #60A5FA;
    transform: translateY(-1px);
}


/* ---------------------------------------------------------
   ELIMINAR
   --------------------------------------------------------- */

.actions .action-delete {
    color: #DC2626;
    background: #FEF2F2;
    border: 1px solid #FCA5A5;
}

.actions .action-delete:hover {
    background: #FEE2E2;
    border-color: #F87171;
    transform: translateY(-1px);
}


/* ---------------------------------------------------------
   BOTONES
   --------------------------------------------------------- */

.actions a:active,
.actions button:active {
    transform: translateY(0);
}


/* ---------------------------------------------------------
   MÓVIL
   --------------------------------------------------------- */

@media (max-width: 600px) {

    .actions {
        gap: 8px;
    }

    .actions a,
    .actions button {
        height: 36px;
        padding: 0 13px;
        font-size: 13px;
    }

}

.actions .action-complete,
.actions .action-edit,
.actions .action-delete {
    min-width: 100px;
}

.actions .action-edit {
    color: #2563EB;
    background: #EFF6FF;
    border: 1px solid #93C5FD;
}

.actions .action-edit:hover {
    background: #DBEAFE;
    border-color: #60A5FA;
    transform: translateY(-1px);
}

.dashboard-header-actions .logout {
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
}

/* Checkbox de consentimiento de WhatsApp */

.account-form .checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
    width: auto;
}

.account-form .checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    max-width: 18px;
    margin: 0;
    padding: 0;
    flex: 0 0 18px;
}

.account-form .checkbox-label span {
    line-height: 1.4;
}

.whatsapp-verify-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 10px 0 16px;
    padding: 12px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    background: #25D366;
    color: #ffffff;
    transition: opacity 0.2s ease;
}

.whatsapp-verify-button:hover {
    opacity: 0.9;
}

.whatsapp-connected-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.whatsapp-status-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #25D366;
    color: #ffffff;
    font-weight: 700;
    flex-shrink: 0;
}

.whatsapp-connected-header strong {
    display: block;
    font-size: 16px;
}

.whatsapp-connected-header p {
    margin: 4px 0 0;
    color: #64748b;
}

.whatsapp-connected-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    padding: 7px 10px;
    border-radius: 6px;
    background: #ecfdf5;
    color: #15803d;
    font-size: 13px;
    font-weight: 600;
}

.whatsapp-connected-description {
    margin: 14px 0 0;
    color: #64748b;
}

.whatsapp-disconnect-form {
    margin-top: 18px;
}

.whatsapp-disconnect-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #64748b;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.whatsapp-disconnect-button:hover {
    border-color: #94a3b8;
    color: #334155;
}

.whatsapp-usage {
    margin-top: 20px;
    padding: 16px;
    border-radius: 10px;
    background: #f8fafc;
}

.whatsapp-usage-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 10px;
}

.whatsapp-usage-header strong {
    font-size: 14px;
}

.whatsapp-usage-header span {
    font-weight: 700;
    color: #334155;
}

.whatsapp-usage-bar {
    width: 100%;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #e2e8f0;
}

.whatsapp-usage-progress {
    height: 100%;
    border-radius: 999px;
    background: #25D366;
    transition: width 0.3s ease;
}

.whatsapp-usage small {
    display: block;
    margin-top: 8px;
    color: #64748b;
    line-height: 1.4;
}

/* =========================================================
   WHATSAPP — ESTADO CONECTADO
   ========================================================= */

.account-whatsapp .whatsapp-connected {
    padding: 4px 0 0;
}

.account-whatsapp .whatsapp-connected-header {
    gap: 14px;
}

.account-whatsapp .whatsapp-status-icon {
    width: 40px;
    height: 40px;
    background: #25D366;
    box-shadow: 0 3px 8px rgba(37, 211, 102, 0.18);
}

.account-whatsapp .whatsapp-connected-header strong {
    font-size: 17px;
    line-height: 1.3;
}

.account-whatsapp .whatsapp-connected-header p {
    margin-top: 5px;
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.account-whatsapp .whatsapp-connected-status {
    margin-top: 18px;
    padding: 7px 11px;
    border-radius: 999px;
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    color: #15803D;
}

.account-whatsapp .whatsapp-connected-description {
    margin-top: 14px;
    color: var(--muted);
    font-size: 14px;
}


/* =========================================================
   WHATSAPP — USO
   ========================================================= */

.account-whatsapp .whatsapp-usage {
    margin-top: 22px;
    padding: 18px;
    border: 1px solid #EEF0F3;
    border-radius: 14px;
    background: #F8FAFC;
}

.account-whatsapp .whatsapp-usage-header {
    margin-bottom: 12px;
}

.account-whatsapp .whatsapp-usage-header strong {
    font-size: 14px;
    color: var(--text);
}

.account-whatsapp .whatsapp-usage-header span {
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
}

.account-whatsapp .whatsapp-usage-bar {
    height: 9px;
    background: #E5E7EB;
}

.account-whatsapp .whatsapp-usage-progress {
    background: #25D366;
}

.account-whatsapp .whatsapp-usage small {
    margin-top: 10px;
    color: var(--muted);
    font-size: 12px;
}


/* =========================================================
   WHATSAPP — DESCONEXIÓN
   ========================================================= */

.account-whatsapp .whatsapp-disconnect-form {
    margin-top: 20px;
}

.account-whatsapp .whatsapp-disconnect-button {
    padding: 9px 15px;
    border-radius: 9px;
    font-size: 13px;
}

.account-whatsapp .whatsapp-disconnect-button:hover {
    background: #F8FAFC;
}


/* =========================================================
   WHATSAPP — MÓVIL
   ========================================================= */

@media (max-width: 600px) {

    .account-whatsapp .whatsapp-connected-header {
        align-items: flex-start;
    }

    .account-whatsapp .whatsapp-status-icon {
        width: 38px;
        height: 38px;
    }

    .account-whatsapp .whatsapp-usage {
        padding: 16px;
    }

    .account-whatsapp .whatsapp-usage-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

}

/* =========================================================
   INFORMACIÓN PERSONAL
   ========================================================= */

.account-card .account-readonly-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    min-height: 48px;
    padding: 12px 14px;

    background: #F3F4F6;
    border: 1px solid var(--border);
    border-radius: 12px;

    box-sizing: border-box;
}

.account-card .account-readonly-value {
    min-width: 0;

    color: var(--muted);
    font-size: 15px;
    line-height: 1.4;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-card .account-readonly-badge {
    flex-shrink: 0;

    padding: 5px 9px;

    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 999px;

    color: #64748B;
    font-size: 11px;
    font-weight: 600;
}

/* Zona horaria */

.account-card .account-form select {
    cursor: pointer;
}

/* Botón guardar */

.account-card .account-actions .button {
    min-height: 44px;
    padding: 10px 18px;

    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
}

/* Móvil */

@media (max-width: 600px) {

    .account-card .account-readonly-field {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .account-card .account-readonly-value {
        width: 100%;
    }

}

/* =========================================================
   SEGURIDAD — CONTRASEÑAS
   ========================================================= */

.password-input-wrapper {
    position: relative;
    width: 100%;
}

.account-form .password-input-wrapper input {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;

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

    width: 34px;
    height: 34px;

    transform: translateY(-50%);

    border: 0;
    border-radius: 8px;

    background: transparent;
    color: #64748B;

    font-size: 16px;
    line-height: 1;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.password-toggle:hover {
    background: #F1F5F9;
    color: var(--text);
}

.password-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
}

.account-form .password-input-wrapper + small {
    margin-top: 7px;
}

/* =========================================================
   MI PLAN
   ========================================================= */

.account-plan .plan-box {
    display: block;
    padding: 20px;

    border: 1px solid #EEF0F3;
    border-radius: 14px;
    background: #F8FAFC;
}

.account-plan .plan-main {
    padding-bottom: 18px;
    border-bottom: 1px solid #E5E7EB;
}

.account-plan .plan-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.account-plan .plan-label {
    color: #64748B;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.account-plan .plan-status {
    display: inline-flex;
    align-items: center;

    padding: 6px 10px;

    border: 1px solid #BFDBFE;
    border-radius: 999px;

    background: #EFF6FF;
    color: #2563EB;

    font-size: 12px;
    font-weight: 700;
}

.account-plan .plan-name {
    display: block;
    margin-top: 7px;

    color: var(--text);
    font-size: 22px;
    line-height: 1.2;
}

.account-plan .plan-features {
    display: grid;
    gap: 16px;
    padding-top: 18px;
}

.account-plan .plan-feature {
    display: flex;
    align-items: flex-start;
    gap: 11px;
}

.account-plan .plan-feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 24px;
    height: 24px;

    flex-shrink: 0;

    border-radius: 50%;

    background: #ECFDF5;
    color: #16A34A;

    font-size: 13px;
    font-weight: 700;
}

.account-plan .plan-feature strong {
    display: block;

    color: var(--text);
    font-size: 14px;
    line-height: 1.4;
}

.account-plan .plan-feature small {
    display: block;
    margin-top: 3px;

    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}

.account-plan .plan-feature-muted .plan-feature-icon {
    background: #F1F5F9;
    color: #94A3B8;
}

.account-plan .plan-feature-muted strong {
    color: #64748B;
}


@media (max-width: 600px) {

    .account-plan .plan-box {
        padding: 16px;
    }

    .account-plan .plan-top {
        align-items: flex-start;
    }

    .account-plan .plan-name {
        font-size: 20px;
    }

}

/* =========================================================
   MI PLAN — CTA PREMIUM
   ========================================================= */

.account-plan .plan-upgrade {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #E5E7EB;
}

.account-plan .plan-upgrade strong {
    display: block;
    color: var(--text);
    font-size: 14px;
}

.account-plan .plan-upgrade p {
    margin: 4px 0 14px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.account-plan .plan-upgrade-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;
    padding: 10px 18px;

    border-radius: 10px;

    background: #2563EB;
    color: #FFFFFF;

    font-size: 14px;
    font-weight: 600;
    text-decoration: none;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.account-plan .plan-upgrade-button:hover {
    background: #1D4ED8;
    transform: translateY(-1px);
}

@media (max-width: 600px) {

    .account-plan .plan-upgrade-button {
        width: 100%;
    }

}


/* =========================================================
   PREMIUM — AJUSTE VISUAL
   Mantiene intacta la lógica existente y refina únicamente
   la presentación de la página Premium.
   ========================================================= */

.premium-main {
    max-width: 900px;
    padding: 38px 20px 60px;
}

.premium-intro {
    max-width: 650px;
    margin: 0 auto 32px;
}

.premium-intro .plans-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 5px 10px;
    margin-bottom: 14px;
    border: 1px solid #DBEAFE;
    border-radius: 999px;
    background: #EFF6FF;
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
}

.premium-intro h1 {
    margin: 0 0 10px;
    font-size: 38px;
    line-height: 1.15;
    letter-spacing: -1.1px;
}

.premium-intro p {
    max-width: 520px;
    margin: 0 auto;
    font-size: 15px;
    line-height: 1.6;
}

.premium-options {
    gap: 20px;
    align-items: stretch;
}

.premium-option {
    padding: 30px;
    border-radius: 18px;
    box-shadow: 0 7px 26px rgba(15, 23, 42, 0.045);
}

.premium-option-featured {
    border: 2px solid var(--primary);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.10);
}

.premium-option-popular {
    top: -12px;
    padding: 6px 12px;
    font-size: 10px;
}

.premium-option-badge {
    min-height: 27px;
    align-items: center;
    padding: 5px 9px;
    border-radius: 7px;
    font-size: 10px;
}

.premium-option h2 {
    margin: 16px 0 6px;
    font-size: 23px;
    line-height: 1.2;
    letter-spacing: -0.3px;
}

.premium-option-header p {
    font-size: 13px;
    line-height: 1.45;
}

.premium-option-price {
    margin-top: 23px;
    gap: 7px;
}

.premium-option-price strong {
    font-size: 40px;
    letter-spacing: -1.4px;
}

.premium-option-price span {
    font-size: 12px;
}

.premium-saving {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 25px;
    margin-top: 9px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #F0FDF4;
    color: var(--success);
    font-size: 11px;
    font-weight: 700;
}

.premium-option-list {
    margin: 25px 0 22px;
    padding: 18px 0 3px;
}

.premium-option-list li {
    margin-bottom: 12px;
    color: var(--text);
    font-size: 13px;
    line-height: 1.45;
}

.premium-option .plan-button {
    width: 100%;
    min-height: 46px;
    margin-top: auto;
    border-radius: 10px;
}

.premium-trust {
    margin-top: 24px;
    padding-top: 2px;
}

.premium-trust p {
    font-size: 12px;
    line-height: 1.5;
}

@media (max-width: 700px) {

    .premium-main {
        padding: 32px 16px 50px;
    }

    .premium-intro {
        margin-bottom: 28px;
    }

    .premium-intro h1 {
        font-size: 30px;
        letter-spacing: -0.8px;
    }

    .premium-intro p {
        font-size: 14px;
    }

    .premium-options {
        gap: 26px;
    }

    .premium-option {
        padding: 24px 20px;
    }

    .premium-option h2 {
        font-size: 22px;
    }

    .premium-option-price strong {
        font-size: 38px;
    }

    .premium-option-list {
        margin-top: 23px;
    }

    .premium-option .plan-button {
        min-height: 48px;
    }

}


/* =========================================================
   PLANS — AJUSTE VISUAL
   Mantiene intacta la lógica existente y refina únicamente
   la presentación de la página de planes.
   ========================================================= */

.plans-main {
    max-width: 980px;
    padding: 40px 20px 60px;
}

.plans-intro {
    max-width: 650px;
    margin-bottom: 34px;
}

.plans-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 5px 10px;
    margin-bottom: 14px;
    border: 1px solid #DBEAFE;
    border-radius: 999px;
    background: #EFF6FF;
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
}

.plans-intro h1 {
    margin-bottom: 10px;
    font-size: 38px;
    letter-spacing: -1.1px;
}

.plans-intro p {
    max-width: 560px;
    font-size: 15px;
    line-height: 1.6;
}

.plans-grid {
    gap: 20px;
}

.plan-card {
    padding: 28px;
    border-radius: 18px;
    box-shadow: 0 7px 26px rgba(15, 23, 42, 0.045);
}

.plan-card-premium {
    border-width: 2px;
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.10);
}

.premium-label {
    top: -12px;
    padding: 6px 12px;
    font-size: 10px;
}

.plan-badge {
    min-height: 27px;
    padding: 5px 9px;
    border-radius: 7px;
    font-size: 10px;
}

.plan-card h2 {
    margin-top: 16px;
    margin-bottom: 7px;
    font-size: 23px;
}

.plan-description {
    min-height: 44px;
    font-size: 13px;
    line-height: 1.5;
}

.plan-price {
    margin-top: 22px;
}

.plan-price strong {
    font-size: 40px;
}

.plan-features {
    margin-top: 25px;
    padding-top: 19px;
}

.plan-feature {
    gap: 10px;
    margin-bottom: 12px;
    font-size: 13px;
}

.plan-feature > span:first-child {
    color: #16A34A;
    font-weight: 700;
}

.plan-action {
    margin-top: auto;
    padding-top: 10px;
}

.plan-button {
    min-height: 46px;
    border-radius: 10px;
}

.plan-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    width: 100%;
    border-radius: 10px;
}

.annual-plan {
    margin-top: 20px;
    padding: 20px 24px;
    border-radius: 14px;
    background: #F8FAFC;
}

.annual-eyebrow {
    margin-bottom: 4px;
}

.annual-plan h2 {
    font-size: 16px;
}

.annual-plan p {
    line-height: 1.5;
}

.annual-price strong {
    font-size: 25px;
}

.plans-note {
    margin-top: 20px;
}

.plans-note p {
    font-size: 12px;
}

.plans-footer {
    padding-top: 20px;
}

@media (max-width: 700px) {

    .plans-main {
        padding: 32px 16px 50px;
    }

    .plans-intro {
        margin-bottom: 28px;
    }

    .plans-intro h1 {
        font-size: 30px;
        letter-spacing: -0.8px;
    }

    .plans-intro p {
        font-size: 14px;
    }

    .plans-grid {
        gap: 26px;
    }

    .plan-card {
        padding: 24px 20px;
    }

    .plan-card h2 {
        font-size: 22px;
    }

    .plan-price strong {
        font-size: 38px;
    }

    .annual-plan {
        padding: 20px;
    }

}


/* =========================================================
   DASHBOARD — AJUSTE VISUAL
   Mantiene intacta la lógica existente y refina la
   presentación del dashboard principal.
   ========================================================= */

.dashboard-header-actions {
    gap: 14px;
}

.account-link,
.logout {
    font-size: 13px;
}

.hero {
    padding-top: 34px;
}

.hero-heading {
    margin-bottom: 8px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 27px;
    padding: 5px 9px;
    border: 1px solid #DBEAFE;
    border-radius: 999px;
    background: #EFF6FF;
    color: var(--primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

.hero h1 {
    margin-top: 10px;
    letter-spacing: -0.7px;
}

.hero-intro {
    margin-top: 8px;
    margin-bottom: 5px;
    font-size: 18px;
    font-weight: 600;
}

.hero-helper {
    max-width: 600px;
    line-height: 1.55;
}

#reminderForm {
    margin-top: 22px;
}

.input-wrapper textarea {
    min-height: 104px;
    border-radius: 14px;
}

.input-hint {
    margin-top: 7px;
    font-size: 11px;
}

#interpretButton {
    min-height: 46px;
    margin-top: 12px;
    border-radius: 10px;
}

.loading,
.error,
.result {
    border-radius: 14px;
}

.result {
    margin-top: 18px;
    padding: 20px;
}

.result h3 {
    margin-bottom: 16px;
}

.result-row {
    padding: 10px 0;
}

#confirmButton,
#changeButton {
    min-height: 44px;
    border-radius: 10px;
}

.dashboard-summary {
    gap: 14px;
    margin-top: 34px;
}

.summary-card {
    padding: 18px;
    border-radius: 14px;
}

.summary-number {
    font-size: 28px;
}

.summary-label {
    margin-top: 4px;
    font-size: 12px;
}

.plan-usage {
    padding: 18px 20px;
    border-radius: 14px;
}

.plan-usage-header {
    margin-bottom: 12px;
}

.plan-progress {
    height: 7px;
}

.reminders-container {
    margin-top: 38px;
}

.section-title {
    margin-bottom: 20px;
    font-size: 21px;
    letter-spacing: -0.3px;
}

.reminder-section {
    margin-bottom: 26px;
}

.reminder-section-title {
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 800;
}

.reminder-section-title .count {
    color: var(--muted);
    font-weight: 600;
}

.empty {
    padding: 32px 22px;
    border-radius: 14px;
}

@media (max-width: 700px) {

    .dashboard-header-actions {
        gap: 8px;
    }

    .account-link,
    .logout {
        font-size: 12px;
    }

    .hero {
        padding-top: 26px;
    }

    .hero-intro {
        font-size: 17px;
    }

    .hero-helper {
        font-size: 13px;
    }

    #reminderForm {
        margin-top: 18px;
    }

    .input-wrapper textarea {
        min-height: 118px;
    }

    #interpretButton {
        width: 100%;
    }

    .dashboard-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-top: 26px;
    }

    .summary-card {
        padding: 15px 12px;
    }

    .summary-number {
        font-size: 25px;
    }

    .plan-usage {
        grid-column: 1 / -1;
        padding: 16px;
    }

    .reminders-container {
        margin-top: 32px;
    }

}


/* =========================================================
   DASHBOARD — RESUMEN REFINADO
   ========================================================= */

.dashboard-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 34px;
}

.summary-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 92px;
    padding: 16px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.035);
}

.summary-number {
    display: block;
    color: var(--text);
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.8px;
}

.summary-label {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.3;
}

.dashboard-summary .plan-usage {
    grid-column: 1 / -1;
    margin-bottom: 0;
}

@media (max-width: 700px) {

    .dashboard-summary {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 9px;
        margin-top: 26px;
    }

    .summary-card {
        min-height: 82px;
        padding: 14px 8px;
    }

    .summary-number {
        font-size: 24px;
    }

    .summary-label {
        margin-top: 6px;
        font-size: 11px;
    }

    .dashboard-summary .plan-usage {
        grid-column: 1 / -1;
    }

}


/* =========================================================
   DASHBOARD FREE — INVITACIÓN A PREMIUM
   ========================================================= */

.dashboard-upgrade {
    margin-top: 16px;
    padding: 18px 20px;
    border: 1px solid #DBEAFE;
    border-radius: 14px;
    background: #F8FAFF;
}

.dashboard-upgrade strong {
    display: block;
    color: var(--text);
    font-size: 14px;
    line-height: 1.4;
}

.dashboard-upgrade p {
    margin: 4px 0 14px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.dashboard-upgrade-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    border-radius: 10px;
    background: #2563EB;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.dashboard-upgrade-button:hover {
    background: #1D4ED8;
    transform: translateY(-1px);
}

@media (max-width: 700px) {

    .dashboard-upgrade {
        padding: 16px;
    }

    .dashboard-upgrade-button {
        width: 100%;
    }

}


/* =========================================================
   DASHBOARD FREE — DETALLE DEL CTA PREMIUM
   ========================================================= */

.dashboard-upgrade .upgrade-highlight {
    color: var(--text);
    font-weight: 800;
}

.dashboard-upgrade .whatsapp-inline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #15803D;
    font-weight: 600;
    white-space: nowrap;
}

.dashboard-upgrade .whatsapp-logo {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    color: #25D366;
    vertical-align: -3px;
}

/* =========================================================
   DASHBOARD FREE — CTA PREMIUM A TODO EL ANCHO
   ========================================================= */

.dashboard-summary .dashboard-upgrade {
    grid-column: 1 / -1;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 700px) {

    .dashboard-summary .dashboard-upgrade {
        width: 100%;
        padding: 18px;
    }

    .dashboard-summary .dashboard-upgrade-button {
        width: 100%;
    }

}

/* =========================================================
   NUNCA — TARJETAS DE RECORDATORIOS / MÓVIL
   Ajuste visual sin modificar lógica ni HTML
   ========================================================= */

/* Espaciado general de la sección */
.reminders-container {
    margin-top: 4px;
}

.section-title {
    margin-bottom: 18px;
}

.reminder-section {
    margin-bottom: 28px;
}

.reminder-section-title {
    margin-bottom: 10px;
}

/* Tarjeta */
.reminder {
    overflow: hidden;
}

.reminder-header {
    gap: 12px;
}

.reminder-main {
    flex: 1 1 auto;
    min-width: 0;
}

.reminder h3 {
    overflow-wrap: anywhere;
}

/* Fecha y hora */
.reminder-datetime {
    gap: 9px;
}

.reminder-date-box {
    min-width: 0;
}

.reminder-date-box > div {
    min-width: 0;
}

.reminder-date-box strong {
    overflow-wrap: anywhere;
}

/* Detalles / recurrencia */
.reminder-details {
    gap: 7px;
}

.reminder-detail {
    max-width: 100%;
    box-sizing: border-box;
}

/* Acciones: botones compactos y consistentes */
.reminder .actions {
    align-items: stretch;
}

.reminder .actions form {
    margin: 0;
}

.reminder .actions a,
.reminder .actions button {
    box-sizing: border-box;
}

@media (max-width: 600px) {

    .reminders-container {
        margin-top: 2px;
    }

    .section-title {
        margin-bottom: 16px;
        font-size: 22px;
    }

    .reminder-section {
        margin-bottom: 24px;
    }

    .reminder-section-title {
        margin-bottom: 9px;
        font-size: 15px;
    }

    .reminder {
        padding: 16px;
        border-radius: 16px;
    }

    .reminder:hover {
        transform: none;
        box-shadow: none;
    }

    .reminder-header {
        margin-bottom: 13px;
    }

    .reminder h3 {
        margin-bottom: 6px;
        font-size: 17px;
        line-height: 1.35;
    }

    .reminder-datetime {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-bottom: 12px;
    }

    .reminder-date-box {
        gap: 8px;
        min-width: 0;
        padding: 9px 10px;
        border-radius: 10px;
    }

    .reminder-icon {
        width: 28px;
        height: 28px;
        font-size: 14px;
        border-radius: 7px;
    }

    .reminder-meta-label {
        font-size: 10px;
    }

    .reminder-date-box strong {
        font-size: 13px;
    }

    .reminder-details {
        gap: 6px;
        margin-bottom: 12px;
    }

    .reminder-detail {
        padding: 5px 8px;
        font-size: 11px;
    }

    .reminder-description {
        margin: 3px 0 13px;
        padding: 9px 10px;
        font-size: 12px;
    }

    .reminder .actions {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
        gap: 8px;
        padding-top: 12px;
    }

    .reminder .actions form {
        width: 100%;
    }

    .reminder .actions a,
    .reminder .actions button {
        width: 100%;
        min-width: 0;
        height: 36px;
        padding: 0 8px;
        font-size: 12px;
        border-radius: 8px;
        white-space: nowrap;
    }

}

@media (max-width: 360px) {

    .reminder-datetime {
        grid-template-columns: 1fr;
    }

    .reminder .actions {
        grid-template-columns: 1fr 1fr;
    }

}


/* =========================================================
   PULIDO FINAL — TARJETAS DE RECORDATORIOS EN MÓVIL
   ========================================================= */

/* Encabezados de sección */
.reminder-section-title {
    gap: 7px;
    margin-bottom: 14px;
}

.reminder-section-title .count {
    margin-left: 1px;
    font-size: 12px;
}

/* Tarjeta: un poco más compacta */
.reminder {
    padding: 20px 22px;
    border-radius: 18px;
}

.reminder-header {
    margin-bottom: 14px;
}

.reminder h3 {
    line-height: 1.3;
}

/* Descripción más ligera */
.reminder-description {
    margin-top: 2px;
    margin-bottom: 14px;
    padding: 9px 12px;
}

/* Acciones más refinadas */
.actions {
    gap: 10px;
}

.actions a,
.actions button {
    border-radius: 9px;
}

/* Eliminar: misma función, menor peso visual */
.actions .action-delete {
    color: #B91C1C;
    background: #FFF7F7;
    border-color: #FECACA;
}

.actions .action-delete:hover {
    background: #FEF2F2;
    border-color: #FCA5A5;
}

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

@media (max-width: 600px) {

    .reminder-section {
        margin-bottom: 26px;
    }

    .reminder-section-title {
        margin-bottom: 10px;
        font-size: 15px;
    }

    .reminder-section-title .count {
        font-size: 12px;
    }

    .reminder {
        padding: 16px;
        margin-bottom: 10px;
        border-radius: 16px;
    }

    .reminder-header {
        margin-bottom: 12px;
    }

    .reminder h3 {
        font-size: 16px;
        line-height: 1.35;
    }

    .reminder-datetime {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-bottom: 10px;
    }

    .reminder-date-box {
        min-width: 0;
        padding: 9px 10px;
        gap: 8px;
        border-radius: 10px;
    }

    .reminder-icon {
        width: 28px;
        height: 28px;
        border-radius: 7px;
        font-size: 14px;
    }

    .reminder-meta-label {
        font-size: 10px;
    }

    .reminder-date-box strong {
        font-size: 13px;
    }

    .reminder-details {
        gap: 6px;
        margin-bottom: 10px;
    }

    .reminder-detail {
        padding: 5px 8px;
        border-radius: 7px;
        font-size: 11px;
    }

    .reminder-description {
        margin-bottom: 12px;
        padding: 8px 10px;
        font-size: 12px;
    }

    .reminder .actions {
        gap: 7px;
        padding-top: 11px;
    }

    .reminder .actions a,
    .reminder .actions button {
        flex: 1 1 0;
        min-width: 0;
        height: 36px;
        padding: 0 8px;
        font-size: 12px;
    }

}

/* Pantallas muy pequeñas */
@media (max-width: 360px) {

    .reminder-datetime {
        grid-template-columns: 1fr;
    }

    .reminder .actions a,
    .reminder .actions button {
        font-size: 11px;
        padding: 0 6px;
    }

}


/* =========================================================
   DASHBOARD — AJUSTES FINALES
   ========================================================= */

/* Más aire antes de "Mis recordatorios" */
.reminders-container {
    margin-top: 8px;
}

/* Encabezado de Completados colapsable */
.section-completed .completed-toggle {
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--muted);
    font: inherit;
    text-align: left;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    margin: 0 0 12px;
}

.section-completed .completed-toggle-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.section-completed .completed-toggle .count {
    margin-left: 1px;
}

.completed-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;
    flex: 0 0 28px;

    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background: #FFFFFF;

    color: #64748B;
    font-size: 14px;
    line-height: 1;

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.completed-toggle:hover .completed-toggle-icon {
    background: #F8FAFC;
}

.completed-toggle[aria-expanded="true"] .completed-toggle-icon {
    transform: rotate(180deg);
}

.completed-reminders[hidden] {
    display: none;
}

.completed-reminders {
    margin-top: 0;
}

@media (max-width: 600px) {

    .reminders-container {
        margin-top: 10px;
    }

    .section-completed .completed-toggle {
        margin-bottom: 10px;
        font-size: 15px;
    }

    .completed-toggle-icon {
        width: 26px;
        height: 26px;
        flex-basis: 26px;
        font-size: 13px;
    }

}


/* ========================================
   AVISO EN CREAR RECORDATORIO
======================================== */

.dashboard-notification-field {
    margin: 16px 0 18px;
}

.dashboard-notification-field label {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
}

.dashboard-notification-field select {
    width: 100%;
    min-height: 50px;
    padding: 13px 44px 13px 15px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background-color: #FAFBFC;
    color: var(--text);
    font-family: inherit;
    font-size: 15px;
    line-height: 1.4;
    cursor: pointer;
    appearance: auto;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.dashboard-notification-field select:focus {
    outline: none;
    background-color: #FFFFFF;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.dashboard-notification-hint {
    display: block;
    margin-top: 7px;
    color: #98A2B3;
    font-size: 11px;
    line-height: 1.45;
}

@media (max-width: 600px) {
    .dashboard-notification-field {
        margin-top: 14px;
        margin-bottom: 17px;
    }

    .dashboard-notification-field select {
        min-height: 52px;
        font-size: 16px;
    }
}

/* ========================================
   CERRAR SESIÓN — CUENTA
   Evita que el estilo global de botones
   convierta el botón en una pastilla azul.
======================================== */

.account-logout {
    appearance: none;
    -webkit-appearance: none;

    margin: 0;
    padding: 0;

    border: 0;
    border-radius: 0;

    background: transparent;
    box-shadow: none;

    color: var(--muted);

    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;

    text-decoration: none;
    cursor: pointer;

    transition: color 0.2s;
}

.account-logout:hover {
    background: transparent;
    color: var(--danger);
}

.account-logout:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
}

/* ========================================
   NUNCA — Pulido visual del dashboard
   Fase 1: overrides seguros y localizados
======================================== */

.dashboard-header-actions {
    display: flex; align-items: center; justify-content: flex-end;
    gap: 10px; flex-wrap: wrap;
}
.dashboard-header-actions .account-link,
.dashboard-header-actions .logout {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 40px; padding: 9px 13px; border: 1px solid var(--border);
    border-radius: 10px; background: var(--surface); color: var(--muted);
    font: inherit; font-size: 13px; font-weight: 600; text-decoration: none;
    cursor: pointer; transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.dashboard-header-actions .account-link:hover,
.dashboard-header-actions .logout:hover {
    background: #F8FAFC; border-color: #CBD5E1; color: var(--text);
}
.dashboard-summary {
    align-items: stretch; gap: 14px; margin: 0 0 32px;
}
.dashboard-summary .summary-card {
    min-width: 0; padding: 20px 18px; border: 1px solid var(--border);
    border-radius: 16px; background: var(--surface);
    box-shadow: 0 4px 16px rgba(15, 23, 42, .035);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.dashboard-summary .summary-card:hover {
    border-color: #D5DDF0; box-shadow: 0 8px 22px rgba(15, 23, 42, .055);
    transform: translateY(-1px);
}
.dashboard-summary .summary-number {
    display: block; margin-bottom: 4px; color: var(--text);
    font-size: 28px; font-weight: 750; line-height: 1.15;
    letter-spacing: -.7px; font-variant-numeric: tabular-nums;
}
.dashboard-summary .summary-label {
    color: var(--muted); font-size: 13px; font-weight: 600;
}
.dashboard-summary .plan-usage {
    padding: 20px; border: 1px solid var(--border); border-radius: 16px;
    background: #FFFFFF; box-shadow: 0 4px 16px rgba(15, 23, 42, .035);
}
.plan-usage-header { gap: 12px; }
.plan-usage-label { color: var(--muted); font-size: 12px; }
.plan-usage-plan { color: var(--text); font-size: 15px; }
.plan-usage-count {
    color: var(--primary); font-size: 13px; font-weight: 700; white-space: nowrap;
}
.plan-progress {
    height: 8px; overflow: hidden; border-radius: 999px; background: #E9EEF5;
}
.plan-progress-bar { min-width: 0; border-radius: inherit; transition: width .25s ease; }
.plan-usage-message {
    margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5;
}
.dashboard-upgrade {
    padding: 20px; border: 1px solid #DCE7FC; border-radius: 16px;
    background: linear-gradient(135deg, #F8FBFF 0%, #EFF6FF 100%);
}
.dashboard-upgrade > strong { color: #1E3A8A; font-size: 15px; }
.dashboard-upgrade p { color: #475569; font-size: 13px; line-height: 1.6; }
.dashboard-upgrade-button {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 42px; padding: 10px 15px; border-radius: 10px;
    background: var(--primary); color: #FFFFFF; font-size: 13px;
    font-weight: 700; text-decoration: none;
    transition: background .2s ease, transform .2s ease;
}
.dashboard-upgrade-button:hover {
    background: var(--primary-dark); transform: translateY(-1px);
}
.push-settings {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; margin: 20px 0; padding: 16px 18px;
    border: 1px solid #DCE7FC; border-radius: 14px; background: #F8FBFF;
}
.push-settings-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.push-settings-info strong { color: #1E3A8A; font-size: 14px; font-weight: 700; }
.push-settings-info span { color: var(--muted); font-size: 12px; line-height: 1.45; }
.push-settings .secondary-button {
    flex-shrink: 0; margin: 0; padding: 10px 13px; border-color: #C7D7F8;
    background: #FFFFFF; color: #1D4ED8; font-size: 13px; font-weight: 650;
}
.push-settings .secondary-button:hover { background: #EFF6FF; border-color: #93B4F4; }
.reminders-container { margin-top: 4px; }
.reminders-container > .section-title {
    margin: 0 0 22px; font-size: 23px; font-weight: 750; letter-spacing: -.55px;
}
.reminder-section { margin-bottom: 28px; }
.reminder-section-title {
    display: flex; align-items: center; gap: 8px; margin: 0 0 13px;
    font-size: 15px; font-weight: 750; letter-spacing: -.1px;
}
.reminder-section-title .count {
    display: inline-flex; align-items: center; min-height: 23px; padding: 2px 8px;
    border: 1px solid var(--border); border-radius: 999px; background: #FFFFFF;
    color: var(--muted); font-size: 11px; font-weight: 700; line-height: 1.3;
}
.section-overdue .reminder-section-title .count {
    border-color: #FECACA; background: #FEF2F2; color: #B91C1C;
}
.section-today .reminder-section-title .count {
    border-color: #FDE68A; background: #FFFBEB; color: #B45309;
}
.section-tomorrow .reminder-section-title .count {
    border-color: #BFDBFE; background: #EFF6FF; color: #1D4ED8;
}
.empty {
    padding: 48px 24px; border: 1px dashed #CBD5E1; border-radius: 18px;
    background: rgba(255, 255, 255, .8);
}
.empty h3 { margin-bottom: 8px; color: var(--text); letter-spacing: -.25px; }
.empty p {
    max-width: 360px; margin: 0 auto; color: var(--muted);
    font-size: 14px; line-height: 1.6;
}
.completed-toggle {
    width: 100%; justify-content: space-between; padding: 12px 14px;
    border: 1px solid var(--border); border-radius: 12px;
    background: #F8FAFC; color: var(--muted); cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
}
.completed-toggle:hover { border-color: #CBD5E1; background: #F1F5F9; }
.completed-toggle:focus-visible,
.dashboard-header-actions a:focus-visible,
.dashboard-header-actions button:focus-visible,
.push-settings button:focus-visible,
.dashboard-upgrade-button:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .25); outline-offset: 2px;
}
@media (max-width: 600px) {
    .dashboard-header-actions { gap: 7px; }
    .dashboard-header-actions .account-link,
    .dashboard-header-actions .logout {
        min-height: 38px; padding: 8px 10px; font-size: 12px;
    }
    .dashboard-summary { gap: 10px; margin-bottom: 26px; }
    .dashboard-summary .summary-card { padding: 15px 12px; border-radius: 13px; }
    .dashboard-summary .summary-number { font-size: 24px; }
    .dashboard-summary .summary-label { font-size: 12px; }
    .dashboard-summary .plan-usage, .dashboard-upgrade { padding: 17px; }
    .push-settings { align-items: stretch; flex-direction: column; gap: 12px; padding: 15px; }
    .push-settings .secondary-button { width: 100%; min-height: 42px; }
    .reminders-container > .section-title { margin-bottom: 18px; font-size: 21px; }
    .reminder-section { margin-bottom: 24px; }
    .empty { padding: 36px 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .dashboard-summary .summary-card,
    .dashboard-header-actions .account-link,
    .dashboard-header-actions .logout,
    .dashboard-upgrade-button,
    .push-settings .secondary-button { transition: none; }
}


/* =========================================================
   NUNCA — FASE 2: TARJETAS DE RECORDATORIOS
   Solo estilos. No modifica PHP, JavaScript ni funcionalidades.
   ========================================================= */

.reminders-container {
    --reminder-blue: #2563EB;
    --reminder-blue-soft: #EFF6FF;
    --reminder-border: #E2E8F0;
    --reminder-text: #0F172A;
    --reminder-muted: #64748B;
}

/* Tarjetas con jerarquía y separación más claras */
.reminders-container .reminder {
    position: relative;
    background: #FFFFFF;
    border: 1px solid var(--reminder-border);
    border-radius: 18px;
    padding: 22px 24px;
    margin-bottom: 14px;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.035);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

/* Acento discreto para distinguir el estado */
.reminders-container .reminder::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    border-radius: 18px 0 0 18px;
    background: #CBD5E1;
}

.reminders-container .reminder.reminder-overdue {
    border-color: #FECACA;
    background: linear-gradient(110deg, #FFF9F9 0%, #FFFFFF 38%);
}

.reminders-container .reminder.reminder-overdue::before {
    background: #DC2626;
}

.reminders-container .reminder.reminder-today {
    border-color: #BFDBFE;
    background: linear-gradient(110deg, #F7FAFF 0%, #FFFFFF 42%);
}

.reminders-container .reminder.reminder-today::before {
    background: #2563EB;
}

.reminders-container .reminder.reminder-tomorrow::before {
    background: #60A5FA;
}

.reminders-container .reminder.completed {
    background: #F8FAFC;
    border-color: #E2E8F0;
    box-shadow: none;
}

.reminders-container .reminder.completed::before {
    background: #94A3B8;
}

@media (hover: hover) {
    .reminders-container .reminder:not(.completed):hover {
        border-color: #BFDBFE;
        box-shadow: 0 8px 22px rgba(37, 99, 235, 0.075);
        transform: translateY(-1px);
    }
}

/* Título y estado */
.reminders-container .reminder-main h3 {
    color: var(--reminder-text);
    font-size: 18px;
    font-weight: 750;
    line-height: 1.4;
    letter-spacing: -0.015em;
    margin-top: 0;
    margin-bottom: 7px;
}

.reminders-container .reminder .status {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    padding: 5px 9px;
    border: 1px solid #DBEAFE;
    border-radius: 999px;
    background: #EFF6FF;
    color: #1D4ED8;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.3;
}

.reminders-container .reminder.reminder-overdue .status {
    color: #B91C1C;
    background: #FEF2F2;
    border-color: #FECACA;
}

.reminders-container .reminder.completed .status {
    color: #475569;
    background: #F1F5F9;
    border-color: #E2E8F0;
}

/* Fecha y hora como dos bloques informativos */
.reminders-container .reminder-datetime {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0;
}

.reminders-container .reminder-date-box {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    padding: 12px 13px;
    background: #F8FAFC;
    border: 1px solid #E8EEF5;
    border-radius: 12px;
}

.reminders-container .reminder-icon {
    flex: 0 0 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #EAF2FF;
    font-size: 16px;
}

.reminders-container .reminder-meta-label {
    display: block;
    color: var(--reminder-muted);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: .045em;
}

.reminders-container .reminder-date-box strong {
    display: block;
    color: #0F172A;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

/* Repetición y anticipación: etiquetas más legibles */
.reminders-container .reminder-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
}

.reminders-container .reminder-detail {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    color: #475569;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 9px;
    font-size: 12px;
    line-height: 1.45;
}

/* Descripción */
.reminders-container .reminder-description {
    color: #475569;
    background: #F8FAFC;
    border-left: 3px solid #CBD5E1;
    border-radius: 0 9px 9px 0;
    padding: 10px 12px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

/* Acciones con alineación consistente; conserva enlaces y formularios existentes */
.reminders-container .reminder .actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    padding-top: 14px;
    border-top: 1px solid #EEF2F7;
}

.reminders-container .reminder .actions form {
    display: inline-flex;
    margin: 0;
}

.reminders-container .reminder .actions a,
.reminders-container .reminder .actions button {
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.2;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.reminders-container .reminder .actions .action-delete {
    color: #B91C1C;
    background: #FFF7F7;
    border-color: #FECACA;
}

.reminders-container .reminder .actions .action-delete:hover {
    color: #991B1B;
    background: #FEF2F2;
    border-color: #FCA5A5;
}

/* Las tarjetas completadas se distinguen sin perder legibilidad */
.reminders-container .reminder.completed h3 {
    color: #475569;
}

.reminders-container .reminder.completed .reminder-date-box {
    background: #F1F5F9;
}

/* Ajustes para pantallas pequeñas */
@media (max-width: 600px) {
    .reminders-container .reminder {
        padding: 17px 16px 16px 19px;
        margin-bottom: 11px;
        border-radius: 15px;
    }

    .reminders-container .reminder::before {
        border-radius: 15px 0 0 15px;
    }

    .reminders-container .reminder-main h3 {
        font-size: 16px;
    }

    .reminders-container .reminder-datetime {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
        margin-top: 12px;
    }

    .reminders-container .reminder-date-box {
        align-items: flex-start;
        gap: 7px;
        padding: 9px 8px;
    }

    .reminders-container .reminder-icon {
        flex-basis: 27px;
        width: 27px;
        height: 27px;
        font-size: 13px;
        border-radius: 7px;
    }

    .reminders-container .reminder-date-box strong {
        font-size: 12px;
    }

    .reminders-container .reminder-details {
        gap: 6px;
    }

    .reminders-container .reminder-detail {
        padding: 6px 8px;
        font-size: 11px;
    }

    .reminders-container .reminder .actions {
        display: flex;
        gap: 7px;
    }

    .reminders-container .reminder .actions form {
        flex: 1 1 auto;
    }

    .reminders-container .reminder .actions a,
    .reminders-container .reminder .actions button {
        min-height: 38px;
        padding: 8px 9px;
        font-size: 11px;
    }
}

@media (max-width: 360px) {
    .reminders-container .reminder-datetime {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reminders-container .reminder,
    .reminders-container .reminder .actions a,
    .reminders-container .reminder .actions button {
        transition: none;
    }
}


/* =========================================================
   NUNCA — FASE 3: FECHAS Y REFERENCIAS TEMPORALES
   ========================================================= */
.reminders-container .reminder-timing-note {
    display: flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    max-width: 100%;
    margin: 0 0 13px;
    padding: 8px 11px;
    color: #1D4ED8;
    background: #EFF6FF;
    border: 1px solid #DBEAFE;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.45;
}

.reminders-container .reminder-timing-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: #DBEAFE;
    font-size: 15px;
}

.reminders-container .reminder.reminder-overdue .reminder-timing-note {
    color: #B91C1C;
    background: #FEF2F2;
    border-color: #FECACA;
}

.reminders-container .reminder.reminder-overdue .reminder-timing-icon {
    background: #FEE2E2;
}

.reminders-container .reminder.completed .reminder-timing-note {
    color: #475569;
    background: #F1F5F9;
    border-color: #E2E8F0;
}

@media (max-width: 600px) {
    .reminders-container .reminder-timing-note {
        font-size: 11px;
        padding: 7px 9px;
    }
}


/* =========================================================
   NUNCA — FASE 4: EXPERIENCIA MÓVIL Y MICROINTERACCIONES
   Ajustes visuales. No cambia la lógica de PHP/JavaScript.
   ========================================================= */

/* Foco visible para navegación por teclado */
.reminders-container .reminder a:focus-visible,
.reminders-container .reminder button:focus-visible,
.hero button:focus-visible,
.hero textarea:focus-visible,
.hero select:focus-visible,
.dashboard-header-actions a:focus-visible,
.dashboard-header-actions button:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.35);
    outline-offset: 3px;
}

/* Estados interactivos con transición sutil */
.reminders-container .reminder .actions a,
.reminders-container .reminder .actions button,
.dashboard-header-actions a,
.dashboard-header-actions button,
.hero .button,
.hero .secondary-button {
    -webkit-tap-highlight-color: transparent;
    transition:
        background-color .16s ease,
        border-color .16s ease,
        color .16s ease,
        box-shadow .16s ease,
        transform .16s ease;
}

@media (hover: hover) and (pointer: fine) {
    .reminders-container .reminder .actions a:hover,
    .reminders-container .reminder .actions button:hover,
    .dashboard-header-actions a:hover,
    .dashboard-header-actions button:hover,
    .hero .button:hover,
    .hero .secondary-button:hover {
        box-shadow: 0 3px 10px rgba(15, 23, 42, 0.08);
    }
}

.reminders-container .reminder .actions a:active,
.reminders-container .reminder .actions button:active,
.hero .button:active,
.hero .secondary-button:active {
    transform: translateY(1px);
}

/* Los estados deshabilitados se perciben claramente */
.reminders-container .reminder .actions button:disabled,
.hero button:disabled,
.dashboard-header-actions button:disabled {
    cursor: wait;
    opacity: .65;
    box-shadow: none;
    transform: none;
}

/* Evitar desbordamientos de textos largos y etiquetas */
.reminders-container .reminder,
.reminders-container .reminder-main,
.reminders-container .reminder-details,
.reminders-container .reminder-date-box,
.reminders-container .reminder-timing-note {
    min-width: 0;
}

.reminders-container .reminder-main h3,
.reminders-container .reminder-date-box strong,
.reminders-container .reminder-detail,
.reminders-container .reminder-timing-note,
.reminders-container .reminder-description {
    overflow-wrap: anywhere;
}

/* Tablets y móviles */
@media (max-width: 768px) {
    .container {
        width: min(100% - 28px, 100%);
    }

    .reminders-container .reminder {
        padding: 17px 16px 16px 19px;
    }

    .reminders-container .reminder .actions {
        gap: 8px;
    }
}

/* Móviles estrechos: apilar fecha y hora y dar espacio a los botones */
@media (max-width: 480px) {
    .reminders-container .reminder-datetime {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .reminders-container .reminder-date-box {
        align-items: center;
        padding: 10px 11px;
    }

    .reminders-container .reminder .actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
        gap: 8px;
    }

    .reminders-container .reminder .actions form {
        display: flex;
        min-width: 0;
    }

    .reminders-container .reminder .actions form button,
    .reminders-container .reminder .actions a,
    .reminders-container .reminder .actions button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-width: 0;
        min-height: 42px;
        padding: 9px 8px;
        text-align: center;
        white-space: normal;
    }

    .reminders-container .reminder .actions form:last-child {
        grid-column: auto;
    }

    .reminders-container .reminder .actions > a {
        min-width: 0;
    }

    .reminders-container .reminder-details {
        align-items: flex-start;
    }

    .reminders-container .reminder-detail {
        max-width: 100%;
        white-space: normal;
    }

    .reminders-container .reminder-timing-note {
        align-items: flex-start;
    }
}

/* Reducir animación si el usuario así lo prefiere */
@media (prefers-reduced-motion: reduce) {
    .reminders-container .reminder,
    .reminders-container .reminder .actions a,
    .reminders-container .reminder .actions button,
    .dashboard-header-actions a,
    .dashboard-header-actions button,
    .hero .button,
    .hero .secondary-button {
        transition: none !important;
        transform: none !important;
        scroll-behavior: auto !important;
    }
}


/* NUNCA — Fase 4.1: refinamiento móvil */

@media (max-width: 480px) {
    .reminders-container .reminder {
        padding: 15px 13px 13px 16px;
        margin-bottom: 10px;
        border-radius: 14px;
    }

    .reminders-container .reminder-main h3 {
        font-size: 15px;
        line-height: 1.35;
        margin-bottom: 5px;
    }

    .reminders-container .reminder .status {
        padding: 4px 8px;
        font-size: 11px;
    }

    .reminders-container .reminder-datetime {
        grid-template-columns: 1fr;
        gap: 7px;
        margin: 10px 0;
    }

    .reminders-container .reminder-date-box {
        padding: 8px 9px;
        gap: 9px;
        border-radius: 10px;
    }

    .reminders-container .reminder-date-box strong {
        font-size: 12px;
        line-height: 1.35;
    }

    .reminders-container .reminder-meta-label {
        font-size: 10px;
        margin-bottom: 2px;
    }

    .reminders-container .reminder-timing-note {
        margin-bottom: 9px;
        padding: 6px 8px;
        font-size: 11px;
    }

    .reminders-container .reminder-details {
        gap: 6px;
        margin-bottom: 10px;
    }

    .reminders-container .reminder-detail {
        padding: 5px 7px;
        font-size: 10px;
        line-height: 1.35;
    }

    .reminders-container .reminder .actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
        margin-top: 10px;
        padding-top: 10px;
    }

    .reminders-container .reminder .actions form {
        display: flex;
        min-width: 0;
        margin: 0;
    }

    .reminders-container .reminder .actions a,
    .reminders-container .reminder .actions button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-width: 0;
        min-height: 40px;
        padding: 7px 6px;
        border-radius: 8px;
        font-size: 11px;
        line-height: 1.25;
        text-align: center;
        white-space: normal;
    }

    /* Centrar Eliminar debajo de Completar y Editar */
    .reminders-container .reminder .actions > form:last-child {
        grid-column: 1 / -1;
        width: min(100%, 220px);
        justify-self: center;
    }

    .reminders-container .reminder .actions > form:last-child button {
        width: 100%;
    }

    /* En completados solo quedan Editar y Eliminar */
    .reminders-container .reminder.completed .actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .reminders-container .reminder.completed .actions > form:last-child {
        grid-column: auto;
        width: 100%;
    }
}

@media (max-width: 360px) {
    .reminders-container .reminder .actions {
        grid-template-columns: 1fr;
    }

    .reminders-container .reminder .actions > form:last-child,
    .reminders-container .reminder.completed .actions > form:last-child {
        grid-column: auto;
        width: 100%;
    }

    .reminders-container .reminder .actions form,
    .reminders-container .reminder .actions > a {
        width: 100%;
    }
}

/* NUNCA — Fase 5: mensajes de confirmación */
.flash-message {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 18px;
    padding: 13px 15px;
    border: 1px solid #BBF7D0;
    border-radius: 12px;
    background: #F0FDF4;
    color: #166534;
    font-size: 14px;
    line-height: 1.5;
}

.flash-message--error {
    border-color: #FECACA;
    background: #FEF2F2;
    color: #991B1B;
}

.flash-message__icon {
    flex: 0 0 auto;
    font-weight: 800;
}

@media (max-width: 480px) {
    .flash-message {
        margin-bottom: 14px;
        padding: 11px 12px;
        font-size: 13px;
    }
}



/* NUNCA: refinamiento de la vista previa IA dentro de dashboard.php
   La vista previa del Dashboard usa .result y .result-row (no .create-reminder-result). */
body .result#result {
    box-sizing: border-box;
    margin-top: 18px;
    padding: 20px;
    border: 1px solid #D8E5FF;
    border-radius: 18px;
    background: #F8FAFF;
    box-shadow: none;
}

body .result#result h3 {
    margin: 0 0 16px;
    color: #182230;
    font-size: 21px;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

body .result#result .result-row {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: start;
    column-gap: 6px;
    row-gap: 2px;
    margin: 0 0 10px;
    padding: 10px 12px;
    border: 1px solid #E5EAF3;
    border-radius: 11px;
    background: #FFFFFF;
    color: #667085;
    font-size: 15px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

body .result#result .result-row strong {
    color: #182230;
    font-weight: 700;
}

body .result#result .result-row span {
    min-width: 0;
    overflow-wrap: anywhere;
}

body .result#result #confirmButton,
body .result#result #changeButton {
    min-height: 46px;
    margin-top: 5px;
    padding: 11px 16px;
    border-radius: 11px;
    font-size: 15px;
    line-height: 1.35;
}

body .result#result #confirmButton {
    margin-right: 8px;
}

body .result#result #changeButton {
    border: 1px solid #D9DEE8;
    background: #FFFFFF;
    color: #182230;
}

@media (min-width: 700px) {
    body .result#result .result-row {
        grid-template-columns: 120px minmax(0, 1fr);
    }
}

@media (max-width: 600px) {
    body .result#result {
        margin-top: 16px;
        padding: 15px;
        border-radius: 15px;
    }

    body .result#result h3 {
        margin-bottom: 12px;
        font-size: 19px;
    }

    body .result#result .result-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 3px;
        margin-bottom: 8px;
        padding: 9px 10px;
        font-size: 14px;
    }

    body .result#result #confirmButton,
    body .result#result #changeButton {
        width: 100%;
        margin: 5px 0 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    body .result#result #confirmButton,
    body .result#result #changeButton {
        transition: none !important;
    }
}

/* NUNCA — Fase 7: presentación de Mi plan en account.php */
body .account-plan .plan-box {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 22px;
    padding: 22px;
    border: 1px solid #E1E7F0;
    border-radius: 18px;
    background: #FFFFFF;
}

body .account-plan .plan-main {
    min-width: 0;
    padding: 18px;
    border: 1px solid #E1E7F0;
    border-radius: 14px;
    background: #F8FAFF;
}

body .account-plan .plan-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 14px;
}

body .account-plan .plan-label {
    color: #667085;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
}

body .account-plan .plan-status {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border: 1px solid #BBF7D0;
    border-radius: 999px;
    background: #F0FDF4;
    color: #166534;
    font-size: 12px;
    font-weight: 700;
}

body .account-plan .plan-name {
    display: block;
    color: #172033;
    font-size: clamp(25px, 3vw, 32px);
    line-height: 1.2;
    letter-spacing: -.03em;
}

body .account-plan .plan-features {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    min-width: 0;
}

body .account-plan .plan-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border: 1px solid #E6EAF1;
    border-radius: 12px;
    background: #FFFFFF;
}

body .account-plan .plan-feature-icon {
    display: inline-flex;
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #EAF2FF;
    color: #2457D6;
    font-size: 14px;
    font-weight: 800;
}

body .account-plan .plan-feature strong {
    display: block;
    margin-bottom: 3px;
    color: #182230;
    font-size: 15px;
    line-height: 1.4;
}

body .account-plan .plan-feature small {
    display: block;
    color: #667085;
    font-size: 13px;
    line-height: 1.5;
}

body .account-plan .plan-upgrade {
    padding: 17px;
    border: 1px solid #CFE0FF;
    border-radius: 14px;
    background: #F4F8FF;
}

body .account-plan .plan-upgrade > strong {
    display: block;
    color: #182230;
    font-size: 16px;
    line-height: 1.4;
}

body .account-plan .plan-upgrade p {
    margin: 6px 0 14px;
    color: #667085;
    font-size: 14px;
    line-height: 1.5;
}

body .account-plan .plan-upgrade-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 11px 16px;
    border-radius: 10px;
    background: #2457D6;
    color: #FFFFFF;
    font-weight: 700;
    text-decoration: none;
    transition: background-color .16s ease, transform .16s ease;
}

body .account-plan .plan-upgrade-button:hover {
    background: #1D49B8;
}

body .account-plan .plan-upgrade-button:focus-visible {
    outline: 3px solid rgba(36, 87, 214, .25);
    outline-offset: 3px;
}

@media (max-width: 700px) {
    body .account-plan .plan-box {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
        padding: 14px;
        border-radius: 15px;
    }

    body .account-plan .plan-main {
        padding: 16px;
    }

    body .account-plan .plan-features {
        gap: 10px;
    }

    body .account-plan .plan-feature {
        padding: 12px;
    }

    body .account-plan .plan-upgrade {
        padding: 15px;
    }

    body .account-plan .plan-upgrade-button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    body .account-plan .plan-upgrade-button {
        transition: none !important;
    }
}

/* Contacto de soporte en Mi cuenta */
.support-contact {
    max-width: 560px;
    margin: 0 auto 22px;
    padding: 18px 20px;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 14px;
    background: var(--surface, #ffffff);
    text-align: center;
}

.support-contact strong {
    display: block;
    margin-bottom: 6px;
    color: var(--text, #1f2937);
    font-size: 15px;
}

.support-contact p {
    margin: 0 0 8px;
    color: var(--muted, #6b7280);
    font-size: 13px;
    line-height: 1.5;
}

.support-contact a {
    color: var(--primary, #2563eb);
    font-weight: 600;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.support-contact a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .support-contact {
        padding: 16px;
        margin-bottom: 18px;
    }
}

