/* styles.css — PROVEO EC v3 — Partículas + Liquid Glass
=============================================================================
Colores de marca:
  PROVEO BLACK:  #0B0B0B
  GOLD Light:    #F0D27A
  GOLD Mid:      #E3BB61
  GOLD Deep:     #BF9039
  OFF-WHITE:     #F6F5F1
  GRAPHITE:      #3A3A3A
============================================================================= */

:root {
    --black: #0B0B0B;
    --off: #F6F5F1;
    --graphite: #3A3A3A;
    --lgray: #BDBDBD;

    --gold1: #F0D27A;
    --gold2: #E3BB61;
    --gold3: #BF9039;
    --goldGrad: linear-gradient(135deg, var(--gold1), var(--gold2), var(--gold3));
    --goldGlow: rgba(227, 187, 97, .28);

    --glass: rgba(246, 245, 241, .68);
    --glassCard: rgba(255, 255, 255, .62);
    --line: rgba(11, 11, 11, .09);
    --shadow: 0 24px 70px rgba(11, 11, 11, .13);
    --shadowSoft: 0 14px 36px rgba(11, 11, 11, .08);
    --shadowGold: 0 8px 32px rgba(227, 187, 97, .20);

    --r: 20px;
    --r2: 28px;
    --max: 1200px;
    --ease: cubic-bezier(.2, .8, .2, 1);
    --t: .28s;
}

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

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    color: var(--black);
    background: var(--off);
    overflow-x: hidden;
}

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

.wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================================
   CANVAS DE PARTÍCULAS (fondo interactivo)
   ============================================================ */
#particleCanvas {
    position: fixed;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Overlay gradiente suave sobre las partículas */
.bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 15% 20%, rgba(240, 210, 122, .12), transparent 50%),
        radial-gradient(ellipse at 80% 75%, rgba(191, 144, 57, .10), transparent 50%);
}

/* Brillos en movimiento (sensación liquid) */
.bg::before,
.bg::after {
    content: "";
    position: absolute;
    inset: -20%;
    pointer-events: none;
    filter: blur(22px);
    opacity: .70;
    transform: translate3d(0, 0, 0);
    animation: bgFloat 16s cubic-bezier(.2, .8, .2, 1) infinite alternate;
}

.bg::before {
    background: radial-gradient(circle at 20% 35%, rgba(240, 210, 122, .22), transparent 58%);
}

.bg::after {
    background: radial-gradient(circle at 82% 68%, rgba(227, 187, 97, .18), transparent 60%);
    animation-duration: 20s;
    animation-direction: alternate-reverse;
}

@keyframes bgFloat {
    0% {
        transform: translate3d(-1%, 0%, 0) scale(1);
    }

    100% {
        transform: translate3d(1.5%, -1%, 0) scale(1.03);
    }
}

/* ============================================================
   BARRA DE PROGRESO
   ============================================================ */
.topProgress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 90;
    background: rgba(11, 11, 11, .05);
}

.topProgressFill {
    height: 100%;
    width: 0%;
    background: var(--goldGrad);
    box-shadow: 0 0 14px var(--goldGlow);
    transition: width .08s linear;
}

/* ============================================================
   HEADER
   ============================================================ */
header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(246, 245, 241, .80);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    border-bottom: 1px solid var(--line);
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 0;
    gap: 12px;
}

/* Logo */
.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 200px;
    user-select: none;
}

.brandLogo {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .75);
    border: 1px solid rgba(227, 187, 97, .34);
    box-shadow: 0 6px 20px rgba(11, 11, 11, .08), 0 0 0 3px rgba(227, 187, 97, .10);
    flex-shrink: 0;
}

.brandLogo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    padding: 4px;
}

.logoFallback {
    font-size: 22px;
    font-weight: 900;
    background: var(--goldGrad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brandText {
    line-height: 1.05;
    display: flex;
    flex-direction: column;
}

.brandText b {
    font-weight: 800;
    font-size: 14px;
    letter-spacing: .2px;
}

.brandText span {
    font-size: 11px;
    font-weight: 600;
    color: rgba(11, 11, 11, .52);
    margin-top: 2px;
    letter-spacing: .3px;
}

/* Nav */
nav {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.navlink {
    padding: 9px 15px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    font-size: 13px;
    color: rgba(11, 11, 11, .64);
    transition: transform var(--t) var(--ease), background var(--t), border-color var(--t), color var(--t);
}

.navlink:hover {
    transform: translateY(-1px);
    background: rgba(227, 187, 97, .12);
    border-color: rgba(227, 187, 97, .30);
    color: var(--black);
}

.navlink.active {
    background: rgba(11, 11, 11, .07);
    border-color: rgba(11, 11, 11, .10);
    color: var(--black);
    font-weight: 800;
}

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

/* ============================================================
   BOTONES
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 11px 18px;
    border-radius: 14px;
    border: 1px solid rgba(11, 11, 11, .11);
    background: rgba(255, 255, 255, .60);
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
    font-family: inherit;
    transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), filter var(--t);
    user-select: none;
    box-shadow: 0 8px 22px rgba(11, 11, 11, .06);
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(11, 11, 11, .12);
    filter: saturate(1.1);
}

.btn.primary {
    background: var(--goldGrad);
    border-color: rgba(191, 144, 57, .20);
    color: #3A2800;
    font-weight: 800;
    box-shadow: var(--shadowGold);
}

.btn.primary:hover {
    box-shadow: 0 16px 48px rgba(227, 187, 97, .36);
}

.btn.dark {
    background: rgba(11, 11, 11, .92);
    border-color: rgba(11, 11, 11, .92);
    color: var(--off);
}

.btn.ghost {
    background: rgba(246, 245, 241, .80);
}

.iconBtn {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(11, 11, 11, .11);
    background: rgba(255, 255, 255, .60);
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(11, 11, 11, .06);
}

/* ============================================================
   MAIN / SECCIONES
   ============================================================ */
main {
    padding: 24px 0 60px;
}

.section {
    padding: 24px 0;
}

/* Hero (glass card) */
.hero {
    border-radius: var(--r2);
    background: rgba(255, 255, 255, .52);
    border: 1px solid rgba(255, 255, 255, .40);
    box-shadow: var(--shadow);
    padding: 30px 28px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px) saturate(130%);
    -webkit-backdrop-filter: blur(20px) saturate(130%);
}

.hero::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -80px;
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(240, 210, 122, .18), transparent 65%);
    pointer-events: none;
}

.heroInner {
    position: relative;
    z-index: 1;
}

.heroActions {
    margin-top: 18px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.badgeLine {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.badge {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    padding: 7px 13px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .42);
    background: rgba(255, 255, 255, .42);
    backdrop-filter: blur(14px);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: .2px;
}

h1 {
    margin: 0 0 12px;
    font-size: clamp(26px, 3.5vw, 48px);
    letter-spacing: -.6px;
    line-height: 1.04;
    font-weight: 800;
}

h2 {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.3px;
}

p {
    margin: 0;
    color: rgba(11, 11, 11, .60);
    line-height: 1.58;
    font-weight: 500;
}

.muted {
    color: rgba(11, 11, 11, .58);
}

.small {
    font-size: 12px;
    color: rgba(11, 11, 11, .56);
    font-weight: 600;
}

/* ============================================================
   GRID / TARJETAS DE CATÁLOGO
   ============================================================ */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 20px;
}

.card {
    border-radius: var(--r);
    background: rgba(255, 255, 255, .62);
    border: 1px solid rgba(255, 255, 255, .40);
    box-shadow: var(--shadowSoft);
    overflow: hidden;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transform: translateY(0);
    transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t);
    position: relative;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 72px rgba(11, 11, 11, .14);
    border-color: rgba(227, 187, 97, .36);
}

/* Área imagen / portada */
.cardImg {
    height: 210px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(240, 210, 122, .14), rgba(191, 144, 57, .08));
    border-bottom: 1px solid rgba(11, 11, 11, .06);
}

.cardImg .coverImg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .45s var(--ease);
}

.card:hover .coverImg {
    transform: scale(1.15);
}

/* BLOG GRID Y POSTS */
.blogGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.blogPostCard {
    background: var(--glassCard);
    border-radius: var(--r2);
    border: 1px solid var(--line);
    overflow: hidden;
    box-shadow: var(--shadowSoft);
    transition: transform var(--t) var(--ease);
}

.blogPostCard:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
}

.postImg {
    height: 220px;
    overflow: hidden;
}

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

.postContent {
    padding: 24px;
}

.postContent h2 {
    font-size: 22px;
    margin-bottom: 12px;
}

.postBody {
    margin-top: 20px;
    border-top: 1px solid var(--line);
    padding-top: 20px;
    font-size: 15px;
}

/* Resumen + meta del post (cards) */
.postMeta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    color: rgba(11, 11, 11, .62);
    font-weight: 700;
    font-size: 12px;
}

.postMeta .dot {
    opacity: .45;
}

.postExcerpt {
    color: rgba(11, 11, 11, .72);
    margin: 12px 0 0;
    line-height: 1.55;
}

.postActions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

/* ============================================================
   VISTA INTERNA DEL POST (BLOG)
   ============================================================ */
.postView {
    border-radius: var(--r2);
    background: rgba(255, 255, 255, .55);
    border: 1px solid rgba(255, 255, 255, .42);
    box-shadow: var(--shadow);
    padding: 26px;
    backdrop-filter: blur(20px);
}

.postTop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.postHeader h2 {
    margin: 12px 0 0;
    font-size: 30px;
    letter-spacing: -0.6px;
}

.postCover {
    margin-top: 16px;
    height: clamp(220px, 34vw, 380px);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(11, 11, 11, .08);
    background: linear-gradient(135deg, rgba(240, 210, 122, .18), rgba(11, 11, 11, .06));
    position: relative;
}

.postCover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Prose / contenido */
.prose {
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.75;
    color: rgba(11, 11, 11, .86);
}

.prose h2 {
    font-size: 22px;
    margin: 22px 0 10px;
    letter-spacing: -0.2px;
}

.prose h3 {
    font-size: 18px;
    margin: 18px 0 8px;
}

.prose p {
    margin: 10px 0;
}

.prose figure {
    margin: 18px 0;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(11, 11, 11, .08);
    background: rgba(255, 255, 255, .44);
}

.prose figure img {
    width: 100%;
    height: auto;
    display: block;
}

.prose figcaption {
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 700;
    color: rgba(11, 11, 11, .60);
}

.prose .callout {
    border-radius: 18px;
    border: 1px solid rgba(227, 187, 97, .30);
    background: rgba(227, 187, 97, .10);
    padding: 14px 16px;
    margin: 16px 0;
    box-shadow: 0 10px 26px rgba(11, 11, 11, .06);
}

.prose code {
    padding: 2px 7px;
    border-radius: 10px;
    background: rgba(11, 11, 11, .06);
    border: 1px solid rgba(11, 11, 11, .06);
    font-weight: 700;
    font-size: .95em;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(11, 11, 11, .08);
    background: rgba(255, 255, 255, .50);
    margin: 16px 0;
}

.prose th,
.prose td {
    padding: 12px 12px;
    border-bottom: 1px solid rgba(11, 11, 11, .07);
    text-align: left;
    font-size: 13px;
}

.prose th {
    font-weight: 900;
    background: rgba(240, 210, 122, .14);
}

.prose tr:last-child td {
    border-bottom: 0;
}

.aiWritingMini {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
}

.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Placeholder cuando no hay portada */
.cardPlaceholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cardPlaceholderCode {
    font-size: 38px;
    font-weight: 900;
    letter-spacing: -2px;
    background: var(--goldGrad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: .55;
    line-height: 1;
}

.cardPlaceholderText {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: rgba(11, 11, 11, .32);
}

/* Badge de código (P001, P002…) */
.cardCodeBadge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(11, 11, 11, .82);
    color: var(--gold1);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(240, 210, 122, .22);
    z-index: 2;
}

.cardBody {
    padding: 16px;
}

.chips {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.chip {
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(11, 11, 11, .05);
    border: 1px solid rgba(11, 11, 11, .08);
    font-weight: 700;
    font-size: 11px;
    color: rgba(11, 11, 11, .68);
    letter-spacing: .2px;
}

button.chip {
    appearance: none;
    -webkit-appearance: none;
    background: rgba(11, 11, 11, .05);
    font-family: inherit;
    cursor: pointer;
    transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}

button.chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(11, 11, 11, .10);
}

button.chip.active {
    background: rgba(227, 187, 97, .18);
    border-color: rgba(227, 187, 97, .38);
    color: #6B4800;
}

.chip.gold {
    background: rgba(227, 187, 97, .14);
    border-color: rgba(227, 187, 97, .32);
    color: #6B4800;
}

.card h3 {
    margin: 0 0 7px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -.1px;
    line-height: 1.25;
}

.card p {
    margin: 0 0 14px;
    font-size: 13px;
}

.actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ============================================================
   TOOLBAR Y BÚSQUEDA
   ============================================================ */
.toolbar {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 16px;
}

.search {
    flex: 1;
    min-width: 240px;
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 12px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .40);
    background: rgba(255, 255, 255, .42);
    backdrop-filter: blur(14px);
    box-shadow: 0 8px 24px rgba(11, 11, 11, .05);
}

.searchIcon {
    opacity: .55;
}

.search input {
    border: 0;
    outline: none;
    width: 100%;
    background: transparent;
    font-weight: 600;
    color: var(--black);
    font-family: inherit;
    font-size: 13px;
}

/* ============================================================
   PÁGINAS (TRANSITIONS)
   ============================================================ */
.page {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .38s var(--ease), transform .38s var(--ease);
}

.page.active {
    display: block;
}

.page.ready {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   VISTA INTERNA DEL CATÁLOGO
   ============================================================ */
.catalogView {
    border-radius: var(--r2);
    background: rgba(255, 255, 255, .55);
    border: 1px solid rgba(255, 255, 255, .42);
    box-shadow: var(--shadow);
    padding: 24px;
    backdrop-filter: blur(20px);
}

.catalogTop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.catalogTitle {
    display: flex;
    align-items: center;
    gap: 12px;
}

.badgeBox {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--goldGrad);
    box-shadow: var(--shadowGold);
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 900;
    color: #3A2800;
    letter-spacing: .5px;
}

.catalogTitle .sub {
    font-size: 12px;
    font-weight: 700;
    color: rgba(11, 11, 11, .58);
    margin-top: 2px;
}

.catalogButtons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Embed Canva responsivo */
.canvaEmbedWrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(11, 11, 11, .04);
    border: 1px solid rgba(11, 11, 11, .07);
    margin-top: 10px;
}

.canvaEmbedWrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ============================================================
   BLOG — IA ESCRIBIENDO
   ============================================================ */
.aiWriting {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px 18px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, .38);
    background: rgba(255, 255, 255, .38);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 60px rgba(11, 11, 11, .09);
    margin-top: 18px;
}

.aiDot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--goldGrad);
    box-shadow: 0 0 16px var(--goldGlow);
    margin-top: 5px;
    flex-shrink: 0;
    position: relative;
}

.aiDot::after {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 999px;
    background: var(--goldGrad);
    opacity: .14;
    filter: blur(10px);
    animation: pulseGlow 1.6s ease-in-out infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        opacity: .12;
        transform: scale(1);
    }

    50% {
        opacity: .24;
        transform: scale(1.04);
    }
}

.aiLine {
    font-weight: 700;
    color: rgba(11, 11, 11, .78);
    transition: opacity .25s var(--ease), filter .25s var(--ease);
}

.aiLine::after {
    content: "";
    display: inline-block;
    width: 2px;
    height: 16px;
    margin-left: 5px;
    background: rgba(11, 11, 11, .55);
    animation: caret .9s step-end infinite;
    transform: translateY(3px);
    border-radius: 1px;
}

@keyframes caret {
    50% {
        opacity: 0;
    }
}

.blogEmpty {
    margin-top: 16px;
    padding: 20px;
    border-radius: 20px;
    border: 1.5px dashed rgba(11, 11, 11, .13);
    background: rgba(255, 255, 255, .20);
    backdrop-filter: blur(14px);
    text-align: center;
}

/* ============================================================
   CONTACTO
   ============================================================ */
.contactInfo {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    border-top: 1px solid rgba(11, 11, 11, .08);
    background: rgba(246, 245, 241, .82);
    backdrop-filter: blur(12px);
    padding: 22px 0;
}

.footerGrid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 20px;
    align-items: start;
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(14px);
    filter: blur(3px);
    transition: opacity .72s var(--ease), transform .72s var(--ease), filter .72s var(--ease);
}

.reveal.in {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* ============================================================
   LOADER
   ============================================================ */
.routeLoader {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    background: rgba(246, 245, 241, .84);
    backdrop-filter: blur(14px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s var(--ease);
}

.routeLoader.show {
    opacity: 1;
    pointer-events: auto;
}

.loaderCard {
    width: min(520px, calc(100% - 36px));
    border-radius: 24px;
    border: 1px solid rgba(11, 11, 11, .07);
    background: rgba(255, 255, 255, .78);
    box-shadow: var(--shadow);
    padding: 20px 22px;
    display: flex;
    gap: 16px;
    align-items: center;
}

.spinner {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 3px solid rgba(11, 11, 11, .08);
    border-top-color: var(--gold2);
    animation: spin .85s linear infinite;
    flex-shrink: 0;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================================
   WHATSAPP FLOTANTE
   ============================================================ */
.waFloat {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 110;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: #25D366;
    color: #fff;
    border: none;
    box-shadow: 0 10px 32px rgba(37, 211, 102, .32);
    transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}

.waFloat:hover {
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 22px 52px rgba(37, 211, 102, .44);
}

.waFloat svg {
    width: 26px;
    height: 26px;
}

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 860px) {
    .topbar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .brand {
        min-width: unset;
    }

    .cta {
        width: 100%;
        justify-content: space-between;
    }

    .iconBtn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    nav#mainNav {
        display: none;
        width: 100%;
        padding: 12px;
        border-radius: 18px;
        border: 1px solid rgba(255, 255, 255, .38);
        background: rgba(255, 255, 255, .46);
        backdrop-filter: blur(14px);
        box-shadow: 0 18px 60px rgba(11, 11, 11, .12);
    }

    nav#mainNav.open {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .navlink {
        text-align: center;
        padding: 12px;
        border-radius: 14px;
        background: rgba(11, 11, 11, .04);
        border: 1px solid rgba(11, 11, 11, .06);
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .heroActions .btn {
        width: 100%;
    }

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

    main {
        padding: 16px 0 48px;
    }

    .hero {
        padding: 20px 16px;
    }

    .waFloat {
        right: 14px;
        bottom: 14px;
    }

    .canvaEmbedWrap {
        padding-top: 130%;
    }
}

@media (min-width: 861px) and (max-width: 1100px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    #particleCanvas {
        display: none;
    }

    .reveal,
    .page,
    .btn,
    .card,
    .navlink,
    .routeLoader {
        transition: none;
    }

    .spinner,
    .aiDot::after {
        animation: none;
    }
}

/* AdSense — slot discreto (no interrumpe el contenido) */
.adsenseSlot {
    margin-top: 18px;
    display: flex;
    justify-content: center;
}

.adsenseSlot ins.adsbygoogle {
    display: block;
    width: min(100%, 360px);
    min-height: 120px;
}

/* ============================================================
   FORMS & INPUTS
   ============================================================ */
.waForm {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(11, 11, 11, .10);
    background: rgba(255, 255, 255, .80);
    font-family: inherit;
    font-size: 14px;
    transition: border-color var(--t), box-shadow var(--t);
}

.input:focus {
    outline: none;
    border-color: var(--gold2);
    box-shadow: 0 0 0 3px rgba(227, 187, 97, .15);
}

textarea.input {
    min-height: 100px;
    resize: vertical;
}

.categoryChipsForm {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.categoryChipsForm label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    background: rgba(11, 11, 11, .05);
    padding: 4px 10px;
    border-radius: 999px;
    transition: background var(--t);
}

.categoryChipsForm label:hover {
    background: rgba(11, 11, 11, .10);
}

.categoryChipsForm input[type="checkbox"] {
    cursor: pointer;
}

/* ============================================================
   STEPS & GRID ADJUSTMENTS
   ============================================================ */
.stepsGrid .stepCard {
    text-align: center;
    padding: 24px;
    background: var(--glassCard);
    border-radius: var(--r);
    border: 1px solid var(--line);
    transition: transform var(--t) var(--ease);
}

.stepsGrid .stepCard:hover {
    transform: translateY(-5px);
}

.stepsGrid .badgeBox {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
    background: var(--goldGrad);
    color: #3A2800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    box-shadow: var(--shadowGold);
}

/* ============================================================
   RESPONSIVENESS
   ============================================================ */
@media (max-width: 900px) {

    .revContent,
    .provContent {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

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

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

    .hero {
        padding: 24px 20px;
    }

    h1 {
        font-size: 28px;
    }

    .heroActions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    nav {
        display: none;
        /* Mobile menu handled by JS toggler */
    }

    .iconBtn {
        display: block;
    }
}

/* Mobile Nav Active */
#mainNav.mobile {
    display: flex;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--glass);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 20px;
    gap: 10px;
    border-bottom: 1px solid var(--line);
    z-index: 100;
}

/* ============================================================
   Locked / Upcoming Products (AdSense Compliance)
   ============================================================ */
.cvLocked {
    position: relative;
    filter: grayscale(0.5) blur(3px);
    opacity: 0.65;
    pointer-events: none;
    user-select: none;
    transition: filter 0.5s ease;
}

.cvLockedBadge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--goldGrad);
    color: #3A2800;
    padding: 10px 18px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    white-space: nowrap;
    text-transform: uppercase;
}

@keyframes popupAnim {
    0% { transform: translateY(20px) scale(0.95); opacity: 0; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

.cvDevelopmentNotice {
    grid-column: 1 / -1;
    background: rgba(227, 187, 97, 0.08);
    border: 1px dashed var(--gold3);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    margin-top: 25px;
    backdrop-filter: blur(10px);
    animation: popupAnim 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.cvDevelopmentNotice h4 {
    color: var(--gold3);
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 800;
}

.cvDevelopmentNotice p {
    font-size: 13px;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================================
   Iconos Proveo EC (Reemplazo de Emojis)
   ============================================================ */
.ProveoIcon {
    display: inline-block;
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, var(--black), var(--gold2), var(--black));
    border-radius: 4px;
    filter: blur(0.5px);
    box-shadow: 0 2px 6px rgba(227, 187, 97, 0.5);
    vertical-align: middle;
    margin-right: 8px;
    position: relative;
    top: -2px;
}

/* ============================================================
   Canva Embed Liquid Glass Loader (iOS Style)
   ============================================================ */
.canvaLoader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 17, 17, 0.4);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease;
}

.loaderGlassLiquid {
    width: 50px;
    height: 50px;
    border-radius: 40%;
    background: radial-gradient(circle at 30% 30%, rgba(212, 175, 55, 0.6), rgba(212, 175, 55, 0) 70%);
    box-shadow: 
        inset 0 0 20px rgba(255, 255, 255, 0.2),
        0 8px 32px rgba(212, 175, 55, 0.3);
    position: relative;
    animation: liquidSpin 3s ease-in-out infinite alternate;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.loaderGlassLiquid::after {
    content: '';
    position: absolute;
    top: -10px; left: -10px; right: -10px; bottom: -10px;
    border-radius: 45%;
    border: 2px solid transparent;
    border-top-color: rgba(212, 175, 55, 0.8);
    border-left-color: rgba(212, 175, 55, 0.3);
    animation: spinRing 2s linear infinite;
    filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.5));
}

@keyframes liquidSpin {
    0% { transform: scale(0.9) rotate(0deg); border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    100% { transform: scale(1.1) rotate(180deg); border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

@keyframes spinRing {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulseText {
    0%, 100% { opacity: 0.5; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-2px); text-shadow: 0 0 10px rgba(212, 175, 55, 0.5); }
}