/* Invertir en Panamá — bloques de plataforma (identidad TRE) */
.platform-intro,
.platform-map,
.platform-nearshore,
.platform-usd,
.platform-incentives,
.platform-sectors,
.platform-land,
.platform-dd,
.platform-limits,
.platform-paths,
.platform-agro {
    padding: 4rem 2rem;
}

/* Ritmo visual: humo / blanco / humo / blanco (sin tocar el hero ni el cierre oscuro) */
.page-invertir main > section:nth-of-type(even) {
    background: #f7f7f7;
}

.page-invertir main > section:nth-of-type(odd):not(.hero) {
    background: var(--white);
}

.page-invertir main > section.platform-paths {
    background: #111;
}

.page-invertir .service-card,
.page-invertir .platform-card,
.page-invertir .platform-sector,
.page-invertir .platform-land-card,
.page-invertir .platform-dd-item,
.page-invertir .platform-opp,
.page-invertir .regime-card {
    border-color: #c5c5c5;
}

.page-invertir .service-card:hover {
    border-color: var(--red);
}

.platform-kicker {
    display: block;
    font-size: clamp(0.72rem, 1.4vw, 0.82rem);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--red);
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.platform-lead {
    max-width: 40rem;
    margin: 0.75rem auto 0;
    color: var(--grafito);
    font-size: clamp(1rem, 2vw, 1.15rem);
    text-align: center;
    line-height: 1.6;
}

.platform-intro .services-grid {
    margin-top: 2.5rem;
}

.platform-flow-cards {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0.35rem;
    margin: 2.5rem 0 1.25rem;
    overflow-x: auto;
}

.platform-flow-cards .service-card {
    flex: 1 1 0;
    min-width: 11rem;
}

.platform-flow-cards .service-content {
    padding: 1.1rem 0.9rem 1.25rem;
}

.platform-flow-cards .service-content h3,
.platform-flow-cards .service-content h4 {
    font-size: clamp(0.95rem, 1.4vw, 1.15rem);
    margin-bottom: 0.45rem;
}

.platform-flow-cards .service-content p {
    font-size: 0.85rem;
    line-height: 1.5;
}

.platform-flow-arrow {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    align-self: center;
    width: 2.85rem;
    height: 1.15rem;
    color: var(--red);
}

.platform-flow-arrow svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: currentColor;
}

.platform-map-visual {
    margin-top: 2rem;
    margin-bottom: 0;
    background: transparent;
    color: inherit;
    border-radius: 0;
    padding: 0;
    overflow: visible;
}

.platform-map-visual img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.platform-map-legend {
    display: grid;
    gap: 0.65rem;
    margin-top: 1.25rem;
}

.platform-map-legend span {
    display: block;
    font-size: 0.9rem;
    color: var(--grafito);
}

.platform-map-legend strong {
    color: var(--black);
}

.platform-flow {
    display: grid;
    gap: 0.75rem;
    margin: 2rem 0;
}

.platform-flow__step {
    background: var(--white);
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 1.1rem 1.25rem;
    text-align: center;
}

.platform-flow__step strong {
    display: block;
    font-size: clamp(0.95rem, 2vw, 1.05rem);
}

.platform-flow__arrow {
    text-align: center;
    color: var(--red);
    font-size: 1.25rem;
    line-height: 1;
}

.platform-asset-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin: 1.25rem 0 1.75rem;
}

.platform-asset-list span {
    background: var(--white);
    border: 1px solid #ececec;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
}

.platform-usd-block {
    display: grid;
    gap: 1.5rem;
    margin: 2rem auto 0;
    max-width: 48rem;
}

.platform-usd-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    border: 1px solid #c5c5c5;
}

.platform-usd-copy p {
    color: var(--grafito);
    margin-bottom: 0.75rem;
}

.platform-card-grid,
.platform-sector-grid,
.platform-land-grid,
.platform-path-grid,
.platform-dd-grid {
    display: grid;
    gap: 1.25rem;
    margin-top: 2rem;
}

.platform-card,
.platform-land-card,
.platform-path,
.platform-dd-item {
    background: var(--white);
    border: 1px solid #ececec;
    border-radius: 12px;
    padding: 1.35rem 1.4rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.platform-sector {
    background: var(--white);
    border: 1px solid #ececec;
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.platform-sector__media {
    margin: 0;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #e8e8e8;
}

.platform-sector__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.platform-sector:hover .platform-sector__media img {
    transform: scale(1.04);
    opacity: 0.92;
}

.platform-sector__body {
    padding: 1.25rem 1.35rem 1.4rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.platform-card:hover,
.platform-sector:hover,
.platform-land-card:hover,
.platform-path:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.platform-card h3,
.platform-sector h3,
.platform-land-card h3,
.platform-path h3 {
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    margin-bottom: 0.75rem;
}

.platform-meta {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--red);
    font-weight: 700;
    margin: 0.65rem 0 0.2rem;
}

.platform-card p,
.platform-sector p:not(.source-official),
.platform-land-card p,
.platform-path p {
    color: var(--grafito);
    font-size: 0.95rem;
}

.platform-dd-item strong {
    display: block;
    font-size: 0.95rem;
    color: var(--black);
    margin-bottom: 0.3rem;
}

.platform-dd-item p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--grafito);
    font-weight: 400;
    line-height: 1.45;
}

.platform-sector__cta,
.platform-land-card a,
.platform-card a {
    display: inline-block;
    margin-top: 0.85rem;
    color: var(--red);
    font-weight: 600;
    font-size: 0.9rem;
}

.source-official {
    margin: 0.9rem 0 0;
    padding-top: 0.75rem;
    border-top: 1px solid #ececec;
    font-size: clamp(0.68rem, 1.25vw, 0.76rem);
    letter-spacing: 0.02em;
    line-height: 1.45;
    color: #7a7a7a;
}

.platform-sector__body .source-official,
.regime-card__body .source-official {
    margin-top: auto;
    padding-top: 0.85rem;
}

.source-official__label {
    margin-right: 0.25rem;
}

a.source-official__link,
.source-official a {
    display: inline;
    margin: 0;
    color: #7a7a7a;
    font-weight: 500;
    font-size: inherit;
    letter-spacing: inherit;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

a.source-official__link:hover,
.source-official a:hover {
    color: var(--grafito);
    border-bottom-color: #c5c5c5;
}

.source-official__sep {
    margin: 0 0.28rem;
    color: #b0b0b0;
}

.regime-block {
    margin-top: 2.5rem;
}

.regime-group-title {
    font-size: clamp(0.82rem, 1.5vw, 0.92rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 1rem;
}

.regime-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--red);
    margin: 0 0 0.4rem;
}

.regime-grid {
    display: grid;
    gap: 1.25rem;
}

.regime-card {
    background: var(--white);
    border: 1px solid #c5c5c5;
    border-radius: 12px;
    overflow: hidden;
    padding: 0;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.regime-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
    border-color: var(--red);
}

.regime-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.regime-card:hover img {
    transform: scale(1.04);
    opacity: 0.92;
}

.media-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 0;
    background: #d4d4d4;
    color: #5c5c5c;
    font-size: clamp(0.72rem, 1.4vw, 0.82rem);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.4;
    padding: 1rem;
    box-sizing: border-box;
}

.tab-item > .media-placeholder {
    margin: 0 0 1.35rem;
    border-radius: 10px;
}

.platform-nearshore .source-official {
    margin-top: 0.85rem;
    padding-top: 0;
    border-top: none;
    text-align: center;
}

.platform-dd .source-official,
.platform-limits .source-official {
    margin-top: 1.5rem;
}

.regime-card__body {
    padding: 1.15rem 1.25rem 1.35rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.regime-card h3 {
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    margin-bottom: 0.85rem;
}

.regime-card dl {
    display: grid;
    grid-template-columns: 6.75rem 1fr;
    gap: 0.4rem 0.75rem;
    margin: 0 0 0.9rem;
}

.regime-card dt {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--red);
    padding-top: 0.12rem;
}

.regime-card dd {
    margin: 0;
    font-size: 0.92rem;
    color: var(--grafito);
    font-weight: 400;
}

.regime-card dd a {
    color: var(--grafito);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.regime-card dd a:hover {
    color: var(--red);
}

.regime-frame {
    font-size: 0.92rem;
    color: var(--grafito);
    margin: 0 0 0.35rem;
    font-weight: 400;
}

.platform-limits ul {
    margin: 1.25rem auto 0;
    max-width: 40rem;
    padding-left: 1.2rem;
    color: var(--grafito);
}

.platform-limits li {
    margin-bottom: 0.75rem;
    line-height: 1.45;
}

.platform-limits li strong {
    color: var(--black);
}

.platform-paths {
    background: #111;
    color: var(--white);
}

.platform-paths .section-title,
.platform-paths .section-subtitle,
.platform-paths .platform-kicker {
    color: var(--white);
}

.platform-paths .divider {
    background: var(--red);
}

.platform-path {
    background: #1c1c1c;
    border-color: #2a2a2a;
}

.platform-path h3,
.platform-path p {
    color: var(--white);
}

.platform-path p {
    opacity: 0.85;
}

.platform-agro {
    background: var(--light-grey);
}

.platform-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.platform-opps {
    display: grid;
    gap: 1.25rem;
    margin: 2rem 0 1rem;
}

.platform-opp {
    display: grid;
    gap: 1rem;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #ececec;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.platform-opp:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.platform-opp img {
    width: 100%;
    height: 11rem;
    object-fit: cover;
}

.platform-opp__body {
    padding: 0 1.2rem 1.2rem;
}

.platform-opp h3 {
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
}

.platform-opp p {
    color: var(--grafito);
    font-size: 0.9rem;
}

.land-thumbs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
    align-items: stretch;
}

a.land-thumb,
a.land-thumb:hover {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid #c5c5c5;
    background: var(--white);
    color: var(--black);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

a.land-thumb:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
    border-color: var(--red);
}

.land-thumb__media {
    display: block;
    position: relative;
    width: 100%;
    height: 0;
    padding-top: 56.25%;
    overflow: hidden;
    background: #e8e8e8;
    flex-shrink: 0;
}

.land-thumb__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.land-thumb:hover .land-thumb__media img {
    transform: scale(1.04);
    opacity: 0.94;
}

.land-thumb__caption {
    padding: 0.9rem 1.1rem 1.15rem;
    background: var(--white);
    flex: 1;
}

.land-thumb__meta {
    display: block;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--red);
    margin-bottom: 0.3rem;
}

.land-thumb h3 {
    margin: 0;
    font-size: clamp(0.95rem, 1.4vw, 1.05rem);
    color: var(--black);
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

a.land-thumb:hover h3 {
    color: var(--red);
}

.land-thumbs-cta {
    margin-top: 1.5rem;
}

@media (min-width: 640px) {
    .platform-card-grid,
    .platform-path-grid,
    .regime-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .land-thumbs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .platform-opps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .platform-flow {
        grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
        align-items: center;
    }

    .platform-flow__arrow {
        transform: rotate(-90deg);
        font-size: 1.5rem;
    }

    .platform-sector-grid,
    .platform-land-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .platform-dd-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .platform-map-legend {
        grid-template-columns: repeat(2, 1fr);
    }

    .land-thumbs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.25rem;
    }
}

@media (min-width: 1100px) {
    .platform-sector-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .platform-land-grid,
    .platform-path-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .platform-card-grid,
    .regime-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .platform-opps {
        grid-template-columns: repeat(4, 1fr);
    }

    .land-thumbs {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1.25rem;
    }
}
