@charset "UTF-8";


/* Variables */
:root {
    --beige: #bfb6a5;
    --dark: #2c2c2b;
    --gris-medio: #857c6e;
    --gris-oscuro: #5c5c54;
    --blanco: #ffffff;
    --beige-light: #eae4d9;
    --beige-dark: #a09587;
    --surface: rgba(92, 92, 84, 0.1);
    --surface-hover: rgba(92, 92, 84, 0.18);
    --border: rgba(191, 182, 165, 0.12);
    --border-hover: rgba(191, 182, 165, 0.3);
    --transition: 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    --font-title: "Josefin Sans", sans-serif;
    --font-body: "DM Sans", sans-serif;
    --shadow-sm: 0 2px 12px rgba(44, 44, 43, 0.14);
    --shadow-md: 0 6px 32px rgba(44, 44, 43, 0.24);
    --shadow-lg: 0 16px 56px rgba(44, 44, 43, 0.36);
    --radius: 12px;
    --radius-sm: 8px;
    --topbar-h: 112px; 
}

/*Reset  */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
    font-size: 16px;
}
body {
    font-family: var(--font-body);
    background: var(--dark);
    color: var(--blanco);
    overflow-x: hidden;
    padding-top: var(--topbar-h);
}
img {
    max-width: 100%;
    display: block;
}
a {
    color: inherit;
}
button {
    font-family: inherit;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--dark);
}
::-webkit-scrollbar-thumb {
    background: var(--gris-oscuro);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gris-medio);
}

/*TOPBAR  */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(44, 44, 43, 0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow var(--transition);
}
.topbar.scrolled {
    box-shadow: var(--shadow-md);
}

/* Fila superior del topbar */
.topbar > .topbar-logo,
.topbar > .topbar-right {
    position: absolute;
    top: 0;
}
.topbar {
    display: grid;
    grid-template-rows: 64px 48px;
}

/* Fila  logo derecha */
.topbar-logo {
    grid-row: 1;
    align-self: center;
    justify-self: start;
    padding: 0 2rem;
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--beige);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.logo-circle,
.footer-logo-circle {
    width: 28px;
    height: 28px;
    border: 2px solid var(--beige);
    border-radius: 50%;
    flex-shrink: 0;
}
.topbar-right {
    grid-row: 1;
    align-self: center;
    justify-self: end;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.topbar-socials {
    display: flex;
    align-items: center;
    gap: 2px;
}
.topbar-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: rgba(191, 182, 165, 0.65);
    font-size: 1.05rem;
    text-decoration: none;
    transition:
        background var(--transition),
        color var(--transition);
}
.topbar-socials a:hover {
    background: rgba(191, 182, 165, 0.12);
    color: var(--blanco);
}

/* Fila navegacion */
.topbar-nav {
    grid-row: 2;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border-top: 1px solid var(--border);
    padding: 0 1.5rem;
    overflow-x: auto;
    scrollbar-width: none;
}
.topbar-nav::-webkit-scrollbar {
    display: none;
}

/*item de navegacion */
.nav-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    color: rgba(191, 182, 165, 0.65);
    text-decoration: none;
    font-family: var(--font-title);
    font-size: 0.73rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
    white-space: nowrap;
    transition:
        background var(--transition),
        color var(--transition);
}
.nav-item i {
    font-size: 1rem;
}
.nav-item:hover,
.nav-item.active {
    background: rgba(191, 182, 165, 0.1);
    color: var(--blanco);
}
.nav-item.active {
    color: var(--beige);
}

/*Login  usuario */
.btn-login-google {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 15px;
    border-radius: 999px;
    background: transparent;
    border: 1px solid rgba(191, 182, 165, 0.35);
    color: var(--beige);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition:
        background var(--transition),
        border-color var(--transition),
        color var(--transition);
}
.btn-login-google:hover {
    background: rgba(191, 182, 165, 0.1);
    border-color: var(--beige);
    color: var(--blanco);
}
.user-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 4px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
}
.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.user-avatar-placeholder {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gris-oscuro);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-title);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--beige);
    flex-shrink: 0;
}
.user-name {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--beige);
}
.user-badge {
    font-size: 0.65rem;
    font-family: var(--font-title);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(191, 182, 165, 0.15);
    color: var(--beige);
    text-decoration: none;
    transition: background var(--transition);
}
.user-badge:hover {
    background: rgba(191, 182, 165, 0.25);
}
.user-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(191, 182, 165, 0.5);
    font-size: 0.95rem;
    text-decoration: none;
    transition: color var(--transition);
}
.user-logout:hover {
    color: var(--beige);
}

/*Hamburguesa*/
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
    border: none;
    background: transparent;
}
.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--beige);
    border-radius: 2px;
    transition:
        transform var(--transition),
        opacity var(--transition);
}
.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/*Menu móvil*/
.mobile-nav {
    position: fixed;
    top: var(--topbar-h);
    left: 0;
    right: 0;
    z-index: 900;
    background: rgba(44, 44, 43, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 1rem;
    gap: 4px;
    transform: translateY(-110%);
    opacity: 0;
    transition:
        transform var(--transition),
        opacity var(--transition);
    pointer-events: none;
}
.mobile-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.mobile-nav .nav-item {
    padding: 10px 16px;
    font-size: 0.8rem;
}

/*FOOTER */
.site-footer {
    background: rgba(20, 20, 19, 0.97);
    border-top: 1px solid var(--border);
    margin-top: 5rem;
}
.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 2rem 2rem;
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 2rem;
    align-items: start;
}
.footer-brand {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.footer-logo-circle {
    margin-top: 3px;
}
.footer-name {
    font-family: var(--font-title);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--beige);
}
.footer-tagline {
    font-size: 0.78rem;
    color: rgba(191, 182, 165, 0.45);
    margin-top: 4px;
}
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.footer-links a {
    font-size: 0.8rem;
    color: rgba(191, 182, 165, 0.55);
    text-decoration: none;
    font-family: var(--font-title);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color var(--transition);
}
.footer-links a:hover {
    color: var(--beige);
}
.footer-socials {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}
.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: rgba(191, 182, 165, 0.45);
    font-size: 1rem;
    transition:
        color var(--transition),
        background var(--transition);
    text-decoration: none;
}
.footer-socials a:hover {
    color: var(--beige);
    background: rgba(191, 182, 165, 0.08);
}
.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 1.25rem 2rem;
    text-align: center;
}
.footer-bottom p {
    font-size: 0.75rem;
    color: rgba(191, 182, 165, 0.35);
    letter-spacing: 0.04em;
}

.footer-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-end;
}

@media (max-width: 860px) {
    .footer-actions {
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .footer-actions {
        align-items: center;
    }
}

/*Componentes reutilizables */
.section-hero {
    padding: 4rem 2rem 3rem;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(
        180deg,
        rgba(44, 44, 43, 0) 0%,
        rgba(44, 44, 43, 1) 100%
    );
}
.section-hero-inner {
    max-width: 1100px;
    margin: 0 auto;
}
.section-eyebrow {
    font-family: var(--font-title);
    font-size: 0.68rem;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    color: var(--beige);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0.75rem;
}
.section-eyebrow::before {
    content: "";
    display: block;
    width: 32px;
    height: 1px;
    background: var(--beige);
    opacity: 0.55;
}
.section-main-title {
    font-family: var(--font-title);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--blanco);
    line-height: 1.08;
    margin-bottom: 0.9rem;
}
.section-main-title span {
    color: var(--beige);
}
.section-main-desc {
    font-size: 0.95rem;
    font-weight: 300;
    color: rgba(191, 182, 165, 0.65);
    line-height: 1.85;
    max-width: 580px;
}

/* Botones globales */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 999px;
    font-family: var(--font-title);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition:
        background var(--transition),
        color var(--transition),
        transform var(--transition),
        box-shadow var(--transition);
}
.btn-filled {
    background: var(--beige);
    color: var(--dark);
    border: 2px solid var(--beige);
}
.btn-filled:hover {
    background: transparent;
    color: var(--beige);
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(191, 182, 165, 0.25);
}
.btn-outline {
    background: transparent;
    color: var(--beige);
    border: 1px solid rgba(191, 182, 165, 0.4);
}
.btn-outline:hover {
    border-color: var(--beige);
    color: var(--blanco);
    background: rgba(191, 182, 165, 0.08);
    transform: translateY(-2px);
}
.btn-ghost {
    background: transparent;
    color: rgba(191, 182, 165, 0.65);
    border: none;
    padding: 8px 14px;
}
.btn-ghost:hover {
    color: var(--beige);
    background: var(--surface);
}

/* Reveal scroll */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 999px;
    font-family: var(--font-title);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600;
}
.badge-beige {
    background: rgba(191, 182, 165, 0.12);
    color: var(--beige);
}
.badge-dark {
    background: rgba(92, 92, 84, 0.2);
    color: rgba(191, 182, 165, 0.7);
}

/* Loader skeleton */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--surface) 25%,
        rgba(92, 92, 84, 0.2) 50%,
        var(--surface) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}
@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Mensaje vacio */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: rgba(191, 182, 165, 0.45);
}
.empty-state i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}
.empty-state p {
    font-size: 0.9rem;
}

/* RESPONSIVE */

/* 1100px: desktop compacto antes de colapsar*/
@media (max-width: 1100px) {
    .topbar-logo {
        padding: 0 1.25rem;
        font-size: 1rem;
        gap: 8px;
        min-width: 0;
        max-width: 42vw;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .topbar-right {
        padding: 0 1.25rem;
        gap: 8px;
        min-width: 0;
    }

    .topbar-nav {
        gap: 0;
        padding: 0 1rem;
    }

    .nav-item {
        padding: 6px 10px;
        font-size: 0.68rem;
        letter-spacing: 0.08em;
    }

    .nav-item i {
        font-size: 0.95rem;
    }

    .btn-login-google {
        padding: 7px 12px;
        font-size: 0.75rem;
    }

    .user-name {
        max-width: 88px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* 860px: modo tablet / menu hamburguesa  */
@media (max-width: 860px) {
    :root {
        --topbar-h: 64px;
    }

    body {
        padding-top: var(--topbar-h);
    }

    .topbar {
        grid-template-rows: 64px;
        align-items: center;
    }

    .topbar-nav {
        display: none;
    }

    .hamburger {
        display: flex;
        width: 40px;
        height: 40px;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
    }

    .hamburger:hover {
        background: rgba(191, 182, 165, 0.08);
    }

    .topbar-logo {
        padding: 0 1rem;
        font-size: 0.95rem;
        max-width: calc(100vw - 220px);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .topbar-socials {
        display: none;
    }

    .topbar-right {
        padding: 0 0.75rem 0 0;
        gap: 6px;
    }

    .btn-login-google {
        min-height: 38px;
    }

    .user-chip {
        max-width: 140px;
        min-width: 0;
    }

    .user-name {
        max-width: 64px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-nav {
        top: var(--topbar-h);
        bottom: 0;
        left: 0;
        right: 0;
        height: calc(100dvh - var(--topbar-h));
        max-height: calc(100dvh - var(--topbar-h));
        overflow-y: auto;
        padding: 1rem 1rem 1.25rem;
        gap: 6px;
        transform: translateY(-105%);
    }

    .mobile-nav .nav-item {
        min-height: 46px;
        padding: 12px 14px;
        border-radius: 10px;
        font-size: 0.8rem;
    }

    .notif-panel {
        position: fixed !important;
        top: var(--topbar-h) !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 0 0 var(--radius) var(--radius);
        max-height: calc(100dvh - var(--topbar-h));
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        align-items: start;
    }

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

/* 640px movil compacto*/
@media (max-width: 640px) {
    .topbar-logo {
        padding: 0 0.75rem;
        font-size: 0.88rem;
        gap: 7px;
        max-width: calc(100vw - 170px);
    }

    .logo-circle {
        width: 24px;
        height: 24px;
    }

    .topbar-right {
        padding-right: 0.5rem;
        gap: 4px;
    }

    .user-chip {
        padding: 4px;
        gap: 0;
        border-radius: 999px;
    }

    .user-name,
    .user-badge {
        display: none;
    }

    .user-logout {
        display: none;
    }

    .btn-login-google {
        padding: 7px 10px;
        font-size: 0.74rem;
    }

    .btn-login-google span {
        display: none;
    }

    .notif-bell,
    .hamburger {
        width: 36px;
        height: 36px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        padding: 2.2rem 1rem 1.5rem;
        gap: 1.4rem;
        text-align: center;
    }

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

    .footer-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px 14px;
        justify-items: center;
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-bottom {
        padding: 1rem;
    }
}

/* 420px moviles pequeños  */
@media (max-width: 420px) {
    .topbar-logo {
        font-size: 0.8rem;
        letter-spacing: 0.08em;
        max-width: calc(100vw - 148px);
    }

    .logo-circle {
        width: 22px;
        height: 22px;
    }

    .notif-bell {
        width: 32px;
        height: 32px;
        font-size: 0.95rem;
    }

    .hamburger {
        width: 32px;
        height: 32px;
    }

    .mobile-nav {
        padding: 0.85rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .footer-name {
        font-size: 0.82rem;
        letter-spacing: 0.1em;
    }

    .footer-tagline,
    .footer-bottom p {
        font-size: 0.72rem;
    }
}
