:root {
    --bg-1: #e4f2b3;
    --bg-2: #c7df7a;
    --bg-3: #97ba45;
    --bg-4: #64852a;

    --panel: rgba(232, 245, 187, 0.78);
    --input: rgba(250, 255, 233, 0.88);

    --text: #22310f;
    --text-soft: #556c24;

    --accent: #ff9f1c;
    --accent-2: #ff6b00;

    --blue-ui: #5a6cff;
    --blue-ui-2: #4459f2;

    --cream: #f8f5ee;
    --ink: #111111;

    --shadow: 0 20px 45px rgba(78, 109, 19, 0.22);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(247, 255, 226, 0.58), transparent 34%),
        linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 46%, var(--bg-3) 100%);
}

body {
    min-height: 100vh;
    padding: 18px;
}

a {
    color: inherit;
    text-decoration: none;
}

.page {
    min-height: calc(100vh - 36px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card {
    position: relative;
    width: min(1220px, 100%);
    min-height: 680px;
    display: grid;
    grid-template-columns: 1.03fr 0.97fr;
    overflow: hidden;
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(225, 241, 170, 0.95), rgba(178, 210, 95, 0.88));
    box-shadow: var(--shadow);
    isolation: isolate;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('../img/pixel_plant.png');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.16;
    z-index: 0;
    transform: scale(1.03);
}

.card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(228, 242, 179, 0.68) 0%,
        rgba(203, 227, 128, 0.28) 40%,
        rgba(151, 186, 69, 0.07) 100%
    );
    z-index: 0;
}

.left,
.right {
    position: relative;
    z-index: 1;
}

.left {
    padding: 34px 34px 34px 42px;
    display: flex;
    flex-direction: column;
}

.right {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 32px 24px 0;
}

/* idioma */
.lang {
    position: absolute;
    top: 26px;
    right: 28px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: right;
    font-size: 0.82rem;
    font-weight: 800;
    color: rgba(53, 70, 15, 0.42);
    z-index: 2;
}

.lang span {
    display: inline-block;
    animation: langPulse 2.8s ease-in-out infinite;
    transform-origin: right center;
    transition: color 0.2s ease;
}

.lang span:nth-child(1) { animation-delay: 0s; }
.lang span:nth-child(2) { animation-delay: 0.35s; }
.lang span:nth-child(3) { animation-delay: 0.7s; }
.lang span:nth-child(4) { animation-delay: 1.05s; }

.lang .active {
    color: var(--text);
}

/* topbar */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 54px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(63, 84, 20, 0.12);
    box-shadow: inset 0 0 0 1px rgba(63, 84, 20, 0.08);
    font-size: 22px;
}

.brand-text {
    line-height: 1.05;
    font-size: 1rem;
}

.nav {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text-soft);
}

.nav a {
    position: relative;
    padding: 12px 18px;
    border-radius: 999px;
    transition: 0.25s ease;
    overflow: hidden;
}

.nav a::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(236, 247, 190, 0.55));
    opacity: 0;
    transform: scale(0.85);
    transition: 0.25s ease;
    z-index: -1;
}

.nav a:hover {
    color: var(--text);
    transform: translateY(-1px);
}

.nav a:hover::before {
    opacity: 0.9;
    transform: scale(1);
}

.nav a.active {
    background: rgba(255, 255, 255, 0.84);
    color: var(--text);
    box-shadow: 0 10px 20px rgba(80, 108, 24, 0.10);
    animation: navGlow 2.6s ease-in-out infinite;
}

/* paneles */
.panel {
    display: none;
    animation: fadePanel 0.35s ease;
}

.panel.active {
    display: block;
}

.content {
    width: min(470px, 100%);
    margin-top: 22px;
}

.content-home {
    width: 100%;
    max-width: 520px;
}

.title {
    margin: 0;
    font-size: clamp(2.25rem, 5vw, 4.15rem);
    line-height: 0.94;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.title-home {
    margin-bottom: 20px;
    animation: fadeUp 0.55s ease both;
}

.eyebrow {
    margin: 0 0 10px;
    font-size: 0.92rem;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: var(--text-soft);
}

.subtitle {
    margin: 14px 0 28px;
    color: var(--text-soft);
    font-size: 0.98rem;
    font-weight: 600;
}

.subtitle a {
    color: var(--accent-2);
    font-weight: 800;
}

/* card principal home */
.intro-box {
    position: relative;
    width: min(100%, 500px);
    border-radius: 22px;
    background: var(--cream);
    border: 4px solid var(--ink);
    box-shadow: 10px 10px 0 var(--ink);
    overflow: hidden;
    transform-origin: center;
    transition:
        transform 0.28s cubic-bezier(.2, .8, .2, 1),
        box-shadow 0.28s cubic-bezier(.2, .8, .2, 1),
        filter 0.28s ease;
    animation: fadeUp 0.72s ease 0.08s both;
}

.intro-box:hover {
    transform: translate(-6px, -6px) rotate(-0.3deg);
    box-shadow: 16px 16px 0 var(--ink);
    filter: saturate(1.03);
}

.intro-box:active {
    transform: translate(1px, 1px) scale(0.995);
    box-shadow: 7px 7px 0 var(--ink);
}

.intro-box::before {
    content: "";
    position: absolute;
    width: 42px;
    height: 42px;
    right: 20px;
    bottom: -10px;
    background: var(--blue-ui);
    border: 3px solid var(--ink);
    border-radius: 10px;
    transform: rotate(45deg);
    z-index: 0;
    transition: transform 0.25s ease;
}

.intro-box:hover::before {
    transform: rotate(55deg) scale(1.08);
}

.feature-card-head {
    position: relative;
    padding: 24px 22px 26px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    color: #fff;
    border-bottom: 4px solid var(--ink);
}

.feature-card-head::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.05) 0,
        rgba(255, 255, 255, 0.05) 12px,
        rgba(255, 255, 255, 0) 12px,
        rgba(255, 255, 255, 0) 24px
    );
    pointer-events: none;
}

.feature-card-title {
    position: relative;
    z-index: 1;
    margin: 0;
    max-width: 280px;
    font-size: 1.18rem;
    line-height: 1.28;
    font-weight: 900;
}

.feature-badge {
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 1;
    padding: 8px 14px;
    border-radius: 8px;
    border: 3px solid var(--ink);
    background: #f3f0ea;
    color: #222;
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    box-shadow: 4px 4px 0 var(--ink);
    transform: rotate(2deg);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.intro-box:hover .feature-badge {
    transform: rotate(-2deg) scale(1.06);
    box-shadow: 6px 6px 0 var(--ink);
}

.feature-card-body {
    position: relative;
    z-index: 1;
    padding: 22px 18px 18px;
    background:
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        var(--cream);
    background-size: 12px 12px, 12px 12px, auto;
}

.feature-description {
    margin: 0;
    color: #303030;
    line-height: 1.55;
    font-size: 0.92rem;
    font-weight: 700;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 14px;
    margin: 16px 0 18px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.82rem;
    line-height: 1.35;
    font-weight: 800;
    color: #323232;
    transition: transform 0.2s ease;
}

.feature-item:hover {
    transform: translateX(6px);
}

.feature-item:nth-child(1) { animation: fadeUp 0.5s ease 0.14s both; }
.feature-item:nth-child(2) { animation: fadeUp 0.5s ease 0.20s both; }
.feature-item:nth-child(3) { animation: fadeUp 0.5s ease 0.26s both; }
.feature-item:nth-child(4) { animation: fadeUp 0.5s ease 0.32s both; }

.feature-icon {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    background: var(--blue-ui);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 900;
    border: 2px solid var(--ink);
    box-shadow: 2px 2px 0 var(--ink);
    transition: transform 0.2s ease, background 0.2s ease;
}

.feature-item:hover .feature-icon {
    background: var(--blue-ui-2);
    transform: rotate(-6deg) scale(1.06);
}

.feature-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    padding-top: 16px;
    border-top: 2px dashed rgba(0, 0, 0, 0.12);
}

.feature-price {
    color: var(--ink);
    line-height: 1;
}

.feature-price strong {
    display: block;
    font-size: 1.95rem;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.feature-price span {
    display: block;
    margin-top: 4px;
    color: #666;
    font-size: 0.82rem;
    font-weight: 700;
}

.cta-card {
    position: relative;
    min-width: 155px;
    height: 52px;
    border: 3px solid var(--ink);
    border-radius: 12px;
    background: linear-gradient(180deg, #6678ff 0%, #4d63ff 100%);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: 0.03em;
    box-shadow: 5px 5px 0 var(--ink);
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.cta-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.25) 50%,
        transparent 100%
    );
    transition: left 0.55s ease;
}

.cta-card:hover {
    transform: translate(-2px, -2px);
    filter: brightness(1.05);
    box-shadow: 7px 7px 0 var(--ink);
}

.cta-card:hover::before {
    left: 120%;
}

.cta-card:active {
    transform: translate(1px, 1px);
    box-shadow: 3px 3px 0 var(--ink);
}

/* formulario */
.form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.field label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.84rem;
    font-weight: 800;
    color: var(--text-soft);
}

.input-wrap {
    position: relative;
}

.input-wrap input {
    width: 100%;
    height: 54px;
    border: 1px solid rgba(89, 111, 35, 0.12);
    border-radius: 14px;
    background: var(--input);
    padding: 0 48px 0 16px;
    font-size: 0.98rem;
    color: var(--text);
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.input-wrap input::placeholder {
    color: rgba(81, 101, 30, 0.58);
}

.input-wrap input:focus {
    border-color: rgba(113, 143, 39, 0.46);
    box-shadow: 0 0 0 4px rgba(177, 209, 93, 0.25);
    transform: translateY(-1px);
}

.field-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(74, 94, 24, 0.65);
    font-size: 1rem;
    pointer-events: none;
}

.actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.remember {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    color: var(--text-soft);
    font-weight: 700;
}

.remember input {
    accent-color: #84aa34;
    width: 16px;
    height: 16px;
}

.forgot {
    color: #5d761d;
    font-weight: 800;
    font-size: 0.92rem;
}

.btn {
    margin-top: 8px;
    width: 160px;
    height: 52px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 100%);
    color: #fff;
    font-weight: 900;
    letter-spacing: 0.04em;
    cursor: pointer;
    box-shadow: 0 14px 22px rgba(255, 110, 0, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(255, 110, 0, 0.28);
    filter: brightness(1.03);
}

/* redes */
.socials {
    margin-top: auto;
    display: flex;
    gap: 10px;
    align-items: center;
    padding-top: 28px;
}

.social {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.36);
    border: 1px solid rgba(84, 107, 28, 0.10);
    color: var(--text-soft);
    font-weight: 900;
    transition: transform 0.2s ease, background 0.2s ease;
}

.social:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.55);
}

/* heroes */
.hero {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    max-width: 480px;
    min-height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(12px);
}

.hero.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 12% 5% 5% 5%;
    background: radial-gradient(circle, rgba(241, 255, 207, 0.48) 0%, rgba(241, 255, 207, 0.05) 68%, transparent 75%);
    filter: blur(6px);
    z-index: 0;
}

.hero img {
    position: relative;
    z-index: 1;
    width: min(100%, 420px);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 26px 32px rgba(50, 76, 9, 0.22));
    image-rendering: auto;
}

.hero-home img {
    width: min(100%, 410px);
    animation: floatPlant 3.4s ease-in-out infinite;
}

/* animaciones */
@keyframes langPulse {
    0%, 100% {
        opacity: 0.5;
        transform: translateX(0) scale(1);
    }
    20% {
        opacity: 1;
        transform: translateX(-4px) scale(1.08);
        color: var(--text);
    }
    40% {
        opacity: 0.8;
        transform: translateX(0) scale(1.02);
    }
}

@keyframes navGlow {
    0%, 100% {
        box-shadow: 0 10px 20px rgba(80, 108, 24, 0.10);
    }
    50% {
        box-shadow: 0 14px 28px rgba(122, 162, 39, 0.22);
    }
}

@keyframes floatPlant {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes fadePanel {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* responsive */
@media (max-width: 980px) {
    .card {
        grid-template-columns: 1fr;
        min-height: unset;
    }

    .right {
        order: -1;
        min-height: 300px;
        padding: 24px 18px 0;
    }

    .left {
        padding: 20px 20px 26px;
    }

    .topbar {
        margin-bottom: 20px;
    }

    .content,
    .content-home {
        width: 100%;
        max-width: 100%;
        margin-top: 0;
    }

    .hero {
        min-height: 300px;
    }

    .hero img {
        width: min(100%, 270px);
    }

    .hero-home img {
        width: min(100%, 250px);
    }

    .intro-box {
        width: 100%;
        max-width: 100%;
        box-shadow: 7px 7px 0 var(--ink);
    }

    .intro-box:hover {
        transform: translate(-4px, -4px);
        box-shadow: 11px 11px 0 var(--ink);
    }

    .feature-card-head {
        padding: 20px 18px 20px;
    }

    .feature-card-title {
        max-width: 72%;
        font-size: 1rem;
        line-height: 1.22;
    }

    .feature-badge {
        right: 14px;
        top: 14px;
        padding: 7px 12px;
        font-size: 0.78rem;
        box-shadow: 3px 3px 0 var(--ink);
    }

    .feature-card-body {
        padding: 16px 14px 14px;
    }

    .feature-description {
        font-size: 0.86rem;
        line-height: 1.45;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        margin: 14px 0 16px;
    }

    .feature-item {
        font-size: 0.78rem;
        line-height: 1.3;
    }

    .feature-icon {
        width: 20px;
        height: 20px;
        flex: 0 0 20px;
        font-size: 0.62rem;
    }

    .feature-bottom {
        gap: 14px;
    }

    .feature-price strong {
        font-size: 1.65rem;
    }

    .feature-price span {
        font-size: 0.76rem;
    }

    .cta-card {
        min-width: 140px;
        height: 48px;
        font-size: 0.88rem;
    }
}

@media (max-width: 640px) {
    body {
        padding: 10px;
    }

    .page {
        min-height: calc(100vh - 20px);
    }

    .card {
        border-radius: 22px;
    }

    .left {
        padding: 20px 18px 22px;
    }

    .right {
        min-height: 250px;
        padding: 48px 18px 0;
    }

    .topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .nav {
        width: 100%;
        justify-content: flex-start;
        gap: 8px;
        flex-wrap: wrap;
    }

    .title {
        font-size: clamp(2rem, 13vw, 3rem);
    }

    .feature-bottom,
    .actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-card,
    .btn {
        width: 100%;
    }

    .socials {
        padding-top: 20px;
    }

    .lang {
        top: 20px;
        right: 18px;
        font-size: 0.75rem;
    }
}