 @import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap");

:root {
    --primary: #0f766e;
    --primary-hover: #115e59;
    --primary-soft: #ccfbf1;
    --primary-dark: #0f172a;
    --accent: #22c55e;
    --accent-soft: #dcfce7;
    --warm: #f97316;
    --warm-soft: #ffedd5;
    --background: #f8fafc;
    --surface: #ffffff;
    --text: #111827;
    --muted: #64748b;
    --border: #e5e7eb;
    --danger: #991b1b;
    --danger-soft: #fee2e2;
    --warning: #92400e;
    --warning-soft: #fef3c7;
    --info: #0f766e;
    --info-soft: #ccfbf1;
    --shadow: 0 15px 40px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 25px 70px rgba(15, 23, 42, 0.12);
    --radius: 24px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", Arial, Helvetica, sans-serif;
    background: var(--background);
    color: var(--text);
}

a {
    color: inherit;
}

.site-header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 18px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    position: sticky;
    top: 0;
    z-index: 20;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--primary-dark);
    font-weight: 900;
}

.brand-text,
.footer-brand span:last-child {
    font-size: 28px;
    letter-spacing: -0.04em;
}

.brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--surface);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    box-shadow: 0 10px 25px rgba(15, 118, 110, 0.28);
}

.brand-icon.small {
    width: 32px;
    height: 32px;
    border-radius: 11px;
}

.logo {
    font-size: 28px;
    font-weight: 900;
    color: var(--primary);
    text-decoration: none;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.main-nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 15px;
}

.main-nav a:hover {
    color: var(--primary);
}

.btn-login {
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary) !important;
}

.btn-register {
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--primary);
    color: var(--surface) !important;
}

.nav-user {
    font-weight: 800;
    color: var(--primary-dark);
}

.logout-form {
    display: inline;
}

.logout-button {
    border: none;
    background: var(--danger-soft);
    color: var(--danger);
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
}

.hero {
    padding: 95px 8% 78px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 52px;
    align-items: center;
    background:
        radial-gradient(circle at top left, rgba(34, 197, 94, 0.14), transparent 35%),
        linear-gradient(135deg, #ecfdf5 0%, #f8fafc 55%, #fff7ed 100%);
}

.eyebrow {
    display: inline-block;
    background: var(--primary-soft);
    color: var(--primary);
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 900;
    margin-bottom: 22px;
}

.hero h1 {
    font-size: 58px;
    line-height: 1.04;
    color: var(--primary-dark);
    margin-bottom: 24px;
    letter-spacing: -0.06em;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 20px;
    line-height: 1.65;
    color: var(--muted);
    margin-bottom: 34px;
    max-width: 680px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 15px 26px;
    border-radius: 999px;
    font-weight: 900;
    text-decoration: none;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: var(--surface);
    box-shadow: 0 10px 25px rgba(15, 118, 110, 0.25);
}

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

.btn-secondary {
    background: var(--surface);
    color: var(--primary-dark);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.hero-card {
    background: var(--surface);
    border-radius: 32px;
    padding: 34px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.saving-badge {
    display: inline-block;
    background: var(--accent-soft);
    color: #166534;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 900;
    margin-bottom: 24px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
    font-size: 18px;
}

.price-row strong {
    color: var(--primary-dark);
}

.price-row span {
    color: var(--primary);
    font-weight: 900;
}

section {
    padding: 70px 8%;
}

.section-title {
    text-align: center;
    margin-bottom: 42px;
}

.section-title h2 {
    font-size: 40px;
    color: var(--primary-dark);
    margin-bottom: 12px;
    letter-spacing: -0.04em;
}

.section-title p {
    color: var(--muted);
    font-size: 18px;
}

.platforms,
.catalog-grid,
.groups-grid,
.step-grid,
.benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.step-grid {
    grid-template-columns: repeat(4, 1fr);
}

.platform-card,
.catalog-card,
.group-card,
.benefit,
.dashboard-panel,
.members-group-card,
.group-detail-card,
.group-action-card,
.payment-card,
.request-card,
.profile-preview-card,
.profile-form-card,
.auth-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.platform-card,
.catalog-card,
.group-card,
.benefit {
    padding: 28px;
}

.platform-card h3,
.catalog-card h3,
.group-card h3,
.benefit h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--primary-dark);
}

.platform-card p,
.catalog-card p,
.group-description,
.benefit p {
    color: var(--muted);
    line-height: 1.55;
    margin-bottom: 18px;
}

.price {
    font-size: 30px;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 8px;
}

.saving {
    color: #166534;
    font-weight: 800;
    margin-bottom: 18px;
}

.platform-card a,
.catalog-button {
    display: inline-block;
    text-decoration: none;
    color: var(--surface);
    background: var(--primary);
    padding: 12px 20px;
    border-radius: 999px;
    font-weight: 900;
    border: none;
    cursor: pointer;
}

.platform-card a:hover,
.catalog-button:hover {
    background: var(--primary-hover);
}

.secondary-button {
    background: var(--primary-soft) !important;
    color: var(--primary) !important;
}

.catalog-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: var(--primary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
}

.catalog-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.catalog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 55px rgba(15, 23, 42, 0.12);
}

.catalog-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
    font-size: 15px;
}

.catalog-meta span {
    color: var(--primary);
    font-weight: 900;
}

.catalog-meta strong {
    color: var(--primary-dark);
}

.page-hero {
    padding: 80px 8%;
    background:
        radial-gradient(circle at top left, rgba(34, 197, 94, 0.12), transparent 35%),
        linear-gradient(135deg, #ecfdf5 0%, #f8fafc 60%, #fff7ed 100%);
    text-align: center;
}

.page-hero h1 {
    font-size: 50px;
    color: var(--primary-dark);
    margin-bottom: 18px;
    letter-spacing: -0.05em;
}

.page-hero p {
    font-size: 20px;
    color: var(--muted);
    max-width: 760px;
    margin: 0 auto;
    line-height: 1.6;
}

.steps {
    background: var(--primary-dark);
    color: var(--surface);
}

.steps .section-title h2,
.steps .section-title p {
    color: var(--surface);
}

.step {
    background: rgba(255, 255, 255, 0.08);
    padding: 28px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.step-number {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    margin-bottom: 18px;
}

.step h3 {
    margin-bottom: 10px;
    font-size: 22px;
}

.step p {
    color: #cbd5e1;
    line-height: 1.55;
}

.site-footer {
    background: var(--primary-dark);
    color: #cbd5e1;
    padding: 42px 8%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.site-footer p {
    margin-top: 10px;
    max-width: 420px;
    line-height: 1.5;
}

.footer-brand {
    color: var(--surface);
}

.footer-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    align-items: center;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 700;
}

.messages-container {
    padding: 20px 8% 0;
}

.message {
    max-width: 1100px;
    margin: 0 auto 12px;
    padding: 14px 18px;
    border-radius: 16px;
    font-weight: 800;
}

.message-success {
    background: var(--accent-soft);
    color: #166534;
}

.message-error {
    background: var(--danger-soft);
    color: var(--danger);
}

.message-info {
    background: var(--info-soft);
    color: var(--info);
}

.auth-section {
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 70px 8%;
    background:
        radial-gradient(circle at top left, rgba(34, 197, 94, 0.12), transparent 35%),
        linear-gradient(135deg, #ecfdf5 0%, #f8fafc 55%, #fff7ed 100%);
}

.auth-card {
    width: 100%;
    max-width: 480px;
    padding: 36px;
}

.wide-card {
    max-width: 620px;
}

.auth-card h1 {
    font-size: 36px;
    color: var(--primary-dark);
    margin-bottom: 12px;
    letter-spacing: -0.04em;
}

.auth-card p {
    color: var(--muted);
    line-height: 1.5;
    margin-bottom: 26px;
}

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

.auth-form label {
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.auth-form input,
.auth-form select,
.auth-form textarea {
    padding: 14px 16px;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    margin-bottom: 18px;
    font-size: 16px;
    outline: none;
    font-family: "Inter", Arial, Helvetica, sans-serif;
    background: var(--surface);
}

.auth-form input:focus,
.auth-form select:focus,
.auth-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.13);
}

.auth-form input[type="file"] {
    background: #f8fafc;
}

.auth-button {
    border: none;
    background: var(--primary);
    color: var(--surface);
    padding: 15px 22px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 16px;
    cursor: pointer;
    margin-top: 8px;
}

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

.auth-link {
    text-align: center;
    margin-top: 24px;
    margin-bottom: 0 !important;
}

.auth-link a {
    color: var(--primary);
    font-weight: 900;
    text-decoration: none;
}

.form-errors {
    background: var(--danger-soft);
    color: var(--danger);
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 18px;
    font-weight: 800;
}

.group-top {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.group-top h3 {
    font-size: 22px;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.group-top p {
    color: var(--muted);
    font-weight: 700;
}

.group-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 20px;
}

.group-info div {
    background: #f8fafc;
    border-radius: 16px;
    padding: 14px;
    border: 1px solid var(--border);
}

.group-info span {
    display: block;
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 4px;
}

.group-info strong {
    color: var(--primary-dark);
    font-size: 17px;
}

.verified-badge,
.pending-badge {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 14px;
    margin-bottom: 18px;
}

.verified-badge {
    background: var(--accent-soft);
    color: #166534;
}

.pending-badge {
    background: var(--warning-soft);
    color: var(--warning);
}

.empty-state {
    grid-column: 1 / -1;
    background: var(--surface);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    border: 1px solid var(--border);
}

.empty-state h3 {
    color: var(--primary-dark);
    font-size: 26px;
    margin-bottom: 12px;
}

.empty-state p {
    color: var(--muted);
    font-size: 18px;
}

.group-card-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.group-detail-layout {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr;
    gap: 28px;
    align-items: start;
}

.group-detail-card,
.group-action-card {
    padding: 32px;
}

.group-detail-header {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 28px;
}

.group-detail-header h2 {
    color: var(--primary-dark);
    font-size: 30px;
    margin-bottom: 10px;
}

.group-detail-header p {
    color: var(--muted);
    line-height: 1.6;
}

.group-detail-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.group-detail-info div {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px;
}

.group-detail-info span {
    display: block;
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 6px;
    font-weight: 800;
}

.group-detail-info strong {
    color: var(--primary-dark);
    font-size: 20px;
}

.group-action-card h3 {
    color: var(--primary-dark);
    font-size: 26px;
    margin-bottom: 12px;
}

.group-action-card p {
    color: var(--muted);
    line-height: 1.5;
    margin-bottom: 24px;
}

.detail-button {
    display: block;
    text-align: center;
}

.info-box {
    background: var(--info-soft);
    color: var(--info);
    padding: 16px;
    border-radius: 16px;
    font-weight: 800;
}

.join-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.join-summary div {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
}

.join-summary span {
    display: block;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 6px;
}

.join-summary strong {
    color: var(--primary-dark);
    font-size: 18px;
}

.requests-list,
.payments-list {
    max-width: 950px;
    margin: 0 auto;
    display: grid;
    gap: 18px;
}

.request-card,
.payment-card {
    padding: 24px;
    display: grid;
    grid-template-columns: 1.4fr auto;
    gap: 18px;
    align-items: center;
}

.request-card h3,
.payment-card h3 {
    color: var(--primary-dark);
    font-size: 22px;
    margin-bottom: 6px;
}

.request-card p,
.payment-card p {
    color: var(--muted);
    font-weight: 700;
}

.request-status,
.payment-status {
    padding: 9px 16px;
    border-radius: 999px;
    font-weight: 900;
    text-align: center;
    width: fit-content;
}

.status-pending {
    background: var(--warning-soft);
    color: var(--warning);
}

.status-accepted,
.status-paid {
    background: var(--accent-soft);
    color: #166534;
}

.status-rejected,
.status-failed {
    background: var(--danger-soft);
    color: var(--danger);
}

.status-cancelled {
    background: #e5e7eb;
    color: #374151;
}

.request-details,
.payment-info {
    grid-column: 1 / -1;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    color: var(--muted);
    font-weight: 700;
}

.request-message {
    grid-column: 1 / -1;
    background: #f8fafc;
    border-radius: 16px;
    padding: 16px;
    border: 1px solid var(--border);
}

.request-message strong {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-dark);
}

.request-message p {
    color: var(--muted);
    line-height: 1.5;
}

.request-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.request-actions form {
    margin: 0;
}

.accept-button,
.reject-button,
.pay-button {
    border: none;
    padding: 12px 20px;
    border-radius: 999px;
    font-weight: 900;
    cursor: pointer;
}

.accept-button {
    background: var(--accent-soft);
    color: #166534;
}

.reject-button {
    background: var(--danger-soft);
    color: var(--danger);
}

.pay-button {
    background: var(--primary);
    color: var(--surface);
}

.payment-amount {
    font-size: 28px;
    color: var(--primary);
    font-weight: 900;
}

.paid-note {
    color: #166534;
    font-weight: 900;
}

.dashboard-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

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

.dashboard-panel {
    padding: 30px;
}

.dashboard-panel h2 {
    font-size: 26px;
    color: var(--primary-dark);
    margin-bottom: 24px;
}

.dashboard-item {
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 16px;
    background: #f8fafc;
}

.dashboard-item h3 {
    color: var(--primary-dark);
    font-size: 20px;
    margin-bottom: 6px;
}

.dashboard-item p {
    color: var(--muted);
    font-weight: 700;
    margin-bottom: 14px;
}

.dashboard-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.dashboard-meta span {
    color: var(--primary);
    font-weight: 900;
}

.dashboard-meta strong {
    color: var(--primary-dark);
}

.empty-small {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 18px;
    padding: 24px;
    color: var(--muted);
    font-weight: 700;
}

.members-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    gap: 24px;
}

.members-group-card {
    padding: 28px;
}

.members-group-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.members-group-header h3 {
    font-size: 24px;
    color: var(--primary-dark);
    margin-bottom: 6px;
}

.members-group-header p {
    color: var(--muted);
    font-weight: 700;
}

.members-group-meta span {
    display: inline-block;
    background: var(--primary-soft);
    color: var(--primary);
    padding: 9px 14px;
    border-radius: 999px;
    font-weight: 900;
}

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

.member-item {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    background: #f8fafc;
    border-radius: 18px;
    padding: 18px;
    border: 1px solid var(--border);
}

.member-item strong {
    display: block;
    color: var(--primary-dark);
    font-size: 18px;
    margin-bottom: 4px;
}

.member-item span {
    color: var(--muted);
    font-weight: 700;
}

.profile-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 28px;
    align-items: start;
}

.profile-preview-card,
.profile-form-card {
    padding: 32px;
}

.profile-preview-card {
    text-align: center;
}

.profile-preview-card h2,
.profile-form-card h2 {
    color: var(--primary-dark);
    font-size: 28px;
    margin-bottom: 24px;
}

.profile-avatar {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 18px;
    border: 5px solid var(--primary-soft);
}

.profile-avatar-placeholder {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 54px;
    font-weight: 900;
    margin: 0 auto 18px;
}

.profile-preview-card h3 {
    color: var(--primary-dark);
    font-size: 26px;
    margin-bottom: 8px;
}

.profile-preview-card p {
    color: var(--muted);
    font-weight: 700;
}

.profile-bio {
    margin-top: 20px;
    background: #f8fafc;
    border-radius: 18px;
    padding: 18px;
    color: var(--muted);
    line-height: 1.5;
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
}

.checkbox-row input {
    margin-top: 4px;
    width: auto;
}

.checkbox-row label {
    margin-bottom: 0;
    line-height: 1.4;
}

@media (max-width: 1100px) {
    .step-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .main-nav {
        gap: 12px;
    }
}

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

    .main-nav {
        width: 100%;
    }

    .hero {
        grid-template-columns: 1fr;
        padding-top: 60px;
    }

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

    .platforms,
    .catalog-grid,
    .groups-grid,
    .step-grid,
    .benefits,
    .dashboard-grid,
    .profile-layout,
    .group-detail-layout {
        grid-template-columns: 1fr;
    }

    .group-detail-info,
    .join-summary {
        grid-template-columns: 1fr;
    }

    .group-detail-header,
    .members-group-header,
    .member-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .request-card,
    .payment-card {
        grid-template-columns: 1fr;
    }

    .page-hero h1 {
        font-size: 38px;
    }

    .section-title h2 {
        font-size: 32px;
    }
}
.form-help {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 16px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
    font-weight: 600;
    margin-bottom: 18px;
}

.profile-form-card h3 {
    color: var(--primary-dark);
    font-size: 20px;
    margin: 26px 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}
.brand-logo {
    height: 90px;
    width: auto;
    display: block;
    object-fit: contain;
}

.footer-logo {
    height: 80px;
    width: auto;
    display: block;
    object-fit: contain;
    border-radius: 10px;
}

.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

@media (max-width: 900px) {
    .brand-logo {
        height: 48px;
    }

    .footer-logo {
        height: 44px;
    }
}
.support-widget {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 9999;
}

.support-main-button {
    width: 58px;
    height: 58px;
    border-radius: 999px;
    border: none;
    background: #111827;
    color: #ffffff;
    font-size: 1.65rem;
    cursor: pointer;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.28);
}

.support-panel {
    display: none;
    position: absolute;
    right: 0;
    bottom: 72px;
    width: 260px;
    padding: 18px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
}

.support-widget:hover .support-panel,
.support-widget:focus-within .support-panel {
    display: block;
}

.support-panel h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
    color: #111827;
}

.support-panel p {
    margin: 0 0 14px;
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.4;
}

.support-link {
    display: block;
    text-decoration: none;
    text-align: center;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f1f5f9;
    color: #111827;
    font-weight: 700;
    margin-top: 8px;
}

.support-link:hover {
    background: #e2e8f0;
}

.whatsapp-link {
    background: #dcfce7;
    color: #166534;
}

.whatsapp-link:hover {
    background: #bbf7d0;
}
.compact-groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 14px;
}

.compact-group-card {
    padding: 14px;
    border-radius: 16px;
}

.compact-group-card h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.compact-group-card p {
    font-size: 0.84rem;
    line-height: 1.35;
}

.compact-group-card .group-card-header {
    gap: 8px;
    align-items: flex-start;
}

.compact-group-card .group-card-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 12px;
}

.compact-group-card .group-card-meta div {
    padding: 8px;
    border-radius: 10px;
}

.compact-group-card .group-card-meta span {
    font-size: 0.72rem;
}

.compact-group-card .group-card-meta strong {
    font-size: 0.9rem;
}

.compact-group-card .group-card-actions {
    margin-top: 12px;
    display: grid;
    gap: 8px;
}

.compact-group-card .catalog-button {
    padding: 8px 10px;
    font-size: 0.82rem;
    border-radius: 10px;
}

@media (min-width: 1200px) {
    .compact-groups-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 1199px) and (min-width: 900px) {
    .compact-groups-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 899px) and (min-width: 600px) {
    .compact-groups-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 599px) {
    .compact-groups-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* =========================================================
   HEADER / NAVBAR SPLITYU
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #e5e7eb;
    backdrop-filter: blur(12px);
}

.header-container {
    max-width: 1220px;
    margin: 0 auto;
    padding: 12px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-logo {
    height: 62px;
    width: auto;
    display: block;
    object-fit: contain;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 12px;
    border-radius: 999px;
    color: #111827;
    text-decoration: none;
    font-weight: 750;
    font-size: 0.95rem;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.nav-link:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 16px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 850;
    font-size: 0.94rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    white-space: nowrap;
}

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

.nav-button-primary {
    background: #10b981;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(16, 185, 129, 0.24);
}

.nav-button-primary:hover {
    background: #059669;
    color: #ffffff;
}

.nav-button-secondary {
    background: #111827;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.18);
}

.nav-button-secondary:hover {
    background: #020617;
    color: #ffffff;
}

.notification-button {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #111827;
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.notification-button:hover {
    background: #eef2ff;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.10);
}

.notification-icon {
    font-size: 1.15rem;
    line-height: 1;
}

.notification-badge {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 21px;
    height: 21px;
    padding: 0 6px;
    border-radius: 999px;
    background: #ef4444;
    color: #ffffff;
    border: 2px solid #ffffff;
    font-size: 0.72rem;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.user-menu {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.user-menu-button {
    min-height: 42px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #111827;
    padding: 9px 14px;
    border-radius: 999px;
    font-weight: 850;
    font-size: 0.94rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.user-menu-button:hover {
    background: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.10);
}

.user-menu-arrow {
    color: #64748b;
    font-size: 0.82rem;
}

.user-dropdown {
    display: none;
    position: absolute;
    top: 52px;
    right: 0;
    min-width: 245px;
    padding: 8px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.18);
    z-index: 2000;
}

.user-menu:hover .user-dropdown,
.user-menu:focus-within .user-dropdown {
    display: block;
}

.user-dropdown::before {
    content: "";
    position: absolute;
    top: -10px;
    right: 24px;
    width: 18px;
    height: 18px;
    background: #ffffff;
    border-left: 1px solid #e5e7eb;
    border-top: 1px solid #e5e7eb;
    transform: rotate(45deg);
}

.user-dropdown a,
.user-dropdown button {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 40px;
    padding: 10px 12px;
    border-radius: 12px;
    border: none;
    background: transparent;
    color: #111827;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-family: inherit;
    font-size: 0.94rem;
    font-weight: 750;
    text-align: left;
    cursor: pointer;
}

.user-dropdown a:hover,
.user-dropdown button:hover {
    background: #f1f5f9;
}

.dropdown-form {
    margin: 4px 0 0;
    padding-top: 4px;
    border-top: 1px solid #e5e7eb;
}

.dropdown-form button {
    color: #dc2626;
}

.mini-badge {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #ef4444;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* =========================================================
   SOPORTE / CHAT FLOTANTE
   ========================================================= */

.support-widget {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 9999;
}

.support-main-button {
    width: 58px;
    height: 58px;
    border-radius: 999px;
    border: none;
    background: #111827;
    color: #ffffff;
    font-size: 1.65rem;
    cursor: pointer;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.28);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.support-main-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 45px rgba(15, 23, 42, 0.34);
}

.support-panel {
    display: none;
    position: absolute;
    right: 0;
    bottom: 72px;
    width: 270px;
    padding: 18px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
}

.support-widget:hover .support-panel,
.support-widget:focus-within .support-panel {
    display: block;
}

.support-panel h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
    color: #111827;
}

.support-panel p {
    margin: 0 0 14px;
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.4;
}

.support-link {
    display: block;
    text-decoration: none;
    text-align: center;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f1f5f9;
    color: #111827;
    font-weight: 800;
    margin-top: 8px;
}

.support-link:hover {
    background: #e2e8f0;
}

.whatsapp-link {
    background: #dcfce7;
    color: #166534;
}

.whatsapp-link:hover {
    background: #bbf7d0;
}

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

@media (max-width: 950px) {
    .header-container {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .main-nav {
        width: 100%;
        justify-content: flex-start;
    }

    .brand-logo {
        height: 56px;
    }

    .user-dropdown {
        left: 0;
        right: auto;
    }

    .user-dropdown::before {
        left: 24px;
        right: auto;
    }
}

@media (max-width: 600px) {
    .header-container {
        padding: 10px 14px;
    }

    .main-nav {
        gap: 7px;
    }

    .nav-link,
    .nav-button,
    .user-menu-button {
        font-size: 0.85rem;
        padding: 8px 10px;
        min-height: 36px;
    }

    .notification-button {
        width: 38px;
        height: 38px;
    }

    .brand-logo {
        height: 50px;
    }

    .support-widget {
        right: 16px;
        bottom: 16px;
    }

    .support-main-button {
        width: 52px;
        height: 52px;
    }
}
.dashboard-actions .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 10px 16px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.10);
    transition: all 0.18s ease;
}

.dashboard-actions .btn-secondary:hover {
    background: #d1fae5;
    color: #065f46;
    border-color: #6ee7b7;
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(16, 185, 129, 0.16);
}
/* =========================================================
   CREACIÓN DE GRUPO POR CATEGORÍAS
   ========================================================= */

.create-group-panel {
    max-width: 980px;
    margin: 0 auto;
}

.create-step {
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid #e5e7eb;
}

.create-step:last-of-type {
    border-bottom: 0;
}

.create-step-heading {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
}

.create-step-heading h2 {
    margin: 0 0 4px;
    font-size: 1.15rem;
    color: #111827;
}

.create-step-heading p {
    margin: 0;
    color: #64748b;
    font-size: 0.92rem;
}

.create-step-number {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: linear-gradient(135deg, #10b981, #047857);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

.category-tabs {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.category-tab {
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid #a7f3d0;
    background: #ecfdf5;
    color: #047857;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.18s ease;
}

.category-tab:hover {
    background: #d1fae5;
    transform: translateY(-1px);
}

.category-tab.is-selected {
    background: linear-gradient(135deg, #10b981, #047857);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 12px 25px rgba(16, 185, 129, 0.25);
}

.category-tab-icon {
    font-size: 1.05rem;
}

.platform-choice-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.platform-choice-card {
    min-height: 125px;
    padding: 16px 12px;
    border-radius: 17px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #111827;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    transition: all 0.18s ease;
}

.platform-choice-card[hidden] {
    display: none;
}

.platform-choice-card:hover {
    border-color: #6ee7b7;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(16, 185, 129, 0.13);
}

.platform-choice-card.is-selected {
    border-color: #10b981;
    background: #ecfdf5;
    box-shadow: 0 14px 30px rgba(16, 185, 129, 0.18);
}

.platform-choice-icon {
    font-size: 1.8rem;
}

.platform-choice-card strong {
    font-size: 0.96rem;
}

.platform-choice-card small {
    color: #64748b;
    font-size: 0.75rem;
}

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

.auto-accept-card {
    margin-top: 20px;
    padding: 17px;
    border-radius: 17px;
    border: 1px solid #a7f3d0;
    background: #ecfdf5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    cursor: pointer;
}

.auto-accept-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.auto-accept-text strong {
    color: #065f46;
}

.auto-accept-text span {
    color: #64748b;
    font-size: 0.86rem;
    line-height: 1.4;
}

.switch-control {
    position: relative;
    flex: 0 0 52px;
    width: 52px;
    height: 30px;
}

.switch-control input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #cbd5e1;
    transition: 0.2s ease;
}

.switch-slider::before {
    content: "";
    position: absolute;
    width: 24px;
    height: 24px;
    left: 3px;
    top: 3px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.20);
    transition: 0.2s ease;
}

.switch-control input:checked + .switch-slider {
    background: #10b981;
}

.switch-control input:checked + .switch-slider::before {
    transform: translateX(22px);
}

.create-group-submit {
    width: 100%;
    min-height: 48px;
    font-size: 1rem;
}

@media (max-width: 850px) {
    .platform-choice-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

    .auto-accept-card {
        align-items: flex-start;
    }
}

@media (max-width: 450px) {
    .platform-choice-grid {
        grid-template-columns: 1fr;
    }

    .category-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-tab {
        justify-content: center;
    }
}


/* =========================================================
   HOME, HEADER, BLOG Y FOOTER 2026
   ========================================================= */

.splityu-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #e5e7eb;
    backdrop-filter: blur(14px);
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.06);
}

.splityu-header-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.splityu-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.splityu-brand img {
    display: block;
    width: auto;
    height: 64px;
    object-fit: contain;
}

.splityu-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.splityu-nav a {
    text-decoration: none;
}

.splityu-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 17px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.94rem;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    transition: 0.18s ease;
    white-space: nowrap;
}

.splityu-pill:hover,
.splityu-bell:hover,
.splityu-user-button:hover {
    transform: translateY(-1px);
}

.splityu-pill-neutral {
    background: #ecfdf5;
    color: #047857;
    border-color: #a7f3d0;
}

.splityu-pill-neutral:hover {
    background: #d1fae5;
    color: #065f46;
    border-color: #6ee7b7;
}

.splityu-pill-green {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    box-shadow: 0 12px 26px rgba(16, 185, 129, 0.24);
}

.splityu-pill-green:hover {
    background: linear-gradient(135deg, #059669, #047857);
    color: #ffffff;
    box-shadow: 0 16px 34px rgba(16, 185, 129, 0.31);
}

.splityu-pill-dark {
    background: linear-gradient(135deg, #047857, #065f46);
    color: #ffffff;
    box-shadow: 0 12px 26px rgba(5, 150, 105, 0.22);
}

.splityu-pill-dark:hover {
    background: linear-gradient(135deg, #065f46, #064e3b);
    color: #ffffff;
}

.splityu-bell {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #047857;
    font-size: 1.15rem;
    transition: 0.18s ease;
}

.splityu-bell:hover {
    background: #d1fae5;
    border-color: #6ee7b7;
}

.splityu-badge {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #ef4444;
    color: #ffffff;
    border: 2px solid #ffffff;
    font-size: 0.72rem;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.splityu-user-menu {
    position: relative;
}

.splityu-user-menu summary {
    list-style: none;
}

.splityu-user-menu summary::-webkit-details-marker {
    display: none;
}

.splityu-user-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 999px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
    font-weight: 850;
    font-size: 0.94rem;
    cursor: pointer;
    transition: 0.18s ease;
}

.splityu-user-button:hover {
    background: #d1fae5;
    color: #065f46;
}

.splityu-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: linear-gradient(135deg, #10b981, #047857);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 900;
}

.splityu-user-arrow {
    color: #64748b;
    font-size: 0.85rem;
}

.splityu-dropdown {
    position: absolute;
    right: 0;
    top: 56px;
    width: 260px;
    padding: 10px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
    z-index: 10000;
}

.splityu-dropdown::before {
    content: "";
    position: absolute;
    top: -9px;
    right: 28px;
    width: 18px;
    height: 18px;
    background: #ffffff;
    border-left: 1px solid #e5e7eb;
    border-top: 1px solid #e5e7eb;
    transform: rotate(45deg);
}

.splityu-dropdown a,
.splityu-dropdown button {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 13px;
    border: 0;
    background: transparent;
    color: #111827;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font: inherit;
    font-size: 0.94rem;
    font-weight: 750;
    text-align: left;
    cursor: pointer;
}

.splityu-dropdown a:hover,
.splityu-dropdown button:hover {
    background: #f1f5f9;
}

.splityu-dropdown form {
    margin: 6px 0 0;
    padding-top: 6px;
    border-top: 1px solid #e5e7eb;
}

.splityu-dropdown form button {
    color: #dc2626;
}

.splityu-mini-badge {
    min-width: 21px;
    height: 21px;
    padding: 0 6px;
    border-radius: 999px;
    background: #ef4444;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@keyframes notificationBadgePulse {
    0% { transform: scale(1); }
    35% { transform: scale(1.35); }
    65% { transform: scale(0.92); }
    100% { transform: scale(1); }
}

.notification-badge-new {
    animation: notificationBadgePulse 0.55s ease;
}


/* HOME */

.home-hero {
    max-width: 1240px;
    margin: 34px auto 24px;
    padding: 58px 58px 54px;
    border-radius: 34px;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(380px, 0.98fr);
    align-items: center;
    gap: 34px;
    overflow: hidden;
    background:
        radial-gradient(circle at 90% 20%, rgba(16, 185, 129, 0.19), transparent 34%),
        linear-gradient(135deg, #ecfdf5 0%, #ffffff 68%);
    border: 1px solid #d1fae5;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
}

.home-hero-copy {
    position: relative;
    z-index: 2;
}

.home-eyebrow,
.home-section-heading > span,
.home-safety-kicker,
.home-final-cta > div > span,
.blog-hero > span {
    display: inline-block;
    margin-bottom: 14px;
    color: #047857;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.home-eyebrow {
    padding: 8px 13px;
    border-radius: 999px;
    background: #d1fae5;
    letter-spacing: 0;
    font-size: 0.86rem;
}

.home-hero h1 {
    margin: 0 0 20px;
    color: #0f172a;
    font-size: clamp(2.55rem, 5vw, 4.65rem);
    line-height: 1.01;
    letter-spacing: -0.055em;
}

.home-hero-copy > p:not(.home-hero-note) {
    max-width: 620px;
    margin: 0 0 28px;
    color: #475569;
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    line-height: 1.7;
}

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

.home-button {
    min-height: 50px;
    padding: 14px 24px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 850;
    transition: 0.18s ease;
}

.home-button:hover {
    transform: translateY(-2px);
}

.home-button-primary {
    background: linear-gradient(135deg, #10b981, #047857);
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(5, 150, 105, 0.27);
}

.home-button-primary:hover {
    color: #ffffff;
    box-shadow: 0 18px 36px rgba(5, 150, 105, 0.34);
}

.home-button-secondary {
    background: #ffffff;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.home-button-secondary:hover {
    color: #065f46;
    border-color: #34d399;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.home-button-light {
    background: #ffffff;
    color: #065f46;
    box-shadow: 0 14px 30px rgba(6, 78, 59, 0.2);
}

.home-hero-note {
    margin: 16px 0 0;
    color: #64748b;
    font-size: 0.88rem;
    font-weight: 650;
}

.home-hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-hero-visual img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 540px;
    object-fit: contain;
    filter: drop-shadow(0 22px 28px rgba(15, 23, 42, 0.12));
}

.home-trust {
    max-width: 1120px;
    margin: 0 auto 82px;
    padding: 18px 24px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}

.home-trust-item {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 8px 12px;
}

.home-trust-item + .home-trust-item {
    border-left: 1px solid #e5e7eb;
}

.home-trust-icon {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #d1fae5;
    color: #047857;
    font-weight: 900;
}

.home-trust-item strong,
.home-trust-item span {
    display: block;
}

.home-trust-item strong {
    color: #0f172a;
    font-size: 0.94rem;
}

.home-trust-item div > span {
    margin-top: 3px;
    color: #64748b;
    font-size: 0.78rem;
    line-height: 1.35;
}

.home-section {
    max-width: 1180px;
    margin: 0 auto 88px;
    padding: 0 20px;
}

.home-section-soft {
    max-width: 1240px;
    padding: 64px 50px;
    border-radius: 32px;
    background: #f0fdf4;
    border: 1px solid #dcfce7;
}

.home-section-heading {
    max-width: 720px;
    margin: 0 auto 34px;
    text-align: center;
}

.home-section-heading h2,
.home-safety h2,
.home-final-cta h2,
.blog-hero h1,
.blog-catalog-cta h2 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(2rem, 4vw, 2.85rem);
    line-height: 1.13;
    letter-spacing: -0.04em;
}

.home-section-heading p {
    margin: 12px 0 0;
    color: #64748b;
    font-size: 1.02rem;
    line-height: 1.65;
}

.home-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
}

.home-category-card {
    min-height: 225px;
    padding: 24px;
    border-radius: 22px;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    color: #111827;
    text-decoration: none;
    transition: 0.18s ease;
}

.home-category-card:hover {
    transform: translateY(-4px);
    border-color: #6ee7b7;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.09);
}

.home-category-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 18px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ecfdf5;
    font-size: 1.65rem;
}

.home-category-card h3 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 1.15rem;
}

.home-category-card p {
    margin: 0 0 18px;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
}

.home-category-card strong {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: #047857;
    font-size: 0.88rem;
}

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

.home-platform-card {
    min-width: 0;
    padding: 25px;
    border-radius: 22px;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #dbe7e2;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.055);
}

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

.home-platform-icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    font-size: 1.65rem;
}

.home-platform-category,
.home-platform-availability {
    display: inline-flex;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    font-size: 0.75rem;
    font-weight: 800;
}

.home-platform-card h3 {
    margin: 18px 0 8px;
    color: #0f172a;
    font-size: 1.25rem;
}

.home-platform-card > p {
    min-height: 64px;
    margin: 0 0 16px;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.55;
}

.home-platform-availability {
    margin-bottom: 14px;
}

.home-price {
    margin: auto 0 18px;
    display: flex;
    align-items: baseline;
    gap: 5px;
    color: #047857;
}

.home-price small {
    color: #64748b;
    font-weight: 700;
}

.home-price strong {
    font-size: 1.65rem;
}

.home-price span {
    color: #64748b;
    font-size: 0.82rem;
}

.home-no-price {
    margin: auto 0 18px;
    padding: 11px 12px;
    border-radius: 12px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 750;
}

.home-card-link {
    color: #047857;
    font-weight: 850;
    text-decoration: none;
}

.home-card-link:hover {
    color: #065f46;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.home-centered-action {
    margin-top: 30px;
    text-align: center;
}

.home-empty-state {
    grid-column: 1 / -1;
    padding: 28px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    color: #64748b;
    text-align: center;
}

.home-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.home-step {
    position: relative;
    padding: 25px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
}

.home-step-number {
    width: 42px;
    height: 42px;
    margin-bottom: 18px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #d1fae5;
    color: #047857;
    font-weight: 900;
}

.home-step h3 {
    margin: 0 0 9px;
    color: #0f172a;
    font-size: 1.05rem;
}

.home-step p {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.55;
}

.home-safety {
    max-width: 1180px;
    margin: 0 auto 88px;
    padding: 54px;
    border-radius: 30px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
    gap: 48px;
    align-items: center;
    background: #0f172a;
    color: #ffffff;
}

.home-safety-kicker {
    color: #6ee7b7;
}

.home-safety h2 {
    color: #ffffff;
}

.home-safety p {
    margin: 15px 0 0;
    color: #cbd5e1;
    line-height: 1.7;
}

.home-safety ul {
    display: grid;
    gap: 13px;
    list-style: none;
}

.home-safety li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    color: #e2e8f0;
    line-height: 1.5;
}

.home-safety li span {
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #065f46;
    color: #a7f3d0;
    font-weight: 900;
}

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

.home-blog-card,
.blog-list-card,
.related-posts-grid article {
    min-width: 0;
    padding: 26px;
    border-radius: 22px;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    transition: 0.18s ease;
}

.home-blog-card:hover,
.blog-list-card:hover,
.related-posts-grid article:hover {
    transform: translateY(-3px);
    border-color: #a7f3d0;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.home-blog-icon,
.blog-list-icon,
.article-icon {
    width: 54px;
    height: 54px;
    margin-bottom: 18px;
    border-radius: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    font-size: 1.65rem;
}

.home-blog-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px 10px;
    color: #64748b;
    font-size: 0.73rem;
    font-weight: 700;
}

.home-blog-meta span:first-child {
    padding: 5px 8px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
}

.home-blog-card h3,
.blog-list-card h2,
.related-posts-grid h3 {
    margin: 16px 0 10px;
    color: #0f172a;
    line-height: 1.3;
}

.home-blog-card h3 {
    font-size: 1.15rem;
}

.home-blog-card h3 a,
.blog-list-card h2 a,
.related-posts-grid h3 a {
    color: inherit;
    text-decoration: none;
}

.home-blog-card > p,
.blog-list-card > p,
.related-posts-grid article > p {
    margin: 0 0 18px;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
}

.home-blog-card .home-card-link,
.blog-list-card .home-card-link {
    margin-top: auto;
}

.home-faq {
    max-width: 900px;
    margin: 0 auto 88px;
    padding: 0 20px;
}

.home-faq-list {
    display: grid;
    gap: 12px;
}

.home-faq details {
    padding: 0 22px;
    border-radius: 17px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
}

.home-faq summary {
    padding: 19px 0;
    color: #0f172a;
    font-weight: 850;
    cursor: pointer;
}

.home-faq details p {
    padding: 0 0 20px;
    color: #64748b;
    line-height: 1.65;
}

.home-final-cta {
    max-width: 1180px;
    margin: 0 auto 90px;
    padding: 48px 54px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    background: linear-gradient(135deg, #059669, #065f46);
    color: #ffffff;
}

.home-final-cta > div > span {
    color: #a7f3d0;
}

.home-final-cta h2 {
    color: #ffffff;
}

.home-final-cta p {
    margin: 12px 0 0;
    color: #d1fae5;
    line-height: 1.6;
}


/* BLOG */

.blog-hero {
    max-width: 980px;
    margin: 42px auto 50px;
    padding: 60px 28px;
    text-align: center;
}

.blog-hero p {
    max-width: 700px;
    margin: 18px auto 0;
    color: #64748b;
    font-size: 1.08rem;
    line-height: 1.7;
}

.blog-list-section {
    max-width: 1180px;
    margin: 0 auto 82px;
    padding: 0 20px;
}

.blog-list-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.blog-list-card h2 {
    font-size: 1.3rem;
}

.blog-catalog-cta {
    max-width: 1000px;
    margin: 0 auto 88px;
    padding: 34px 38px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
}

.blog-catalog-cta h2 {
    font-size: 1.65rem;
}

.blog-catalog-cta p {
    margin: 9px 0 0;
    color: #64748b;
}

.article-page {
    max-width: 860px;
    margin: 36px auto 70px;
    padding: 0 24px;
}

.article-breadcrumb {
    margin-bottom: 34px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: #64748b;
    font-size: 0.83rem;
}

.article-breadcrumb a {
    color: #047857;
    text-decoration: none;
    font-weight: 750;
}

.article-header {
    padding-bottom: 36px;
    border-bottom: 1px solid #e5e7eb;
}

.article-header h1 {
    margin: 20px 0 18px;
    color: #0f172a;
    font-size: clamp(2.35rem, 6vw, 4rem);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.article-header > p {
    margin: 0;
    color: #475569;
    font-size: 1.16rem;
    line-height: 1.75;
}

.article-content {
    max-width: 740px;
    margin: 42px auto 0;
}

.article-content section {
    margin-bottom: 38px;
}

.article-content h2 {
    margin: 0 0 15px;
    color: #0f172a;
    font-size: 1.55rem;
    line-height: 1.3;
}

.article-content p {
    margin: 0 0 16px;
    color: #475569;
    font-size: 1.02rem;
    line-height: 1.82;
}

.article-note {
    padding: 24px;
    border-radius: 18px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
}

.article-note strong {
    display: block;
    margin-bottom: 7px;
    color: #9a3412;
}

.article-note p {
    margin: 0;
    color: #7c2d12;
}

.related-posts {
    max-width: 1000px;
    margin: 0 auto 70px;
    padding: 0 20px;
}

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

.related-posts-grid article > span:first-child {
    font-size: 1.55rem;
}

.article-cta {
    margin-bottom: 90px;
}


/* FOOTER Y AYUDA */

.site-footer {
    padding: 0;
    display: block;
    background: #0f172a;
    color: #cbd5e1;
}

.footer-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 58px 24px 38px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.45fr repeat(4, minmax(130px, 1fr));
    align-items: start;
    gap: 34px;
}

.footer-intro p {
    max-width: 285px;
    margin: 14px 0 0;
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.65;
}

.footer-logo {
    width: auto;
    height: 56px;
    object-fit: contain;
}

.footer-column {
    display: grid;
    align-content: start;
    gap: 11px;
}

.footer-column h2 {
    margin: 0 0 5px;
    color: #ffffff;
    font-size: 0.92rem;
}

.footer-column a {
    width: fit-content;
    color: #94a3b8;
    font-size: 0.84rem;
    text-decoration: none;
    line-height: 1.45;
}

.footer-column a:hover {
    color: #6ee7b7;
}

.footer-bottom {
    max-width: 1240px;
    margin: 0 auto;
    padding: 20px 24px 28px;
    border-top: 1px solid #1e293b;
}

.footer-bottom p {
    margin: 0;
    color: #64748b;
    font-size: 0.8rem;
}

.support-widget {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 9999;
}

.support-main-button {
    width: 58px;
    height: 58px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #10b981, #047857);
    color: #ffffff;
    font-size: 1.55rem;
    cursor: pointer;
    box-shadow: 0 18px 35px rgba(16, 185, 129, 0.3);
}

.support-panel {
    display: none;
    position: absolute;
    right: 0;
    bottom: 72px;
    width: 285px;
    padding: 20px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
}

.support-widget:hover .support-panel,
.support-widget:focus-within .support-panel {
    display: block;
}

.support-panel h2 {
    margin: 0 0 7px;
    color: #111827;
    font-size: 1.05rem;
}

.support-panel p {
    margin: 0 0 14px;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
}

.support-link {
    display: block;
    padding: 11px 12px;
    border-radius: 12px;
    background: #dcfce7;
    color: #166534;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
}


/* RESPONSIVE DE LA NUEVA HOME */

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

    .splityu-nav {
        width: 100%;
        justify-content: flex-start;
    }

    .home-hero {
        margin-right: 20px;
        margin-left: 20px;
        grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
        padding: 48px 40px;
    }

    .home-platform-grid,
    .home-blog-grid,
    .blog-list-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .footer-intro {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .splityu-header {
        position: relative;
    }

    .splityu-header-inner {
        padding: 10px 16px 14px;
        gap: 12px;
    }

    .splityu-brand img {
        height: 52px;
    }

    .splityu-pill {
        min-height: 38px;
        padding: 9px 12px;
        font-size: 0.83rem;
    }

    .splityu-user-button {
        min-height: 38px;
        padding: 8px 12px;
        font-size: 0.84rem;
    }

    .splityu-bell {
        width: 39px;
        height: 39px;
    }

    .splityu-dropdown {
        right: auto;
        left: 0;
    }

    .splityu-dropdown::before {
        right: auto;
        left: 28px;
    }

    .home-hero {
        margin: 20px 14px 22px;
        padding: 38px 22px 24px;
        grid-template-columns: 1fr;
        gap: 18px;
        border-radius: 25px;
    }

    .home-hero-copy {
        text-align: center;
    }

    .home-hero-copy > p:not(.home-hero-note) {
        margin-right: auto;
        margin-left: auto;
    }

    .home-hero-actions {
        justify-content: center;
    }

    .home-hero-visual img {
        max-height: 360px;
    }

    .home-trust {
        margin: 0 14px 68px;
        grid-template-columns: 1fr;
    }

    .home-trust-item + .home-trust-item {
        border-top: 1px solid #e5e7eb;
        border-left: 0;
    }

    .home-section,
    .home-faq {
        margin-bottom: 68px;
        padding-right: 16px;
        padding-left: 16px;
    }

    .home-section-soft {
        margin-right: 14px;
        margin-left: 14px;
        padding: 48px 18px;
        border-radius: 24px;
    }

    .home-platform-grid,
    .home-blog-grid,
    .blog-list-grid,
    .related-posts-grid {
        grid-template-columns: 1fr;
    }

    .home-safety {
        margin: 0 14px 68px;
        padding: 38px 24px;
        grid-template-columns: 1fr;
        gap: 28px;
        border-radius: 24px;
    }

    .home-final-cta,
    .blog-catalog-cta {
        margin-right: 14px;
        margin-left: 14px;
        padding: 36px 24px;
        flex-direction: column;
        align-items: flex-start;
        border-radius: 24px;
    }

    .home-final-cta .home-button,
    .blog-catalog-cta .home-button {
        width: 100%;
    }

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

    .footer-intro {
        grid-column: 1 / -1;
    }

    .support-widget {
        right: 15px;
        bottom: 15px;
    }

    .support-main-button {
        width: 52px;
        height: 52px;
    }
}

@media (max-width: 520px) {
    .home-hero h1 {
        font-size: 2.45rem;
    }

    .home-hero-actions,
    .home-hero-actions .home-button {
        width: 100%;
    }

    .home-steps,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-intro {
        grid-column: auto;
    }

    .article-page {
        padding-right: 18px;
        padding-left: 18px;
    }

    .article-header h1 {
        font-size: 2.3rem;
    }

    .support-panel {
        width: min(285px, calc(100vw - 30px));
    }
}

/* =========================================================
   CORRECCIONES DE INTERFAZ: LOGO, TARJETAS Y DIÁLOGOS
   ========================================================= */

.splityu-brand img {
    width: 114px;
    height: 64px;
    max-width: 114px;
    max-height: 64px;
    object-fit: contain;
}

.footer-logo {
    width: 142px;
    height: 80px;
    max-width: 142px;
    max-height: 80px;
    object-fit: contain;
}

.platform-share-callout {
    margin: 0 0 24px;
    padding: 22px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    border: 1px solid #a7f3d0;
    border-radius: 20px;
    background: linear-gradient(135deg, #ecfdf5, #ffffff);
}

.platform-share-callout h2 {
    margin: 4px 0 7px;
    font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.platform-share-callout p {
    max-width: 680px;
    margin: 0;
    color: #64748b;
    line-height: 1.55;
}

.platform-share-callout-label {
    color: #047857;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.profile-readonly-value {
    min-height: 44px;
    padding: 11px 13px;
    border: 1px solid #dbe3ea;
    border-radius: 12px;
    background: #f8fafc;
    color: #475569;
    font-weight: 750;
}

.form-help {
    display: block;
    margin: 5px 0 10px;
    color: #64748b;
    font-size: 0.82rem;
    line-height: 1.4;
}

.password-field {
    display: flex;
    align-items: stretch;
    gap: 8px;
    width: 100%;
}

.password-field input {
    min-width: 0;
    flex: 1 1 auto;
}

.password-toggle {
    flex: 0 0 auto;
    padding: 8px 12px;
    border: 1px solid #a7f3d0;
    border-radius: 11px;
    background: #ecfdf5;
    color: #047857;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 850;
    cursor: pointer;
}

.chat-character-count {
    margin-top: -5px;
    color: #64748b;
    font-size: 0.78rem;
    text-align: right;
}

.splityu-dialog {
    width: min(520px, calc(100vw - 32px));
    padding: 0;
    border: 0;
    border-radius: 22px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.25);
}

.splityu-dialog::backdrop {
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(3px);
}

.splityu-dialog-content {
    position: relative;
    padding: 30px;
    background: #ffffff;
}

.splityu-dialog-content h2 {
    margin: 6px 35px 12px 0;
    color: #0f172a;
}

.splityu-dialog-content p {
    color: #475569;
    line-height: 1.65;
}

.splityu-dialog-content form {
    margin-top: 22px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.splityu-dialog-kicker {
    color: #047857;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.splityu-dialog-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: 1.35rem;
    cursor: pointer;
}

@media (max-width: 760px) {
    .splityu-brand img {
        width: 92px;
        height: 52px;
        max-width: 92px;
        max-height: 52px;
    }

    .platform-share-callout {
        align-items: flex-start;
        flex-direction: column;
    }

    .platform-share-callout .catalog-join-button {
        width: 100%;
        justify-content: center;
    }

    .password-field {
        align-items: stretch;
        flex-direction: column;
    }
}


/* =========================================================
   PULIDO VISUAL: mismo estilo, acabado más moderno
   ========================================================= */

/* Lo que está oculto, oculto de verdad (p. ej. el globo de avisos en 0). */
[hidden] {
    display: none !important;
}

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

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Titulares repartidos en líneas equilibradas, sin palabras sueltas. */
h1,
h2,
h3 {
    text-wrap: balance;
}

p,
li {
    text-wrap: pretty;
}

::selection {
    background: var(--primary-soft);
    color: var(--primary-dark);
}

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

/* Precios en una sola línea. */
del,
.catalog-price-row strong,
.catalog-price-row del,
.home-price-original del {
    white-space: nowrap;
}

/* Foco visible al navegar con teclado (accesibilidad). */
:where(a, button, input, select, textarea, summary):focus-visible {
    outline: 3px solid rgba(15, 118, 110, 0.45);
    outline-offset: 2px;
    border-radius: 10px;
}

/* Tarjetas: elevación suave al pasar el ratón. */
:where(
    .home-platform-card,
    .home-category-card,
    .home-blog-card,
    .category-public-card,
    .notification-card,
    .request-card,
    .group-private-card
) {
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

@media (hover: hover) {
    :where(
        .home-platform-card,
        .home-category-card,
        .home-blog-card,
        .category-public-card
    ):hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-lg);
    }
}

/* Botones: transición y respuesta al pulsar. */
:where(
    button,
    .auth-button,
    .btn-primary,
    .home-button,
    .catalog-join-button,
    .catalog-detail-button,
    .payment-button,
    .group-action-button,
    .credentials-submit
) {
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

:where(
    button,
    .auth-button,
    .btn-primary,
    .home-button,
    .catalog-join-button,
    .catalog-detail-button,
    .payment-button,
    .group-action-button,
    .credentials-submit
):active {
    transform: translateY(1px);
}

/* Avisos (mensajes de éxito o error): entran con suavidad. */
.message {
    box-shadow: var(--shadow);
    animation: splityuFadeIn 0.25s ease;
}

.message-info {
    background: var(--info-soft);
    color: var(--primary-dark);
}

.message-warning {
    background: var(--warning-soft);
    color: var(--warning);
}

@keyframes splityuFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* Cajas de información con el texto bien espaciado. */
.info-box {
    line-height: 1.6;
}

/* Perfil: sección «Tus datos». */
.profile-privacy {
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.profile-privacy h3 {
    margin: 0 0 6px;
    color: var(--primary-dark);
}

.profile-privacy-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.profile-privacy-link {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--primary);
    font-weight: 800;
    text-decoration: none;
}

.profile-privacy-link:hover {
    background: var(--background);
}

.profile-privacy-link.is-danger {
    border-color: var(--danger-soft);
    color: var(--danger);
}

.profile-privacy-link.is-danger:hover {
    background: var(--danger-soft);
}

/* Chats (soporte): burbujas de mensajes. */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.support-page {
    max-width: 820px;
    margin: 0 auto;
    padding: 36px 20px 70px;
}

.support-head h1 {
    margin: 0 0 6px;
    color: var(--primary-dark);
}

.support-head p,
.support-note {
    color: var(--muted);
}

.support-card {
    margin-top: 20px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.chat-thread {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 460px;
    overflow-y: auto;
    padding: 6px 4px 14px;
}

.chat-bubble {
    max-width: 78%;
    padding: 10px 14px;
    border-radius: 16px;
    background: var(--background);
    border: 1px solid var(--border);
}

.chat-bubble.is-mine {
    align-self: flex-end;
    background: var(--primary-soft);
    border-color: #99f6e4;
    border-bottom-right-radius: 4px;
}

.chat-bubble.is-theirs {
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.chat-bubble p {
    margin: 4px 0 0;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.chat-author {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.chat-empty {
    padding: 26px;
    color: var(--muted);
    text-align: center;
}

.chat-form {
    display: grid;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.chat-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    font: inherit;
    resize: vertical;
}

.chat-form button {
    justify-self: end;
}

/* Desglose del precio al pedir una plaza. */
.join-price-box {
    display: grid;
    gap: 6px;
    margin: 4px 0 18px;
    padding: 14px 16px;
    border: 1px solid #a7f3d0;
    border-radius: 14px;
    background: #f0fdf4;
}

.join-price-box div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
}

.join-price-box strong {
    color: var(--primary-dark);
}

.join-price-total {
    padding-top: 6px;
    border-top: 1px solid #a7f3d0;
    font-weight: 800;
}

.join-price-total strong {
    font-size: 1.1rem;
    color: var(--primary);
}

.join-price-box small {
    color: var(--muted);
}

/* Buscador del catálogo de grupos. */
.catalog-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0 0 24px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.catalog-filters input,
.catalog-filters select {
    min-height: 44px;
    padding: 9px 14px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    background: var(--surface);
    font: inherit;
}

.catalog-filters input[type="search"] {
    flex: 1 1 200px;
}

.catalog-filters select {
    flex: 0 1 230px;
    min-width: 180px;
    cursor: pointer;
}

.catalog-filters input[type="number"] {
    width: 150px;
}

.catalog-filter-button {
    min-height: 44px;
    padding: 9px 20px;
    border: none;
    border-radius: 999px;
    background: var(--primary);
    color: #ffffff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

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

.catalog-filter-clear,
.catalog-code-link {
    color: var(--primary);
    font-weight: 800;
    text-decoration: none;
}

.catalog-code-link {
    margin-left: auto;
}

@media (max-width: 760px) {
    .catalog-filters input,
    .catalog-filters select,
    .catalog-filter-button {
        width: 100%;
    }

    .catalog-code-link {
        margin-left: 0;
    }
}

.chat-delete-button {
    margin-left: 8px;
    padding: 0;
    border: none;
    background: none;
    color: var(--muted);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

.chat-delete-button:hover {
    color: var(--danger);
}

/* Respetar a quien prefiere menos animaciones. */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* =========================================================
   FORMULARIOS: ERRORES, AYUDAS Y REQUISITOS DE CONTRASEÑA
   ========================================================= */

.form-errors {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--danger-soft);
    color: var(--danger);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.45;
}

.form-errors ul {
    margin: 6px 0 0;
    padding-left: 18px;
}

.form-errors li + li {
    margin-top: 4px;
}

.form-help {
    display: block;
    margin: -10px 0 18px;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.4;
}

.form-success {
    margin-bottom: 18px;
    padding: 12px 16px;
    border-radius: 14px;
    background: var(--accent-soft);
    color: #166534;
    font-weight: 700;
}

.password-rules {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin: -8px 0 18px;
    padding: 0;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 600;
}

.password-rules li::before {
    content: "○";
    margin-right: 6px;
}

.password-rules li.is-ok {
    color: #15803d;
}

.password-rules li.is-ok::before {
    content: "●";
}

/* =========================================================
   CHAT DIRECTO CON SOPORTE (BURBUJA VERDE)
   ========================================================= */

.support-chat {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 9999;
}

.support-chat .support-main-button.is-open {
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.25), 0 18px 35px rgba(16, 185, 129, 0.3);
}

.support-chat-panel {
    margin: 0;
    padding: 0;
    position: absolute;
    right: 0;
    bottom: 72px;
    width: min(370px, calc(100vw - 30px));
    height: min(520px, calc(100vh - 120px));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
}

.support-chat-panel[hidden] {
    display: none;
}

.support-chat-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 14px 14px 16px;
    background: linear-gradient(135deg, #10b981, #047857);
    color: #ffffff;
}

.support-chat-avatar {
    width: 36px;
    height: 36px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
}

.support-chat-title {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.support-chat-title strong {
    font-size: 0.98rem;
}

.support-chat-title span {
    overflow: hidden;
    font-size: 0.8rem;
    opacity: 0.9;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.support-chat-icon {
    width: 32px;
    height: 32px;
    flex: none;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
}

.support-chat-icon:hover {
    background: rgba(255, 255, 255, 0.32);
}

.support-chat-icon[hidden] {
    display: none;
}

.support-chat-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    padding: 16px;
    background: var(--background);
}

.support-chat-message {
    max-width: 85%;
    align-self: flex-start;
    padding: 10px 12px;
    border-radius: 16px 16px 16px 4px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 0.92rem;
    line-height: 1.45;
}

.support-chat-message.is-staff {
    background: var(--accent-soft);
    border-color: transparent;
}

.support-chat-message.is-mine {
    align-self: flex-end;
    border-radius: 16px 16px 4px 16px;
    border-color: transparent;
    background: var(--primary);
    color: #ffffff;
}

.support-chat-message p {
    margin: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.support-chat-who {
    display: block;
    margin-bottom: 2px;
    color: #166534;
    font-size: 0.78rem;
    font-weight: 800;
}

.support-chat-message time {
    display: block;
    margin-top: 4px;
    font-size: 0.72rem;
    opacity: 0.7;
}

.support-chat-form {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.support-chat-form[hidden] {
    display: none;
}

.support-chat-form textarea {
    flex: 1;
    min-height: 42px;
    max-height: 120px;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    font: inherit;
    font-size: 0.95rem;
    resize: none;
}

.support-chat-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.13);
}

.support-chat-form button {
    width: 44px;
    flex: none;
    border: 0;
    border-radius: 999px;
    background: var(--primary);
    color: #ffffff;
    font-size: 1rem;
    cursor: pointer;
}

.support-chat-form button:disabled {
    opacity: 0.6;
}

.support-chat-threads {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.support-chat-threads button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.support-chat-threads button:hover {
    border-color: var(--primary);
}

.support-chat-threads button.is-unread {
    border-color: #10b981;
    background: #f0fdf4;
}

.support-chat-initial {
    width: 34px;
    height: 34px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 900;
}

.support-chat-thread-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.support-chat-thread-text small {
    overflow: hidden;
    color: var(--muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.support-chat-dot {
    padding: 2px 8px;
    border-radius: 999px;
    background: #10b981;
    color: #ffffff;
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 800;
}

.support-chat-empty-box,
.support-chat-loading {
    margin: auto 0;
    color: var(--muted);
    text-align: center;
}

.support-chat-empty-box p {
    margin-top: 6px;
    font-size: 0.9rem;
}

.support-chat-error {
    align-self: center;
    padding: 8px 12px;
    border-radius: 12px;
    background: var(--danger-soft);
    color: var(--danger);
    font-size: 0.85rem;
    font-weight: 700;
}

.support-link-secondary {
    margin-top: 8px;
    background: transparent !important;
    border: 1px solid var(--border);
}

@media (max-width: 720px) {
    .support-chat {
        right: 15px;
        bottom: 15px;
    }

    .support-chat .support-main-button {
        width: 52px;
        height: 52px;
    }

    .support-chat-panel {
        bottom: 64px;
    }
}

/* =========================================================
   MI PERFIL
   ========================================================= */

.account-page {
    padding: 0 8% 70px;
}

.account-grid {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    align-items: start;
}

.account-column {
    display: flex;
    flex-direction: column;
    gap: 22px;
    min-width: 0;
}

.account-card {
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.account-card h2 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--primary-dark);
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.account-card .auth-button {
    align-self: flex-start;
}

.account-text {
    margin-bottom: 16px;
    color: var(--muted);
    line-height: 1.55;
}

.account-chip {
    display: inline-block;
    margin-left: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    vertical-align: middle;
}

.account-chip.is-warning {
    margin-left: 0;
    background: var(--warning-soft);
    color: var(--warning);
}

.account-note {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 0.92rem;
    line-height: 1.5;
}

.account-note.is-ok {
    background: var(--accent-soft);
    color: #166534;
}

.account-note.is-warning {
    background: var(--warning-soft);
    color: var(--warning);
}

.account-list {
    margin: 0 0 16px;
    padding-left: 20px;
    color: var(--text);
    line-height: 1.7;
}

.account-test-help {
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px dashed var(--border);
    border-radius: 14px;
    font-size: 0.9rem;
}

.account-test-help summary {
    color: var(--primary);
    font-weight: 800;
    cursor: pointer;
}

.account-test-help ul {
    margin: 10px 0;
    padding-left: 20px;
    line-height: 1.7;
}

.account-test-help p {
    color: var(--muted);
}

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

.account-actions form {
    margin: 0;
}

.account-actions .auth-button {
    margin-top: 0;
    text-decoration: none;
    display: inline-block;
}

.account-button-secondary,
.account-button-danger {
    display: inline-block;
    padding: 13px 20px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--primary-dark);
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.account-button-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.account-button-danger {
    border-color: #fecaca;
    color: var(--danger);
}

.account-button-danger:hover {
    background: var(--danger-soft);
}

.account-danger {
    border-color: #fecaca;
}

@media (max-width: 860px) {
    .account-page {
        padding: 0 18px 50px;
    }

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

.account-card .profile-readonly-value {
    margin-bottom: 18px;
}

/* =========================================================
   GRUPO PÚBLICO O PRIVADO (TARJETAS) Y PERIODO DE COBRO
   ========================================================= */

.visibility-choice {
    margin: 22px 0 18px;
    padding: 0;
    border: 0;
    min-width: 0;
}

.visibility-choice legend {
    margin-bottom: 10px;
    padding: 0;
    color: var(--primary-dark);
    font-weight: 800;
}

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

.visibility-option {
    position: relative;
    display: block;
    margin: 0 !important;
    cursor: pointer;
}

.visibility-option input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0 !important;
}

.visibility-card {
    height: 100%;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border: 2px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.visibility-option:hover .visibility-card {
    border-color: #a7f3d0;
}

.visibility-option input:checked + .visibility-card {
    border-color: #10b981;
    background: #f0fdf4;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.visibility-option input:focus-visible + .visibility-card {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

.visibility-icon {
    width: 40px;
    height: 40px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--background);
    font-size: 1.25rem;
}

.visibility-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.visibility-text strong {
    color: var(--primary-dark);
    font-size: 1rem;
}

.visibility-text span {
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.4;
}

.new-group-billing-note,
.billing-note {
    margin: 8px 0 0;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--warning-soft);
    color: var(--warning);
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.4;
}

.new-group-billing-note[hidden] {
    display: none;
}

.billing-chip {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 9px;
    border-radius: 999px;
    background: var(--warning-soft);
    color: var(--warning);
    font-size: 0.75rem;
    font-weight: 800;
}

@media (max-width: 640px) {
    .visibility-options {
        grid-template-columns: 1fr;
    }
}

/* Mi perfil: apartados plegables (cambiar correo y contraseña) */
.account-fold {
    padding: 0;
}

.account-fold summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 26px;
    list-style: none;
    cursor: pointer;
}

.account-fold summary::-webkit-details-marker {
    display: none;
}

.account-fold-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.account-fold-title strong {
    color: var(--primary-dark);
    font-size: 1.1rem;
}

.account-fold-title small {
    overflow: hidden;
    color: var(--muted);
    font-size: 0.9rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-fold-arrow {
    width: 34px;
    height: 34px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--background);
    color: var(--primary);
    font-size: 1.4rem;
    transition: transform 0.15s ease;
}

.account-fold[open] .account-fold-arrow {
    transform: rotate(90deg);
}

.account-fold summary:hover .account-fold-arrow {
    background: var(--primary-soft);
}

.account-fold-body {
    padding: 4px 26px 26px;
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.request-waiting-payment {
    margin: 0;
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--warning-soft);
    color: var(--warning);
    font-size: 0.88rem;
    font-weight: 800;
}

/* Gastos de gestión: discretos bajo el precio, con una explicación al pasar el ratón o tocar la «i». */
.fee-note {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
}

.fee-info {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 15px;
    height: 15px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    color: #64748b;
    font-size: 0.65rem;
    font-style: italic;
    font-weight: 800;
    cursor: help;
}

.fee-tip {
    position: absolute;
    bottom: calc(100% + 8px);
    right: -4px;
    z-index: 30;
    width: 220px;
    padding: 9px 11px;
    border-radius: 10px;
    background: #0f172a;
    color: #ffffff;
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 500;
    line-height: 1.4;
    text-align: left;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
    white-space: normal;
    opacity: 0;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.fee-info:hover .fee-tip,
.fee-info:focus .fee-tip,
.fee-info:focus-within .fee-tip {
    opacity: 1;
    transform: translateY(0);
}

.price-with-fee {
    display: grid;
    justify-items: end;
    gap: 2px;
}

/* Campo trampa para robots: fuera de la vista, sin usar display:none (algunos robots lo detectan). */
.antibot-field {
    position: absolute !important;
    left: -10000px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Aviso único de cambios en la política de privacidad. */
.privacy-notice {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    max-width: 1120px;
    margin: 16px auto 0;
    padding: 14px 18px;
    border: 1px solid #a7f3d0;
    border-radius: 16px;
    background: #ecfdf5;
    color: #065f46;
    font-size: 0.93rem;
    line-height: 1.45;
}

.privacy-notice > div {
    flex: 1 1 420px;
}

.privacy-notice a {
    color: #047857;
    font-weight: 800;
}

.privacy-notice form {
    margin: 0;
}

.privacy-notice button {
    min-height: 40px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: var(--primary);
    color: #ffffff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

@media (max-width: 760px) {
    .privacy-notice {
        margin: 12px 12px 0;
    }
}

/* Si en una tarjeta estrecha no cabe el precio con la nota al lado de su texto, baja a la línea
   siguiente alineado a la derecha, en lugar de salirse del recuadro. */
:where(div, p):has(> .price-with-fee) {
    flex-wrap: wrap;
    column-gap: 10px;
    row-gap: 2px;
}

.price-with-fee {
    margin-left: auto;
    min-width: 0;
    max-width: 100%;
    text-align: right;
}

.price-with-fee .fee-note {
    flex-wrap: wrap;
    justify-content: flex-end;
    white-space: normal;
}


/* Globo de mensajes sin leer en la burbuja del chat con el equipo */
.support-chat .support-main-button {
    position: relative;
}

.support-chat-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    border-radius: 999px;
    background: #ef4444;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1;
    box-sizing: border-box;
    pointer-events: none;
}

.support-chat-badge[hidden] {
    display: none;
}

.support-chat-badge.is-new {
    animation: support-badge-pop 0.5s ease;
}

.support-chat .support-main-button.has-unread:not(.is-open) {
    animation: support-bubble-ring 1.6s ease 2;
}

@keyframes support-badge-pop {
    0% { transform: scale(0.4); }
    60% { transform: scale(1.25); }
    100% { transform: scale(1); }
}

@keyframes support-bubble-ring {
    0%, 100% { box-shadow: 0 18px 35px rgba(16, 185, 129, 0.3); }
    50% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0.22), 0 18px 35px rgba(16, 185, 129, 0.3); }
}

@media (prefers-reduced-motion: reduce) {
    .support-chat-badge.is-new,
    .support-chat .support-main-button.has-unread:not(.is-open) {
        animation: none;
    }
}

/* Descuento frente al plan individual («-73 %») en las tarjetas de plataformas. */
.discount-pill {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #e8f8ef;
    color: #0f7a3d;
    font-weight: 800;
    font-size: 0.8rem;
    white-space: nowrap;
}

/* =========================================================
   CONFIANZA: valoraciones, insignias y Garantía Splityu (app trust)
   ========================================================= */
.trust-line {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.trust-stars,
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.trust-stars {
    background: #fff7e0;
    color: #8a5a00;
}

.trust-stars span[aria-hidden="true"] {
    color: #f5a400;
}

.trust-count {
    font-weight: 500;
    color: #9a7a3a;
}

.trust-badge {
    background: #eef6ff;
    color: #1d4f91;
}

.trust-reviews {
    margin-top: 24px;
}

.trust-reviews h2 {
    margin-bottom: 6px;
}

.trust-reviews-summary {
    margin: 0 0 8px;
    color: #334155;
}

.trust-big-stars {
    color: #f5a400;
    font-size: 1.2rem;
}

.trust-review-list {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.trust-review-list li {
    padding: 14px 16px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e6efe9;
}

.trust-review-list p {
    margin: 6px 0 0;
    color: #334155;
    line-height: 1.5;
}

.trust-review-head {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: baseline;
}

.trust-review-stars {
    color: #f5a400;
    letter-spacing: 1px;
}

.trust-review-meta {
    color: #64748b;
    font-size: 0.88rem;
}

.trust-member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.trust-card .trust-warning {
    background: #fff7e6;
    color: #8a5300;
    padding: 10px 12px;
    border-radius: 12px;
}

.trust-card p {
    margin: 0 0 14px;
    color: #475569;
    line-height: 1.5;
}

.trust-button {
    display: inline-block;
    padding: 11px 20px;
    border: 0;
    border-radius: 999px;
    background: var(--primary, #10b981);
    color: #fff;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.trust-button-light {
    background: #fff7e6;
    color: #8a5300;
    border: 1px solid #f3d9a4;
}

.trust-review-form {
    display: grid;
    gap: 10px;
}

.trust-review-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font: inherit;
    resize: vertical;
}

/* Estrellas para elegir: van al revés en el HTML (5 → 1) para poder pintar las anteriores. */
.trust-star-input {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 2px;
    margin: 0;
    padding: 0;
    border: 0;
}

.trust-star-input input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.trust-star-input label {
    font-size: 2rem;
    line-height: 1;
    color: #d6dde5;
    cursor: pointer;
    transition: color 0.1s ease;
}

.trust-star-input input:checked ~ label,
.trust-star-input label:hover,
.trust-star-input label:hover ~ label {
    color: #f5a400;
}

.trust-star-input input:focus-visible + label {
    outline: 2px solid var(--primary, #10b981);
    border-radius: 4px;
}

.trust-alert {
    margin-bottom: 22px;
    padding: 16px 18px;
    border-radius: 18px;
    background: #fff7e6;
    border: 1px solid #f3d9a4;
    color: #7a4a00;
}

.trust-alert ul {
    margin: 8px 0 0;
    padding-left: 18px;
    line-height: 1.6;
}

.trust-alert a {
    color: #0f7a3d;
    font-weight: 700;
}

.trust-after-steps {
    margin-top: 16px;
}

/* Blog: botones a los grupos de la plataforma al final de cada artículo. */
.article-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 28px 0;
}

/* Blog: borradores (solo el equipo los ve). */
.article-draft-note,
.blog-drafts {
    max-width: 1140px;
    margin: 0 auto 24px;
    padding: 16px 20px;
    border-radius: 18px;
    background: #fff7e6;
    border: 1px dashed #e9b949;
    color: #7a4a00;
}

.blog-drafts h2 {
    margin: 0 0 10px;
    font-size: 1.1rem;
}

.blog-drafts small {
    font-weight: 500;
}

.blog-drafts ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.blog-drafts li {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
}

.blog-drafts a {
    color: #0f7a3d;
    font-weight: 700;
}

/* Alta de cobros dentro de Splityu (formulario de Stripe incrustado). */
.stripe-embedded {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    scroll-margin-top: 110px;
}

.stripe-embedded-loading {
    margin: 0 0 12px;
    color: #64748b;
}

/* Ficha del grupo: renovación de la plaza del miembro («No renovar»). */
.renewal-box {
    padding: 14px 16px;
    border-radius: 16px;
    background: #f0faf4;
    border: 1px solid #d7efe0;
    color: #334155;
}

.renewal-box p {
    margin: 0 0 10px;
    line-height: 1.5;
}


/* =====================================================
   TARJETAS DE PLATAFORMA (catálogo y portada, landing/_platform_card.html)
   ===================================================== */

/* Tarjetas: cabecera de color con el nombre, precio en grande y barra de color abajo. */
.cx-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 20px;
}

.cx-card {
    --tint: #ecfdf5;
    --ink: #047857;
    --bar: #10b981;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.cx-card[hidden],
.cx-none[hidden] {
    display: none;
}

.cx-card[data-tone="1"] { --tint: #eff6ff; --ink: #1d4ed8; --bar: #3b82f6; }
.cx-card[data-tone="2"] { --tint: #f5f3ff; --ink: #6d28d9; --bar: #8b5cf6; }
.cx-card[data-tone="3"] { --tint: #fff7ed; --ink: #c2410c; --bar: #f97316; }
.cx-card[data-tone="4"] { --tint: #f0fdfa; --ink: #0f766e; --bar: #14b8a6; }
.cx-card[data-tone="5"] { --tint: #fdf2f8; --ink: #be185d; --bar: #ec4899; }
.cx-card[data-tone="6"] { --tint: #fefce8; --ink: #a16207; --bar: #eab308; }
.cx-card[data-tone="7"] { --tint: #eef2ff; --ink: #4338ca; --bar: #6366f1; }

.cx-card::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 6px;
    background: var(--bar);
}

@media (hover: hover) {
    .cx-card:hover {
        border-color: color-mix(in srgb, var(--bar) 40%, #e5e7eb);
        box-shadow: 0 18px 36px rgba(15, 23, 42, 0.10);
        transform: translateY(-3px);
    }

    .cx-card:hover .cx-go span {
        transform: translateX(3px);
    }
}

.cx-head {
    display: grid;
    place-items: center;
    min-height: 118px;
    margin: 12px 12px 0;
    padding: 16px;
    border-radius: 16px;
    background: var(--tint);
    text-align: center;
}

.cx-head h2 {
    margin: 0;
    color: #0f172a;
    font-size: 1.3rem;
    line-height: 1.2;
    text-wrap: balance;
}

/* Todo el rectángulo abre la plataforma. */
.cx-head h2 a {
    color: inherit;
    text-decoration: none;
}

.cx-head h2 a::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.cx-head small {
    display: block;
    margin-top: 6px;
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.cx-body {
    display: grid;
    justify-items: center;
    gap: 4px;
    flex: 1;
    padding: 16px 16px 22px;
    text-align: center;
}

.cx-from {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
}

.cx-price {
    color: #0f172a;
    font-size: 1.75rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.cx-price small {
    margin-left: 2px;
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0;
}

/* La «i» de la gestión queda por encima del enlace de la tarjeta. */
.cx-body .fee-note {
    position: relative;
    z-index: 2;
    font-size: 0.78rem;
}

.cx-save {
    margin-top: 6px;
    color: #166534;
    font-size: 0.9rem;
    font-weight: 800;
}

.cx-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
}

.cx-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 800;
}

.cx-chip-live::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #10b981;
}

.cx-chip-period {
    background: #fff7ed;
    color: #9a3412;
}

.cx-empty-price {
    margin: 8px 0 2px;
    color: #64748b;
    font-weight: 700;
    line-height: 1.4;
}

.cx-go {
    margin-top: auto;
    padding-top: 12px;
    color: var(--ink);
    font-weight: 850;
}

.cx-go span {
    display: inline-block;
    transition: transform 0.18s ease;
}


@media (max-width: 600px) {
    .cx-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .cx-head {
        min-height: 92px;
        margin: 8px 8px 0;
        padding: 12px 10px;
    }

    .cx-head h2 {
        font-size: 1.05rem;
    }

    .cx-price {
        font-size: 1.4rem;
    }

    .cx-body {
        padding: 12px 10px 18px;
    }

    .cx-body .fee-note {
        font-size: 0.72rem;
    }

    .cx-save {
        font-size: 0.8rem;
    }

    /* En el móvil la gestión ya dice cada cuánto se paga. */
    .cx-body .cx-chip-period {
        display: none;
    }

    .cx-body .fee-note {
        text-wrap: balance;
    }
}


@media (prefers-reduced-motion: reduce) {
    .cx-card,
    .cx-go span {
        transition: none;
    }
}

