/* GetGeneria — AI Product Studio design system */

:root {
    --bg: #09090b;
    --bg-elevated: #111113;
    --bg-card: #141416;
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.16);
    --text: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --accent: #818cf8;
    --accent-bright: #a5b4fc;
    --accent-glow: rgba(129, 140, 248, 0.35);
    --cyan: #22d3ee;
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.25rem;
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 32px rgba(0, 0, 0, 0.35);
    --header-h: 4.5rem;
    --container: min(1120px, calc(100vw - 2rem));
    --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.18), transparent),
        radial-gradient(ellipse 60% 40% at 100% 0%, rgba(34, 211, 238, 0.08), transparent),
        radial-gradient(ellipse 50% 30% at 0% 100%, rgba(139, 92, 246, 0.06), transparent);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.container {
    width: var(--container);
    margin-inline: auto;
}

/* —— Header —— */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--header-h);
    border-bottom: 1px solid transparent;
    transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s;
}

.site-header.is-scrolled {
    background: rgba(9, 9, 11, 0.82);
    border-bottom-color: var(--border);
    backdrop-filter: blur(16px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
}

.brand.brand-text {
    font-size: 1.125rem;
    font-weight: 600;
    font-style: italic;
    letter-spacing: -0.03em;
    color: var(--text);
}

.site-footer .brand img {
    height: 2rem;
    width: auto;
}

@media (max-width: 768px) {
    .site-footer .brand img {
        height: 1.75rem;
    }
}

.nav-desktop {
    display: none;
    align-items: center;
    gap: 0.25rem;
}

.nav-desktop a {
    padding: 0.5rem 0.85rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: color 0.2s, background 0.2s;
}

.nav-desktop a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.nav-desktop a.is-active,
.nav-mobile a.is-active {
    color: var(--text);
    background: rgba(99, 102, 241, 0.12);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text);
    cursor: pointer;
}

.nav-mobile {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    padding: 1rem;
    background: rgba(9, 9, 11, 0.96);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(16px);
    flex-direction: column;
    gap: 0.25rem;
    z-index: 99;
}

.nav-mobile.is-open {
    display: flex;
}

.nav-mobile a {
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
}

.nav-mobile a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
}

@media (min-width: 900px) {
    .nav-desktop {
        display: flex;
    }
    .menu-toggle {
        display: none;
    }
}

/* —— Buttons —— */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #818cf8, #6366f1);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset, 0 8px 28px var(--accent-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border);
    color: var(--text);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-hover);
}

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

.btn-lg {
    padding: 0.85rem 1.5rem;
    font-size: 0.9375rem;
}

/* —— Typography —— */
.eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-bright);
    margin-bottom: 0.75rem;
}

.section-title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.section-lead {
    margin: 0;
    max-width: 36rem;
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* —— Sections —— */
main {
    position: relative;
    z-index: 1;
}

section {
    position: relative;
    z-index: 1;
    scroll-margin-top: var(--header-h);
}

main > section:not(.hero) {
    background: var(--bg);
}

/* Full-viewport panels (Careflow-style) */
main > section.section-panel {
    min-height: 100dvh;
    min-height: 100svh;
    padding: calc(var(--header-h) + 1.25rem) 0 2.5rem;
    overflow: hidden;
    box-sizing: border-box;
}

main > section.section-panel > .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100dvh - var(--header-h) - 3.75rem);
    min-height: calc(100svh - var(--header-h) - 3.75rem);
}

main > section.section-panel--tall {
    overflow: visible;
}

main > section.section-panel--tall > .container {
    min-height: 0;
    justify-content: flex-start;
}

.section-header {
    margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.section-header.center {
    text-align: center;
}

.section-header.center .section-lead {
    margin-inline: auto;
}

/* —— Hero —— */
.hero {
    overflow: hidden;
    z-index: 0;
}

.hero-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-logo {
    display: block;
    width: min(100%, 15rem);
    height: auto;
    margin: 0 0 0.85rem;
    object-fit: contain;
}

.hero.section-panel > .container.hero-grid {
    display: grid;
    min-height: calc(100dvh - var(--header-h) - 3rem);
    min-height: calc(100svh - var(--header-h) - 3rem);
    justify-content: unset;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2rem, 5vw, 3rem);
    align-items: center;
}

.hero-copy h1 {
    margin: 0 0 1.25rem;
    font-size: clamp(2rem, 5.5vw, 3.25rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.08;
}

.hero-copy .lead {
    margin: 0 0 2rem;
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--text-secondary);
    line-height: 1.65;
    max-width: 32rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-visual {
    position: relative;
    width: 100%;
    max-width: 520px;
    margin-inline: auto;
    overflow: hidden;
}

.mockup-stack {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin-inline: auto;
    aspect-ratio: 4 / 3;
    max-height: min(48vw, 320px);
}

.mockup-card {
    position: absolute;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--bg-card);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: transform 0.4s var(--ease);
}

.mockup-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.mockup-card--careflow {
    width: 66%;
    top: 4%;
    left: 2%;
    z-index: 3;
    transform: rotate(-2deg);
}

.mockup-card--axiora {
    width: 62%;
    top: 22%;
    right: 2%;
    z-index: 2;
    transform: rotate(3deg);
}

.mockup-card--aulaiq {
    width: 58%;
    bottom: 4%;
    left: 20%;
    z-index: 1;
    transform: rotate(-1deg);
}

.mockup-label {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    padding: 0.25rem 0.6rem;
    font-size: 0.6875rem;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid var(--border);
    border-radius: 999px;
    backdrop-filter: blur(8px);
}

@media (min-width: 900px) {
    .hero-grid {
        grid-template-columns: 1.05fr 0.95fr;
    }

    .hero-logo {
        width: min(100%, 17rem);
        margin-bottom: 0.75rem;
    }

    .mockup-stack {
        margin-inline: 0 0 auto;
        max-height: min(38vh, 340px);
    }
}

/* —— Cards grid —— */
.card-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

.card-grid--2 {
    grid-template-columns: 1fr;
}

.card-grid--3 {
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .card-grid--2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .card-grid--3 {
        grid-template-columns: repeat(3, 1fr);
    }
    .card-grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .card-grid--4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

.feature-card,
.product-card,
.solution-card {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: rgba(20, 20, 22, 0.6);
    transition: border-color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
}

.feature-card:hover,
.product-card:hover,
.solution-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

.feature-card .icon,
.solution-card .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 1rem;
    border-radius: var(--radius-md);
    background: rgba(99, 102, 241, 0.12);
    color: var(--accent-bright);
    font-size: 1.125rem;
}

.feature-card .icon svg,
.solution-card .icon svg {
    width: 1.25rem;
    height: 1.25rem;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature-card h3,
.solution-card h3,
.product-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.feature-card p,
.solution-card p,
.product-card p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.product-card {
    padding: 0;
    overflow: hidden;
}

.product-card .product-shot {
    aspect-ratio: 16 / 10;
    background: #0f1114;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.product-card .product-shot img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top center;
}

.product-shot.product-carousel {
    position: relative;
}

.product-carousel-viewport {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.product-carousel-track {
    position: relative;
    height: 100%;
}

.product-carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    filter: blur(4px);
    transition:
        opacity 0.65s var(--ease),
        filter 0.65s var(--ease);
    pointer-events: none;
    z-index: 0;
}

.product-carousel-slide.is-active {
    opacity: 1;
    filter: blur(0);
    pointer-events: auto;
    z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
    .product-carousel-slide {
        filter: none;
        transition: opacity 0.25s ease;
    }
}

.product-carousel-dots {
    position: absolute;
    bottom: 0.6rem;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 0.4rem;
}

.product-carousel-dot {
    width: 0.4rem;
    height: 0.4rem;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: width 0.25s var(--ease), background 0.25s;
}

.product-carousel-dot.is-active {
    width: 1.1rem;
    background: var(--accent-bright);
}

.product-carousel-dot:focus-visible {
    outline: 2px solid var(--accent-bright);
    outline-offset: 2px;
}

.product-card .product-body {
    padding: 1.25rem 1.5rem 1.5rem;
}

.product-tag {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--cyan);
}

.solution-card a {
    display: block;
    margin-top: 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--accent-bright);
}

.solution-card a:hover {
    text-decoration: underline;
}

/* —— Process —— */
.process-steps {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .process-steps {
        grid-template-columns: repeat(4, 1fr);
    }
}

.process-step {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: rgba(20, 20, 22, 0.4);
}

.process-step .step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    margin-bottom: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent-bright);
}

.process-step h3 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.process-step p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* —— Why —— */
.why-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* —— Contact —— */
.contact-section {
    border-top: none;
}

.contact-panel {
    display: grid;
    gap: 2rem;
    padding: clamp(2rem, 5vw, 3rem);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    background: linear-gradient(145deg, rgba(20, 20, 22, 0.9), rgba(9, 9, 11, 0.95));
    box-shadow: var(--shadow-card);
}

@media (min-width: 768px) {
    .contact-panel {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: inherit;
    font-size: 0.9375rem;
    color: var(--text);
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: rgba(129, 140, 248, 0.5);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23a1a1aa' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.contact-meta {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.contact-meta a {
    color: var(--accent-bright);
}

.contact-meta a:hover {
    text-decoration: underline;
}

/* —— Footer —— */
.site-footer {
    padding: 2.5rem 0;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--text);
}

.footer-copy {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* —— Consulta page —— */
.page-consulta {
    padding-top: calc(var(--header-h) + 2rem);
    padding-bottom: 4rem;
    min-height: 100vh;
}

.consulta-shell {
    max-width: 560px;
    margin-inline: auto;
}

.progress-track {
    height: 3px;
    margin-bottom: 2rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 33%;
    background: linear-gradient(90deg, #6366f1, #22d3ee);
    border-radius: 999px;
    transition: width 0.4s var(--ease);
}

.consulta-card {
    padding: clamp(1.5rem, 4vw, 2rem);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    background: rgba(20, 20, 22, 0.7);
    box-shadow: var(--shadow-card);
}

.consulta-step-title {
    margin: 0 0 0.35rem;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.consulta-step-desc {
    margin: 0 0 1.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.step-nav {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.step-nav .btn {
    flex: 1;
}

.step-nav .btn-prev {
    flex: 0 0 auto;
}

.step.hidden {
    display: none;
}

.resumen-box {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.resumen-box strong {
    color: var(--text);
}

.form-hint {
    margin-top: 0.35rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
