/* --------------------------------------------------
   Portada (Hero)
-------------------------------------------------- */

.home-hero {
    --home-hero-text: var(--c-primary);
    --home-hero-secondary-border: var(--c-primary);
    --home-hero-secondary-text: var(--c-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    background-color: var(--c-soft);
    background-size: cover;
    background-position: 46% center;
    position: relative;
}

.home-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    pointer-events: none;
    z-index: 0;
}

.home-hero--has-image {
    --home-hero-text: var(--c-surface);
    --home-hero-secondary-border: rgba(255, 255, 255, 0.92);
    --home-hero-secondary-text: var(--c-surface);
}

.home-hero--has-image::before {
    background: rgba(0, 0, 0, 0.48);
}

.home-hero__inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.home-hero__card {
    width: 100%;
    max-width: 90%;
    margin: 0 auto;
    border-radius: 0;
    text-align: center;
    background: transparent;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
    margin-bottom: 140px;
}

.home-hero__card :is(h1, h2, p) {
    color: var(--home-hero-text);
}

.home-hero__logo {
    margin-bottom: -140px;
    max-width: min(520px, 100%);
    display: block;
    object-fit: contain;
}

.home-hero__logo-text {
    font-size: 0.95rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.home-hero__text {
    margin: 0;
    font-size: clamp(1.4rem, 2.4vw, 2.3rem);
    line-height: 1.25;
    font-weight: 700;
}

.home-hero__subtext {
    margin: 14px 0 0;
    max-width: min(90%, 44rem);
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    line-height: 1.5;
    font-weight: 600;
}

.home-hero__cta-links {
    margin-top: 26px;
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    font-weight: 700;
}

.home-hero__cta-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid var(--c-primary);
    background: var(--c-bg);
    color: var(--c-primary);
    font-family: 'Exo', sans-serif;
    text-decoration: none;
    transition:
        background-color 160ms ease,
        color 160ms ease,
        border-color 160ms ease;
}

.home-hero__cta-links a.home-hero__cta--primary {
    background: var(--c-primary);
    border-color: var(--c-primary);
    color: var(--c-bg);
}

.home-hero__cta-links a:hover,
.home-hero__cta-links a:focus-visible {
    background: var(--c-primary);
    border-color: var(--c-primary);
    color: var(--c-bg);
}

.home-hero__cta-links a.home-hero__cta--primary:hover,
.home-hero__cta-links a.home-hero__cta--primary:focus-visible {
    background: var(--c-bg);
    border-color: var(--c-primary);
    color: var(--c-primary);
}

@media screen and (max-width: 768px) {
    .home-hero {
        --home-hero-logo-height: 112px;
        padding: 190px 18px 90px;
    }

    .home-hero__inner {
        padding: 0;
    }

    .home-hero__card {
        padding: 30px 22px 34px;
        border-radius: 22px;
    }

    .home-hero__logo-text {
        font-size: 0.9rem;
        margin-bottom: 16px;
    }
}

@media screen and (max-width: 480px) {
    .home-hero {
        --home-hero-logo-height: 96px;
        padding: 160px 14px 70px;
    }

    .home-hero__card {
        padding: 24px 16px 28px;
        border-radius: 18px;
    }
}

/* --------------------------------------------------
   Home V2 (wireframe)
-------------------------------------------------- */

.homev2 {
    --homev2-green: var(--c-primary);
    --homev2-text: var(--c-text);
    --homev2-muted: var(--c-text-muted);
    --homev2-line: var(--c-border);
    --homev2-soft: var(--c-soft);
}

.homev2-section {
    padding: 110px 24px;
    border-bottom: 1px solid var(--homev2-line);
    background: var(--c-surface);
}

.homev2-reality {
    padding: 150px 24px;
}

.homev2-reality .homev2-wrap {
    max-width: 1180px;
}

.homev2-reality .homev2-split {
    gap: 96px;
    align-items: center;
}

.homev2-reality .homev2-list {
    position: relative;
    padding-top: 0;
    margin: 0;
    color: var(--homev2-muted);
    font-size: clamp(1rem, 1vw, 1.1rem);
    line-height: 1.7;
}

.homev2-reality .homev2-statement {
    color: var(--homev2-green);
    font-size: clamp(1.9rem, 2.4vw, 2.3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-top: 44px;
    max-width: 560px;
}

.homev2-reality .homev2-list p {
    margin: 18px 0;
}

.homev2-section--soft {
    background: var(--homev2-soft);
}

.homev2-blog {
    background: var(--c-surface);

    --services-green: var(--c-primary);
    --services-text: var(--c-text);
    --services-muted: var(--c-text-muted);
    --services-line: var(--c-border);
    --services-soft: var(--c-soft);
    --services-card: var(--c-surface);
}

.homev2-wrap {
    max-width: 1000px;
    margin: 0 auto;
}

.homev2 :is(h1, h2, h3) {
    margin: 0 0 20px;
    letter-spacing: -0.5px;
}

.homev2-title {
    font-size: clamp(1.6rem, 2.6vw, 1.9rem);
    font-weight: 600;
}

.homev2-outcome {
    background: linear-gradient(180deg, #f7f1dc 0%, #f2e6c9 100%);
}

.homev2-outcome__grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 90px;
    align-items: center;
}

.homev2-outcome .homev2-title {
    font-size: clamp(1.75rem, 2.8vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.homev2-outcome__copy {
    max-width: 620px;
}

.homev2-lead {
    font-size: 1.125rem;
    color: var(--homev2-muted);
    max-width: 720px;
}

.homev2-statement {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 30px 0 0;
}

.homev2-list {
    margin: 40px 0 0;
    font-size: 1.25rem;
}

.homev2-list p {
    margin: 20px 0;
}

.homev2-thinking__list {
    font-size: 1.25rem;
    margin: 40px 0 0;
    counter-reset: homev2-thinking;
}

.homev2-thinking__list p {
    margin: 16px 0;
    position: relative;
    padding-left: 3.2rem;
}

.homev2-thinking__list p::before {
    counter-increment: homev2-thinking;
    content: counter(homev2-thinking, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 0;
    font-family: 'Exo', sans-serif;
    font-weight: 700;
    letter-spacing: 0.08em;
    font-size: 1rem;
    color: var(--homev2-green);
    opacity: 0.55;
}

.homev2-split {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: center;
}

.homev2-split--reverse {
    grid-template-columns: 0.8fr 1.2fr;
}

.homev2-col--visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.homev2-shape {
    width: 420px;
    height: 420px;
    position: relative;
    background-color: #d1d5db;
    background-image: linear-gradient(
        rgba(55, 146, 111, 0.35),
        rgba(55, 146, 111, 0.35)
    );
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    filter:
        drop-shadow(2px 0 0 rgba(55, 146, 111, 0.9))
        drop-shadow(-2px 0 0 rgba(55, 146, 111, 0.9))
        drop-shadow(0 2px 0 rgba(55, 146, 111, 0.9))
        drop-shadow(0 -2px 0 rgba(55, 146, 111, 0.9));
}

.homev2-shape--triangle {
    width: clamp(360px, 34vw, 520px);
    height: clamp(420px, 40vw, 600px);
    clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
    background-position: top center;
}

.homev2-shape--square {
    clip-path: polygon(0% 0%, 100% 0%, 100% 85%, 92% 100%, 0% 100%);
}

.homev2-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 22px;
    margin-top: 40px;
}

.homev2-metric {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--homev2-text);
}

.homev2-metric span {
    display: block;
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--homev2-muted);
    margin-top: 8px;
}

.homev2-outcome .homev2-metric {
    color: var(--c-accent);
}

.homev2-outcome .homev2-metric span {
    color: var(--c-primary-soft);
}

.homev2-outcome .homev2-wrap {
    max-width: 1180px;
    position: relative;
    padding-top: 26px;
}

.homev2-outcome .homev2-wrap::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    border-top: 1px solid var(--homev2-line);
}

.homev2-outcome__lead {
    margin-top: 26px;
    font-size: clamp(1rem, 1.25vw, 1.15rem);
    font-weight: 600;
    color: var(--homev2-text);
    max-width: 780px;
}

.homev2-outcome__cta {
    margin-top: 34px;
}

.homev2-outcome__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 24px;
    border-radius: 10px;
    border: 1px solid rgba(13, 75, 55, 0.2);
    background: var(--c-primary);
    color: var(--c-bg);
    font-weight: 700;
    font-family: 'Exo', sans-serif;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.homev2-outcome__btn:hover,
.homev2-outcome__btn:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.2);
}

.homev2-outcome__btn:focus-visible {
    outline: 2px solid rgba(13, 75, 55, 0.45);
    outline-offset: 2px;
}

.homev2-outcome__visual {
    display: flex;
    justify-content: center;
}

.homev2-outcome__iconbox {
    border: 2px dashed rgba(13, 75, 55, 0.35);
    border-radius: 16px;
    padding: clamp(18px, 3vw, 28px) clamp(22px, 3vw, 34px);
    color: var(--c-primary);
}

.homev2-outcome__icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(22px, 3vw, 40px);
}

.homev2-outcome__icon {
    width: clamp(48px, 5vw, 58px);
    height: clamp(48px, 5vw, 58px);
    display: block;
    overflow: visible;
    shape-rendering: geometricPrecision;
}

.homev2-cta-links {
    margin-top: 40px;
    font-weight: 600;
}

.homev2-cta-links a {
    margin-right: 30px;
    text-decoration: none;
    color: var(--homev2-green);
}

.homev2-cta-links a:hover,
.homev2-cta-links a:focus-visible {
    text-decoration: underline;
}

.homev2-thinking .homev2-thinking__cta a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 999px;
    border: 1px solid var(--c-primary);
    background: var(--c-bg);
    color: var(--c-primary);
    text-decoration: none;
    transition:
        background-color 160ms ease,
        border-color 160ms ease,
        color 160ms ease;
}

.homev2-thinking .homev2-thinking__cta a::after {
    content: '→';
    font-weight: 700;
    transition: transform 160ms ease;
}

.homev2-thinking .homev2-thinking__cta a:hover,
.homev2-thinking .homev2-thinking__cta a:focus-visible {
    background: var(--c-primary);
    border-color: var(--c-primary);
    color: var(--c-bg);
    text-decoration: none;
}

.homev2-thinking .homev2-thinking__cta a:hover::after,
.homev2-thinking .homev2-thinking__cta a:focus-visible::after {
    transform: translateX(4px);
}

.homev2-articles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.homev2-article {
    border-top: 2px solid var(--homev2-green);
    padding-top: 20px;
}

.homev2-articles--blogs .homev2-article {
    border-top: 0;
    padding-top: 0;
}

.homev2-blog .services-blogs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 44px;
}

.homev2-blog .services-blog {
    background: var(--services-card);
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.06);
}

.homev2-blog .services-blog__media {
    display: block;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(13, 75, 55, 0.06);
    border: 1px solid rgba(13, 75, 55, 0.16);
    aspect-ratio: 16 / 9;
    margin-bottom: 14px;
}

.homev2-blog .services-blog__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.homev2-blog .services-blog__fallback {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 75, 55, 0.12), rgba(242, 237, 226, 0.7));
}

.homev2-blog .services-blog__title {
    margin: 0 0 10px;
    font-size: 1.125rem;
}

.homev2-blog .services-blog__link {
    display: inline-block;
    margin-top: 14px;
    color: var(--services-green);
    text-decoration: none;
    font-weight: 700;
}

.homev2-blog .services-blog__link:hover,
.homev2-blog .services-blog__link:focus-visible {
    text-decoration: underline;
}

.homev2-article__media {
    display: block;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(13, 75, 55, 0.06);
    border: 1px solid rgba(13, 75, 55, 0.18);
    aspect-ratio: 16 / 9;
    margin-bottom: 14px;
}

.homev2-article__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.homev2-article__fallback {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 75, 55, 0.12), rgba(242, 237, 226, 0.7));
}

.homev2-article__cta {
    margin-top: 14px;
}

.homev2-article__title {
    margin: 0 0 10px;
    font-size: 1.25rem;
    font-weight: 600;
}

.homev2-article__title a {
    color: inherit;
    text-decoration: none;
}

.homev2-article__title a:hover,
.homev2-article__title a:focus-visible {
    text-decoration: underline;
}

.homev2-muted {
    color: var(--homev2-muted);
}

@media (max-width: 900px) {
    .homev2-split,
    .homev2-split--reverse {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .homev2-outcome__grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .homev2-shape {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 768px) {
    .homev2-section {
        padding: 80px 20px;
    }

    .homev2-reality {
        padding: 110px 20px;
    }

    .homev2-metric {
        font-size: 2rem;
    }
}

@media (max-width: 980px) {
    .homev2-blog .services-blogs {
        grid-template-columns: 1fr;
    }
}
