@font-face {
    font-family: 'Apparat';
    src: url('../fonts/KMR-Apparat-Regular.ttf');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Apparat-bold';
    src: url('../fonts/KMR-Apparat-Bold.ttf');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Base */
html {
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    color: #17254c;
    overflow-x: hidden;
}

/* Hero */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow-x: hidden;
    max-width: 100vw;
}

.hero-background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

/* Header */
.hero-header {
    position: fixed;
    width: calc(100vw - 4rem);
    margin-top: 3rem;
    background: rgba(235, 235, 235, 0.3);
    backdrop-filter: blur(8px);
    border-radius: 5rem;
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.header-btn {
    cursor: pointer;
    transition: transform 0.3s ease;
    color: #17254c;
}

.header-btn:hover {
    transform: scale(1.05);
}

.demo-btn {
    display: flex;
    flex-direction: row;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #17254c;
    border-radius: 9999px;
    padding: 0.5rem 1.5rem;
    color: #17254c;
    gap: 6px;
}

.demo-btn:hover {
    background-color: #17254c;
    color: white;
    transform: scale(1.05);
}

.demo-btn:hover svg path {
    fill: white;
}

/* Título principal */
.hero-title {
    font-family: 'Apparat', system-ui, sans-serif;
    font-size: 4rem;
    font-weight: bold;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: white;
    max-width: 100%;
    word-wrap: break-word;
}

/* Botón principal héroe */
.start-btn {
    background-color: white;
    color: black;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    /* evita salto al hover */
}

.start-btn:hover {
    background-color: transparent;
    color: white;
    border: 1px solid white;
}

/* Píldoras reutilizables */
.pill {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border: 2px solid #17254c;
    border-radius: 200vh;
    background: transparent;
    color: #17254c;
}

.pill-text {
    color: #17254c;
    font-size: 1rem;
}

.benefit-card {
    display: flex;
    justify-content: space-around;
    text-align: center;
    flex-direction: column;
    background-color: #ecedc2;
    align-items: center;
    border-radius: 28px;
    gap: 12px;
    height: 330px;
    width: 330px;
    padding: 16px 48px 16px 48px;
}

.info-card {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: start;
    background-color: #ededed;
    height: 620px;
    width: 460px;
    border-radius: 50px;
    padding: 16px 48px 48px 48px;
}

h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.chat-section {
    background-image: linear-gradient(180deg,
            white 0%,
            #d0e9ec 10%,
            #9fcfd6 20%,
            #9fcfd6 80%,
            #d0e9ec 90%,
            white 100%);
}

.chat-bubble {
    display: flex;
    flex-direction: row;
    justify-content: start;
    gap: 12px;
    align-items: center;
    background-color: #fff;
    color: #17254c;
}

.chat-bubble-left {
    align-self: flex-start;
}

.chat-bubble-right {
    align-self: flex-end;
    flex-direction: row-reverse;
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.contact-form {
    border: 0.125em solid black;
    border-radius: 200px;
}

.contact-form:focus {
    outline: none;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-header {
        padding: .8rem;
        position: fixed;
        bottom: 4dvh;
        top: auto;
        margin-top: 0;
        width: calc(100vw - 2rem);
        left: 1rem;
        right: 1rem;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .demo-btn {
        display: flex !important;
        padding: 0;
        font-size: 0.875rem;
    }

    .demo-btn div {
        font-size: 0.875rem;
    }

    .demo-btn svg {
        width: 16px;
        height: 16px;
    }

    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
        padding: 0 1rem;
    }

    .start-btn {
        padding: 0.625rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-header {
        padding: .6rem .8rem;
        position: fixed;
        top: auto;
        margin-top: 0;
        width: calc(100vw - 2rem);
        left: 1rem;
        right: 1rem;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .demo-btn {
        display: flex !important;
        padding: 0.2rem 0.4rem;
        font-size: 0.75rem;
    }

    .demo-btn div {
        font-size: 0.75rem;
    }

    .demo-btn svg {
        width: 14px;
        height: 14px;
    }

    .demo-btn img {
        margin-top: 0.1rem;
        width: 14px;
        height: 14px;
        object-fit: contain;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
        padding: 0 0.5rem;
    }
}