.bg-color-azul {
      background-color: #0d77b8 !important;
}

/* ===========================
   New Service Cards (svc-card)
   =========================== */
.svc-card {
    position: relative;
    padding: 40px 35px 35px;
    overflow: hidden;
    border-radius: 10px;
    transition: background-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.svc-card--dark {
    background-color: #292929;
}

.svc-card--light {
    background-color: #e0e1e5;
}

.svc-card:hover {
    background-color: #683490 !important;
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(104, 52, 144, 0.35);
    z-index: 2;
}

/* Number watermark */
.svc-card__num {
    position: absolute;
    top: 15px;
    right: 22px;
    font-size: 72px;
    font-weight: 800;
    line-height: 1;
    color: rgba(255, 255, 255, 0.05);
    font-family: "Poppins", sans-serif;
    transition: color 0.35s ease;
    pointer-events: none;
    user-select: none;
}

.svc-card--light .svc-card__num {
    color: rgba(0, 0, 0, 0.06);
}

.svc-card:hover .svc-card__num {
    color: rgba(255, 255, 255, 0.12);
}

/* Icon box */
.svc-card__icon {
    width: 60px;
    height: 60px;
    background-color: #683490;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    margin-bottom: 24px;
    transition: background-color 0.35s ease, color 0.35s ease;
    flex-shrink: 0;
}

.svc-card--light .svc-card__icon {
    background-color: #683490;
}

.svc-card:hover .svc-card__icon {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Title */
.svc-card__title {
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    margin-bottom: 12px !important;
    transition: color 0.35s ease;
}

.svc-card--dark .svc-card__title {
    color: #ffffff !important;
}

.svc-card--light .svc-card__title {
    color: #292929 !important;
}

.svc-card:hover .svc-card__title {
    color: #ffffff !important;
}

/* Description */
.svc-card__desc {
    font-size: 14px !important;
    line-height: 1.7 !important;
    margin-bottom: 0 !important;
    transition: color 0.35s ease;
    flex: 1;
}

.svc-card--dark .svc-card__desc {
    color: #999999 !important;
}

.svc-card--light .svc-card__desc {
    color: #666666 !important;
}

.svc-card:hover .svc-card__desc {
    color: rgba(255, 255, 255, 0.75) !important;
}

/* Arrow */
.svc-card__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-top: 24px;
    font-size: 14px;
    transition: background-color 0.35s ease, color 0.35s ease, transform 0.35s ease;
    flex-shrink: 0;
}

.svc-card--dark .svc-card__arrow {
    background-color: rgba(104, 52, 144, 0.15);
    color: #683490;
}

.svc-card--light .svc-card__arrow {
    background-color: rgba(104, 52, 144, 0.12);
    color: #683490;
}

.svc-card:hover .svc-card__arrow {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: translateX(4px);
}

/* Bottom accent line */
.svc-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.5);
    transition: width 0.4s ease;
}

.svc-card:hover::after {
    width: 100%;
}


/* Responsive */
@media (max-width: 767px) {
    .svc-card {
        padding: 30px 25px 28px;
    }
    .svc-card__num {
        font-size: 52px;
    }
}

/* ===========================
   Portfolio Cards (port-card)
   =========================== */

/* Filter Pills */
.port-filters {
    list-style: none;
    padding: 0;
    margin: 0 0 40px;
    gap: 8px;
}

.port-filters .nav-item {
    padding: 0;
}

.port-filters .nav-link {
    padding: 8px 22px;
    border-radius: 50px !important;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    border: 2px solid #e0e1e5 !important;
    color: #666666 !important;
    background-color: transparent !important;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
    user-select: none;
    line-height: 1.4;
}

.port-filters .nav-item.active .nav-link,
.port-filters .nav-link:hover {
    background-color: #683490 !important;
    border-color: #683490 !important;
    color: #ffffff !important;
}

/* Card base */
.port-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background-color: #1a1a1a;
    display: block;
    width: 100%;
    text-decoration: none;
}

/* Small card — square 1:1 */
.port-card--sm {
    aspect-ratio: 1 / 1;
}

/* Large/featured card — 2:1 (matches 2× small width) */
.port-card--lg {
    aspect-ratio: 2 / 1;
}

.port-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.55s ease;
}

/* Hover overlay — slides up from bottom */
.port-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(104, 52, 144, 0.95) 0%,
        rgba(40, 20, 60, 0.55) 55%,
        transparent 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px 24px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.port-card:hover img {
    transform: scale(1.08);
}

.port-card:hover .port-card__overlay {
    opacity: 1;
    transform: translateY(0);
}

/* Category badges */
.port-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    width: fit-content;
    color: #ffffff;
}

.port-badge--websites   { background-color: #683490; }
.port-badge--streaming  { background-color: #0d77b8; }
.port-badge--software   { background-color: #28a745; }
.port-badge--fotografia { background-color: #fd7e14; }
.port-badge--video      { background-color: #dc3545; }
.port-badge--podcast    { background-color: #6f42c1; }

/* Card title */
.port-card__title {
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    line-height: 1.3;
}

.port-card--lg .port-card__title {
    font-size: 21px;
}

/* "Ver Projecto" link */
.port-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s ease, gap 0.2s ease;
}

.port-card__link:hover {
    color: #ffffff;
    gap: 12px;
}

/* ===========================
   Banner — Hero H1 font size
   =========================== */
.section-angled .col-lg-7 h1 {
    font-size: 3em !important;
    line-height: 1.3 !important;
}

.section-angled .col-lg-7 h2 {
    font-size: 1.4em !important;
}

/* ===========================
   Custom Cards — Border Radius + Float
   =========================== */
.custom-cards .card {
    border-radius: 12px !important;
}

@keyframes floatCard {
    0%,  100% { transform: translateY(0px); }
    50%        { transform: translateY(-12px); }
}

.custom-cards .card {
    animation: floatCard 5s ease-in-out infinite;
    will-change: transform;
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.35),
        0 24px 52px rgba(0, 0, 0, 0.25) !important;
}

/* Stagger: card 1 → 0s, card 2 → 0.7s, card 3 → 1.4s */
.custom-cards .col-lg-4:nth-child(1) .card { animation-delay: 0s; }
.custom-cards .col-lg-4:nth-child(2) .card { animation-delay: 0.7s; }
.custom-cards .col-lg-4:nth-child(3) .card { animation-delay: 1.4s; }

/* Pause on hover for readability */
.custom-cards .card:hover {
    animation-play-state: paused;
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
    .custom-cards .card {
        animation: none;
    }
}

/* Mobile: stack aspect ratios */
@media (max-width: 991px) {
    .port-card--lg {
        aspect-ratio: 4 / 3;
    }
}

@media (max-width: 575px) {
    .port-card--sm,
    .port-card--lg {
        aspect-ratio: 4 / 3;
    }
    .port-filters li {
        padding: 6px 16px;
        font-size: 12px;
    }
}
