/* SolviFood Auth & Register Styles */
.solvifood-auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 15px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #333;
}

.solvifood-auth-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 760px;
    padding: 35px;
    border: 1px solid #eaeaea;
    box-sizing: border-box;
}

.solvifood-auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.solvifood-auth-header h2 {
    font-size: 1.7rem;
    color: #1a1a1a;
    margin-top: 0;
    margin-bottom: 8px;
    font-weight: 700;
}

.solvifood-auth-header p {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
}

.solvifood-auth-section {
    background: #fdfdfd;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 22px;
}

.solvifood-auth-section h3 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 1.1rem;
    color: #ff5722;
    border-bottom: 2px solid #ff5722;
    padding-bottom: 6px;
    display: inline-block;
}

.solvifood-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

@media (max-width: 600px) {
    .solvifood-form-row {
        grid-template-columns: 1fr;
    }
}

.solvifood-form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}

.solvifood-form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #444;
}

.solvifood-form-group input,
.solvifood-form-group select,
.solvifood-form-group textarea {
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
    box-sizing: border-box;
    width: 100%;
}

.solvifood-form-group input:focus,
.solvifood-form-group select:focus,
.solvifood-form-group textarea:focus {
    outline: none;
    border-color: #ff5722;
    box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.15);
}

.solvifood-slug-input-wrap {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 6px;
    overflow: hidden;
    background: #f5f5f5;
}

.solvifood-slug-prefix {
    padding: 10px 12px;
    background: #ebebeb;
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
    border-right: 1px solid #ddd;
    white-space: nowrap;
}

.solvifood-slug-input-wrap input {
    border: none;
    border-radius: 0;
    padding: 10px 12px;
    background: #fff;
}

.solvifood-feedback {
    font-size: 0.85rem;
    margin-top: 5px;
    font-weight: 600;
}
.solvifood-feedback.success { color: #27ae60; }
.solvifood-feedback.error { color: #e74c3c; }

.solvifood-auth-msg {
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 0.95rem;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}
.solvifood-auth-msg.error {
    background: #fde8e8;
    color: #c81e1e;
    border: 1px solid #f8b4b4;
}
.solvifood-auth-msg.success {
    background: #def7ec;
    color: #03543f;
    border: 1px solid #84e1bc;
}

.btn-solvifood-auth {
    background: #ff5722;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 14px 20px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s, transform 0.1s;
    text-align: center;
    display: inline-block;
    box-sizing: border-box;
    text-decoration: none;
}

.btn-solvifood-auth:hover {
    background: #e64a19;
    color: #fff;
}

.solvifood-auth-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 0.95rem;
    color: #666;
}

.solvifood-auth-footer a {
    color: #ff5722;
    font-weight: 600;
    text-decoration: none;
}
.solvifood-auth-footer a:hover {
    text-decoration: underline;
}

/* Adaptación de intl-tel-input */
.iti {
    width: 100%;
}
.iti__country-list {
    z-index: 999999 !important;
    font-family: inherit;
    font-size: 0.9rem;
}
.iti__flag-container {
    border-radius: 6px 0 0 6px;
}

/* ================= SAAS 4-PLANS GRID EN REGISTRO (4 EN FILA EN PC) ================= */
.reg-plans-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 15px;
    align-items: stretch;
}

@media (max-width: 980px) {
    .reg-plans-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 580px) {
    .reg-plans-grid-4 {
        grid-template-columns: 1fr;
    }
}

.dash-plans-outer-wrap {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 16px;
    margin-top: 15px;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 980px) {
    .dash-plans-outer-wrap {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.dash-paid-plans-wrapper {
    background: linear-gradient(135deg, rgba(255, 247, 237, 0.75) 0%, rgba(240, 249, 255, 0.75) 100%);
    border: 2px dashed #f97316;
    border-radius: 16px;
    padding: 24px 14px 14px 14px;
    position: relative;
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.08);
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.paid-plans-header-badge {
    position: absolute;
    top: -13px;
    left: 20px;
    background: linear-gradient(135deg, #ff5722, #ea580c);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.75rem;
    padding: 4px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 8px rgba(234, 88, 12, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    z-index: 2;
    box-sizing: border-box;
}

@media (max-width: 580px) {
    .dash-paid-plans-wrapper {
        padding: 18px 10px 12px 10px;
        border-radius: 14px;
    }
    .paid-plans-header-badge {
        position: static;
        display: table;
        margin: 0 auto 12px auto;
        font-size: 0.72rem;
        padding: 4px 10px;
        text-align: center;
        white-space: normal;
        line-height: 1.25;
    }
}

.dash-paid-plans-wrapper .dash-plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 0;
    flex: 1;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 980px) {
    .dash-paid-plans-wrapper .dash-plans-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 12px;
    }
}

@media (max-width: 640px) {
    .dash-paid-plans-wrapper .dash-plans-grid {
        grid-template-columns: 1fr !important;
        gap: 14px;
    }
}

.dash-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 15px;
    margin-top: 15px;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 640px) {
    .dash-plans-grid {
        grid-template-columns: 1fr !important;
    }
}

.dash-plan-card, .reg-plan-card {
    border: 1.5px solid #cbd5e1;
    border-radius: 14px;
    padding: 20px 16px 16px 16px;
    background: #ffffff;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    cursor: pointer;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.28s ease, background 0.28s ease;
}

.dash-plan-card h4, .reg-plan-card h4 {
    margin: 0 0 4px 0;
    font-size: 1.15rem;
    color: #1e293b;
    line-height: 1.25;
}

.card-pricing-block {
    margin: 6px 0;
    text-align: center;
    min-height: 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dash-plan-card ul, .reg-plan-card ul {
    font-size: 0.8rem;
    padding: 0;
    margin: 8px 0 14px 0;
    list-style: none;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}

.dash-plan-card ul li, .reg-plan-card ul li {
    word-break: break-word;
    overflow-wrap: break-word;
}

.dash-plan-card .btn-select-reg-plan,
.reg-plan-card .btn-select-reg-plan,
.dash-plan-card .btn-open-plan-upgrade,
.dash-plan-card .btn-dash-current-plan {
    margin-top: auto;
    width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-break: break-word;
    padding: 10px 12px;
    font-size: 0.88rem;
    line-height: 1.25;
    text-align: center;
}

.plan-features-toggle-wrap {
    list-style: none !important;
    padding: 6px 0 2px 0 !important;
    margin-top: 4px;
    text-align: center;
    border: none !important;
}

.btn-toggle-plan-features {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #2563eb;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 14px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    outline: none;
    line-height: 1.2;
    max-width: 100%;
    box-sizing: border-box;
}

.btn-toggle-plan-features:hover {
    background: #e2e8f0;
    color: #1d4ed8;
    border-color: #94a3b8;
}

.dash-plan-card:hover, .reg-plan-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.dash-plan-card.featured {
    border-color: #ff5722;
}

/* ================= EFECTOS DE TARJETA DE PLAN SELECCIONADO ================= */
.reg-plan-card.active-plan,
.dash-plan-card.active-plan {
    transform: translateY(-4px) !important;
    z-index: 10;
    position: relative;
}

@media (max-width: 768px) {
    .reg-plan-card.active-plan,
    .dash-plan-card.active-plan {
        transform: none !important;
    }
}

/* Básico (Free) seleccionado */
.reg-plan-card[data-plan-key="free"].active-plan,
.dash-plan-card[data-plan-key="free"].active-plan {
    border: 2.5px solid #22c55e !important;
    background: #f0fdf4 !important;
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.18), 0 0 0 3px rgba(34, 197, 94, 0.25) !important;
}

/* Emprendedor (Starter) seleccionado */
.reg-plan-card[data-plan-key="starter"].active-plan,
.dash-plan-card[data-plan-key="starter"].active-plan {
    border: 2.5px solid #0284c7 !important;
    background: #f0f9ff !important;
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.18), 0 0 0 3px rgba(2, 132, 199, 0.25) !important;
}

/* PRO seleccionado */
.reg-plan-card[data-plan-key="pro"].active-plan,
.dash-plan-card[data-plan-key="pro"].active-plan {
    border: 2.5px solid #ff5722 !important;
    background: #fff7ed !important;
    box-shadow: 0 10px 28px rgba(255, 87, 34, 0.2), 0 0 0 3.5px rgba(255, 87, 34, 0.3) !important;
}

/* Enterprise seleccionado */
.reg-plan-card[data-plan-key="enterprise"].active-plan,
.dash-plan-card[data-plan-key="enterprise"].active-plan {
    border: 2.5px solid #7c3aed !important;
    background: #faf5ff !important;
    box-shadow: 0 10px 28px rgba(124, 58, 237, 0.2), 0 0 0 3.5px rgba(124, 58, 237, 0.3) !important;
}

.plan-ribbon {
    position: absolute;
    top: -10px;
    right: 15px;
    background: #ff5722;
    color: #fff;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: bold;
    text-transform: uppercase;
}

.page-period-pills-wrap {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 640px) {
    .page-period-pills-wrap {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px;
    }
}

@media (max-width: 360px) {
    .page-period-pills-wrap {
        grid-template-columns: 1fr !important;
        gap: 6px;
    }
}

.page-period-pill {
    background: #fff;
    border: 2px solid #cbd5e1;
    border-radius: 10px;
    padding: 10px 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.page-period-pill:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

.page-period-pill.active {
    border: 2.5px solid #16a34a !important;
    background: #ecfdf5 !important;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2) !important;
}

.page-period-pill .period-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #334155;
    word-break: break-word;
}

.page-period-pill.active .period-title {
    color: #065f46 !important;
    font-weight: 800 !important;
}

.page-period-pill .period-badge {
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 10px;
    white-space: normal;
    text-align: center;
    line-height: 1.2;
}

.page-period-pill .period-badge.highlight {
    background: #fef3c7;
    color: #b45309;
    font-weight: 700;
}

.page-period-pill .period-badge.highlight-gold {
    background: #e0e7ff;
    color: #4338ca;
    font-weight: 700;
}

.btn-dash-primary {
    background: #ff5722;
    color: #fff;
    border: 1px solid #e64a19;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 0.15s ease;
}

.btn-dash-primary:hover {
    background: #e64a19;
    color: #fff;
}

.btn-dash-secondary {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.15s ease;
}

.btn-dash-secondary:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* responsive layout adjustments to maximize usable width on mobile screens */
@media (max-width: 600px) {
    .solvifood-auth-wrapper {
        padding: 15px 5px !important;
    }
    .solvifood-auth-card {
        padding: 20px 12px !important;
        border-radius: 8px !important;
    }
    .solvifood-auth-section {
        padding: 15px 10px !important;
        margin-bottom: 16px !important;
    }
    .solvifood-slug-input-wrap {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .solvifood-slug-prefix {
        border-right: none !important;
        border-bottom: 1px solid #e2e8f0 !important;
        padding: 8px 10px !important;
        font-size: 0.8rem !important;
        background: #f1f5f9 !important;
        white-space: normal !important;
        word-break: break-all !important;
    }
    .solvifood-slug-input-wrap input {
        width: 100% !important;
        padding: 10px 12px !important;
        font-size: 0.95rem !important;
    }
}

/* ================= PASSWORD WRAP & TOGGLE EYE ================= */
.solvifood-password-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.solvifood-password-wrap input {
    padding-right: 42px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.btn-toggle-password {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent !important;
    border: none !important;
    cursor: pointer;
    font-size: 1.15rem;
    line-height: 1;
    padding: 4px;
    color: #64748b;
    z-index: 5;
    user-select: none;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn-toggle-password:hover {
    opacity: 0.8;
    transform: translateY(-50%) scale(1.1);
}

@keyframes solvi-pulse {
    0%   { transform: scale(1);    box-shadow: 0 0 0 0 rgba(220,38,38,0.6); }
    50%  { transform: scale(1.08); box-shadow: 0 0 0 8px rgba(220,38,38,0); }
    100% { transform: scale(1);    box-shadow: 0 0 0 0 rgba(220,38,38,0); }
}

/* ================= COMPARATIVA DE HERRAMIENTAS INLINE (REGISTRO) ================= */
.solvifood-reg-features-comparison-wrap {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 14px;
    padding: 22px 18px;
    margin-top: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    animation: solviFadeIn 0.28s ease-out;
}

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

.reg-comp-table-container {
    overflow-x: auto;
    margin-top: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: inset 0 0 4px rgba(0,0,0,0.02);
}

.reg-comp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    text-align: left;
    min-width: 680px;
}

.reg-comp-table th, 
.reg-comp-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.reg-comp-table th {
    font-weight: 700;
    background: #f8fafc;
    color: #1e293b;
    position: sticky;
    top: 0;
    z-index: 2;
}

.reg-comp-table th.col-plan-free {
    background: rgba(240, 253, 244, 0.9);
    color: #16a34a;
    text-align: center;
}

.reg-comp-table th.col-plan-starter {
    background: rgba(240, 249, 255, 0.9);
    color: #0284c7;
    text-align: center;
}

.reg-comp-table th.col-plan-pro {
    background: rgba(255, 247, 237, 0.9);
    color: #ea580c;
    text-align: center;
}

.reg-comp-table th.col-plan-enterprise {
    background: rgba(250, 245, 255, 0.9);
    color: #7c3aed;
    text-align: center;
}

.reg-comp-table td.col-center {
    text-align: center;
}

.reg-comp-section-row td {
    background: #f1f5f9;
    font-weight: 800;
    color: #334155;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 9px 14px;
    border-top: 1.5px solid #cbd5e1;
    border-bottom: 1.5px solid #cbd5e1;
}

.reg-comp-feature-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.reg-comp-feature-title {
    font-weight: 700;
    color: #0f172a;
    font-size: 0.9rem;
}

.reg-comp-feature-desc {
    font-size: 0.76rem;
    color: #64748b;
    line-height: 1.35;
}

.reg-feature-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.reg-feature-badge.badge-yes {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.reg-feature-badge.badge-no {
    background: #f1f5f9;
    color: #94a3b8;
    border: 1px solid #e2e8f0;
}

.reg-feature-value {
    font-weight: 700;
    color: #1e293b;
    font-size: 0.82rem;
    white-space: nowrap;
}

.reg-comp-btn-select {
    padding: 7px 10px !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    width: 100% !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    white-space: nowrap;
}

.reg-comp-btn-select:hover {
    transform: translateY(-1.5px) !important;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08) !important;
}


