:root {
    --primary: #7e6382;
    --secondary: #acc4c4;
    --accent: #eb815c;
    --text: #434343;
    --bg: #fdfefd;
    --surface: #ffffff;
    --line: #e4e7e6;
    --shadow: 0 14px 34px rgba(67, 67, 67, 0.08);
    --anim-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes soft-float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-14px);
    }
}

@keyframes drift {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(8px, -8px, 0);
    }
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background:
        radial-gradient(circle at 7% 8%, rgba(172, 196, 196, 0.32), transparent 32%),
        radial-gradient(circle at 92% 12%, rgba(126, 99, 130, 0.2), transparent 24%),
        var(--bg);
    color: var(--text);
    line-height: 1.55;
}

h1,
h2,
h3,
p {
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1120px, 92%);
    margin-inline: auto;
}

.bg-orb {
    position: fixed;
    z-index: -1;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    filter: blur(38px);
    opacity: 0.3;
    animation: drift 18s ease-in-out infinite;
}

.bg-orb--left {
    left: -120px;
    top: 24%;
    background: var(--secondary);
}

.bg-orb--right {
    right: -120px;
    top: 12%;
    background: var(--primary);
    animation-delay: 1.8s;
}

.site-header {
    position: sticky;
    top: 0;
    backdrop-filter: blur(8px);
    background: rgba(253, 254, 253, 0.74);
    border-bottom: 1px solid rgba(228, 231, 230, 0.8);
    z-index: 30;
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
}

.nav-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

.brand-logo {
    width: clamp(150px, 22vw, 220px);
    height: auto;
    object-fit: contain;
}

.eyebrow {
    text-transform: uppercase;
    font-size: 0.77rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--primary);
}

.hero {
    padding: 84px 0 40px;
    position: relative;
    isolation: isolate;
}

.hero .eyebrow,
.hero h1,
.hero .lead,
.hero .hero-actions,
.hero .hero-metrics {
    opacity: 0;
    animation: fade-up 680ms var(--anim-ease) forwards;
}

.hero .eyebrow {
    animation-delay: 40ms;
}

.hero h1 {
    animation-delay: 130ms;
}

.hero .lead {
    animation-delay: 230ms;
}

.hero .hero-actions {
    animation-delay: 330ms;
}

.hero .hero-metrics {
    animation-delay: 430ms;
}

.hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    right: -40px;
    top: -22px;
    width: min(58%, 700px);
    height: min(520px, 100%);
    background: url("../img/backgrounds/hero-wave.svg") no-repeat center / cover;
    opacity: 0.56;
    pointer-events: none;
}

.hero h1 {
    margin-top: 16px;
    font-size: clamp(0.875rem, 3.1vw, 3.475rem);
    line-height: 1.1;
    max-width: 21ch;
}

.lead {
    margin-top: 18px;
    max-width: 62ch;
    color: #535353;
    font-size: clamp(1rem, 2.2vw, 1.16rem);
}

.hero-actions {
    margin-top: 30px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.84rem 1.2rem;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    border: 1px solid transparent;
    transition: transform 220ms var(--anim-ease), box-shadow 220ms var(--anim-ease), background-color 220ms var(--anim-ease);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(126, 99, 130, 0.3);
}

.btn--ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--line);
}

.btn--ghost:hover {
    box-shadow: none;
    background: #f6f7f6;
}

.btn--small {
    padding: 0.62rem 0.94rem;
    font-size: 0.9rem;
}

.hero-metrics {
    margin: 36px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.hero-metrics li {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px;
    box-shadow: var(--shadow);
    transition: transform 220ms var(--anim-ease), box-shadow 220ms var(--anim-ease), border-color 220ms var(--anim-ease);
}

.hero-metrics li:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(67, 67, 67, 0.14);
    border-color: rgba(126, 99, 130, 0.25);
}

.hero-metrics strong {
    display: block;
    font-size: 1.1rem;
    color: var(--primary);
}

.hero-metrics span {
    font-size: 0.92rem;
}

.section {
    padding: 64px 0;
}

#cta {
    scroll-margin-top: 92px;
}

.section-heading {
    max-width: 70ch;
    opacity: 0;
    animation: fade-up 680ms var(--anim-ease) forwards;
}

.section-heading h2 {
    margin-top: 10px;
    font-size: clamp(1.55rem, 3.1vw, 2.2rem);
    line-height: 1.2;
}

.card-grid {
    display: grid;
    gap: 14px;
    margin-top: 24px;
}

.two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 22px;
    box-shadow: var(--shadow);
    opacity: 0;
    animation: fade-up 680ms var(--anim-ease) forwards;
    transition: transform 240ms var(--anim-ease), box-shadow 240ms var(--anim-ease), border-color 240ms var(--anim-ease);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(67, 67, 67, 0.13);
    border-color: rgba(126, 99, 130, 0.2);
}

.card h3,
.step h3,
.benefit-item h3,
.example-card h3 {
    font-size: 1.14rem;
    margin-bottom: 8px;
}

.section--contrast {
    background: linear-gradient(180deg, rgba(172, 196, 196, 0.18), rgba(172, 196, 196, 0));
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 26px;
}

.step {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow);
    opacity: 0;
    animation: fade-up 680ms var(--anim-ease) forwards;
    transition: transform 240ms var(--anim-ease), box-shadow 240ms var(--anim-ease), border-color 240ms var(--anim-ease);
}

.step:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(67, 67, 67, 0.13);
    border-color: rgba(126, 99, 130, 0.22);
}

.step span {
    display: inline-block;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    line-height: 34px;
    text-align: center;
    margin-bottom: 12px;
}

.benefits {
    margin-top: 26px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.benefit-item {
    padding: 20px;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    opacity: 0;
    animation: fade-up 680ms var(--anim-ease) forwards;
    transition: transform 240ms var(--anim-ease), box-shadow 240ms var(--anim-ease), border-color 240ms var(--anim-ease);
}

.benefit-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(67, 67, 67, 0.13);
    border-color: rgba(126, 99, 130, 0.22);
}

.section--examples {
    background: linear-gradient(130deg, rgba(126, 99, 130, 0.11), rgba(172, 196, 196, 0.14));
}

.examples-grid {
    margin-top: 26px;
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.example-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 22px;
    box-shadow: var(--shadow);
    opacity: 0;
    animation: fade-up 680ms var(--anim-ease) forwards;
    transition: transform 240ms var(--anim-ease), box-shadow 240ms var(--anim-ease), border-color 240ms var(--anim-ease);
}

.example-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(67, 67, 67, 0.13);
    border-color: rgba(126, 99, 130, 0.2);
}

.example-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 8px;
}

/* ── Templates teaser (landing) ───────────────────────────────────────── */
.templates-teaser-grid {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.teaser-card {
    border-radius: 16px;
    padding: 18px;
    color: #fff;
    min-height: 150px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.teaser-card h3 {
    margin-bottom: 6px;
}

.teaser-card--violet {
    background: linear-gradient(135deg, #7e6382 0%, #5e4a63 100%);
}

.teaser-card--coral {
    background: linear-gradient(135deg, #eb815c 0%, #b85434 100%);
}

.teaser-card--midnight {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

/* ── Catalogo /templates ──────────────────────────────────────────────── */
.templates-hero {
    padding-top: 70px;
    padding-bottom: 26px;
}

.templates-hero h1 {
    margin-top: 12px;
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 1.1;
}

.templates-section {
    padding-top: 18px;
}

.templates-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 16px;
}

.filter-chip {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
    border-radius: 999px;
    padding: 0.45rem 0.8rem;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
}

.filter-chip.is-active {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.templates-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.template-card {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.template-preview {
    position: relative;
    height: 170px;
    background: linear-gradient(145deg, var(--p1), var(--p2));
    padding: 10px;
}

.template-preview__header {
    height: 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    margin-bottom: 10px;
}

.template-preview__body {
    display: grid;
    gap: 8px;
}

.template-preview__body span {
    display: block;
    border-radius: 10px;
    height: 30px;
    background: linear-gradient(90deg, var(--p3), var(--p4));
    opacity: 0.9;
}

.template-card__content {
    padding: 14px;
    display: grid;
    gap: 8px;
}

.template-tag {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
}

.template-palette {
    display: flex;
    gap: 6px;
}

.template-palette span {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.cta-box {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 30px;
    border-radius: 22px;
    background: linear-gradient(120deg, rgba(126, 99, 130, 0.9), rgba(126, 99, 130, 0.76));
    color: #fff;
    animation: fade-up 740ms var(--anim-ease) 180ms both;
}

.cta-box--selected {
    box-shadow: 0 0 0 3px rgba(235, 129, 92, 0.2), var(--shadow);
}

.hero-metrics li:nth-child(2),
.card-grid article:nth-child(2),
.steps article:nth-child(2),
.benefits article:nth-child(2),
.examples-grid article:nth-child(2) {
    animation-delay: 120ms;
}

.hero-metrics li:nth-child(3),
.steps article:nth-child(3),
.benefits article:nth-child(3),
.examples-grid article:nth-child(3) {
    animation-delay: 220ms;
}

.section:nth-of-type(2) .section-heading,
.section:nth-of-type(3) .section-heading,
.section:nth-of-type(4) .section-heading,
.section:nth-of-type(5) .section-heading,
.section:nth-of-type(6) .section-heading {
    animation-delay: 90ms;
}

.cta-box::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: url("../img/backgrounds/cta-grid.svg") no-repeat right center / cover;
    opacity: 0.5;
    pointer-events: none;
}

.cta-box .eyebrow {
    color: rgba(255, 255, 255, 0.88);
}

.cta-box h2 {
    margin-top: 10px;
    font-size: clamp(1.55rem, 3.1vw, 2.2rem);
}

.cta-box p {
    margin-top: 12px;
    max-width: 68ch;
}

.cta-box .btn {
    margin-top: 20px;
    background: #fff;
    color: var(--primary);
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 20px 0 26px;
    animation: fade-up 620ms var(--anim-ease) 220ms both;
}

.footer-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    font-size: 0.92rem;
}

.footer-logo {
    width: clamp(120px, 18vw, 168px);
    height: auto;
    object-fit: contain;
    display: block;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-links a,
.footer-link-disabled {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    font-size: 0.84rem;
    line-height: 1;
}

.social-link {
    text-decoration: none;
}

.social-icon {
    width: 1rem;
    height: 1rem;
    flex: 0 0 1rem;
}

.footer-links a {
    color: var(--primary);
    border-color: rgba(126, 99, 130, 0.26);
    background: rgba(126, 99, 130, 0.08);
    transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.footer-links a:hover {
    transform: translateY(-1px);
    border-color: rgba(126, 99, 130, 0.52);
    background: rgba(126, 99, 130, 0.16);
}

.footer-link-disabled {
    color: #9b8ea0;
    background: #f7f8f7;
}

@media (max-width: 900px) {
    .hero-metrics,
    .two-col,
    .steps,
    .benefits,
    .examples-grid,
    .templates-teaser-grid,
    .templates-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 64px;
    }

    .hero::after {
        right: -90px;
        top: 26px;
        width: 96%;
        height: 280px;
        opacity: 0.33;
    }

    .brand-logo {
        width: clamp(132px, 40vw, 180px);
    }

    .footer-wrap {
        justify-content: center;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .cta-box::before {
        background-position: center;
        opacity: 0.42;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
