@font-face {
    font-family: 'RuptlineFont';
    src: url('../fonts/ruptline-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'RuptlineFont';
    src: url('../fonts/ruptline-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'RuptlineFont';
    src: url('../fonts/ruptline-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'RuptlineFont';
    src: url('../fonts/ruptline-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #000000;
    --panel: #151515;
    --mega: #000000;
    --text: #f4f4f4;
    --muted: #8f8f8f;
    --white: #ffffff;
    --black: #000000;
    --radius-pill: 999px;
    --max: 1180px;
    --header-height: 96px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'RuptlineFont', monospace;
    font-weight: 400;
    letter-spacing: 0.08em;
    overflow-x: hidden;
}

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

/* HEADER */

.site-header {
    width: 100%;
    min-height: var(--header-height);
    padding: 28px 28px 18px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 32px;
    position: relative;
    z-index: 200;
    background: #000000;
}

.brand {
    line-height: 1;
    color: var(--white);
}

.brand-logo {
    display: inline-flex;
    align-items: center;
}

.brand-logo img {
    display: block;
    width: clamp(150px, 16vw, 230px);
    height: auto;
}

.main-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
}

.nav-item {
    position: relative;
}

.nav-item > a {
    display: inline-flex;
    padding: 12px 0;
    font-size: 1rem;
    font-weight: 400;
    color: var(--text);
    opacity: 0.92;
    transition: opacity 0.18s ease, font-weight 0.18s ease;
}
.nav-trigger:focus,
.nav-trigger:focus-visible {
    outline: none;
}
.nav-item:hover > a,
.nav-item.is-open > a {
    opacity: 1;
    font-weight: 700;
}

/* MEGA MENÚ DESKTOP */

/* Puente invisible solo entre header y mega menú */
.nav-item.has-dropdown::after {
    content: "";
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    height: 44px;
    display: none;
    pointer-events: auto;
    z-index: 120;
}

.nav-item.has-dropdown:hover::after {
    display: block;
}

.dropdown {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    width: 100vw;
    min-width: 0;

    background: #000000;
    border-radius: 0;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.04);

    display: grid;
    align-content: start;

    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease;

    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;

    overflow: visible;
    z-index: 150;
}

/* Blur debajo: visual solamente. Al entrar aquí, el menú se cierra */
.dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;

    height: calc(100vh - var(--header-height) - var(--dropdown-height));

    pointer-events: none;

    background: rgba(16, 16, 16, 0.42);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);

    z-index: 1;
}

.nav-item:hover .dropdown,
.nav-item.is-open .dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* Textos grandes del dropdown */
.dropdown a {
    position: relative;
    z-index: 2;

    display: block;
    width: fit-content;
    max-width: 860px;

    padding: 0;
    border-radius: 0;

    font-size: clamp(2rem, 2vw, 3.65rem);
    line-height: 1.16;
    font-weight: 300;
    letter-spacing: 0.115em;

    color: rgba(255, 255, 255, 0.84);
    opacity: 1;

    transition: color 0.16s ease, font-weight 0.16s ease;
}

.dropdown a:hover {
    background: transparent;
    color: #ffffff;
    font-weight: 700;
    transform: none;
}

/* PRODUCTOS */
.dropdown-products {
    --dropdown-height: 294px;
    height: var(--dropdown-height);
    padding: 54px clamp(58px, 8vw, 130px) 58px;
    gap: 34px;
}

/* AEO/SEO — texto + botón dentro del mega menú */
.dropdown-aeo {
    --dropdown-height: 314px;
    height: var(--dropdown-height);
    padding: 54px clamp(58px, 8vw, 130px) 58px;

    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: clamp(40px, 8vw, 140px);
}

.dropdown-aeo .dropdown-main-link {
    max-width: 720px;
}

/* Botón dentro del mega menú */
.dropdown-cta {
    min-width: 270px;
    min-height: 62px;
    padding: 0 44px !important;

    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    border-radius: var(--radius-pill);
    background: #ffffff !important;
    color: #000000 !important;

    font-size: clamp(1.1rem, 1.45vw, 1.55rem) !important;
    line-height: 1 !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
}

.dropdown-cta:hover {
    font-weight: 700 !important;
    color: #000000 !important;
}

/* DESARROLLO */
.dropdown-development {
    --dropdown-height: 360px;
    height: var(--dropdown-height);
    padding: 54px clamp(58px, 8vw, 130px) 62px;
    gap: 30px;
}

/* HERRAMIENTAS */
.dropdown-tools {
    --dropdown-height: 390px;
    height: var(--dropdown-height);
    padding: 54px clamp(58px, 8vw, 130px) 70px;

    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(46px, 8vw, 140px);
    row-gap: 30px;
}

.dropdown-tools a {
    max-width: 760px;
    font-size: clamp(1.55rem, 1.85vw, 2.75rem);
    line-height: 1.18;
    letter-spacing: 0.095em;
}
/* BOTONES HEADER */

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 20px;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    border: 0;
    cursor: pointer;
    white-space: nowrap;
    letter-spacing: 0.04em;
}

.btn-dark {
    background: #181818;
    color: var(--white);
    font-weight: 300;
}

.btn-light {
    background: var(--white);
    color: var(--black);
    font-weight: 700;
}

/* MENÚ MÓVIL */

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: #171717;
    padding: 12px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 5px 0;
    background: var(--white);
}

/* HERO GENERAL */

.hero {
    min-height: calc(100vh - var(--header-height));
    display: grid;
    align-items: center;
    padding: 40px 28px 0;
}

.hero-inner {
    width: min(100%, var(--max));
    margin: 0 auto;
}

.hero-center {
    text-align: center;
}

.hero-title {
    margin: 0;
    font-size: clamp(2.1rem, 5.4vw, 5.2rem);
    line-height: 1.18;
    font-weight: 300;
    letter-spacing: 0.09em;
}

.hero-title.small {
    font-size: clamp(1.8rem, 4.4vw, 4rem);
}

.hero-title.left {
    text-align: left;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 40px;
}

/* HOME */

.home-question {
    margin: 0 0 18px;
    font-size: clamp(1.65rem, 2.4vw, 2.45rem);
    line-height: 1.1;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--white);
}

.prompt-box {
    width: min(100%, 460px);
    margin: 18px auto 0;
    background: #1d1d1d;
    border-radius: 18px;
    padding: 18px;
    display: grid;
    grid-template-columns: 1fr 36px;
    gap: 12px;
    align-items: end;
}

.home-prompt {
    width: min(100%, 540px);
    min-height: 96px;
    margin-top: 14px;
    padding: 18px 18px 16px;
    border-radius: 18px;
    background: #1c1c1c;
    grid-template-columns: 1fr 36px;
    align-items: end;
}

.prompt-box textarea,
.prompt-box input {
    width: 100%;
    min-height: 54px;
    resize: none;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-family: inherit;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

.home-prompt textarea {
    min-height: 66px;
    max-height: 66px;
    overflow: hidden;
    line-height: 1.45;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--white);
}

.home-prompt textarea::-webkit-scrollbar {
    display: none;
}

.home-prompt textarea::placeholder {
    color: rgba(255, 255, 255, 0.62);
    opacity: 1;
}

.prompt-box button {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: #6a6a6a;
    color: var(--white);
    cursor: pointer;
}

.home-prompt button {
    align-self: end;
    margin-bottom: 0;
}

.chips {
    width: min(100%, 460px);
    margin: 20px auto 0;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-center .chips {
    width: min(100%, 540px);
    margin-top: 18px;
}

.chip {
    min-height: 38px;
    padding: 0 18px;
    border-radius: var(--radius-pill);
    background: #1b1b1b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 400;
}

.hero-center .chip {
    min-width: 108px;
}

/* SECCIONES */

.page-section {
    background: var(--panel);
    min-height: 280px;
    padding: 48px 28px;
}

.page-section-inner {
    width: min(100%, var(--max));
    margin: 0 auto;
}

.content-block {
    max-width: 760px;
}

.content-block h1 {
    margin: 0 0 24px;
    font-size: clamp(2.3rem, 5vw, 5rem);
    line-height: 1.08;
    font-weight: 400;
}

.content-block p {
    margin: 0 0 18px;
    max-width: 680px;
    color: #cfcfcf;
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    line-height: 1.7;
    letter-spacing: 0.04em;
}

/* HERRAMIENTAS PAGE */

.tool-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 38px 70px;
}

.tool-list {
    display: grid;
    gap: 22px;
}

.tool-link {
    font-size: clamp(1.8rem, 3vw, 3rem);
    line-height: 1.25;
    opacity: 0.95;
}

.tool-link:hover {
    opacity: 1;
    font-weight: 700;
}

/* FOOTER */

.site-footer {
    background: #000000;
    color: var(--white);
    padding: 70px 28px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-main {
    width: min(100%, var(--max));
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1.15fr repeat(4, 1fr);
    gap: clamp(28px, 4vw, 64px);
    align-items: start;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
}

.footer-logo img {
    display: block;
    width: clamp(145px, 13vw, 210px);
    height: auto;
}

.footer-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.footer-col h3 {
    margin: 0 0 8px;
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.86rem;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.055em;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.68rem;
    line-height: 1.15;
    font-weight: 400;
    letter-spacing: 0em;
    transition: color 0.18s ease, font-weight 0.18s ease;
}

.footer-col a:hover {
    color: #ffffff;
    font-weight: 700;
}

.footer-bottom {
    width: min(100%, var(--max));
    margin: 70px auto 0;
    padding-top: 26px;

    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: center;

    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-social,
.footer-legal {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}

.footer-legal {
    justify-content: flex-end;
}

.footer-social a,
.footer-legal a,
.footer-copy {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.045em;
}

.footer-social a:hover,
.footer-legal a:hover {
    color: #ffffff;
    font-weight: 700;
}

.footer-copy {
    white-space: nowrap;
    text-align: center;
}
.footer-social-icons {
    gap: 22px;
}

.footer-social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 22px;
    height: 22px;

    opacity: 0.78;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.footer-social-icons a:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.footer-social-icons img {
    display: block;
    width: 18px;
    height: 18px;
    object-fit: contain;
}

/* RESPONSIVE */

@media (max-width: 1100px) {
    .main-nav {
        gap: 22px;
    }

    .nav-item > a {
        font-size: 0.92rem;
    }

    .dropdown a {
        font-size: clamp(1.8rem, 2vw, 3.1rem);
    }
}

@media (max-width: 900px) {
    :root {
        --header-height: 88px;
    }

    .site-header {
        grid-template-columns: auto auto;
        justify-content: space-between;
        gap: 16px;
        padding: 22px 18px 14px;
    }

    .brand-logo img {
        width: clamp(145px, 40vw, 190px);
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
    
        width: min(86vw, 420px);
        height: 100dvh;
    
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
    
        gap: 0;
        padding: calc(env(safe-area-inset-top) + 96px) 22px 34px;
    
        background: #000000;
        border-radius: 0;
        border: 0;
    
        z-index: 500;
    
        transform: translateX(104%);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    
        transition:
            transform 0.34s ease,
            opacity 0.24s ease,
            visibility 0.24s ease;
    }
    
    body.menu-open .main-nav {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    body.menu-open {
    overflow: hidden;
    touch-action: none;
}
body.menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

body.menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
}

body.menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.menu-toggle span {
    transition: transform 0.22s ease, opacity 0.22s ease;
}

body.menu-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 450;
}
.menu-toggle {
    position: relative;
    z-index: 650;
}

.site-header {
    position: relative;
    z-index: 650;
    background: #000000;
}
body.menu-open .main-nav {
    touch-action: pan-y;
}

        .nav-item.has-dropdown::after {
        display: none;
    }

    .dropdown {
        position: static;
        width: auto;
        height: auto;
        min-height: 0;
        max-height: none;
        min-width: 0;

        transform: none;
        opacity: 1;
        pointer-events: auto;

        box-shadow: none;
        background: transparent;
        border: 0;

        padding: 0 0 10px 14px;

        display: block;

        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .dropdown::after {
        display: none;
    }

    .dropdown-products,
    .dropdown-aeo,
    .dropdown-development,
    .dropdown-tools {
        --dropdown-height: 0px;
        height: auto;
        min-height: 0;
        padding: 0 0 10px 14px;
        display: block;
    }

    .dropdown a {
        font-size: 0.95rem;
        line-height: 1.3;
        font-weight: 300;
        letter-spacing: 0.08em;
        padding: 10px 14px;
        color: rgba(255, 255, 255, 0.82);
    }

    .dropdown a:hover {
        font-weight: 700;
        transform: none;
    }

    .dropdown-cta {
        min-width: 0;
        min-height: 0;
        padding: 10px 14px !important;

        display: block !important;

        background: transparent !important;
        color: rgba(255, 255, 255, 0.82) !important;

        font-size: 0.95rem !important;
        line-height: 1.3 !important;
        font-weight: 300 !important;
        letter-spacing: 0.08em !important;
    }

    .header-actions {
        display: none;
    }

    .hero {
        min-height: auto;
        padding-top: 80px;
        padding-bottom: 60px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .tool-grid {
        grid-template-columns: 1fr;
    }

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

    .footer-brand-col {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .footer-legal {
        justify-content: flex-start;
    }

    .footer-copy {
        text-align: left;
    }
}

@media (max-width: 560px) {
    .site-header {
        padding: 20px 18px 12px;
    }

    .brand-logo img {
        width: 155px;
    }

    .hero {
        padding-left: 18px;
        padding-right: 18px;
    }

    .hero-title {
        letter-spacing: 0.07em;
    }

    .home-question {
        font-size: clamp(1.45rem, 7vw, 2rem);
    }

    .home-prompt {
        width: 100%;
        min-height: 98px;
        border-radius: 16px;
    }

    .chips {
        gap: 10px;
    }

    .chip {
        min-width: auto;
        font-size: 0.72rem;
        padding: 0 15px;
    }

    .page-section {
        padding-left: 18px;
        padding-right: 18px;
    }
    
        .site-footer {
        padding: 54px 18px 26px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .footer-col {
        gap: 13px;
    }

    .footer-bottom {
        margin-top: 48px;
    }

    .footer-social,
    .footer-legal {
        gap: 16px;
    }
}
/* SMART SEARCH HOME */

.smart-results {
    width: min(100%, 540px);
    margin: 14px auto 0;
    display: grid;
    gap: 10px;
    text-align: left;
}

.smart-results[hidden] {
    display: none;
}

.smart-result-card {
    display: grid;
    gap: 6px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(24, 24, 24, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.045);
    color: rgba(255, 255, 255, 0.9);
    transition: background 0.18s ease, transform 0.18s ease;
}

.smart-result-card:hover {
    background: rgba(32, 32, 32, 0.98);
    transform: translateY(-1px);
}

.smart-result-title {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.075em;
    color: #ffffff;
}

.smart-result-desc {
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.055em;
    color: rgba(255, 255, 255, 0.62);
}

.smart-result-tag {
    width: fit-content;
    margin-top: 4px;
    padding: 6px 10px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.62rem;
    font-weight: 400;
    letter-spacing: 0.07em;
    color: rgba(255, 255, 255, 0.72);
}

.smart-empty {
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(24, 24, 24, 0.92);
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.75rem;
    line-height: 1.5;
    letter-spacing: 0.055em;
}

@media (max-width: 560px) {
    .smart-results {
        width: 100%;
    }

    .smart-result-title {
        font-size: 0.86rem;
    }

    .smart-result-desc {
        font-size: 0.68rem;
    }
}
/* SMART AI ANSWER */

.smart-ai-answer {
    width: min(100%, 540px);
    margin: 14px auto 0;
    padding: 18px 20px;
    border-radius: 20px;
    background: rgba(24, 24, 24, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.055);
    text-align: left;
    color: rgba(255, 255, 255, 0.86);
}

.smart-ai-answer[hidden] {
    display: none;
}

.smart-ai-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 10px;
    padding: 6px 10px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.62rem;
    font-weight: 400;
    letter-spacing: 0.08em;
}

.smart-ai-title {
    display: block;
    margin-bottom: 8px;
    font-size: 0.96rem;
    font-weight: 700;
    letter-spacing: 0.075em;
    color: #ffffff;
}

.smart-ai-text {
    display: block;
    font-size: 0.76rem;
    line-height: 1.55;
    font-weight: 500;
    letter-spacing: 0.055em;
    color: rgba(255, 255, 255, 0.66);
}

.smart-ai-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.smart-ai-chip {
    border: 0;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.82);
    font-family: inherit;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
}

.smart-ai-chip:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.smart-result-card.is-primary {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(32, 32, 32, 0.98);
}

.smart-result-card.is-primary::before {
    content: "Mejor opción";
    width: fit-content;
    padding: 5px 9px;
    border-radius: var(--radius-pill);
    background: #ffffff;
    color: #000000;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.065em;
}

@media (max-width: 560px) {
    .smart-ai-answer {
        width: 100%;
    }

    .smart-ai-title {
        font-size: 0.88rem;
    }

    .smart-ai-text {
        font-size: 0.7rem;
    }
}
/* PRELOADER GLOBAL */

body.is-loading {
    overflow: hidden;
}

.site-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #000000;

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 1;
    visibility: visible;

    transition: opacity 0.75s ease, visibility 0.75s ease;
}

.site-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Ventana invisible / máscara */
.loader-mask {
    position: relative;

    width: clamp(220px, 24vw, 390px);
    height: clamp(220px, 24vw, 390px);

    overflow: hidden;

    border: 0;
    outline: 0;
    background: transparent;
}

/* Tira doble infinita */
.loader-track {
    --loader-width: clamp(160px, 13vw, 250px);
    --piece-overlap: -1px;

    position: absolute;
    left: 50%;
    top: 0;

    width: var(--loader-width);

    display: flex;
    flex-direction: column;

    transform: translate3d(-50%, -50%, 0);
    animation: ruptlineLoaderRise 8.2s linear infinite;

    will-change: transform;
}

.loader-loop {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loader-loop img {
    display: block;
    width: 100%;
    height: auto;

    margin: 0;
    margin-top: var(--piece-overlap);

    padding: 0;

    flex: 0 0 auto;
    user-select: none;
    pointer-events: none;
}

.loader-loop img:first-child {
    margin-top: 0;
}

@keyframes ruptlineLoaderRise {
    from {
        transform: translate3d(-50%, 0, 0);
    }

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

@media (prefers-reduced-motion: reduce) {
    .loader-track {
        animation: none;
    }

    .site-loader {
        transition: opacity 0.2s ease;
    }
}
/* FOOTER SOCIAL ICONS FIX MOBILE */

.footer-social-icons {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 22px;
}

.footer-social-icons a {
    flex: 0 0 auto;
}

@media (max-width: 560px) {
    .footer-social-icons {
        flex-direction: row !important;
        justify-content: flex-start;
        align-items: center;
        flex-wrap: nowrap;
        gap: 18px;
    }

    .footer-social-icons a {
        width: 22px;
        height: 22px;
    }

    .footer-social-icons img {
        width: 18px;
        height: 18px;
    }
}
/* LEGAL PAGES */

.legal-page {
    background: #ffffff;
    color: #000000;
}

.legal-hero {
    padding: 150px 22px 58px;
    background: #f6f6f6;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.legal-hero-inner {
    width: min(980px, 100%);
    margin: 0 auto;
}

.legal-kicker {
    margin: 0 0 14px;
    color: rgba(0, 0, 0, 0.48);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.legal-hero h1 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(2.4rem, 6vw, 5.4rem);
    line-height: 0.92;
    letter-spacing: -0.08em;
}

.legal-hero p {
    max-width: 760px;
    margin: 24px 0 0;
    color: rgba(0, 0, 0, 0.66);
    font-size: clamp(1rem, 1.6vw, 1.18rem);
    line-height: 1.6;
}

.legal-hero span {
    display: inline-flex;
    margin-top: 22px;
    padding: 9px 13px;
    border-radius: 999px;
    background: #ffffff;
    color: rgba(0, 0, 0, 0.58);
    font-size: 0.82rem;
    font-weight: 600;
}

.legal-content-section {
    padding: 70px 22px 96px;
}

.legal-content {
    width: min(900px, 100%);
    margin: 0 auto;
    display: grid;
    gap: 34px;
}

.legal-content article {
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.legal-content article:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.legal-content h2 {
    margin: 0 0 14px;
    font-size: clamp(1.28rem, 2vw, 1.72rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.legal-content p {
    margin: 0;
    color: rgba(0, 0, 0, 0.68);
    font-size: 1rem;
    line-height: 1.72;
}

.legal-content p + p {
    margin-top: 14px;
}

.legal-content a {
    color: #000000;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
}

@media (max-width: 760px) {
    .legal-hero {
        padding: 118px 18px 46px;
    }

    .legal-content-section {
        padding: 48px 18px 72px;
    }

    .legal-content {
        gap: 28px;
    }
}

/* GLOBAL TEXT READABILITY FIX */
:root {
    --copy-weight: 500;
}

/* Texto normal de lectura */
body p,
body li,
.content-block p,
.legal-hero p,
.legal-content p,
.smart-result-desc,
.smart-ai-text,
.smart-empty {
    font-weight: var(--copy-weight) !important;
}

/* Inputs, textarea y textos de búsqueda */
.prompt-box textarea,
.prompt-box input,
.home-prompt textarea {
    font-weight: var(--copy-weight) !important;
}

/* Chips / botones pequeños de texto */
.chip,
.smart-ai-chip,
.smart-result-tag {
    font-weight: var(--copy-weight) !important;
}
.section-kicker {
    margin-bottom: 14px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #00F7A9;
}

.home-entity-section h2,
.home-aeo-section h2 {
    max-width: 860px;
    font-size: clamp(32px, 5vw, 72px);
    line-height: .95;
    letter-spacing: -0.06em;
    margin-bottom: 32px;
}

.home-service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 36px;
}

.home-service-card {
    display: block;
    padding: 28px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 28px;
    background: rgba(255,255,255,.035);
    text-decoration: none;
    color: inherit;
    transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.home-service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0,247,169,.55);
    background: rgba(0,247,169,.06);
}

.home-service-card span {
    display: inline-block;
    margin-bottom: 38px;
    color: #00F7A9;
    font-size: 13px;
    font-weight: 600;
}

.home-service-card h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

.home-service-card p {
    font-size: 17px;
    line-height: 1.55;
    opacity: .76;
}

@media (max-width: 800px) {
    .home-service-grid {
        grid-template-columns: 1fr;
    }

    .home-service-card {
        padding: 24px;
    }
}

/* AEO Ronda 1 + 2 — Diseño Ruptline refinado */
.home-products-section,
.home-founder-section,
.home-faq-section,
.about-hero-section,
.service-hero-section {
    position: relative;
}

.home-products-section .page-section-inner,
.home-founder-section .page-section-inner,
.home-faq-section .page-section-inner {
    max-width: 1180px;
}

.home-section-lead {
    max-width: 760px;
    margin: 16px 0 0;
    font-size: clamp(1rem, 1.25vw, 1.16rem);
    line-height: 1.62;
    color: rgba(0, 0, 0, 0.58);
}

.home-products-section h2,
.home-faq-section h2,
.home-founder-copy h2,
.service-hero-grid h1,
.about-hero-grid h1 {
    letter-spacing: -0.055em;
}

/* Grids */
.home-product-grid,
.home-faq-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: clamp(24px, 4vw, 42px);
}

/* Cards base, más Ruptline: editorial, limpias, sin sombra pesada */
.home-product-card,
.home-faq-item,
.service-side-card,
.about-founder-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.10);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.92), rgba(250,250,250,0.78));
    box-shadow: none;
}

.home-product-card {
    display: flex;
    min-height: 245px;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(20px, 2.4vw, 28px);
    color: #000;
    text-decoration: none;
    transition:
        transform .22s ease,
        border-color .22s ease,
        background .22s ease;
}

.home-product-card::after,
.home-faq-item::after,
.service-side-card::after,
.about-founder-card::after {
    content: "";
    position: absolute;
    inset: auto 18px 18px auto;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #00F7A9;
    opacity: 0;
    transform: scale(.4);
    transition: opacity .22s ease, transform .22s ease;
}

.home-product-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 247, 169, 0.9);
    background:
        linear-gradient(180deg, rgba(255,255,255,1), rgba(244,244,244,0.92));
}

.home-product-card:hover::after,
.home-faq-item:hover::after,
.service-side-card:hover::after,
.about-founder-card:hover::after {
    opacity: 1;
    transform: scale(1);
}

.home-product-card span {
    display: inline-flex;
    width: max-content;
    margin-bottom: 34px;
    padding: 6px 10px;
    border: 1px solid rgba(0,0,0,.09);
    border-radius: 999px;
    font-size: .68rem;
    line-height: 1;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.48);
    background: rgba(255,255,255,.72);
}

.home-product-card h3,
.home-faq-item h3 {
    margin: 0 0 10px;
    max-width: 96%;
    font-size: clamp(1.05rem, 1.22vw, 1.26rem);
    line-height: 1.04;
    letter-spacing: -0.035em;
}

.home-product-card p,
.home-faq-item p,
.home-founder-copy p,
.about-founder-card p,
.service-side-card p {
    margin: 0;
    color: rgba(0, 0, 0, 0.58);
    line-height: 1.54;
    font-size: .96rem;
}

/* Founder: bloque más premium, negro con acento */
.home-founder-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: clamp(18px, 3vw, 30px);
    align-items: center;
    padding: clamp(22px, 4vw, 44px);
    border-radius: 34px;
    background:
        radial-gradient(circle at 12% 15%, rgba(0, 247, 169, 0.22), transparent 32%),
        linear-gradient(135deg, #050505, #111 56%, #050505);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.12);
}

.home-founder-avatar {
    width: clamp(72px, 8vw, 96px);
    height: clamp(72px, 8vw, 96px);
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #00F7A9;
    color: #000;
    font-weight: 900;
    letter-spacing: -0.06em;
    font-size: clamp(1.12rem, 1.8vw, 1.45rem);
    box-shadow: 0 18px 55px rgba(0, 247, 169, 0.18);
}

.home-founder-copy .section-kicker {
    color: rgba(255, 255, 255, 0.52);
}

.home-founder-copy h2 {
    margin: 0 0 12px;
    color: #fff;
}

.home-founder-copy p {
    max-width: 780px;
    color: rgba(255, 255, 255, 0.68);
}

.home-founder-links {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 24px;
}

.home-founder-links .chip {
    background: rgba(255,255,255,.08);
    color: #fff;
    border-color: rgba(255,255,255,.16);
}

.home-founder-links .chip:hover {
    background: #00F7A9;
    color: #000;
    border-color: #00F7A9;
}

/* FAQ: más compacto */
.home-faq-item {
    padding: clamp(18px, 2.2vw, 24px);
    min-height: 190px;
    transition: border-color .22s ease, transform .22s ease;
}

.home-faq-item:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 247, 169, 0.72);
}

/* About */
.about-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 16px;
    align-items: stretch;
}

.about-hero-grid > div:first-child {
    border-radius: 34px;
    padding: clamp(24px, 4.6vw, 54px);
    background:
        radial-gradient(circle at 0 0, rgba(0, 247, 169, 0.12), transparent 32%),
        #f7f7f7;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.about-hero-grid h1 {
    max-width: 900px;
    margin-bottom: 16px;
}

.about-founder-card {
    padding: clamp(24px, 3vw, 34px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #050505;
    color: #fff;
}

.about-founder-card h2 {
    margin: 18px 0 10px;
    color: #fff;
    letter-spacing: -0.045em;
}

.about-founder-card p {
    color: rgba(255, 255, 255, 0.66);
}

/* Service pages */
.service-hero-section {
    padding-top: clamp(110px, 13vw, 170px);
}

.service-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 16px;
    align-items: stretch;
}

.service-hero-grid > div:first-child {
    border-radius: 34px;
    padding: clamp(24px, 4.6vw, 54px);
    background:
        radial-gradient(circle at 0 0, rgba(0, 247, 169, 0.11), transparent 34%),
        linear-gradient(180deg, #ffffff, #f6f6f6);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.service-hero-grid h1 {
    max-width: 980px;
    margin-bottom: 0;
}

.service-hero-grid .chips,
.about-hero-grid .chips {
    margin-top: 28px;
}

.service-side-card {
    padding: clamp(24px, 3vw, 34px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #050505;
    color: #fff;
}

.service-side-card span {
    display: inline-flex;
    width: max-content;
    margin-bottom: 26px;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: .68rem;
    line-height: 1;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #000;
    background: #00F7A9;
}

.service-side-card h2 {
    margin: 0 0 12px;
    color: #fff;
    font-size: clamp(1.28rem, 2vw, 1.85rem);
    line-height: 1;
    letter-spacing: -0.05em;
}

.service-side-card p {
    color: rgba(255, 255, 255, 0.66);
}

/* Footer links que agregamos */
.footer-brand-links {
    display: grid;
    gap: 10px;
    margin-top: 22px;
}

.footer-brand-links a {
    color: inherit;
    text-decoration: none;
    opacity: .66;
    transition: opacity .18s ease;
}

.footer-brand-links a:hover {
    opacity: 1;
}

/* Ajustes para que los chips nuevos no parezcan botones externos */
.home-products-section .chip,
.home-faq-section .chip,
.about-page .chip,
.service-page .chip {
    border-color: rgba(0,0,0,.1);
}

/* Responsive */
@media (max-width: 1180px) {
    .home-product-grid,
    .home-faq-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .about-hero-grid,
    .service-hero-grid {
        grid-template-columns: 1fr;
    }

    .service-side-card,
    .about-founder-card {
        min-height: 240px;
    }
}

@media (max-width: 560px) {
    .home-product-grid,
    .home-faq-grid {
        grid-template-columns: 1fr;
    }

    .home-product-card,
    .home-faq-item {
        min-height: unset;
    }

    .home-founder-card {
        grid-template-columns: 1fr;
        border-radius: 28px;
    }

    .service-hero-grid > div:first-child,
    .about-hero-grid > div:first-child {
        border-radius: 28px;
        padding: 24px;
    }

    .service-side-card,
    .about-founder-card {
        border-radius: 28px;
    }
}

