@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&family=Unbounded:wght@500&display=swap');

:root {
    --bg: #0f1220;
    --panel: #161a2b;
    --text: #fff;
    --muted: #a9b0c2;
    --brand1: #626fb3;
    --brand2: #6e55a0;
}

* {
    box-sizing: border-box
}

html, body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Montserrat,system-ui,sans-serif;
    line-height: 1.55
}

body {
    margin: 0 auto;
    overflow-x: hidden;
}

img {
    max-width: 25%;
    display: block
}

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

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(15,18,32,.85);
    backdrop-filter: saturate(1.2) blur(8px);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0% 12px 0px;
}

.brand-logo {
    position: absolute;
    top: -160px;
}

.nav {
    display: flex;
    gap: 10px;
    align-items: center
}

    .nav a {
        padding: 10px 16px;
        border-radius: 999px;
        background: rgba(255,255,255,0);
        color: #cfd3e3;
        font-weight: 500;
        transition: transform .15s, background .2s, color .2s, box-shadow .2s;
        font-size: larger;
    }

        .nav a:hover, .nav a:active {
            background: #fff;
            border-color: #fff;
            color: var(--brand1);
            font-weight: 600;
            transform: translateY(-1px);
            box-shadow: 0 10px 22px rgba(0,0,0,.25);
            font-size: larger;
        }

.section {
    padding: 60px 0;
    position: relative;
}

h1 {
    font-size: clamp(28px,4.6vw,44px);
    margin: 0 0 12px
}

.hero {
    position: relative;
    height: 500px;
    max-width: 860px;
    margin: 0px auto;
}

.hero-carousel {
    position: relative;
    overflow: visible;
    z-index: 1;
    width: 80%;
    margin-left: auto;
    top: 50px;
    height: 40%;
}

    .hero-carousel .hero-track {
        position: relative;
        width: 100%;
        height: 100%;
        --peek: 10%;
        --gap: 10%;
    }

.hero-slide {
    position: absolute;
    inset: 0;
    pointer-events: none;
    transition: transform .6s cubic-bezier(.22,.61,.36,1), opacity .6s
}

.hero-stage {
    width: 100%;
    height: 100%
}

.hero-card {
    width: 100%;
    height: 100%;
    border-radius: 28px;
    overflow: hidden;
    position: relative
}

.hero-h1 {
    font-size: 20px;
    line-height: 1.13;
    margin: 20px 20px 20px 20px;
    height: 60%;
}

.hero-cta {
    display: inline-block;
    margin-left: 20px;
    padding: 2px 10px;
    border-radius: 999px;
    border: 2px solid #fff;
    background: #fff;
    color: #000;
    font-family: Unbounded, system-ui, sans-serif;
    transition: .2s;
    font-size: 15px;
}

    .hero-cta:hover {
        color: #fff;
        background-image: linear-gradient(90deg,var(--brand1),var(--brand2));
        border-color: transparent
    }

.hero-slide[data-pos="current"] {
    transform: translateX(0) rotate(0);
    z-index: 4;
    pointer-events: auto
}

.hero-slide[data-pos="next"] {
    transform: translateX(var(--peek)) rotate(1.5deg) perspective(600px) rotateY(-5deg);
    z-index: 3;
    height: 95%;
}

.hero-slide[data-pos="tail"] {
    transform: translateX(calc(var(--peek) + var(--gap))) rotate(1.5deg) perspective(600px) rotateY(-5deg);
    z-index: 2;
    height: 95%;
}

.hero-slide[data-pos="off"] {
    transform: translateX(calc(var(--peek)*2 + var(--gap)));
    z-index: 1;
    opacity: 0
}

.hero-slide[data-pos="current"] .hero-card {
    background: url('./assets/Banner_Galaxia.png') center no-repeat;
    background-size: cover;
}
.hero-slide[data-pos="next"] .hero-card {
    background: #7c6bc4
}

.hero-slide[data-pos="tail"] .hero-card {
    background: #949ccb
}
.hero-slide[data-pos="current"] .hero-card .hero-h1 {
    visibility: visible;
}
.hero-slide[data-pos="next"] .hero-card .hero-h1 {
    visibility: hidden;
}

.hero-slide[data-pos="tail"] .hero-card .hero-h1 {
    visibility: hidden;
}

    .hero-slide[data-pos="next"] .hero-card::after, .hero-slide[data-pos="tail"] .hero-card::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        background: rgba(0,0,0,.18);
        pointer-events: none
    }

.hero-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -20px;
    display: flex;
    gap: 8px;
    justify-content: center;
    z-index: 5
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #b1bdfe;
    border: none
}

    .hero-dot.active {
        background: #111d5c;
        transform: scale(1.2)
    }

.hero-bg {
    position: absolute;
    left: 50px;
    width: 242%;
    height: 110%;
    background: url(./assets/FondoTarjetas.png) center no-repeat;
    background-size: contain;
    z-index: 0;
    pointer-events: none;
    margin: -70px auto !important;
}

.brand-band {
    position: relative;
    margin-top: 36px;
    margin-bottom: 36px;
}

.brands {
    display: grid;
    grid-template-columns: repeat(2, minmax(150px, 1fr));
    gap: 30px 10px;
    align-items: center;
    justify-items: center;
}

.form {
    max-width: 720px;
    margin: 0 auto
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px
}

    .form-row .full {
        grid-column: 1/-1
    }

.input, textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.14);
    background: #121428;
    color: #fff;
    outline: none
}

.btn-submit {
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.12);
    background-image: linear-gradient(90deg,var(--brand1),var(--brand2));
    font-weight: 700
}

.footer {
    padding: 28px 0;
    color: var(--muted);
    border-top: 1px solid rgba(255,255,255,.08);
    text-align: center
}

/* Card del formulario */
.contact-card {
    max-width: 90%;
    margin: 24px auto;
    padding: 28px 24px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .25);
}

    .contact-card h1 {
        margin: 0 0 14px;
    }

/* Grid y labels */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 16px;
}

    .form-grid .full {
        grid-column: 1 / -1;
    }

    .form-grid label {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

        .form-grid label > span {
            font-size: 14px;
            color: var(--muted);
        }

/* Inputs */
.input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.12);
    background: #121428;
    color: #fff;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, transform .05s ease;
}

    .input:focus {
        border-color: var(--brand1);
        box-shadow: 0 0 0 3px rgba(98,111,179,.25);
    }

textarea.input {
    resize: vertical;
}

/* Acciones */
.form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.btn-submit {
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: 999px;
    background-image: linear-gradient(90deg,var(--brand1),var(--brand2));
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(0,0,0,.25);
}

    .btn-submit:hover {
        transform: translateY(-1px);
    }
