/* Billing/currency controls anchored to the top-nav dropdown, shared by
   every page since the nav (and its price dropdown) is now a shared
   partial (_nav.html). Also holds the catalog card/carousel/combo styles
   shared by Inicio and Servicios. Extracted from the inline <style> block
   that used to live only in index.html. */
.nav-price-settings {
    position: relative;
}

.price-settings-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(252,107,17, 0.4);
    background: rgba(252,107,17, 0.14);
    color: #ffd9b8;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.price-settings-toggle:hover,
.price-settings-toggle[aria-expanded="true"] {
    background: rgba(252,107,17, 0.26);
    border-color: rgba(252,107,17, 0.65);
}

.price-settings-caret {
    font-size: 0.65rem;
    transition: transform 0.2s ease;
}

.price-settings-toggle[aria-expanded="true"] .price-settings-caret {
    transform: rotate(180deg);
}

.price-settings-dropdown {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    /* Fixed (not absolute) and reparented to <body> by JS on
       init - the navbar clips/scrolls overflowing children
       (backdrop-filter blur + its own overflow handling), so an
       absolutely-positioned dropdown nested inside it never
       actually floats over the page, it gets clipped and the
       navbar grows a scrollbar instead. top/left are set
       inline by initPriceSettingsDropdown() from the toggle
       button's position. */
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1100;
    width: min(300px, 90vw);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-strong, rgba(255,255,255,.16));
    background: var(--surface, #141b28);
    color: var(--fg, #ffffff);
    box-shadow: var(--shadow-lg, 0 18px 40px rgba(5,8,14,.45));
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    pointer-events: none;
}

.price-settings-dropdown.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.price-settings-dropdown .price-control-panel {
    flex: none;
    width: 100%;
    min-width: 0;
}

@media (max-width: 640px) {
    .price-settings-toggle span:not(.price-settings-caret) {
        display: none;
    }
}

/* design-system.js (initNavMobileRelocation) mueve .nav-price-settings y el
   CTA "Clientes" (.nav-cta-clientes) hacia .nav-links en movil, en vez de
   dejarlos como controles siempre visibles apretados junto al hamburger en
   la barra superior angosta. El layout full-width dentro del drawer vive en
   design-system.css (junto al resto de reglas de .nav-links/.nav-right). */

.price-control-panel {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 0.8rem;
    border-radius: 6px;
    border: 1px solid var(--border, rgba(255,255,255,.09));
    background: var(--surface-2, #1a2233);
}

.price-control-panel.currency-panel {
    flex: 1 1 22%;
    min-width: 190px;
    justify-content: center;
}

.price-control-panel.billing-panel {
    flex: 1 1 calc(80% - 1rem);
}

.price-control-label {
    margin: 0;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted, #9aa4b5);
}

.currency-select-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 2.5rem;
}

.currency-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1rem;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.25);
}

.currency-name {
    font-size: 0.92rem;
    line-height: 1.3;
}

.price-currency-select {
    flex: 1;
    min-height: 2.3rem;
    border-radius: 6px;
    border: 1px solid var(--border-strong, rgba(255,255,255,.16));
    background: var(--surface, #141b28);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.45rem 0.9rem;
}

.price-currency-select option {
    background: var(--surface, #141b28);
    color: #ffffff;
}

.price-currency-select:focus-visible {
    outline: none;
    border-color: #fc6b11;
    box-shadow: 0 0 0 3px rgba(252,107,17, 0.2);
}

.price-toggle-group {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    width: 100%;
    padding: 0.28rem;
    border: 1px solid var(--border, rgba(255,255,255,.09));
    border-radius: 8px;
    background: var(--surface, #141b28);
}

.price-toggle-btn {
    flex: 1;
    border: 1px solid var(--border-strong, rgba(255,255,255,.16));
    border-radius: 6px;
    padding: 0.58rem 0.75rem;
    background: transparent;
    color: var(--muted, #9aa4b5);
    font-size: 0.89rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: normal;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

.price-toggle-btn .fi {
    width: 1.05rem;
    height: 0.82rem;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.2);
}

.price-toggle-btn .toggle-main {
    font-size: 0.86rem;
    font-weight: 700;
}

.price-toggle-btn .toggle-sub {
    display: block;
    font-size: 0.72rem;
    opacity: 0.85;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.billing-toggle {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    --billing-pill-index: 0;
    border-radius: 8px;
    background: var(--surface, #141b28);
    border-color: var(--border, rgba(255,255,255,.09));
    padding: 0.3rem;
    gap: 0;
}

.billing-pill {
    position: absolute;
    top: 0.3rem;
    left: 0.3rem;
    width: calc((100% - 0.6rem) / 2);
    height: calc(100% - 0.6rem);
    border-radius: 6px;
    background: linear-gradient(135deg, #fc6b11 0%, #e85c08 100%);
    box-shadow: 0 6px 14px rgba(252,107,17, 0.24);
    transform: translateX(calc(var(--billing-pill-index, 0) * 100%));
    transition: transform 0.24s ease;
    pointer-events: none;
    z-index: 0;
}

.billing-toggle .price-toggle-btn {
    position: relative;
    z-index: 1;
    border-radius: 6px;
    flex-direction: column;
    gap: 0.2rem;
    min-height: 3.05rem;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.billing-toggle .price-toggle-btn i {
    font-size: 1rem;
}

.price-toggle-btn:hover {
    border-color: #fc6b11;
}

.price-toggle-btn.is-active {
    background: linear-gradient(135deg, #fc6b11 0%, #e85c08 100%);
    border-color: #e85c08;
    color: #ffffff;
    box-shadow: 0 6px 14px rgba(252,107,17, 0.25);
}

.billing-toggle .price-toggle-btn:hover {
    border: 0;
    background: transparent;
    box-shadow: none;
}

.billing-toggle .price-toggle-btn.is-active {
    border: 0;
    background: transparent;
    color: #ffffff;
    box-shadow: none;
}

.price-toggle-btn:focus-visible {
    outline: none;
    border-color: #fc6b11;
    box-shadow: 0 0 0 3px rgba(252,107,17, 0.2);
}

.price-iva-switch {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    cursor: pointer;
    user-select: none;
}

.price-iva-checkbox {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.price-iva-track {
    position: relative;
    flex-shrink: 0;
    width: 2.6rem;
    height: 1.5rem;
    border-radius: 999px;
    background: var(--surface-2, #1a2233);
    border: 1px solid var(--border-strong, rgba(255,255,255,.16));
    transition: background 0.2s ease, border-color 0.2s ease;
}

.price-iva-thumb {
    position: absolute;
    top: 0.13rem;
    left: 0.13rem;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.25);
    transition: transform 0.22s ease;
}

.price-iva-checkbox:checked + .price-iva-track {
    background: linear-gradient(135deg, #fc6b11 0%, #e85c08 100%);
    border-color: #e85c08;
}

.price-iva-checkbox:checked + .price-iva-track .price-iva-thumb {
    transform: translateX(1.1rem);
}

.price-iva-checkbox:focus-visible + .price-iva-track {
    box-shadow: 0 0 0 3px rgba(252,107,17, 0.2);
}

.price-iva-switch-text {
    font-size: 0.86rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.25;
}

#price-exchange-rate-info {
    flex: 1 0 100%;
    text-align: center;
    margin: 0.1rem 0 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted, #9aa4b5);
}

/* Nav dropdown for "Servicios" (category list on hover/focus) */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    z-index: 1050;
    min-width: 220px;
    margin: 0;
    padding: 0.5rem;
    list-style: none;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(252,107,17, 0.2);
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.nav-dropdown-menu[hidden] {
    display: block;
}

.nav-dropdown.is-open .nav-dropdown-menu,
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-dropdown-menu li {
    list-style: none;
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.55rem 0.75rem;
    border-radius: var(--radius-md, 8px);
    color: var(--gray-800, #1f2937);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible {
    background: rgba(252,107,17, 0.1);
    color: #e85c08;
}

.service-card.highlight[data-dynamic-category-card="true"] {
    border: 2px solid var(--dynamic-card-accent, #fc6b11);
}

.service-card.highlight[data-dynamic-category-card="true"]::before {
    display: none;
}

.services-carousel-controls {
    margin-top: var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.services-carousel-btn {
    border: 1px solid rgba(252,107,17, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: #7a2f08;
    padding: 0.5rem 0.9rem;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.services-carousel-btn:hover:not(:disabled) {
    border-color: #fc6b11;
    background: #fff4ec;
}

.services-carousel-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.services-carousel-indicator {
    min-width: 4rem;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 700;
    color: #7a2f08;
}

@media (max-width: 900px) {
    .price-control-panel.currency-panel,
    .price-control-panel.billing-panel {
        flex: 1 0 100%;
        min-width: 0;
    }
}

@media (max-width: 560px) {
    .price-settings-dropdown {
        gap: 0.55rem;
        padding: 0.7rem;
    }

    .price-control-panel {
        width: 100%;
        padding: 0.65rem;
        gap: 0.5rem;
    }

    .price-toggle-btn {
        padding: 0.5rem 0.5rem;
        font-size: 0.8rem;
    }

    .billing-toggle .price-toggle-btn {
        min-height: 2.8rem;
        gap: 0.1rem;
    }

    .billing-toggle .price-toggle-btn .toggle-main {
        font-size: 0.8rem;
        line-height: 1.1;
    }

    .billing-toggle .price-toggle-btn .toggle-sub {
        font-size: 0.68rem;
        line-height: 1.1;
    }

    .price-currency-select {
        min-height: 2.2rem;
        font-size: 0.85rem;
        padding: 0.4rem 0.75rem;
    }

    .service-card .card-price {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.15rem;
    }

    .service-card .price-amount {
        font-size: clamp(1.15rem, 5vw, 1.45rem);
        line-height: 1.1;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .service-card .price-period {
        font-size: 0.74rem;
        line-height: 1.2;
    }

    .services-carousel-controls {
        gap: 0.45rem;
    }

    .services-carousel-btn {
        padding: 0.45rem 0.65rem;
        font-size: 0.8rem;
    }

    .services-carousel-indicator {
        font-size: 0.76rem;
    }

    #price-exchange-rate-info {
        text-align: left;
        margin-top: 0.35rem;
    }
}

/* "Mas recursos por menos precio" (plan combos) - deliberately
   violet/indigo instead of the brand orange used by .service-card,
   so a bundle reads as its own category of offer, not "one more
   regular plan card". */
.combos-section {
    background: linear-gradient(180deg, rgba(124, 58, 237, 0.06) 0%, transparent 100%);
    padding: 10px;
}

.combos-section .section-badge {
    background: rgba(124, 58, 237, 0.12);
    color: #6d28d9;
    border-color: rgba(124, 58, 237, 0.25);
}

.combos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: var(--spacing-lg);
}

.combo-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding: 1.75rem;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(124, 58, 237, 0.22);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 243, 255, 0.92) 100%);
    box-shadow: 0 14px 32px rgba(76, 29, 149, 0.12);
    overflow: hidden;
}

.combo-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, #7c3aed 0%, #a855f7 50%, #fc6b11 100%);
}

.combo-savings-badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #ffffff;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.35);
}

.combo-title {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 800;
    color: #3b0764;
}

.combo-description {
    margin: 0;
    color: #57534e;
    font-size: 0.92rem;
    line-height: 1.5;
}

.combo-included-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.combo-included-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.16);
    font-size: 0.8rem;
    font-weight: 600;
    color: #4c1d95;
}

.combo-included-chip .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex: none;
}

.combo-price-row {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px dashed rgba(124, 58, 237, 0.25);
}

.combo-price-original {
    font-size: 0.95rem;
    color: #a8a29e;
    text-decoration: line-through;
}

.combo-price-final {
    font-size: 1.6rem;
    font-weight: 800;
    color: #3b0764;
}

.combo-price-period {
    font-size: 0.82rem;
    color: #78716c;
}

.combo-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(124, 58, 237, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.combo-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(124, 58, 237, 0.4);
}

.combos-section[hidden] {
    display: none;
}

/* Dedicated category page (/servicios/<uuid>, categoria.html) - header
   plus a grid of every plan in that category, each rendered as a
   .plan-item card (shared styles further below). */
.categoria-hero {
    /* Extra top padding vs. .servicios-hero's: the fixed .navbar (~83px
       tall) otherwise clips the back-link/badge sitting above the title. */
    padding: calc(var(--spacing-xl) * 1.4 + 3rem) 0 var(--spacing-lg);
    text-align: center;
}

.categoria-hero .section-title {
    margin-bottom: 0.5rem;
}

.categoria-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: #e85c08;
    text-decoration: none;
}

.categoria-back-link:hover {
    text-decoration: underline;
}

.categoria-plans {
    padding-bottom: var(--spacing-xl);
}

.categoria-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: var(--spacing-md);
}

.categoria-plans-loading {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem 0;
    color: var(--gray-600, #4b5563);
    font-weight: 600;
}

.categoria-plans-empty {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 2.5rem 1rem;
    text-align: center;
    color: var(--gray-600, #4b5563);
}

.categoria-plans-empty i {
    font-size: 2rem;
    color: #e85c08;
}

/* Grid-blowout guard: .service-card is a direct item of .services-grid's
   `repeat(auto-fit, minmax(260px, 1fr))` track. Without min-width:0, a
   grid item's automatic minimum size defaults to its content's min-content
   width, which makes auto-fit shrink the WHOLE row down to fewer columns
   whenever one card's content is wide enough to force that min-content
   past 260px. min-width:0 lets the card shrink to whatever width the grid
   track assigns it and scroll/wrap its own content instead of dictating
   the track size upward. */
.service-card {
    min-width: 0;
}

.plan-item {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1.5rem 1.35rem 1.35rem;
    border-radius: var(--radius-lg, 16px);
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #ffffff;
    text-align: left;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.plan-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 1.35rem;
    right: 1.35rem;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: linear-gradient(90deg, #fc6b11 0%, #e85c08 100%);
}

.plan-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px -12px rgba(15, 23, 42, 0.16);
    border-color: rgba(252,107,17, 0.35);
}

.plan-item-head {
    min-width: 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.plan-item-info {
    min-width: 0;
    flex: 1;
}

.plan-item-name {
    margin: 0 0 0.2rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--gray-900, #111827);
    line-height: 1.25;
}

.plan-item-description {
    margin: 0;
    font-size: 0.8rem;
    color: var(--gray-600, #4b5563);
    line-height: 1.45;
}

.plan-item-price {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.plan-item-amount {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #e85c08;
}

.plan-item-period {
    font-size: 0.68rem;
    color: var(--gray-500, #6b7280);
}

/* Single column, one row per spec (vCPU/RAM/Almacenamiento/Instancias) -
   takes over the vertical space freed up by dropping the generic feature
   bullet list (SSL/Github integration, etc.) plan cards used to show. */
.plan-item-specs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
    margin: 0;
    padding: 0.9rem 0 0;
    list-style: none;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.plan-item-specs li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.55rem 0.75rem;
    border-radius: var(--radius-md, 10px);
    background: rgba(252,107,17, 0.06);
}

.plan-item-specs span {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gray-500, #6b7280);
}

.plan-item-specs strong {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--gray-900, #111827);
}

.plan-item-cta {
    align-self: center;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    width: 100%;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.7rem 0.9rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #fc6b11 0%, #e85c08 100%);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 22px -8px rgba(232,92,8, 0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.plan-item-cta:hover {
    filter: brightness(1.05);
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -8px rgba(232,92,8, 0.6);
}

/* Portfolio preview section on Inicio (between combos and services) - each
   card shows a slightly blurred project preview image with the title/desc
   on top, linking to the full portfolio on /nosotros#portafolio. */
.portfolio-preview {
    padding: var(--spacing-xl) 0;
}

.portfolio-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-top: var(--spacing-lg);
}

.portfolio-preview-card {
    position: relative;
    display: block;
    height: 200px;
    border-radius: var(--radius-xl, 16px);
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.portfolio-preview-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.18);
}

.portfolio-preview-bg {
    position: absolute;
    inset: -12px;
    background-size: cover;
    background-position: center;
    filter: blur(6px);
    transform: scale(1.08);
}

.portfolio-preview-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.25) 0%, rgba(15, 23, 42, 0.75) 100%);
}

.portfolio-preview-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.3rem;
    padding: 1.1rem 1.2rem;
}

.portfolio-preview-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
}

.portfolio-preview-desc {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.4;
}

.portfolio-preview-cta {
    display: flex;
    justify-content: center;
    margin-top: var(--spacing-xl);
}
