/* ==========================================================================
   LANDING PAGE – Fabri-K Coworking
   ========================================================================== */

/* --- Fuente Glitz (local) --- */
@font-face {
    font-family: 'Glitz';
    src: url('/assets/fonts/glitz/Glitz.woff2') format('woff2'),
        url('/assets/fonts/glitz/Glitz.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* --- Variables globales --- */
:root {
    --color-primary: #974315;
    --color-secondary: #E7E0CF;
    --color-tertiary: #442F24;
    --color-extra: #2B2522;
    --color-white: #FFFCF7;
    --font-display: 'Glitz', serif;
    --font-body: 'Montserrat', sans-serif;
    --nav-height: 72px;
    --diagonal-height: 120px;
}

/* --- Reset / Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    color: var(--color-extra);
    background: var(--color-white);
    overflow-x: hidden;
    line-height: 1.6;
}

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

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

/* --- Utilidades tipográficas --- */
.font-display {
    font-family: var(--font-display);
}

.font-body {
    font-family: var(--font-body);
}

.marker,
.word-marker {
    position: relative;
    display: inline;
    color: var(--color-secondary);
    padding: 4px 16px;
    z-index: 1;
}

.marker::before,
.word-marker::before {
    content: '';
    position: absolute;
    inset: -4px -8px;
    z-index: -1;
    background: url('/assets/images/hero/fondo_pincel.webp') center / 100% 100% no-repeat;
}

/* ==========================================================================
   CABECERA / NAVBAR
   ========================================================================== */
.fk-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(20px, 5vw, 60px);
    z-index: 1000;
    transition: box-shadow 0.3s;
}

.fk-navbar.scrolled {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
}

.fk-navbar__logo img {

    width: auto;
}

.fk-navbar__links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.fk-navbar__links a {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--color-secondary);
    padding: 8px 18px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

.fk-navbar__links a:hover,
.fk-navbar__links a:focus-visible {
    background: rgba(231, 224, 207, 0.15);
    color: #fff;
}

.fk-navbar__links .nav-login {
    background: var(--color-secondary);
    color: var(--color-primary);
    border-radius: 8px;
    font-weight: 700;
}

.fk-navbar__links .nav-login:hover {
    background: #fff;
    color: var(--color-primary);
}

/* Hamburger */
.fk-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.fk-hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--color-secondary);
    border-radius: 3px;
    transition: transform 0.3s, opacity 0.3s;
}

.fk-hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.fk-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.fk-hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile menu */
.fk-mobile-menu {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--color-primary);
    padding: 24px;
    flex-direction: column;
    gap: 8px;
    z-index: 999;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.fk-mobile-menu.open {
    display: flex;
}

.fk-mobile-menu a {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    color: var(--color-secondary);
    padding: 14px 16px;
    border-radius: 8px;
    transition: background 0.2s;
}

.fk-mobile-menu a:hover {
    background: rgba(231, 224, 207, 0.12);
}

/* ==========================================================================
   CAPA 1: HERO
   ========================================================================== */
.fk-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    max-height: 1000px;
    overflow: hidden;
    margin-top: var(--nav-height);
}

.fk-hero__media {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.fk-hero__media img,
.fk-hero__media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fk-hero__media > picture {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

picture.fk-hero__slide {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    overflow: hidden;
}

picture.fk-hero__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

picture.fk-hero__slide--active {
    opacity: 1;
}

.fk-hero__logo {
    transition: opacity 0.6s ease-in-out;
}

.fk-hero__logo--hidden {
    opacity: 0;
    pointer-events: none;
}

.fk-hero__cta {
    display: none;
    margin-top: 24px;
    padding: 14px 36px;
    background: var(--color-primary);
    color: #fff;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-decoration: none;
    border-radius: 8px;
    white-space: nowrap;
    transition: opacity 0.6s ease-in-out;
}

.fk-hero__cta:hover {
    filter: brightness(1.1);
}

.fk-hero__cta--active {
    display: inline-block;
    opacity: 1;
}

.fk-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(180deg, rgba(43, 37, 34, 0.3) 0%, rgba(43, 37, 34, 0.5) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.fk-hero__content {
    text-align: center;
    z-index: 3;
}

.fk-hero__content img {
    max-width: min(800px, 70vw);
    margin: 0 auto;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
}

/* K decorativa – esquina inferior izquierda del hero, por encima del overlay */
.fk-hero__k-deco {
    position: absolute;
    bottom: 35px;
    left: 0;
    z-index: 5;
    width: clamp(100px, 15vw, 210px);
    height: auto;
    opacity: 1;
    pointer-events: none;
    user-select: none;
}

/* Diagonal inferior del hero (más inclinada que las demás) */
.fk-hero__diagonal {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 4;
    height: calc(var(--diagonal-height) + 50px);
    overflow: hidden;
}

.fk-hero__diagonal svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   CAPA 2: PRESENTACIÓN
   ========================================================================== */
.fk-intro {
    position: relative;
    background: var(--color-secondary);
    padding: clamp(80px, 6vw, 140px) clamp(24px, 8vw, 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40vh;
    overflow: hidden;
}

.fk-intro__content {
    max-width: 720px;
    text-align: center;
    z-index: 2;
}

.fk-intro__headline {
    font-family: var(--font-body);
    font-size: clamp(28px, 5vw, 52px);
    font-weight: 400;
    line-height: 1.25;
    color: var(--color-extra);
    margin-bottom: 40px;
}

.fk-intro__headline .word-display {
    font-family: var(--font-display);
    font-weight: normal;
    font-size: 1.15em;
    color: var(--color-primary);
}

.fk-intro__headline .word-black {
    font-family: var(--font-display);
    font-weight: bold;
    font-size: 1.15em;
    color: var(--color-extra);
}

.fk-intro__headline .word-marker {
    font-family: var(--font-display);
    font-weight: normal;
    font-size: 1.15em;
    color: var(--color-secondary);
}

.fk-intro__cta {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-white);
    background: var(--color-primary);
    padding: 16px 48px;
    border-radius: 8px;
    transition: background 0.25s, transform 0.25s;
}

.fk-intro__cta:hover {
    background: var(--color-tertiary);
    transform: translateY(-2px);
}

/* Comillas decorativas – siempre ancladas a esquina inferior derecha */
.fk-intro__quote {
    position: absolute;
    bottom: 0;
    right: 0;
    font-family: var(--font-display);
    font-size: clamp(120px, 24vw, 350px);
    color: var(--color-primary);
    line-height: 0.6;
    user-select: none;
    z-index: 1;
    padding: 0 clamp(12px, 4vw, 40px) 0 0;
}

/* ==========================================================================
   CAPA 3: ESPACIOS
   ========================================================================== */
.fk-spaces {
    position: relative;
    background: var(--color-extra);
    padding: clamp(60px, 8vw, 120px) 0 var(--diagonal-height) 0;
    overflow: hidden;
}

.fk-spaces__header {
    text-align: center;
    padding: 0 24px;
    margin-bottom: clamp(32px, 5vw, 56px);
}

.fk-spaces__title {
    font-family: var(--font-body);
    font-size: clamp(24px, 4vw, 44px);
    font-weight: 300;
    color: var(--color-secondary);
    line-height: 1.3;
}

.fk-spaces__title .word-display {
    font-family: var(--font-display);
    font-weight: normal;
    font-size: 1.12em;
    color: var(--color-secondary);
}

/* Carrusel de espacios con flechas */
.fk-spaces__carousel {
    position: relative;
    padding: 0 clamp(24px, 5vw, 60px);
}

.fk-spaces__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--color-secondary);
    background: rgba(43, 37, 34, 0.7);
    color: var(--color-secondary);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.fk-spaces__arrow:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-50%) scale(1.1);
}

.fk-spaces__arrow--left {
    left: clamp(4px, 2vw, 16px);
}

.fk-spaces__arrow--right {
    right: clamp(4px, 2vw, 16px);
}

@media (max-width: 520px) {
    .fk-spaces__arrow {
        width: 36px;
        height: 36px;
        font-size: 22px;
    }
}

.fk-spaces__scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 40px;
    scrollbar-width: none;
}

.fk-spaces__scroll::-webkit-scrollbar {
    display: none;
}

.fk-space-card {
    flex: 0 0 clamp(260px, 30vw, 340px);
    scroll-snap-align: start;
    border-radius: 16px;
    overflow: hidden;
    background: var(--color-tertiary);
    transition: transform 0.3s;
}

.fk-space-card:hover {
    transform: translateY(-6px);
}

.fk-space-card__img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--color-tertiary);
}

.fk-space-card__body {
    padding: 20px;
}

.fk-space-card__name {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    color: var(--color-secondary);
}

.fk-space-card__desc {
    font-size: 13px;
    color: rgba(231, 224, 207, 0.7);
    margin-top: 6px;
    line-height: 1.4;
}

/* Diagonal + franja marquee integradas */
.fk-spaces__diagonal {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 5;
    height: var(--diagonal-height);
}

.fk-spaces__diagonal svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* SVG marquee sobre la franja diagonal */
.fk-spaces__marquee-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* ==========================================================================
   CAPA 4: TARIFAS
   ========================================================================== */
.fk-pricing {
    position: relative;
    background: var(--color-white);
    padding: 0 clamp(24px, 5vw, 60px) clamp(40px, 5vw, 80px);
    margin-top: -1px;
}

.fk-pricing__header {
    text-align: center;
    margin-bottom: clamp(40px, 5vw, 64px);
}

.fk-pricing__title {
    font-family: var(--font-body);
    font-size: clamp(24px, 4vw, 44px);
    font-weight: 300;
    color: var(--color-extra);
}

.fk-pricing__title .word-display {
    font-family: var(--font-display);
    font-weight: normal;
    font-size: 1.12em;
}

.fk-pricing__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.fk-price-card {
    position: relative;
    border-radius: 20px;
    padding: 36px 28px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
}

.fk-price-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

/* Variaciones de color */
.fk-price-card--primary {
    background: var(--color-primary);
    color: var(--color-white);
}

.fk-price-card--secondary {
    background: var(--color-secondary);
    color: var(--color-extra);
}

.fk-price-card--tertiary {
    background: var(--color-tertiary);
    color: var(--color-secondary);
}

.fk-price-card--extra {
    background: var(--color-extra);
    color: var(--color-secondary);
}

.fk-price-card__name {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.fk-price-card__amount {
    font-family: var(--font-display);
    font-size: clamp(40px, 6vw, 56px);
    line-height: 1;
    margin-bottom: 4px;
}

.fk-price-card__unit {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.75;
    margin-bottom: 24px;
}

.fk-price-card__actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.fk-price-card__btn {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 10px 22px;
    border-radius: 6px;
    border: 2px solid currentColor;
    transition: background 0.25s, color 0.25s;
    display: inline-block;
}

.fk-price-card--primary .fk-price-card__btn:hover {
    background: #fff;
    color: var(--color-primary);
}

.fk-price-card--secondary .fk-price-card__btn:hover {
    background: var(--color-extra);
    color: var(--color-secondary);
}

.fk-price-card--tertiary .fk-price-card__btn:hover {
    background: var(--color-secondary);
    color: var(--color-tertiary);
}

.fk-price-card--extra .fk-price-card__btn:hover {
    background: var(--color-secondary);
    color: var(--color-extra);
}

/* ==========================================================================
   CAPA 5: PROMOCIÓN
   ========================================================================== */
.fk-promo {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.fk-promo__bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.fk-promo__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fk-promo__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(135deg, rgba(68, 47, 36, 0.20) 0%, rgba(43, 37, 34, 0.90) 100%);
}

.fk-promo__content {
    position: absolute;
    top: clamp(40px, 8vw, 100px);
    left: clamp(24px, 6vw, 80px);
    z-index: 3;
    text-align: left;
}

.fk-promo__title {
    font-family: var(--font-display);
    font-size: clamp(32px, 5.5vw, 56px);
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.4;
}

.fk-promo__center {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 740px;
    padding: 0 clamp(24px, 5vw, 60px);
    margin-top: 100px;
}

.fk-promo__text {
    font-size: clamp(18px, 2.5vw, 24px);
    font-weight: 300;
    color: var(--color-white);
    line-height: 1.8;
    letter-spacing: 0.01em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.fk-promo__cta {
    display: inline-block;
    margin-top: clamp(48px, 7vw, 80px);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-extra);
    background: var(--color-secondary);
    padding: 16px 48px;
    border-radius: 8px;
    transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.fk-promo__cta:hover {
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

/* Diagonal inferior (misma inclinación que hero) */
.fk-promo__diagonal {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 4;
    height: calc(var(--diagonal-height) + 50px);
    overflow: hidden;
}

.fk-promo__diagonal svg {
    display: block;
    width: 100%;
    height: 100%;
}

.fk-promo__diagonal svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   CAPA 6: SERVICIOS
   ========================================================================== */
.fk-services {
    background: var(--color-extra);
    overflow: hidden;
}

.fk-services__header {
    text-align: right;
    padding: 0 clamp(24px, 6vw, 80px);
    margin-bottom: clamp(32px, 5vw, 56px);
}

.fk-services__title {
    font-family: var(--font-display);
    font-size: clamp(36px, 6vw, 64px);
    color: var(--color-secondary) !important;
    display: inline;
}

.fk-services__title .marker {
    padding: 4px 20px;
}

/* Scroll horizontal de servicios */
.fk-services__scroll {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0 clamp(24px, 5vw, 60px) 24px;
    scrollbar-width: none;
}

.fk-services__scroll::-webkit-scrollbar {
    display: none;
}

.fk-service-card {
    flex: 0 0 clamp(240px, 28vw, 300px);
    scroll-snap-align: start;
    border-radius: 16px;
    overflow: hidden;
    background: var(--color-tertiary);
    transition: transform 0.3s;
}

.fk-service-card:hover {
    transform: translateY(-6px);
}

.fk-service-card__img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: var(--color-tertiary);
}

.fk-service-card__body {
    padding: 20px;
}

.fk-service-card__name {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 8px;
}

.fk-service-card__desc {
    font-size: 13px;
    color: rgba(231, 224, 207, 0.65);
    line-height: 1.5;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.fk-footer {
    background: var(--color-tertiary);
    padding: 48px clamp(24px, 5vw, 60px);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.fk-footer__logo img {}

.fk-footer__copy {
    font-size: 13px;
    color: rgba(231, 224, 207, 0.6);
}

.fk-footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 24px;
    list-style: none;
}

.fk-footer__links a {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-secondary);
    transition: color 0.2s;
}

.fk-footer__links a:hover {
    color: #fff;
}

/* ==========================================================================
   ANIMACIONES (scroll reveal)
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 860px) {
    .fk-navbar__links {
        display: none;
    }

    .fk-hamburger {
        display: flex;
    }

    .fk-hero {
        height: 80vh;
        min-height: 480px;
    }

    .fk-intro {
        min-height: auto;
        padding: 64px 24px;
    }

    .fk-pricing__grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .fk-footer {
        flex-direction: column;
        text-align: center;
    }

    .fk-footer__links {
        justify-content: center;
    }
}

@media (max-width: 520px) {
    :root {
        --nav-height: 60px;
        --diagonal-height: 80px;
    }

    .fk-hero {
        height: 70vh;
        min-height: 400px;
    }

    .fk-pricing__grid {
        grid-template-columns: 1fr;
    }

    .fk-price-card {
        padding: 28px 20px;
    }

    .fk-spaces__marquee-svg text {
        font-size: 11px;
    }
}