/* =========================================
   FundamentosArtísticos.com — estilos.css
   ========================================= */

@font-face {
    font-family: 'OffBit-Bold';
    src: url('/OffBit-Bold.ttf') format('truetype');
}

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

:root {
    --bg:           #FDF8F2;
    --bg2:          #F5EDE0;
    --bg3:          #EDE1CE;
    --text:         #1E1610;
    --text2:        #6B5740;
    --text3:        #A08568;
    --accent:       #C4621A;
    --accent2:      #E8956A;
    --accent-light: #FDF0E6;
    --border:       #E2D5C3;
    --border2:      #C9B99A;
    --card:         #FFFCF7;
    --purple-bg:    #F2EEFB;
    --purple:       #6E4FBA;
    --green-bg:     #EAF4EE;
    --green:        #2E7D52;
    --blue-bg:      #EBF2FB;
    --blue:         #2E5FA0;
    --ease:         cubic-bezier(.22,1,.36,1);
    --radius:       12px;
    --radius-lg:    16px;
}

html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Centrado global — limita el ancho de todo el sitio */
header, nav, .topbar, footer {
    width: 100%;
}

/* El contenido principal crece para empujar el footer al fondo */
a { text-decoration: none; color: inherit; }

/* .page-body ocupa todo el espacio disponible empujando el footer abajo */
.page-body { flex: 1; display: flex; flex-direction: column; }

/* ── CONTAINER ───────────────────────────────────── */
.container {
    margin: 0 400px;
    padding: 0 24px;
}

.content-only {
    width: 100%;
    flex: 1;
}

.content-wrap {
    margin: 0 400px;
    padding: 28px 24px 48px;
}

/* ── TOPBAR ──────────────────────────────────────── */
.topbar { background: var(--bg2); border-bottom: 1px solid var(--border); padding: 4px 0; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.topbar-left { display: none; }
.topbar-right { display: none; }
.topbar-link { display: none; }

/* ── HEADER ──────────────────────────────────────── */
header { background: var(--bg); border-bottom: 1px solid var(--border); padding: 18px 0 14px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo-area { display: block; }
.logo-name {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 22px; font-weight: 600;
    color: var(--accent); letter-spacing: -0.4px; line-height: 1.1;
}
.logo-tagline { font-size: 11px; color: var(--text3); margin-top: 4px; letter-spacing: .04em; }

/* ── BUSCADOR ────────────────────────────────────── */
.search-area { flex: 1; max-width: 380px; }
.search-wrap {
    display: flex; align-items: center;
    background: var(--accent-light);
    border: 1.5px solid var(--border2);
    border-radius: 999px;
    padding: 0 16px; gap: 8px;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.search-wrap:focus-within {
    border-color: var(--accent2);
    box-shadow: 0 0 0 3px rgba(196,98,26,.12);
}
.search-wrap svg { width: 14px; height: 14px; color: var(--text3); flex-shrink: 0; }
.search-wrap input {
    border: none; background: transparent;
    font-size: 13px; color: var(--text);
    font-family: 'Inter', sans-serif;
    width: 100%; padding: 10px 0; outline: none;
}
.search-wrap input::placeholder { color: var(--text3); }

/* ── NAV ─────────────────────────────────────────── */
nav { background: var(--bg); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
nav ul { list-style: none; display: flex; overflow-x: auto; scrollbar-width: none; }
nav ul::-webkit-scrollbar { display: none; }
nav a {
    display: block; font-size: 12.5px; font-weight: 500; color: var(--text2);
    padding: 13px 16px; border-bottom: 2px solid transparent;
    transition: color .2s, border-color .2s; white-space: nowrap;
}
nav a:hover { color: var(--text); }
nav a.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ── INDEX: contenido centrado ────────────────────── */
.index-layout { align-items: start; }
.index-main { max-width: 100%; }

.content-only.home-page > .content-wrap {
    margin: 0 400px !important;
    padding: 28px 32px 48px !important;
}

/* ── SECTION HEADING ─────────────────────────────── */
.section-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.section-title { font-size: 10px; font-weight: 600; color: var(--text3); text-transform: uppercase; letter-spacing: .1em; white-space: nowrap; }
.section-line { flex: 1; height: 1px; background: var(--border); }

/* ── TARJETA GRANDE ──────────────────────────────── */
.featured-big {
    display: block; background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 14px;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .2s;
}
.featured-big:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(100,60,20,.11); border-color: var(--border2); }
.feat-thumb {
    height: 148px; background: var(--accent-light);
    display: flex; align-items: center; justify-content: center;
    position: relative; border-bottom: 1px solid var(--border);
}
.feat-tag { position: absolute; top: 12px; left: 12px; font-size: 10px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.tag-obra    { background: var(--purple-bg); color: var(--purple); }
.tag-tecnico { background: var(--blue-bg);   color: var(--blue); }
.tag-teoria  { background: var(--green-bg);  color: var(--green); }
.tag-eso     { background: var(--accent-light); color: var(--accent); }
.feat-body { padding: 18px 20px; }
.feat-title { font-family: 'Fraunces', Georgia, serif; font-size: 18px; font-weight: 600; color: var(--text); line-height: 1.3; margin-bottom: 8px; }
.feat-excerpt { font-size: 13px; color: var(--text2); line-height: 1.7; margin-bottom: 12px; }
.feat-meta { font-size: 11px; color: var(--text3); display: flex; gap: 8px; align-items: center; }
.meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--border2); }
.thumb-art { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.thumb-frame { width: 72px; height: 88px; background: var(--bg2); border: 2px solid var(--border2); border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 28px; position: relative; }
.thumb-frame::after { content: ''; position: absolute; inset: 4px; border: 1px solid var(--border); border-radius: 2px; pointer-events: none; }
.thumb-caption { font-size: 9px; color: var(--text3); }

/* ── MINI CARDS ──────────────────────────────────── */
.cards-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.mini-card {
    display: block; background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 18px 18px 20px;
    transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .2s;
}
.mini-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(100,60,20,.09); border-color: var(--border2); }
.mini-tag { font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 999px; display: inline-block; margin-bottom: 10px; }
.mini-title { font-size: 14px; font-weight: 500; color: var(--text); line-height: 1.4; }
.mini-meta  { font-size: 11px; color: var(--text3); }

/* ── CURSOS STRIP ────────────────────────────────── */
.cursos-strip { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 24px; }
.cursos-strip-title { font-size: 10px; font-weight: 600; color: var(--text3); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.cursos-list { display: flex; gap: 6px; flex-wrap: wrap; }
.curso-pill {
    display: inline-block; font-size: 12px; font-weight: 500; padding: 6px 14px;
    border-radius: 999px; border: 1px solid var(--border2); color: var(--text2); background: var(--card);
    transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.curso-pill:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: scale(1.05); }

/* ── RECIENTES ───────────────────────────────────── */
.recent-list { display: flex; flex-direction: column; gap: 8px; }
.recent-item {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 12px 14px; background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); transition: transform .22s var(--ease), border-color .2s;
}
.recent-item:hover { transform: translateX(4px); border-color: var(--border2); }
.recent-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; }
.recent-title { font-size: 13px; font-weight: 500; color: var(--text); line-height: 1.35; margin-bottom: 3px; }
.recent-meta  { font-size: 11px; color: var(--text3); }

/* ── SIDEBAR INTERIOR (index) ────────────────────── */
.sidebar-block { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.sidebar-title { font-size: 10px; font-weight: 600; color: var(--text3); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.sidebar-list { display: flex; flex-direction: column; gap: 9px; }
.sidebar-link { font-size: 12px; color: var(--text2); display: flex; align-items: center; gap: 8px; transition: color .2s; }
.sidebar-link:hover { color: var(--accent); }
.slink-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.sidebar-stat { display: flex; flex-direction: column; gap: 10px; }
.stat-row { display: flex; justify-content: space-between; align-items: center; }
.stat-label { font-size: 12px; color: var(--text2); }
.stat-val   { font-size: 13px; font-weight: 600; color: var(--accent); }

/* ── PÁGINAS INTERIORES ──────────────────────────── */
.apuntes-lista { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px 32px; }
.apuntes-lista h2 { font-family: 'Fraunces', Georgia, serif; font-size: 22px; color: var(--accent); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.apuntes-lista h3 { font-size: 13px; font-weight: 600; color: var(--text2); margin: 24px 0 10px; text-transform: uppercase; letter-spacing: .06em; }
.apuntes-lista p { font-size: 14px; color: var(--text2); line-height: 1.7; }
.apuntes-lista ul { list-style: none; }
.apuntes-lista li { padding: 10px 0; border-bottom: 1px solid var(--border); display: flex; align-items: center; }
.apuntes-lista li:last-child { border-bottom: none; }
.apuntes-lista li a { color: var(--text); display: flex; align-items: center; gap: 10px; width: 100%; font-size: 14px; padding: 2px 6px; border-radius: 6px; transition: color .2s, background .2s; }
.apuntes-lista li a:hover { color: var(--accent); background: var(--accent-light); }
.icono { background: var(--accent); color: white; padding: 3px 8px; border-radius: 6px; font-size: 11px; font-weight: 600; flex-shrink: 0; }
.volver { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 20px; color: var(--accent); font-size: 13px; font-weight: 500; transition: opacity .2s; }
.volver:hover { opacity: .7; }

/* ── GLOSARIO ──────────────────────────────────────── */
.glosario-contenido h3 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 17px; font-weight: 600; color: var(--accent);
    margin: 28px 0 12px; padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
}
.glosario-contenido h3:first-child { margin-top: 0; }
.glosario-contenido dl { margin-bottom: 4px; }
.glosario-contenido dt {
    font-size: 14px; font-weight: 600; color: var(--text);
    margin-top: 12px; margin-bottom: 2px;
}
.glosario-contenido dd {
    font-size: 13.5px; color: var(--text2); line-height: 1.7;
    margin-left: 0; margin-bottom: 4px;
}

/* ── PÁGINAS LEGALES ─────────────────────────────── */
.legal-page { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; }

.legal-header {
    display: flex; gap: 16px; align-items: flex-start;
    padding-bottom: 24px; margin-bottom: 8px; border-bottom: 1px solid var(--border);
}
.legal-icon { font-size: 32px; line-height: 1; flex-shrink: 0; }
.legal-header h1 { font-family: 'Fraunces', Georgia, serif; font-size: 24px; font-weight: 600; color: var(--accent); line-height: 1.2; }
.legal-updated { font-size: 12px; color: var(--text3); margin-top: 4px; font-style: italic; }

.legal-section { padding: 20px 0; border-bottom: 1px solid var(--border); }
.legal-section:last-child { border-bottom: none; padding-bottom: 0; }
.legal-section h2 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 16px; font-weight: 600; color: var(--text);
    margin-bottom: 12px;
}
.legal-section p { font-size: 14px; color: var(--text2); line-height: 1.75; margin-bottom: 10px; }
.legal-section p:last-child { margin-bottom: 0; }
.legal-section a { color: var(--accent); text-decoration: underline; }

.legal-card {
    background: var(--bg2); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden; margin-top: 12px;
}
.legal-row {
    display: flex; gap: 16px; padding: 10px 16px;
    border-bottom: 1px solid var(--border); font-size: 14px; color: var(--text2);
}
.legal-row:last-child { border-bottom: none; }
.legal-key { font-weight: 600; color: var(--text); width: 130px; flex-shrink: 0; }
.legal-row a { color: var(--accent); text-decoration: underline; }

/* Data cards para privacidad */
.data-cards { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.data-card { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); }
.data-card-icon { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.data-card strong { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.data-card p { font-size: 13px; color: var(--text2); line-height: 1.6; margin: 0; }
.data-card a { color: var(--accent); text-decoration: underline; }

/* Tabla legal */
.legal-table-wrap { margin-top: 12px; overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.legal-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.legal-table th { background: var(--bg2); padding: 10px 14px; text-align: left; font-size: 11px; font-weight: 600; color: var(--text3); text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--border); }
.legal-table td { padding: 10px 14px; color: var(--text2); border-bottom: 1px solid var(--border); vertical-align: top; }
.legal-table tr:last-child td { border-bottom: none; }
.legal-table code { font-family: monospace; background: var(--bg3); padding: 1px 5px; border-radius: 4px; font-size: 12px; }

/* Botones navegadores */
.browser-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.browser-btn {
    font-size: 12px; font-weight: 500; padding: 7px 16px;
    border-radius: 999px; border: 1px solid var(--border2);
    color: var(--text2); background: var(--card);
    transition: background .2s, color .2s, border-color .2s;
}
.browser-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── CONTACTO ────────────────────────────────────── */
.contact-page { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; }
.contact-header {
    display: flex; gap: 16px; align-items: flex-start;
    padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--border);
}
.contact-header h1 { font-family: 'Fraunces', Georgia, serif; font-size: 24px; font-weight: 600; color: var(--accent); line-height: 1.2; }
.contact-header p { font-size: 14px; color: var(--text2); margin-top: 4px; }

.contact-form { max-width: 600px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 12px; font-weight: 600; color: var(--text2); margin-bottom: 6px; letter-spacing: .03em; }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%; background: var(--bg);
    border: 1.5px solid var(--border2); border-radius: var(--radius);
    padding: 10px 14px; font-size: 14px; color: var(--text);
    font-family: 'Inter', sans-serif; outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--accent2); box-shadow: 0 0 0 3px rgba(196,98,26,.1); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-footer { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.btn-enviar {
    background: var(--accent); color: white; border: none;
    padding: 11px 28px; border-radius: 999px;
    font-size: 14px; font-weight: 600; font-family: 'Inter', sans-serif;
    cursor: pointer; transition: opacity .2s, transform .15s;
}
.btn-enviar:hover { opacity: .88; transform: translateY(-1px); }
.form-note { font-size: 12px; color: var(--text3); line-height: 1.6; }
.form-note a { color: var(--accent); text-decoration: underline; }

/* ── FOOTER ──────────────────────────────────────── */
footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 18px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.footer-text { font-size: 11px; color: var(--text3); }
.footer-links { display: flex; gap: 16px; }
.footer-link { font-size: 11px; color: var(--text2); transition: color .2s; }
.footer-link:hover { color: var(--accent); }

/* ── BANNER COOKIES ──────────────────────────────── */
.cookie-banner {
    display: none; position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--bg2); border-top: 1px solid var(--border2);
    padding: 16px 20px; z-index: 1000;
    animation: slideUp .4s var(--ease);
}
.cookie-content {
    max-width: 860px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
    gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--text2);
}
.cookie-content a { color: var(--accent); text-decoration: underline; }
.cookie-btns { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.btn-cookie-accept {
    background: var(--accent); color: white; border: none;
    padding: 8px 20px; border-radius: 999px; font-size: 13px; font-weight: 600;
    font-family: 'Inter', sans-serif; cursor: pointer; transition: opacity .2s;
}
.btn-cookie-accept:hover { opacity: .85; }
.btn-cookie-more { font-size: 12px; color: var(--text2); text-decoration: underline; }

@keyframes slideUp   { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes slideDown { from { transform: translateY(0); opacity: 1; } to { transform: translateY(100%); opacity: 0; } }


/* ── TEMAS CON PDF ───────────────────────────────── */
.tema-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    flex-wrap: wrap;
}

.tema-info {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.tema-numero {
    font-size: 10px;
    font-weight: 600;
    color: var(--text3);
    text-transform: uppercase;
    letter-spacing: .08em;
    white-space: nowrap;
    background: var(--bg2);
    border: 1px solid var(--border);
    padding: 2px 8px;
    border-radius: 999px;
    flex-shrink: 0;
}

.tema-titulo {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    line-height: 1.4;
}

.tema-acciones {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.btn-pdf {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--border2);
    transition: background .2s, color .2s, border-color .2s, transform .15s;
    font-family: 'Inter', sans-serif;
}

.btn-pdf svg { width: 13px; height: 13px; flex-shrink: 0; }

.btn-ver {
    background: var(--card);
    color: var(--text2);
}
.btn-ver:hover {
    background: var(--blue-bg);
    border-color: var(--blue);
    color: var(--blue);
    transform: translateY(-1px);
}

.btn-descargar {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}
.btn-descargar:hover {
    opacity: .85;
    transform: translateY(-1px);
}

/* ── BOTONES DE TEMA (temario) ───────────────────── */
.temas-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.tema-btn {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 24px;
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
    transition: border-color .3s var(--ease), box-shadow .3s var(--ease), color .2s;
}

/* Barra de acento animada a la izquierda */
.tema-btn::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--accent);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform .3s var(--ease);
    border-radius: 0 2px 2px 0;
}

/* Fondo deslizante */
.tema-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--accent-light) 0%, transparent 100%);
    opacity: 0;
    transition: opacity .3s var(--ease);
}

.tema-btn:hover {
    border-color: var(--accent2);
    box-shadow: 0 6px 28px rgba(196,98,26,.13);
}

.tema-btn:hover::before {
    transform: scaleY(1);
}

.tema-btn:hover::after {
    opacity: 1;
}

.tema-btn:hover .tema-btn-numero {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.tema-btn:hover .tema-btn-titulo {
    color: var(--accent);
}

.tema-btn-numero {
    font-size: 10px;
    font-weight: 600;
    color: var(--text3);
    text-transform: uppercase;
    letter-spacing: .08em;
    white-space: nowrap;
    background: var(--bg2);
    border: 1px solid var(--border);
    padding: 4px 11px;
    border-radius: 999px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}

.tema-btn-titulo {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    line-height: 1.4;
    position: relative;
    z-index: 1;
    transition: color .3s var(--ease);
}

.tema-btn-icono { display: none; }

/* ── RESPONSIVE ──────────────────────────────────── */

@media (max-width: 1400px) {
    .container, .content-wrap { margin: 0 200px; }
    .content-only.home-page > .content-wrap { margin: 0 200px !important; }
}

@media (max-width: 1000px) {
    .container, .content-wrap { margin: 0 48px; }
    .content-only.home-page > .content-wrap { margin: 0 48px !important; }
}

/* Pantallas pequeñas: ocultar ads, mantener contenido */
@media (max-width: 900px) {
}

@media (max-width: 700px) {
    .container, .content-wrap { margin: 0 20px; }
    .content-only.home-page > .content-wrap { margin: 0 20px !important; }
    .header-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
    .search-area { max-width: 100%; width: 100%; }
    .cards-grid { grid-template-columns: 1fr; }
    .topbar-left { display: none; }
    .index-sidebar { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .legal-page, .contact-page { padding: 20px 18px; }
    .apuntes-lista { padding: 20px 18px; }
    .content-wrap { padding: 20px 16px 40px; }
    .cookie-content { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
    .container, .content-wrap { margin: 0 12px; }
    .content-only.home-page > .content-wrap { margin: 0 12px !important; }
    .logo-name { font-size: 17px; }
    nav a { padding: 12px 12px; font-size: 12px; }
    .legal-header, .contact-header { flex-direction: column; gap: 10px; }
}

/* ── WIDGET: Término artístico ────────────────────── */
.tw-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 18px;
    margin-bottom: 16px;
}
.tw-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--accent-light);
    color: var(--accent);
    flex-shrink: 0;
    border: 1px solid var(--accent);
}
.tw-body {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 15px 18px;
    margin-bottom: 12px;
}
.tw-term {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 19px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
    margin-bottom: 6px;
}
.tw-def {
    font-size: 13px;
    color: var(--text2);
    line-height: 1.7;
}
.tw-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.tw-btn {
    font-size: 12px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--border2);
    color: var(--text2);
    background: var(--card);
    cursor: pointer;
    font-family: 'Inter', system-ui, sans-serif;
    transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.tw-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: scale(1.05);
}
.tw-btn.tw-btn-main {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    font-weight: 600;
}
.tw-btn.tw-btn-main:hover {
    opacity: .88;
    transform: scale(1.05);
}
@media (max-width: 480px) {
    .tw-nav { gap: 5px; }
    .tw-btn { font-size: 11px; padding: 5px 10px; }
    .tw-btn.tw-btn-main { order: -1; flex: 1 1 100%; }
    .section-heading { flex-wrap: wrap; }
    .tw-badge { margin-left: auto; }
}

/* ── HAMBURGER MENU (móvil) ───────────────── */
.nav-toggle { display: none; }

@media (max-width: 700px) {
    .nav-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px 6px;
        margin-left: auto;
        z-index: 101;
    }
    .nav-toggle-bar {
        display: block;
        width: 22px;
        height: 2.5px;
        background: var(--text2);
        border-radius: 2px;
        transition: transform .25s var(--ease), opacity .25s var(--ease);
    }
    .nav-toggle--open .nav-toggle-bar:nth-child(1) {
        transform: translateY(7.5px) rotate(45deg);
    }
    .nav-toggle--open .nav-toggle-bar:nth-child(2) { opacity: 0; }
    .nav-toggle--open .nav-toggle-bar:nth-child(3) {
        transform: translateY(-7.5px) rotate(-45deg);
    }
    nav .container {
        display: flex;
        align-items: center;
        position: relative;
    }
    nav ul {
        display: none;
        flex-direction: column;
        overflow: visible;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        box-shadow: 0 12px 32px rgba(30,22,16,.12);
        padding: 6px 0;
        z-index: 99;
    }
    nav ul.nav-open { display: flex; }
    nav li { width: 100%; }
    nav a {
        padding: 12px 20px;
        border-bottom: none;
        font-size: 13px;
    }
    nav a:hover { background: var(--bg2); }
}
