:root {
    --seer-primary: #F29F05;
    --seer-secondary: #B06617;
    --seer-accent: #F27405;
    --seer-text: #444342;
    --seer-text-soft: #777675;
    --seer-mint: #A5E8D3;
    --seer-yellow: #F8EA6D;
    --seer-yellow-deep: #EDD303;
    --seer-peach-light: #FBD79F;
    --seer-cream-soft: #F5EAD5;
    --seer-cream: #FDF5C8;
    --seer-bg: #FAF6EE;
    --seer-peach: #F2CCB6;
    --seer-white: #FFFFFF;
    --seer-dark: #23282E;
    --seer-dark-2: #2C333B;
    --seer-border: #E8E0D2;
    --font-head: "Figtree", system-ui, sans-serif;
    --font-body: "Open Sans", system-ui, sans-serif;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(68, 67, 66, .12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--seer-text);
    background: var(--seer-bg);
    line-height: 1.65;
}

h1, h2, h3, h4, h5 { font-family: var(--font-head); color: var(--seer-text); line-height: 1.25; }
h1 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
a { color: var(--seer-secondary); text-decoration: none; }
a:hover { color: var(--seer-accent); }
img { max-width: 100%; height: auto; }

.skip-link {
    position: absolute; left: -9999px; top: 0; background: var(--seer-primary);
    color: #fff; padding: .5rem 1rem; z-index: 200;
}
.skip-link:focus { left: 0; color: #fff; }

.container { max-width: 1180px; margin-inline: auto; padding-inline: 1rem; }

/* ===== Header ===== */
.site-header {
    background: var(--seer-white);
    border-bottom: 1px solid var(--seer-border);
    position: sticky; top: 0; z-index: 100;
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 88px; }
.brand img { display: block; width: 160px; height: auto; }
.main-nav { margin-left: auto; }
.main-nav > ul { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.main-nav a, .submenu-toggle {
    font-family: var(--font-head); font-weight: 600; font-size: .98rem;
    color: var(--seer-text); background: none; border: none; cursor: pointer; padding: .35rem 0;
}
.main-nav a:hover, .submenu-toggle:hover { color: var(--seer-accent); }
.has-submenu { position: relative; }
.submenu {
    display: none; position: absolute; top: 100%; left: -1rem; min-width: 190px;
    background: var(--seer-white); border: 1px solid var(--seer-border); border-radius: 10px;
    box-shadow: var(--shadow); list-style: none; margin: .35rem 0 0; padding: .5rem; z-index: 110;
}
.has-submenu.open .submenu { display: block; }
.submenu a { display: block; padding: .45rem .75rem; border-radius: 8px; }
.submenu a:hover { background: var(--seer-cream-soft); color: var(--seer-text); }
.header-actions { display: flex; gap: .6rem; align-items: center; }
/* El desplegable de idioma va anclado a la esquina derecha del header
   (último hijo de .header-inner); se acerca al grupo de botones para
   mantener el mismo ritmo visual que dentro de .header-actions. */
.header-inner > .lang-dd { margin-left: -.9rem; }
.lang-dd { position: relative; display: inline-flex; }
.lang-dd-toggle {
    display: inline-flex; align-items: center; gap: .35rem; background: transparent;
    border: 1.5px solid var(--seer-border); border-radius: 8px; padding: .28rem .5rem;
    cursor: pointer; color: inherit;
}
.lang-dd-toggle:hover { border-color: var(--seer-accent); }
.lang-dd-toggle img { display: block; }
.lang-dd-caret { font-size: .6rem; line-height: 1; color: inherit; opacity: .65; }
.lang-dd-menu {
    display: none; position: absolute; top: calc(100% + .45rem); right: 0; min-width: 60px;
    background: var(--seer-white); border: 1px solid var(--seer-border); border-radius: 10px;
    box-shadow: var(--shadow); list-style: none; margin: 0; padding: .4rem; z-index: 120;
}
.lang-dd.open .lang-dd-menu { display: block; }
.lang-dd-menu a, .lang-dd-menu .lang-dd-current {
    display: flex; justify-content: center; padding: .45rem 1rem; border-radius: 8px;
}
.lang-dd-menu a:hover { background: var(--seer-cream-soft); }
.lang-dd-menu .lang-dd-current { background: var(--seer-cream-soft); cursor: default; }
.nav-burger {
    display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: .5rem;
}
.nav-burger span { display: block; width: 24px; height: 2.5px; background: var(--seer-text); border-radius: 2px; }

/* ===== Buttons ===== */
.btn {
    display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: .95rem;
    border-radius: 999px; padding: .7rem 1.6rem; border: 2px solid transparent;
    cursor: pointer; transition: transform .15s ease, background .15s ease, color .15s ease; text-align: center;
}
.btn:hover { transform: translateY(-1px); color: #fff; }
.btn-primary { background: var(--seer-primary); color: #fff; }
.btn-primary:hover { background: var(--seer-accent); color: #fff; }
.btn-secondary { background: var(--seer-secondary); color: #fff; }
.btn-outline { background: transparent; color: var(--seer-secondary); border-color: var(--seer-secondary); }
.btn-outline:hover { background: var(--seer-secondary); color: #fff; }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-light { background: var(--seer-white); color: var(--seer-secondary); }
.btn-sm { padding: .45rem 1.1rem; font-size: .85rem; }
.btn-block { display: block; width: 100%; }

/* ===== Hero / sections ===== */
.hero {
    background: linear-gradient(120deg, var(--seer-cream) 0%, var(--seer-peach-light) 55%, var(--seer-peach) 100%);
    padding: 4.5rem 0; text-align: center;
}
.hero .kicker {
    display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: .8rem;
    letter-spacing: .12em; text-transform: uppercase; color: var(--seer-secondary);
    background: var(--seer-white); border-radius: 999px; padding: .35rem 1rem; margin-bottom: 1.2rem;
}
.hero p.lead { max-width: 640px; margin: 1rem auto 1.8rem; font-size: 1.08rem; }
.hero-actions { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }

.section { padding: 3.8rem 0; }
.section-alt { background: var(--seer-white); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.4rem; }
.section-head .kicker {
    font-family: var(--font-head); font-weight: 800; text-transform: uppercase; letter-spacing: .1em;
    font-size: .78rem; color: var(--seer-accent); display: block; margin-bottom: .4rem;
}

/* Feature cards (home) */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.feature-card {
    background: var(--seer-white); border: 1px solid var(--seer-border); border-radius: var(--radius);
    padding: 1.6rem; box-shadow: 0 4px 14px rgba(68, 67, 66, .06);
}
.feature-card h3 { margin: .6rem 0 .4rem; }
.feature-card p { margin: 0; color: var(--seer-text-soft); }
.feature-icon {
    width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
    background: var(--seer-cream); color: var(--seer-secondary); font-size: 1.4rem; font-family: var(--font-head); font-weight: 800;
}

.pill-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.pill-item {
    background: var(--seer-cream-soft); border-radius: var(--radius); padding: 1.3rem; text-align: center;
}
.pill-item h4 { font-family: var(--font-head); margin: .4rem 0; font-size: 1.05rem; }

/* Collaborators */
.collab-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.1rem; align-items: center; }
.collab-grid img { border-radius: 10px; background: #fff; padding: .5rem; border: 1px solid var(--seer-border); }

/* ===== Cards (aula/biblioteca) ===== */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.se-card {
    background: var(--seer-white); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
    border: 1px solid var(--seer-border); box-shadow: 0 4px 14px rgba(68, 67, 66, .06);
    transition: transform .18s ease, box-shadow .18s ease;
}
.se-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.se-card-cover { position: relative; aspect-ratio: 1024/614; overflow: hidden; background: var(--seer-cream-soft); }
.se-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.se-card-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.se-card-body h3 { margin: 0; font-size: 1.12rem; }
.se-card-body p { margin: 0; color: var(--seer-text-soft); font-size: .92rem; flex: 1; }
.badge-row { display: flex; gap: .4rem; flex-wrap: wrap; }
.badge {
    font-family: var(--font-head); font-size: .72rem; font-weight: 700; letter-spacing: .04em;
    border-radius: 999px; padding: .22rem .7rem; text-transform: uppercase;
}
.badge-category { background: var(--seer-cream); color: var(--seer-secondary); }
.badge-members { background: var(--seer-mint); color: #14624c; }
.badge-flag { background: var(--seer-yellow); color: #6b5700; }
.badge-price { background: var(--seer-text); color: #fff; }
.badge-locked { background: var(--seer-peach); color: #8a3d12; }

/* Filters */
.filters-bar {
    background: var(--seer-white); border: 1px solid var(--seer-border); border-radius: var(--radius);
    padding: 1.2rem 1.4rem; margin-bottom: 2rem;
}
.filters-bar .filter-group { margin-bottom: .8rem; }
.filters-bar .filter-group:last-child { margin-bottom: 0; }
.filters-title {
    font-family: var(--font-head); font-weight: 800; font-size: .78rem; text-transform: uppercase;
    letter-spacing: .08em; color: var(--seer-text-soft); margin-right: .6rem; display: inline-block; min-width: 130px;
}
.chip {
    display: inline-block; border: 1.5px solid var(--seer-border); background: var(--seer-bg); color: var(--seer-text);
    font-family: var(--font-head); font-weight: 600; font-size: .82rem; border-radius: 999px;
    padding: .3rem .95rem; margin: .2rem .25rem .2rem 0; transition: all .12s ease;
}
.chip:hover { border-color: var(--seer-primary); }
.chip.active { background: var(--seer-primary); border-color: var(--seer-primary); color: #fff; }

/* ===== Course / resource detail ===== */
.detail-hero { background: var(--seer-white); border-bottom: 1px solid var(--seer-border); padding: 2.6rem 0; }
.detail-hero h1 { margin: .4rem 0 .8rem; }
.detail-meta { display: flex; gap: 1.6rem; flex-wrap: wrap; color: var(--seer-text-soft); font-size: .92rem; margin: 1rem 0; }
.detail-meta strong { color: var(--seer-text); }
.curriculum { border: 1px solid var(--seer-border); border-radius: var(--radius); overflow: hidden; background: var(--seer-white); }
.curriculum-item {
    display: flex; align-items: center; gap: 1rem; padding: .95rem 1.2rem;
    border-bottom: 1px solid var(--seer-border); font-family: var(--font-head);
}
.curriculum-item:last-child { border-bottom: none; }
.curriculum-item .order {
    width: 30px; height: 30px; border-radius: 50%; background: var(--seer-cream);
    display: grid; place-items: center; font-weight: 800; color: var(--seer-secondary); flex-shrink: 0;
}
.curriculum-item .title { font-weight: 600; flex: 1; }
.curriculum-item .meta { color: var(--seer-text-soft); font-size: .82rem; }
.sidebar-card {
    background: var(--seer-white); border: 1px solid var(--seer-border); border-radius: var(--radius);
    padding: 1.5rem; box-shadow: 0 4px 14px rgba(68, 67, 66, .06);
}
.price-tag { font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: var(--seer-text); }

/* Lock notice */
.locked-box {
    background: repeating-linear-gradient(45deg, var(--seer-cream-soft), var(--seer-cream-soft) 12px, var(--seer-cream) 12px, var(--seer-cream) 24px);
    border: 2px dashed var(--seer-secondary); border-radius: var(--radius);
    padding: 2.2rem; text-align: center;
}

/* ===== Membership plans ===== */
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.plan-card {
    background: var(--seer-white); border: 1.5px solid var(--seer-border); border-radius: var(--radius);
    padding: 2rem 1.7rem; display: flex; flex-direction: column; position: relative;
}
.plan-card.highlight { border-color: var(--seer-primary); box-shadow: var(--shadow); }
.plan-price { font-family: var(--font-head); font-size: 2.4rem; font-weight: 800; }
.plan-price small { font-size: .95rem; color: var(--seer-text-soft); font-weight: 600; }
.plan-features { list-style: none; padding: 0; margin: 1.2rem 0; flex: 1; }
.plan-features li { padding: .38rem 0 .38rem 1.7rem; position: relative; font-size: .95rem; }
.plan-features li::before {
    content: "✓"; position: absolute; left: 0; top: .38rem; width: 1.2rem; height: 1.2rem;
    background: var(--seer-mint); color: #14624c; border-radius: 50%; font-size: .7rem; font-weight: 800;
    display: grid; place-items: center;
}

/* ===== Forms ===== */
.form-card {
    background: var(--seer-white); border: 1px solid var(--seer-border); border-radius: var(--radius);
    padding: 2rem; max-width: 560px; margin-inline: auto;
}
.form-label { font-family: var(--font-head); font-weight: 700; font-size: .88rem; margin-bottom: .3rem; display: block; }
.form-control, textarea.form-control, select.form-control {
    width: 100%; border: 1.5px solid var(--seer-border); border-radius: 10px; padding: .65rem .9rem;
    font-family: var(--font-body); font-size: .95rem; color: var(--seer-text); background: var(--seer-bg);
}
.form-control:focus { outline: none; border-color: var(--seer-primary); background: #fff; }
.form-check { display: flex; gap: .55rem; align-items: flex-start; font-size: .85rem; }
.form-check input { margin-top: .25rem; }
.field-error { color: #b3261e; font-size: .8rem; margin-top: .25rem; }
.validation-summary-errors { color: #b3261e; margin-bottom: 1rem; }
.text-alert { background: #fdecea; border: 1px solid #f5c6c0; color: #8a1c11; padding: .8rem 1rem; border-radius: 10px; }
.text-ok { background: #e5f6ef; border: 1px solid #b3e3cf; color: #0f6b4a; padding: .8rem 1rem; border-radius: 10px; }

/* ===== Panel alumno ===== */
.panel-layout { display: grid; grid-template-columns: 250px 1fr; gap: 2rem; align-items: start; }
.panel-nav { background: var(--seer-white); border: 1px solid var(--seer-border); border-radius: var(--radius); padding: 1rem; }
.panel-nav a {
    display: block; padding: .6rem .9rem; border-radius: 10px; font-family: var(--font-head);
    font-weight: 600; color: var(--seer-text);
}
.panel-nav a:hover, .panel-nav a.active { background: var(--seer-cream); color: var(--seer-secondary); }
.panel-card {
    background: var(--seer-white); border: 1px solid var(--seer-border); border-radius: var(--radius);
    padding: 1.5rem; margin-bottom: 1.2rem;
}
.progress-track { background: var(--seer-cream-soft); height: 10px; border-radius: 999px; overflow: hidden; }
.progress-fill { background: var(--seer-primary); height: 100%; border-radius: 999px; }

/* Lesson player */
.lesson-tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.lesson-frame {
    background: #1c1f23; border-radius: var(--radius); aspect-ratio: 16/9; display: grid; place-items: center;
}
.lesson-frame iframe, .lesson-frame video { width: 100%; height: 100%; border: none; border-radius: var(--radius); }
.lesson-nav { display: flex; justify-content: space-between; margin-top: 1.4rem; gap: 1rem; }

/* Quiz */
.quiz-question { background: var(--seer-white); border: 1px solid var(--seer-border); border-radius: var(--radius); padding: 1.4rem; margin-bottom: 1rem; }
.quiz-option { display: flex; gap: .6rem; align-items: center; padding: .55rem .8rem; border: 1.5px solid var(--seer-border); border-radius: 10px; margin: .35rem 0; cursor: pointer; }
.quiz-option:hover { border-color: var(--seer-primary); }
.quiz-result-ok { color: #0f6b4a; font-weight: 700; }
.quiz-result-ko { color: #b3261e; font-weight: 700; }

/* Messages */
.message-item { border: 1px solid var(--seer-border); border-radius: 10px; padding: 1rem 1.2rem; margin-bottom: .8rem; background: var(--seer-white); }
.message-item.unread { border-left: 4px solid var(--seer-primary); }

/* Tables */
.table-clean { width: 100%; border-collapse: collapse; background: var(--seer-white); border-radius: var(--radius); overflow: hidden; }
.table-clean th {
    text-align: left; font-family: var(--font-head); font-size: .8rem; text-transform: uppercase;
    letter-spacing: .06em; color: var(--seer-text-soft); padding: .8rem 1rem; border-bottom: 2px solid var(--seer-border);
}
.table-clean td { padding: .75rem 1rem; border-bottom: 1px solid var(--seer-border); font-size: .93rem; }
.table-clean tr:last-child td { border-bottom: none; }

/* ===== Admin ===== */
.admin-topbar { background: var(--seer-dark); color: #fff; padding: .6rem 0; }
.admin-topbar a { color: var(--seer-yellow); font-family: var(--font-head); font-weight: 600; }

/* ===== Footer ===== */
.site-footer { background: var(--seer-dark); color: #cfd4da; margin-top: 4rem; padding: 3.2rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer-brand p { margin-top: 1rem; font-size: .92rem; color: #aeb4bc; }
.footer-col h4 { color: var(--seer-yellow); font-size: .95rem; margin-bottom: .9rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .45rem; }
.footer-col a { color: #cfd4da; font-size: .92rem; }
.footer-col a:hover { color: var(--seer-primary); }
.footer-bottom {
    border-top: 1px solid #3a424b; margin-top: 2.2rem; padding-top: 1.2rem;
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; font-size: .85rem; color: #8d949d;
}

/* ===== Página de contacto (fiel a seercampus.com/contacto) ===== */
.contacto-hero {
    background-image: url("../images/fondo-contacto.png");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 100px 0 60px;
}

.contacto-grid {
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
}

.contacto-aside {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 100px 40px;
}

.contacto-title {
    font-family: var(--font-head);
    font-size: clamp(2.19rem, 5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.5px;
    margin: 0 0 .8rem;
}

.contacto-intro {
    font-size: 1rem;
    line-height: 1.5;
    letter-spacing: .1px;
    max-width: 420px;
}

.contacto-mail {
    text-decoration: underline;
    color: var(--seer-text);
}

.contacto-mail:hover {
    color: var(--seer-accent);
}

.contacto-h5 {
    font-family: var(--font-head);
    font-size: clamp(1.56rem, 3vw, 1.88rem);
    font-weight: 600;
    line-height: 1.1;
    margin: 50px 0 .8rem;
}

.contacto-aside .contacto-h5:first-of-type {
    margin-top: 50px;
}

.contacto-interest {
    list-style: none;
    margin: 0 0 .4rem;
    padding: 0;
}

.contacto-interest a {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .28rem 0;
    font-size: 1rem;
    color: var(--seer-text);
}

.contacto-interest a:hover {
    color: var(--seer-accent);
    text-decoration: underline;
}

.contacto-interest svg {
    flex-shrink: 0;
}

.contacto-socials {
    display: flex;
    gap: 10px;
    padding-bottom: 20px;
}

.contacto-social {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #F59F0C;
    display: grid;
    place-items: center;
    transition: transform .15s ease, background-color .15s ease;
}

.contacto-social:hover {
    background-color: #F59F0C;
    transform: translateY(-2px);
}

.contacto-form-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 40px;
}

.contacto-field {
    margin-bottom: 30px;
}

.contacto-input {
    width: 100%;
    background-color: transparent;
    border: 1px solid #212121;
    border-radius: 15px;
    padding: 12px 18px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.3;
    color: #212121;
}

.contacto-input::placeholder {
    color: inherit;
    opacity: .55;
}

.contacto-input:focus {
    outline: none;
    border-color: var(--seer-primary);
}

.contacto-textarea {
    height: 200px;
    resize: vertical;
}

.contacto-acceptance {
    color: #29332F;
    font-size: 1rem;
    line-height: 1.4;
}

.contacto-acceptance label {
    display: flex;
    gap: .6rem;
    align-items: flex-start;
}

.contacto-acceptance input[type="checkbox"] {
    margin-top: .25rem;
    width: 1.1rem;
    height: 1.1rem;
    accent-color: #F59F0C;
    flex-shrink: 0;
}

.contacto-acceptance a {
    text-decoration: underline;
    color: #29332F;
}

.contacto-acceptance a:hover {
    color: var(--seer-accent);
}

.contacto-submit {
    width: 100%;
    background-color: #F59F0C;
    color: #FFFFFF;
    border: 1px solid transparent;
    border-radius: 15px;
    padding: 14px 30px;
    font-family: var(--font-body);
    font-size: 1.125rem;
    font-weight: 700;
    text-transform: uppercase;
}

.contacto-submit:hover {
    background-color: #F59F0C;
    color: #FFFFFF;
}

.contacto-ok {
    color: #212121;
    border: 1px solid #212121;
    border-radius: 15px;
    padding: 14px 18px;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, .65);
}

.contacto-error {
    color: #FF0000;
    margin-bottom: 20px;
}

.contacto-error:empty {
    display: none;
}

@media (max-width: 1024px) {
    .contacto-hero {
        padding: 40px 0 60px;
    }

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

    .contacto-aside,
    .contacto-form-col {
        padding: 0;
    }

    .contacto-form-col {
        padding-top: 60px;
    }
}

@media (max-width: 767px) {
    .contacto-hero {
        padding: 40px 0;
    }

    .contacto-aside {
        text-align: center;
    }

    .contacto-intro {
        margin-inline: auto;
    }

    .contacto-aside .contacto-h5 {
        margin-top: 20px;
    }

    .contacto-interest a {
        justify-content: center;
    }

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

/* ===== Cookie banner + panel de configuración ===== */
/* El atributo hidden debe prevalecer sobre display:flex de .cookie-banner/.cookie-config */
.cookie-banner[hidden],
.cookie-overlay[hidden],
.cookie-config[hidden] {
    display: none !important;
}

.cookie-banner {
    position: fixed; bottom: 1rem; left: 50%; transform: translateX(-50%); z-index: 150;
    width: min(680px, calc(100% - 2rem)); background: var(--seer-white); border: 1px solid var(--seer-border);
    border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.2rem 1.4rem; font-size: .88rem;
    display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap;
}

.cookie-overlay {
    position: fixed; inset: 0; background: rgba(35, 40, 46, .55); z-index: 190;
}

.cookie-config {
    position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
    padding: 1rem; overflow-y: auto;
}

.cookie-config-card {
    background: var(--seer-white); border-radius: var(--radius); border: 1px solid var(--seer-border);
    box-shadow: var(--shadow); width: min(640px, 100%); max-height: calc(100vh - 2rem);
    overflow-y: auto; padding: 1.8rem;
}

.cookie-config-card h2 {
    font-size: 1.35rem; margin: 0 0 .6rem;
}

.cookie-cat {
    border: 1px solid var(--seer-border); border-radius: 10px;
    padding: .9rem 1.1rem; margin-bottom: .7rem; background: var(--seer-bg);
}

.cookie-cat-head {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}

.cookie-cat p {
    margin: .45rem 0 0; font-size: .85rem; color: var(--seer-text-soft);
}

.cookie-config-actions {
    display: flex; gap: .7rem; flex-wrap: wrap; justify-content: flex-end; margin-top: 1.2rem;
}

/* Switch */
.switch {
    position: relative; display: inline-block; width: 46px; height: 26px; flex-shrink: 0; cursor: pointer;
}

.switch input {
    position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
    opacity: 0; cursor: pointer;
}

.switch input:disabled {
    cursor: not-allowed;
}

.switch-slider {
    position: absolute; inset: 0; background: #cfc9bd; border-radius: 999px;
    transition: background .15s ease; pointer-events: none;
}

.switch-slider::before {
    content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px;
    border-radius: 50%; background: var(--seer-white); transition: transform .15s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
}

.switch input:checked + .switch-slider {
    background: var(--seer-primary);
}

.switch input:checked + .switch-slider::before {
    transform: translateX(20px);
}

.switch input:focus-visible + .switch-slider {
    outline: 2px solid var(--seer-secondary); outline-offset: 2px;
}

/* Legal pages */
.legal-content { background: var(--seer-white); border: 1px solid var(--seer-border); border-radius: var(--radius); padding: 2.4rem; }
.legal-content h1, .legal-content h2, .legal-content h3 { margin-top: 1.6rem; }
.legal-content p, .legal-content li { color: var(--seer-text); }
.faq-item { background: var(--seer-white); border: 1px solid var(--seer-border); border-radius: 10px; margin-bottom: .7rem; padding: .9rem 1.2rem; }
.faq-item summary { font-family: var(--font-head); font-weight: 700; cursor: pointer; }
.faq-answer { padding-top: .6rem; color: var(--seer-text-soft); }

/* Flipbook */
.flipbook-shell { background: var(--seer-text); border-radius: var(--radius); padding: 1rem; }
.flipbook-shell .page { background: #fff; }

/* Responsive */
@media (max-width: 991px) {
    .feature-grid, .card-grid, .plan-grid { grid-template-columns: repeat(2, 1fr); }
    .pill-list { grid-template-columns: repeat(2, 1fr); }
    .collab-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .panel-layout { grid-template-columns: 1fr; }
    .nav-burger { display: flex; }
    .main-nav {
        display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--seer-white);
        border-bottom: 1px solid var(--seer-border); padding: 1rem 1.2rem 1.4rem;
    }
    .main-nav.open { display: block; }
    .main-nav > ul { flex-direction: column; align-items: flex-start; gap: .8rem; }
    .header-actions { margin-left: auto; }
}
@media (max-width: 575px) {
    .feature-grid, .card-grid, .plan-grid, .collab-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .detail-meta { gap: .8rem; }
}

/* ===== Home: héroe con vídeo de fondo (fiel a seercampus.com) ===== */
.hero-media {
    position: relative; min-height: min(88vh, 800px); display: grid; align-items: center;
    overflow: hidden; background: linear-gradient(120deg, var(--seer-dark) 0%, var(--seer-dark-2) 100%);
}
.hero-video, .hero-fallback {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero-video-mobile { display: none; }
.hero-video-everywhere { display: block; }
.hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg, rgba(22, 24, 28, .55) 0%, rgba(22, 24, 28, .3) 45%, rgba(22, 24, 28, .68) 100%);
}
.hero-content { position: relative; z-index: 2; text-align: center; padding-block: 8rem; max-width: 840px; }
.hero-content h1 { color: #fff; text-wrap: balance; }
.hero-content p.lead { color: rgba(255, 255, 255, .94); font-size: 1.12rem; max-width: 660px; margin: 1.15rem auto 2.1rem; }
.hero-content .kicker {
    display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: .8rem;
    letter-spacing: .12em; text-transform: uppercase; color: #fff;
    background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 999px; padding: .38rem 1.1rem; margin-bottom: 1.3rem;
    backdrop-filter: blur(6px);
}
.hero-actions { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }
.btn-lg { padding: .95rem 2.1rem; font-size: 1.02rem; }

@media (max-width: 767px) {
    .hero-media { min-height: 92vh; }
    .hero-content { padding-block: 5.5rem; }
    .hero-video-desktop { display: none; }
    .hero-video-mobile { display: block; }
}

/* ===== Home: intro + icon-boxes ===== */
.home-intro { padding: 3.4rem 0 0; }
.home-intro-title {
    font-family: var(--font-head); font-weight: 600; color: var(--seer-text);
    font-size: clamp(1.3rem, 2.6vw, 1.85rem); line-height: 1.4; max-width: 900px; margin: 0 auto;
}

.icon-box-grid { display: grid; gap: 1.7rem; }
.icon-box-grid-4 { grid-template-columns: repeat(4, 1fr); }
.icon-box-grid-3 { grid-template-columns: repeat(3, 1fr); }
.icon-box { text-align: center; }
.icon-box .feature-icon { margin-inline: auto; }
.icon-box h3 { margin: 1rem 0 .45rem; font-size: 1.12rem; }
.icon-box p { margin: 0; color: var(--seer-text-soft); font-size: .95rem; }

.feature-icon-solid {
    width: 88px; height: 88px; background: var(--seer-primary); color: #fff;
    box-shadow: 0 10px 26px rgba(242, 159, 5, .35);
}
.feature-icon-framed {
    width: 88px; height: 88px; background: transparent; color: var(--seer-secondary);
    border: 2.5px solid var(--seer-secondary);
}
.feature-icon-muted { width: 64px; height: 64px; background: var(--seer-cream-soft); color: var(--seer-secondary); }
.icon-box-inline { display: flex; gap: 1.05rem; text-align: left; align-items: flex-start; }
.icon-box-inline h3 { margin-top: .1rem; }
.icon-box-inline .feature-icon { flex-shrink: 0; }

/* ===== Home: carrusel infinito de colaboradores ===== */
.collab-marquee { overflow: hidden; padding-block: .4rem; }
.collab-track {
    display: flex; width: max-content; align-items: center;
    animation: collab-scroll 32s linear infinite;
}
.collab-track img {
    width: 205px; margin-right: 1.5rem; border-radius: 10px; background: #fff;
    padding: .55rem; border: 1px solid var(--seer-border);
}
.collab-marquee:hover .collab-track { animation-play-state: paused; }
@keyframes collab-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
@media (min-width: 992px) {
    .collab-grid { display: none; }
}
@media (max-width: 991px) {
    .collab-marquee { display: none; }
}

/* ===== Home: contacto + FAQ ===== */
.home-contact { background: var(--seer-white); border-block: 1px solid var(--seer-border); }
.home-contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.home-contact-intro { color: var(--seer-text-soft); max-width: 500px; }
.home-contact-textarea { height: 140px; }
.home-contact-faq {
    text-align: center; background: var(--seer-bg); border: 1px solid var(--seer-border);
    border-radius: var(--radius); padding: 2.8rem 2rem; box-shadow: 0 4px 14px rgba(68, 67, 66, .06);
}
.home-contact-faq h3 { color: var(--seer-text-soft); font-size: 1.05rem; margin: 0 0 .35rem; }
.home-contact-faq h2 { margin: 0 0 1.3rem; }
.home-contact-arrow {
    display: grid; place-items: center; width: 86px; height: 86px; border-radius: 50%;
    background: var(--seer-cream); color: var(--seer-secondary); margin: 0 auto 1.5rem;
}

@media (max-width: 991px) {
    .icon-box-grid-4, .icon-box-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .home-contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 575px) {
    .icon-box-grid-4, .icon-box-grid-3 { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-media video { display: none; }
    .collab-track { animation: none; width: 100%; flex-wrap: wrap; justify-content: center; }
}

/* ===== Pantalla de elección en la compra (acceso) ===== */
.choice-screen { max-width: 760px; margin: 0 auto; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.choice-btn {
    display: flex; flex-direction: column; align-items: center; gap: .55rem; text-align: center;
    background: var(--seer-white); border: 2px solid var(--seer-border); border-radius: var(--radius);
    padding: 2.1rem 1.4rem; cursor: pointer; text-decoration: none; font-family: var(--font-head);
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.choice-btn:hover {
    transform: translateY(-3px); border-color: var(--seer-primary);
    box-shadow: var(--shadow); color: inherit; text-decoration: none;
}
.choice-icon {
    width: 64px; height: 64px; border-radius: 50%; background: var(--seer-primary); color: #fff;
    display: grid; place-items: center; margin-bottom: .3rem;
}
.choice-title { font-weight: 800; font-size: 1.04rem; color: var(--seer-text); line-height: 1.3; }
.choice-sub { font-size: .87rem; color: var(--seer-text-soft); font-family: var(--font-body); }

/* ===== Ficha de cliente ===== */
.ficha-resumen {
    background: var(--seer-cream-soft); border: 1px solid var(--seer-border);
    border-radius: 10px; padding: 1rem 1.2rem; margin-bottom: 1.3rem;
}
.ficha-resumen-label {
    display: block; font-family: var(--font-head); font-weight: 800; font-size: .72rem;
    text-transform: uppercase; letter-spacing: .08em; color: var(--seer-text-soft); margin-bottom: .3rem;
}
.ficha-resumen-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.ficha-resumen-precio { font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; color: var(--seer-text); }
.ficha-resumen-nota { margin: .6rem 0 0; font-size: .82rem; color: var(--seer-text-soft); }

/* ===== Reseñas ===== */
.rating-summary { display: flex; align-items: center; gap: .45rem; }
.stars {
    color: var(--seer-accent); font-size: 1rem; letter-spacing: .12em;
    font-family: var(--font-head);
}
.reviews-list .panel-card { padding: 1rem 1.2rem; }

/* ===== Drip / lecciones bloqueadas ===== */
.curriculum-item.curriculum-locked { color: var(--seer-text-soft); }
.curriculum-item.curriculum-locked .title { display: flex; flex-direction: column; gap: .15rem; }
.lock-hint {
    font-size: .74rem; color: var(--seer-accent); font-weight: 700;
    text-transform: none; letter-spacing: 0;
}
.curriculum-locked-link { cursor: default; }

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


/* ===== Flipbook (visor tipo libro para PDFs) ===== */
.flipbook-shell {
    position: relative;
    background: var(--seer-cream-soft, #faf6ee);
    border: 1px solid var(--seer-border, #e8e2d8);
    border-radius: 12px;
    padding: 1rem;
    outline: none;
}

.flipbook-shell:focus-visible {
    border-color: var(--seer-primary, #f29f05);
}

.flipbook-viewport {
    display: block;
    min-height: 220px;
}

.flipbook-loading {
    display: flex;
    gap: .8rem;
    align-items: center;
    justify-content: center;
    padding: 2.4rem 1rem;
    color: var(--seer-text-soft, #a09e9b);
    font-size: .92rem;
}

.flipbook-spinner {
    width: 22px;
    height: 22px;
    border: 3px solid #e8e2d8;
    border-top-color: var(--seer-primary, #f29f05);
    border-radius: 50%;
    animation: flipbook-spin 0.9s linear infinite;
}

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

.flipbook-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    flex-wrap: wrap;
    margin-top: .9rem;
}

.flipbook-counter {
    font-size: .85rem;
    color: var(--seer-text-soft, #a09e9b);
    min-width: 64px;
    text-align: center;
}

.flipbook-hint {
    margin: .5rem 0 0;
    font-size: .78rem;
    color: var(--seer-text-soft, #a09e9b);
    text-align: center;
}

.flipbook-classic .flipbook-hint {
    display: none;
}

.flipbook-shell:fullscreen {
    background: #fff;
    padding: 1.4rem;
}
