/* Mac Cloud — home plan cards + premium info modal */
.mac-cloud-plan-card {
    position: relative;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 24px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.07);
}

.mac-cloud-plan-card--featured {
    border: 2px solid #3b82f6;
    box-shadow: 0 24px 56px -16px rgba(59, 130, 246, 0.28);
}

@media (min-width: 1024px) {
    .mac-cloud-plan-card--featured {
        transform: translateY(-10px);
    }
}

.mac-cloud-plan-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(105deg, #5b68f6, #9933ff);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.mac-cloud-plan-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    margin: 0 0 1rem;
}

.mac-cloud-plan-visual img {
    max-height: 120px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.mac-cloud-plan-visual--mini {
    min-height: 132px;
}

.mac-cloud-plan-visual--mini img {
    max-height: none;
    width: min(100%, 200px);
    transform: scale(1.55);
    transform-origin: center center;
}

.mac-cloud-plan-eyebrow {
    display: inline-block;
    align-self: flex-start;
    background: #eef2ff;
    color: #4f46e5;
    font-size: 10px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}

.mac-cloud-plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.75rem;
    letter-spacing: -0.02em;
}

.mac-cloud-plan-teaser {
    font-size: 13px;
    color: #64748b;
    line-height: 1.55;
    margin: 0 0 1.25rem;
}

.mac-cloud-plan-features {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    flex: 1;
}

.mac-cloud-plan-features li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 13px;
    color: #334155;
    line-height: 1.45;
    margin-bottom: 0.65rem;
}

.mac-cloud-plan-features .fa-check {
    color: #5b68f6;
    margin-top: 3px;
    flex-shrink: 0;
    font-size: 11px;
}

.mac-cloud-plan-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    padding-top: 0.35rem;
}

.mac-cloud-ficha-cta {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(148, 163, 184, 0.28);
}

.mac-cloud-ficha-cta .btn-primary {
    border-radius: 999px;
}

.mac-cloud-plans-grid .mac-cloud-plan-card--featured {
    z-index: 1;
}

@media (min-width: 768px) and (max-width: 1023px) {
    .mac-cloud-plans-grid .mac-cloud-plan-card--featured {
        grid-column: 1 / -1;
        max-width: 28rem;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
    }
}

.mac-cloud-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    padding: 12px 16px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease;
    font-family: inherit;
    text-decoration: none;
}

.mac-cloud-btn--contact {
    background: #25d366;
    color: #fff;
}

.mac-cloud-btn--contact:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.mac-cloud-btn--info {
    background: #fff;
    color: #0f172a;
    border: 1px solid #e2e8f0;
}

.mac-cloud-btn--info:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

/* ——— Modal ——— */
#mac-cloud-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.28s ease;
}

#mac-cloud-modal.active {
    display: flex;
    opacity: 1;
}

.mac-cloud-modal-shell--compact {
    max-width: 440px;
}

.mac-cloud-modal-panel--compact .mac-cloud-modal-head {
    padding: 18px 20px 12px;
}

.mac-cloud-modal-body--compact {
    padding: 8px 20px 16px !important;
}

.mac-cloud-modal-bullets {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
}

.mac-cloud-modal-bullets li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 13px;
    line-height: 1.45;
    color: #475569;
    margin-bottom: 8px;
}

.mac-cloud-modal-bullets .fa-check {
    color: #5b68f6;
    margin-top: 3px;
    font-size: 11px;
}

.mac-cloud-btn--full {
    width: 100%;
}

html.dark .mac-cloud-modal-bullets li {
    color: #cbd5e1;
}

.mac-cloud-modal-shell {
    width: 100%;
    max-width: 920px;
    max-height: min(92vh, 880px);
    display: flex;
    flex-direction: column;
    transform: scale(0.94) translateY(8px);
    transition: transform 0.28s ease;
}

#mac-cloud-modal.active .mac-cloud-modal-shell {
    transform: scale(1) translateY(0);
}

.mac-cloud-modal-panel {
    display: flex;
    flex-direction: column;
    max-height: min(92vh, 880px);
    background: #f8fafc;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 32px 64px -20px rgba(15, 23, 42, 0.45);
    overflow: hidden;
}

.mac-cloud-modal-panel[hidden] {
    display: none !important;
}

.mac-cloud-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px 16px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
}

.mac-cloud-modal-panel--violet .mac-cloud-modal-head {
    background: linear-gradient(180deg, rgba(237, 233, 254, 0.9), rgba(248, 250, 252, 0.95));
}

.mac-cloud-modal-panel--indigo .mac-cloud-modal-head {
    background: linear-gradient(180deg, rgba(224, 231, 255, 0.85), rgba(248, 250, 252, 0.95));
}

.mac-cloud-modal-eyebrow {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #6366f1;
    margin: 0 0 6px;
}

.mac-cloud-modal-title {
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #0f172a;
    margin: 0;
    line-height: 1.15;
}

.mac-cloud-modal-subtitle {
    font-size: 13px;
    color: #64748b;
    margin: 6px 0 0;
}

.mac-cloud-modal-close {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s;
}

.mac-cloud-modal-close:hover {
    background: #0f172a;
    color: #fff;
    border-color: #0f172a;
}

.mac-cloud-modal-body {
    padding: 20px 22px 8px;
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}

.mac-cloud-modal-hero {
    display: grid;
    gap: 18px;
    margin-bottom: 22px;
}

@media (min-width: 640px) {
    .mac-cloud-modal-hero {
        grid-template-columns: minmax(0, 42%) 1fr;
        align-items: center;
    }
}

.mac-cloud-modal-visual {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.mac-cloud-modal-visual img {
    display: block;
    width: 100%;
    height: auto;
}

.mac-cloud-modal-lead {
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
    margin: 0 0 14px;
}

.mac-cloud-modal-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mac-cloud-metric-chip {
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #334155;
}

.mac-cloud-modal-grid {
    display: grid;
    gap: 16px;
}

@media (min-width: 768px) {
    .mac-cloud-modal-grid {
        grid-template-columns: 1.2fr 0.85fr;
        align-items: start;
    }
}

.mac-cloud-modal-section-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #64748b;
    margin: 0 0 12px;
}

.mac-cloud-modal-section-label--spaced {
    margin-top: 18px;
}

.mac-cloud-highlight-cards {
    display: grid;
    gap: 10px;
}

@media (min-width: 520px) {
    .mac-cloud-highlight-cards {
        grid-template-columns: 1fr 1fr;
    }
}

.mac-cloud-highlight-card {
    display: flex;
    gap: 12px;
    padding: 14px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.mac-cloud-highlight-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
}

.mac-cloud-modal-panel--violet .mac-cloud-highlight-icon {
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
    color: #7c3aed;
}

.mac-cloud-highlight-card strong {
    display: block;
    font-size: 13px;
    color: #0f172a;
    margin-bottom: 2px;
}

.mac-cloud-highlight-card p {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
    color: #64748b;
}

.mac-cloud-modal-aside {
    padding: 16px !important;
    border-radius: 16px !important;
}

.mac-cloud-modal-aside-list {
    margin: 0;
    padding-left: 1.1rem;
    font-size: 12px;
    line-height: 1.55;
    color: #475569;
}

.mac-cloud-modal-steps {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mac-cloud-modal-steps li {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: #475569;
    margin-bottom: 10px;
    line-height: 1.4;
}

.mac-cloud-step-detail {
    display: block;
    font-style: normal;
    color: #94a3b8;
    margin-top: 2px;
    font-size: 11px;
}

.mac-cloud-step-num {
    font-size: 10px;
    font-weight: 800;
    color: #5b68f6;
    min-width: 22px;
}

.mac-cloud-modal-fine {
    margin-top: 18px;
    font-size: 12px;
    color: #64748b;
}

.mac-cloud-modal-fine summary {
    cursor: pointer;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
}

.mac-cloud-modal-fine p {
    margin: 0;
    line-height: 1.55;
}

.mac-cloud-modal-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px 22px 20px;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
}

.mac-cloud-section--landing {
    padding-top: 0;
}

.mac-cloud-section--after-process {
    margin-top: 2.75rem;
    margin-bottom: 0 !important;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.mac-cloud-section--after-process .text-center.mb-12 {
    margin-bottom: 2rem;
}

.mac-cloud-section--landing .section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

/* Dark mode */
html.dark .mac-cloud-plan-card {
    background: rgba(30, 41, 59, 0.82);
    border-color: rgba(71, 85, 105, 0.55);
}

html.dark .mac-cloud-plan-name,
html.dark .mac-cloud-modal-title,
html.dark .mac-cloud-highlight-card strong {
    color: #f1f5f9;
}

html.dark .mac-cloud-plan-teaser,
html.dark .mac-cloud-plan-features li,
html.dark .mac-cloud-modal-lead,
html.dark .mac-cloud-modal-aside-list,
html.dark .mac-cloud-modal-steps li {
    color: #cbd5e1;
}

html.dark .mac-cloud-btn--info {
    background: rgba(15, 23, 42, 0.65);
    color: #f1f5f9;
    border-color: rgba(71, 85, 105, 0.8);
}

html.dark #mac-cloud-modal {
    background: rgba(0, 0, 0, 0.75);
}

html.dark .mac-cloud-modal-panel {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.08);
}

html.dark .mac-cloud-modal-head,
html.dark .mac-cloud-modal-foot {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(255, 255, 255, 0.08);
}

html.dark .mac-cloud-modal-subtitle,
html.dark .mac-cloud-modal-section-label,
html.dark .mac-cloud-highlight-card p {
    color: #94a3b8;
}

html.dark .mac-cloud-highlight-card {
    background: rgba(15, 23, 42, 0.55);
    border-color: rgba(255, 255, 255, 0.08);
}

html.dark .mac-cloud-metric-chip {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

html.dark .mac-cloud-modal-close {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
}

html.dark .mac-cloud-modal-close:hover {
    background: #f1f5f9;
    color: #0f172a;
}
