:root {
    --background-gradient: linear-gradient(135deg, #e0f7fa 0%, #f1f5f9 100%);
    --card-shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
    --card-radius: 24px;
    --primary: #21808d;
    --primary-dark: #176775;
    --accent: #3b82f6;
    --text: #1f2937;
    --text-muted: #6b7280;
    --border: rgba(148, 163, 184, 0.35);
    --success: #10b981;
    --error: #ef4444;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html, body {
    height: 100%;
}

.auth-body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--background-gradient);
    color: var(--text);
    padding: 20px 16px;
}

.auth-wrapper {
    width: 100%;
    max-width: 460px;
    padding: 0px 16px;
    display: flex;
    justify-content: center;
}

.auth-card {
    width: 100%;
    background: #ffffff;
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.fade-in-up {
    animation: fadeInUp 0.45s ease-out;
}

.auth-card__logo {
    display: flex;
    justify-content: center;
}

.auth-card__logo img {
    width: 220px;
    max-width: 70%;
    height: auto;
}

.auth-card__heading {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-card__heading h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
}

.auth-card__heading p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.google-container {
    display: flex;
    justify-content: center;
}

.google-wrapper {
    width: 100%;
    max-width: 320px;
    min-height: 50px;
    display: flex;
    justify-content: center;
}

.google-wrapper > div {
    margin: 0 auto;
}

.google-warning {
    display: block;
    text-align: center;
    color: var(--error);
    font-size: 0.85rem;
    margin-top: 8px;
}

.divider {
    position: relative;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 35%;
    height: 1px;
    background: var(--border);
}

.divider::before { left: 0; }
.divider::after { right: 0; }

.form-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: opacity 0.3s ease;
}

.form-container.loading {
    opacity: 0.6;
    pointer-events: none;
}

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

.form-field label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

.form-field input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--border);
    font-size: 0.95rem;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus {
    outline: none;
    border-color: rgba(33, 128, 141, 0.45);
    box-shadow: 0 0 0 4px rgba(33, 128, 141, 0.15);
}

.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 70%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s ease;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    font-size: 1.05rem;
}

.password-toggle:hover {
    color: var(--primary);
}

.password-toggle:focus-visible {
    outline: 2px solid rgba(33, 128, 141, 0.4);
    border-radius: 50%;
}

.password-wrapper input {
    padding-right: 46px;
}

.form-link {
    text-align: right;
}

.form-link a {
    font-size: 0.85rem;
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 16px;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    color: #ffffff;
    cursor: pointer;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 5px 10px rgba(33, 128, 141, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.login-button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(33, 128, 141, 0.28);
}

.login-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.form-footer {
    text-align: center;
    font-size: 0.9rem;
}

.form-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.form-footer a:hover {
    color: var(--primary-dark);
}

.message {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 0.9rem;
    text-align: center;
    transition: opacity 0.3s ease;
}

.message.hidden {
    display: none;
}

.message.error {
    background: rgba(239, 68, 68, 0.12);
    color: var(--error);
}

.message.success {
    background: rgba(16, 185, 129, 0.12);
    color: var(--success);
}

.hidden { display: none !important; }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 14px;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
    background: #ffffff;
    color: var(--text);
}

.button--primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #ffffff;
    border: none;
    box-shadow: 0 18px 32px rgba(33, 128, 141, 0.25);
}

.button--primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 20px 36px rgba(33, 128, 141, 0.28);
}

.button--ghost {
    background: transparent;
    border-color: var(--border);
    color: var(--text);
}

.button--ghost:hover:not(:disabled) {
    border-color: rgba(33, 128, 141, 0.45);
    color: var(--primary);
}

.button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.register-link {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.auth-card--register {
    gap: 32px;
}

.register-heading p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.register-flow {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.register-step {
    display: none;
    flex-direction: column;
    gap: 24px;
}

.register-step--active {
    display: flex;
}

.register-step__header h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
}

.register-step__header p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.register-step__body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.business-type-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.business-type-option {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px;
    border-radius: 18px;
    border: 2px solid var(--border);
    background: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    transition: border 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
    text-align: left;
}

.business-type-option.is-selected {
    border-color: rgba(33, 128, 141, 0.45);
    background: rgba(33, 128, 141, 0.08);
    box-shadow: 0 18px 32px rgba(33, 128, 141, 0.12);
}

.business-type-option:hover:not(.is-disabled):not(:disabled) {
    border-color: rgba(33, 128, 141, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 20px 36px rgba(33, 128, 141, 0.18);
}

.business-type-option.is-disabled,
.business-type-option:disabled {
    border-style: dashed;
    cursor: not-allowed;
    opacity: 0.65;
    background: rgba(148, 163, 184, 0.12);
}

.business-type-option__icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.business-type-option__icon--reservas {
    background: rgba(16, 185, 129, 0.15);
    color: #047857;
}

.business-type-option__icon--hoteles {
    background: rgba(59, 130, 246, 0.15);
    color: #1d4ed8;
}

.business-type-option__content h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.business-type-option__content p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.business-type-option__chevron {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.business-type-option__badge {
    margin-left: auto;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.15);
    color: #1d4ed8;
    font-size: 0.8rem;
    font-weight: 600;
}

.register-step__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.register-step__footer--single {
    justify-content: flex-end;
}

.register-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.register-hint__label {
    font-weight: 600;
}

.register-hint__value {
    font-weight: 600;
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.status-message {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    border-radius: 12px;
    padding: 10px 12px;
    border: 1px solid transparent;
}

.status-message[data-state="success"] {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.35);
    color: var(--success);
}

.status-message[data-state="error"] {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.35);
    color: var(--error);
}

.status-message[data-state="loading"],
.status-message[data-state="info"] {
    background: rgba(33, 128, 141, 0.08);
    border-color: rgba(33, 128, 141, 0.2);
    color: var(--primary);
}

.status-message__icon {
    font-size: 1rem;
}

.register-summary {
    background: rgba(241, 245, 249, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 18px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.register-summary h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}

.register-summary__item {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.register-summary__item strong {
    color: var(--text);
    font-weight: 600;
}

.success-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 32px 24px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 22px;
    text-align: center;
}

.success-container h2 {
    font-size: 1.5rem;
    color: var(--success);
    font-weight: 700;
}

.success-container p {
    color: var(--text);
    font-size: 0.95rem;
}

.success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--success);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 16px 32px rgba(16, 185, 129, 0.25);
}

.success-note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--success);
    font-weight: 600;
}

.loading-spinner {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 4px solid rgba(16, 185, 129, 0.25);
    border-top-color: var(--success);
    animation: spin 1s linear infinite;
}

.fullscreen-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 9999;
    padding: 24px;
}

.fullscreen-modal.show {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: #ffffff;
    border-radius: 24px;
    padding: 36px 32px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 32px 60px rgba(15, 23, 42, 0.18);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.modal-icon {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto;
    color: #ffffff;
}

.modal-icon.success { background: var(--success); }
.modal-icon.error { background: var(--error); }
.modal-icon.warning { background: #f97316; }
.modal-icon.info { background: var(--primary); }

.modal-icon.pulse {
    animation: pulse 1.5s ease infinite;
}

.modal-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
}

.modal-message {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.modal-btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #ffffff;
    box-shadow: 0 18px 32px rgba(33, 128, 141, 0.25);
}

.modal-btn-secondary {
    background: rgba(148, 163, 184, 0.2);
    color: var(--text);
}

.modal-btn-danger {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    color: #ffffff;
}

.modal-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 36px rgba(15, 23, 42, 0.2);
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

.fade-out {
    animation: fadeOut 0.25s ease-in forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.25);
    }
    50% {
        transform: scale(1.04);
        box-shadow: 0 0 0 12px rgba(239, 68, 68, 0);
    }
}

@media (max-width: 640px) {
    .auth-card {
        padding: 32px 24px;
        border-radius: 20px;
    }

    .google-wrapper {
        max-width: 100%;
    }

    .divider::before,
    .divider::after {
        width: 28%;
    }

    .register-step__footer {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .business-type-option {
        flex-direction: row;
    }
}

@media (max-height: 820px) {
    .auth-body {
        align-items: flex-start;
        padding-top: 48px;
        padding-bottom: 48px;
    }
}

/* ============================= */
/* Página de planes */
/* ============================= */

.plans-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--background-gradient);
    color: var(--text);
}

.plans-nav {
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
    backdrop-filter: blur(12px);
    position: relative;
    z-index: 10;
}

.plans-nav__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.plans-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 16px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    background: rgba(33, 128, 141, 0.12);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.plans-nav__link:hover {
    transform: translateY(-1px);
    background: rgba(33, 128, 141, 0.18);
    color: var(--primary-dark);
}

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

.plans-nav__action {
    text-decoration: none;
}

.plans-nav__status {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    border-radius: 16px;
    background: rgba(33, 128, 141, 0.1);
    color: var(--text);
    box-shadow: 0 8px 20px rgba(33, 128, 141, 0.08);
}

.plans-nav__status-icon {
    font-size: 18px;
    color: var(--primary);
}

.plans-nav__status-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.plans-nav__status-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.plans-nav__status-plan {
    font-weight: 700;
    color: var(--primary-dark);
}

.plans-nav__status-expiry {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.plans-payments {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 20px;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.18);
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.plans-payments__header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.plans-payments__title {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
}

.plans-payments__subtitle {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.plans-payments__message {
    margin: 0;
    padding: 14px 20px;
    border-radius: 14px;
    background: rgba(148, 163, 184, 0.12);
    color: rgba(15, 23, 42, 0.75);
    font-size: 0.95rem;
}

.plans-payments__message--error {
    background: rgba(220, 38, 38, 0.12);
    color: #991b1b;
}

.plans-payments__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.plans-payments__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 16px;
    background: rgba(248, 250, 252, 0.85);
    border: 1px solid rgba(226, 232, 240, 0.7);
}

.plans-payments__details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.plans-payments__plan {
    font-weight: 600;
    color: var(--text);
}

.plans-payments__date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.plans-payments__meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.plans-payments__amount {
    font-weight: 700;
    color: var(--primary-dark);
}

.plans-payments__status {
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(59, 130, 246, 0.12);
    color: rgba(30, 64, 175, 0.95);
}

.plans-payments__status--pagado,
.plans-payments__status--aprobado,
.plans-payments__status--completado {
    background: rgba(34, 197, 94, 0.15);
    color: #166534;
}

.plans-payments__status--pendiente {
    background: rgba(250, 204, 21, 0.2);
    color: #92400e;
}

.plans-payments__status--rechazado,
.plans-payments__status--fallido {
    background: rgba(248, 113, 113, 0.2);
    color: #b91c1c;
}

.plans-container {
    max-width: 1100px;
    width: calc(100% - 32px);
    margin: 0 auto;
    padding: 48px 0 96px;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.plans-hero {
    position: relative;
    border-radius: var(--card-radius);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--card-shadow);
    padding: 40px 48px;
}

.plans-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(33, 128, 141, 0.18), rgba(59, 130, 246, 0.12));
    pointer-events: none;
}

.plans-hero__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.plans-hero__content h1 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--text);
}

.plans-hero__content p {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 520px;
}

.plan-banner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px 32px;
    border-radius: var(--card-radius);
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.22);
}

.plan-banner--auth {
    background: linear-gradient(135deg, rgba(33, 128, 141, 0.18), rgba(33, 128, 141, 0.06));
    border-color: rgba(33, 128, 141, 0.28);
}

.plan-banner--public {
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.18), rgba(59, 130, 246, 0.08));
    border-color: rgba(59, 130, 246, 0.26);
}

.plan-banner__icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 16px 32px rgba(33, 128, 141, 0.25);
}

.plan-banner--public .plan-banner__icon {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    box-shadow: 0 16px 32px rgba(34, 197, 94, 0.25);
}

.plan-banner__content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
}

.plan-banner__content p {
    color: var(--text-muted);
    font-size: 0.98rem;
}

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

.plan-card {
    --plan-accent: var(--primary);
    --plan-accent-dark: var(--primary-dark);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: var(--card-radius);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.plan-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(165deg, rgba(33, 128, 141, 0.14), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 32px 64px rgba(15, 23, 42, 0.16);
}

.plan-card:hover::before {
    opacity: 1;
}

.plan-card--demo {
    --plan-accent: #2563eb;
    --plan-accent-dark: #1d4ed8;
    border-color: rgba(37, 99, 235, 0.28);
}

.plan-card--demo::before {
    background: linear-gradient(165deg, rgba(37, 99, 235, 0.16), transparent 62%);
}

.plan-card--emprende {
    --plan-accent: #16a34a;
    --plan-accent-dark: #15803d;
    border-color: rgba(22, 163, 74, 0.28);
}

.plan-card--emprende::before {
    background: linear-gradient(165deg, rgba(22, 163, 74, 0.18), transparent 62%);
}

.plan-card--pro {
    --plan-accent: #f97316;
    --plan-accent-dark: #ea580c;
    border-color: rgba(249, 115, 22, 0.28);
}

.plan-card--pro::before {
    background: linear-gradient(165deg, rgba(249, 115, 22, 0.18), transparent 62%);
}

.plan-card--premium {
    --plan-accent: #6366f1;
    --plan-accent-dark: #4f46e5;
    border-color: rgba(99, 102, 241, 0.28);
}

.plan-card--premium::before {
    background: linear-gradient(165deg, rgba(99, 102, 241, 0.18), transparent 62%);
}

.plan-card--enterprise {
    --plan-accent: #8b5cf6;
    --plan-accent-dark: #7c3aed;
    border-color: rgba(139, 92, 246, 0.28);
}

.plan-card--enterprise::before {
    background: linear-gradient(165deg, rgba(139, 92, 246, 0.18), transparent 62%);
}

.plan-card__flag {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--plan-accent), var(--plan-accent-dark));
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.16);
}

.plan-card__header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: center;
    margin-top: 12px;
}

.plan-card__title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
}

.plan-card__price {
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--plan-accent-dark);
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
}

.plan-card__price span {
    font-size: 1rem;
    color: var(--text-muted);
}

.plan-card__billing {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.plan-card__description {
    font-size: 0.95rem;
    color: var(--text-muted);
    text-align: center;
    min-height: 48px;
}

.plan-card__features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
    margin: 0;
}

.plan-card__features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text);
}

.plan-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--plan-accent);
    box-shadow: 0 6px 12px rgba(15, 23, 42, 0.12);
    flex-shrink: 0;
}

.plan-card__actions {
    margin-top: auto;
}

.plan-card--current {
    box-shadow: 0 28px 52px rgba(16, 185, 129, 0.18);
    border: 2px solid rgba(16, 185, 129, 0.25);
}

.plan-card__current-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    align-self: center;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
    font-size: 0.82rem;
    font-weight: 600;
}

.plan-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 18px;
    border-radius: 18px;
    font-weight: 600;
    font-size: 1rem;
    color: #ffffff;
    background: linear-gradient(135deg, var(--plan-accent), var(--plan-accent-dark));
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 20px 36px rgba(15, 23, 42, 0.16);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.plan-card__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 26px 44px rgba(15, 23, 42, 0.2);
}

.plan-card__button--current {
    background: rgba(16, 185, 129, 0.14);
    color: #047857;
    cursor: default;
    box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.3);
}

.plan-card__button--current:hover {
    transform: none;
    box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.45);
}

.plan-card__button:focus-visible {
    outline: 3px solid rgba(33, 128, 141, 0.25);
    outline-offset: 3px;
}

.plan-card__button--whatsapp {
    background: linear-gradient(135deg, #25d366, #1ebe57);
    box-shadow: 0 20px 36px rgba(37, 211, 102, 0.22);
}

.plan-card__button--whatsapp:hover {
    box-shadow: 0 26px 44px rgba(37, 211, 102, 0.28);
}

.button--whatsapp {
    background: linear-gradient(135deg, #25d366, #1ebe57);
    color: #ffffff;
    border: none;
    box-shadow: 0 18px 32px rgba(37, 211, 102, 0.25);
}

.button--whatsapp:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 38px rgba(37, 211, 102, 0.3);
}

.plans-support {
    background: rgba(255, 255, 255, 0.94);
    border-radius: var(--card-radius);
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: var(--card-shadow);
    padding: 32px 36px;
}

.plans-support__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.plans-support__icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    background: rgba(59, 130, 246, 0.15);
    color: #1d4ed8;
}

.plans-support__copy {
    flex: 1;
    min-width: 220px;
}

.plans-support__copy h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
}

.plans-support__copy p {
    margin-top: 6px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.plans-support__button {
    flex-shrink: 0;
    text-decoration: none;
}

.plans-faq {
    background: rgba(255, 255, 255, 0.94);
    border-radius: var(--card-radius);
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: var(--card-shadow);
    padding: 36px 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.plans-faq__header {
    display: flex;
    align-items: center;
    gap: 18px;
}

.plans-faq__header i {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: rgba(250, 204, 21, 0.2);
    color: #b45309;
}

.plans-faq__header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
}

.plans-faq__header p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.plans-faq__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 18px;
    overflow: hidden;
    background: rgba(248, 250, 252, 0.9);
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    font-size: 0.98rem;
    color: var(--text);
    cursor: pointer;
    transition: background 0.2s ease;
}

.faq-question:hover {
    background: rgba(33, 128, 141, 0.08);
}

.faq-icon {
    transition: transform 0.3s ease;
    color: var(--primary);
}

.rotate-180 {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 22px 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.faq-answer p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.toast-container {
    position: fixed;
    top: 32px;
    right: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1050;
}

.toast {
    min-width: min(320px, calc(100vw - 32px));
    max-width: min(420px, calc(100vw - 32px));
    padding: 16px 20px;
    border-radius: 16px;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.22);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.95);
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    background: linear-gradient(135deg, #10b981, #0f9f72);
}

.toast.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.toast.warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.toast.info {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.toast-icon {
    font-size: 1.25rem;
    line-height: 1;
}

.toast-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.toast-title {
    font-weight: 600;
    margin-bottom: 2px;
}

.toast-message {
    font-size: 0.9rem;
    opacity: 0.9;
}

.toast-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: auto;
    opacity: 0.75;
    transition: opacity 0.2s ease;
}

.toast-close:hover {
    opacity: 1;
}

@media (max-width: 900px) {
    .plans-nav__inner {
        justify-content: center;
    }

    .plans-nav__status {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .plans-nav__status-content {
        align-items: center;
    }

    .plans-support__content {
        flex-direction: column;
        align-items: flex-start;
    }

    .plans-support__button {
        width: 100%;
    }
}

@media (max-width: 720px) {
    .plans-container {
        width: calc(100% - 24px);
        padding: 36px 0 72px;
        gap: 36px;
    }

    .plans-hero {
        padding: 32px;
    }

    .plan-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .plan-banner__icon {
        width: 52px;
        height: 52px;
        font-size: 1.4rem;
    }

    .plans-support__content {
        gap: 18px;
    }

    .plans-faq {
        padding: 28px;
    }
}

@media (max-width: 540px) {
    .plans-nav__inner {
        padding: 16px;
    }

    .plans-nav__link {
        width: 100%;
        justify-content: center;
    }

    .plans-nav__actions {
        width: 100%;
        justify-content: center;
    }

    .plans-hero {
        padding: 26px 24px;
    }

    .plan-banner {
        padding: 24px;
    }

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

    .plans-support,
    .plans-faq {
        padding: 24px;
    }

    .toast-container {
        top: 16px;
        right: 16px;
    }
}
