:root{
  --bg:#f2f0eb;
  --paper:#ffffff;
  --ink:#2C2C2A;
  --muted:#5F5E5A;
  --line:#E5E2D9;
  --accent:#854F0B;
  --accent-dark:#BA7517;
  --bg-soft:#FAEEDA;
}

*{box-sizing:border-box}

body{
  margin:0;
  background: #f2f0eb;
  color:var(--ink);
  font-family: Inter, Arial, sans-serif;
  line-height:1.55;
}

a{color:var(--accent); text-decoration:none}
a:hover{text-decoration:underline}

/* ── Header sticky dos barras ────────────────────────────────────────────── */
.site-header-sticky {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: #f2f0eb;
}

.site-topbar-utility {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 22px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-back-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}
.site-back-link:hover { color: var(--accent); text-decoration: none; }

.site-topbar-info { display: none; }
@media (min-width: 768px) { .site-topbar-info { display: block; } }

.site-header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav a { color: var(--ink); text-decoration: none; transition: color .2s; }
.site-nav a:hover { color: var(--accent); text-decoration: none; }

.site-nav-btn {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 10px 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 3px;
  transition: background .2s !important;
}
.site-nav-btn:hover { background: var(--accent-dark) !important; }

.site-nav-session {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.site-nav-admin {
  color: var(--accent) !important;
  border: 1px solid var(--accent);
  padding: 3px 8px;
  border-radius: 3px;
}

.site-nav-register { color: var(--accent) !important; text-decoration: underline; }

/* ── Contenedor principal ────────────────────────────────────────────────── */
.site-header{ display: none; } /* reemplazado por sticky header */

.container{
  max-width: 1280px;
  margin: 40px auto 90px;
  padding: 0 22px;
}

h1,h2,h3{
  font-weight:400;
  line-height:1.2;
}

h1{font-size:30px;margin:0 0 18px}
h2{font-size:22px;margin:0 0 8px}
h3{font-size:18px;margin:28px 0 10px}

.lede{
  color:var(--muted);
  max-width:650px;
  margin-bottom:28px;
}

.card{
  background:var(--paper);
  border:1px solid var(--line);
  padding:24px;
  margin:18px 0;
}

.grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(245px,1fr));
  gap:18px;
}

.teacher-card img{
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
  border:1px solid var(--line);
  margin-bottom:14px;
  background:#eee;
}

.meta{
  font-family: Arial, Helvetica, sans-serif;
  font-size:12px;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.04em;
}

.form-row{margin-bottom:16px}

label{
  display:block;
  font-family: Arial, Helvetica, sans-serif;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.06em;
  margin-bottom:6px;
  color:#333;
}

input,textarea,select{
  width:100%;
  border:1px solid var(--line);
  background:#fff;
  padding:12px;
  font-family: Arial, Helvetica, sans-serif;
  font-size:15px;
}

textarea{min-height:150px; resize:vertical}

button,.button{
  display:inline-block;
  border:0;
  background:var(--accent);
  color:#fff;
  padding:11px 16px;
  font-family: Arial, Helvetica, sans-serif;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.06em;
  cursor:pointer;
}

button:hover,.button:hover{
  background:var(--accent-dark);
  text-decoration:none;
}

.notice{
  border:1px solid var(--line);
  background:#fffdf8;
  padding:14px 16px;
  margin:18px 0;
  color:#4a3c2c;
}

.error{
  border-color:#d7a8a8;
  background:#fff6f6;
  color:#6d1e1e;
}

.profile-img{
  max-width:240px;
  width:100%;
  border:1px solid var(--line);
  display:block;
  margin:20px 0;
}

.footer{
  border-top:1px solid var(--line);
  padding:28px 22px;
  text-align:center;
  color:var(--muted);
  font-family:Arial, Helvetica, sans-serif;
  font-size:12px;
}

@media(max-width:640px){
  .site-header{display:block;margin-top:28px}
  .nav{margin-top:16px;flex-wrap:wrap}
  h1{font-size:26px}
}/* v3: grilla más prolija y datos de contacto */
.teacher-card{
  display:flex;
  flex-direction:column;
  min-height:100%;
}

.teacher-card img{
  height:210px;
  aspect-ratio:auto;
  object-fit:cover;
}

.teacher-card h2{
  min-height:52px;
}

.contact-list{
  margin:22px 0;
  padding:0;
  list-style:none;
  border-top:1px solid var(--line);
}

.contact-list li{
  padding:10px 0;
  border-bottom:1px solid var(--line);
  font-family: Arial, Helvetica, sans-serif;
  font-size:14px;
}

.badges{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:12px 0 18px;
}

.badge{
  border:1px solid var(--line);
  background:#fff;
  padding:5px 8px;
  font-family:Arial, Helvetica, sans-serif;
  font-size:11px;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:var(--muted);
}

/* v5 - Biblioteca de fotos del profesor */
.foto-selector {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 12px 0 18px;
}

.foto-opcion {
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 4px;
  display: inline-block;
}

.foto-opcion img,
.miniatura-aviso {
  width: 86px;
  height: 86px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.foto-opcion input {
  display: none;
}

.foto-opcion:has(input:checked) {
  border-color: #c9a45c;
}

.foto-item {
  position: relative;
  display: inline-block;
}

.foto-item a {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0,0,0,.6);
  color: #fff;
  width: 22px;
  height: 22px;
  line-height: 20px;
  text-align: center;
  border-radius: 999px;
  text-decoration: none;
  font-weight: bold;
}

.aviso-dashboard .miniatura-aviso {
  float: right;
  margin-left: 16px;
  margin-bottom: 10px;
}


/* v7 - navegación integrada y páginas legales */
.nav a[href="/"] {
  opacity: .78;
}

.check-row label {
  display: block;
  font-size: .95rem;
  line-height: 1.5;
  text-transform: none;
  letter-spacing: 0;
}

.check-row input {
  width: auto;
  margin-right: 8px;
}

.legal-page h2 {
  margin-top: 28px;
  font-size: 1.2rem;
}

.footer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* v8 - Home de perfiles: verificados + comunidad */
.container.wide{
  max-width:1280px;
}

.directory-section{
  margin-top:42px;
}

.section-intro{
  color:var(--muted);
  margin-top:0;
  margin-bottom:20px;
  max-width:720px;
}

.filtros{
  display:grid;
  grid-template-columns:2fr 1fr auto auto;
  gap:14px;
  align-items:end;
  margin:24px 0 34px;
}

.filtros .form-row{
  margin-bottom:0;
}

.limpiar-filtros{
  font-family:Arial, Helvetica, sans-serif;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.06em;
  padding:11px 0;
}

.badge.verificado{
  border-color:var(--accent);
  color:var(--accent-dark);
  background:#fffaf0;
}

.verified-card{
  border-color:#d8c5a6;
  box-shadow:0 10px 28px rgba(80,50,20,.06);
}

.teacher-card .button.secondary{
  margin-top:auto;
  align-self:flex-start;
}

.pagination{
  display:flex;
  gap:14px;
  align-items:center;
  justify-content:center;
  margin:34px 0 0;
  font-family:Arial, Helvetica, sans-serif;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:var(--muted);
}

.pagination a{
  border:1px solid var(--line);
  padding:8px 12px;
  background:#fff;
}

.share-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin:22px 0;
}

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

/* v9 - administración de verificados */
.wide{max-width:1280px}
.admin-panel{margin-bottom:34px}
.admin-list{display:flex;flex-direction:column;gap:12px;margin-top:18px}
.admin-row{
  border:1px solid var(--line);
  background:#fff;
  padding:14px;
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:flex-start;
}
.admin-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  justify-content:flex-end;
}
.admin-actions form{margin:0}
.secondary-button{background:#6b625b}
.secondary-button:hover{background:#4b433d}
.danger-button{background:#9b3a32}
.danger-button:hover{background:#772820}
.badge.pago{border-color:var(--accent);background:#fff8ec;color:var(--accent-dark)}
@media(max-width:720px){
  .admin-row{display:block}
  .admin-actions{justify-content:flex-start;margin-top:12px}
}

/* v10 - home premium + perfil público deseable */
.home-hero{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:28px;
  padding:34px;
  background:linear-gradient(135deg,#fff 0%,#fffaf2 100%);
}

.eyebrow{
  font-family:Arial, Helvetica, sans-serif;
  font-size:11px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--accent-dark);
  margin:0 0 10px;
}

.teacher-placeholder{
  height:210px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--line);
  background:#f0ece4;
  color:var(--muted);
  font-family:Arial, Helvetica, sans-serif;
  text-transform:uppercase;
  letter-spacing:.12em;
  font-size:11px;
  margin-bottom:14px;
}

.premium-section h2,
.verified-section h2{
  margin-bottom:6px;
}

.premium-card{
  border-color:#c9a45c;
  box-shadow:0 16px 38px rgba(100,72,32,.10);
}

.profile-container{
  max-width:1120px;
}

.profile-hero{
  display:grid;
  grid-template-columns:minmax(260px,360px) 1fr;
  gap:34px;
  padding:34px;
  align-items:stretch;
  background:linear-gradient(135deg,#fff 0%,#fffaf2 100%);
}

.profile-photo-wrap{
  min-width:0;
}

.profile-photo{
  width:100%;
  height:100%;
  min-height:360px;
  object-fit:cover;
  border:1px solid var(--line);
  display:block;
  background:#eee;
}

.profile-photo-empty{
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--muted);
  font-family:Arial, Helvetica, sans-serif;
  text-transform:uppercase;
  letter-spacing:.12em;
}

.profile-main{
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.profile-main h1{
  font-size:42px;
  margin-bottom:12px;
}

.profile-summary{
  font-size:18px;
  color:#2c2723;
  max-width:660px;
}

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

.profile-grid{
  display:grid;
  grid-template-columns:1fr 320px;
  gap:22px;
  align-items:start;
  margin-top:22px;
}

.profile-card-main,
.contact-card{
  margin-top:0;
}

.video-wrap iframe{
  border:1px solid var(--line);
  background:#000;
}

.contact-card{
  position:sticky;
  top:18px;
}

.share-actions a,
.back-link a{
  font-family:Arial, Helvetica, sans-serif;
  font-size:12px;
  letter-spacing:.06em;
  text-transform:uppercase;
}

.button.secondary{
  background:#6b625b;
}
.button.secondary:hover{
  background:#4b433d;
}

@media(max-width:820px){
  .home-hero,
  .profile-hero{
    display:block;
  }
  .profile-photo{
    min-height:260px;
    margin-bottom:22px;
  }
  .profile-main h1{
    font-size:32px;
  }
  .profile-grid{
    grid-template-columns:1fr;
  }
  .contact-card{
    position:static;
  }
}

/* v11.1 - Ajustes editoriales seguros */
.directory-section{margin-top:80px;margin-bottom:80px;}
.directory-section:first-of-type{margin-top:60px;}
.directory-section h2{margin-bottom:16px;}
.section-intro{margin-bottom:34px;}
.hero-cta small,.field-help,.form-note{font-family:var(--sans, Arial, Helvetica, sans-serif); color:var(--muted); font-size:12px; line-height:1.45; display:block; margin-top:8px; text-transform:none; letter-spacing:0; font-weight:400;}
.profile-note{font-family:var(--sans, Arial, Helvetica, sans-serif); color:var(--muted); font-size:13px;}
.footer-inner{max-width:1160px;margin:0 auto;display:flex;justify-content:space-between;gap:18px;align-items:center;}
.footer p{margin:0 0 4px;}
.footer-nav{display:flex;gap:16px;flex-wrap:wrap;justify-content:flex-end;}
@media(max-width:760px){.footer-inner{display:block;text-align:center}.footer-nav{justify-content:center;margin-top:12px}}


/* v12 - Comunidad en grilla cuadrada editorial */
.community-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:24px;
  align-items:stretch;
}

.community-card{
  display:flex;
  flex-direction:column;
  background:#fffdf8;
  border:1px solid var(--line);
  color:var(--ink);
  text-decoration:none;
  min-width:0;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.community-card:hover{
  transform:translateY(-2px);
  box-shadow:0 16px 34px rgba(80,54,24,.08);
  border-color:#d7c7b2;
  text-decoration:none;
}

.community-card-media{
  width:100%;
  aspect-ratio:1 / 1;
  overflow:hidden;
  background:#eee8dc;
  border-bottom:1px solid var(--line);
}

.community-card-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .22s ease;
}

.community-card:hover .community-card-media img{
  transform:scale(1.025);
}

.community-placeholder{
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--muted);
  font-family:var(--sans, Arial, Helvetica, sans-serif);
  text-transform:uppercase;
  letter-spacing:.14em;
  font-size:11px;
}

.community-card-info{
  padding:15px 15px 16px;
  min-height:132px;
  display:flex;
  flex-direction:column;
}

.community-card-info h3{
  font-family:var(--serif, Georgia, "Times New Roman", serif);
  font-size:24px;
  line-height:1.02;
  letter-spacing:-.015em;
  margin:0 0 7px;
  color:var(--ink);
}

.community-location{
  margin:0 0 12px;
  font-family:var(--sans, Arial, Helvetica, sans-serif);
  font-size:12px;
  color:var(--muted);
  line-height:1.35;
}

.community-meta-row{
  margin-top:auto;
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  align-items:center;
  font-family:var(--sans, Arial, Helvetica, sans-serif);
  font-size:10px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.055em;
  color:var(--muted);
}

.community-meta-row span,
.mini-badge{
  border:1px solid #e4dbcf;
  background:#fffaf2;
  border-radius:999px;
  padding:5px 7px;
}

.community-meta-row .mini-badge,
.mini-badge{
  border-color:rgba(133,79,11,.35);
  color:var(--accent);
  background:#fff6e7;
}

@media(max-width:980px){
  .community-grid{grid-template-columns:repeat(3, minmax(0, 1fr));}
}

@media(max-width:640px){
  .community-grid{grid-template-columns:repeat(2, minmax(0, 1fr)); gap:16px;}
  .community-card-info{padding:12px; min-height:122px;}
  .community-card-info h3{font-size:21px;}
}


/* v12.1 - Corrección: destacados/verificados horizontales; comunidad cuadrada intacta */
.premium-section > .grid,
.verified-section > .grid{
  display:flex;
  flex-direction:column;
  gap:26px;
}

.premium-section .teacher-card,
.verified-section .teacher-card{
  display:grid;
  grid-template-columns:220px minmax(0, 1fr);
  gap:26px;
  align-items:stretch;
  padding:24px;
  margin:0;
  background:#fffdf8;
  border:1px solid var(--line);
  box-shadow:0 12px 28px rgba(80,54,24,.055);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.premium-section .teacher-card:hover,
.verified-section .teacher-card:hover{
  transform:translateY(-2px);
  box-shadow:0 18px 42px rgba(80,54,24,.09);
  border-color:#dac9b4;
}

.premium-section .teacher-media,
.verified-section .teacher-media{
  min-width:0;
}

.premium-section .teacher-card img,
.verified-section .teacher-card img,
.premium-section .teacher-placeholder,
.verified-section .teacher-placeholder{
  width:100%;
  height:100%;
  min-height:185px;
  aspect-ratio:4 / 3;
  object-fit:cover;
  margin:0;
  border:1px solid #ded7cc;
  background:#eee8dc;
  display:block;
}

.premium-section .teacher-placeholder,
.verified-section .teacher-placeholder{
  display:flex;
  align-items:center;
  justify-content:center;
}

.premium-section .teacher-body,
.verified-section .teacher-body{
  display:flex;
  flex-direction:column;
  min-width:0;
}

.premium-section .teacher-card h2,
.verified-section .teacher-card h2{
  font-family:var(--serif, Georgia, "Times New Roman", serif);
  font-size:34px;
  line-height:1.02;
  min-height:0;
  margin:0 0 8px;
  letter-spacing:-.02em;
}

.premium-section .teacher-card p,
.verified-section .teacher-card p{
  font-size:15px;
  color:#4f463e;
  margin:0 0 18px;
  max-width:720px;
}

.premium-section .teacher-card .button.secondary,
.verified-section .teacher-card .button.secondary{
  margin-top:auto;
  align-self:flex-start;
}

.premium-section .badges,
.verified-section .badges{
  margin:4px 0 16px;
}

.premium-card{
  border-color:#cfa96b !important;
  box-shadow:0 18px 44px rgba(100,72,32,.12) !important;
}

.verified-card{
  border-color:#d7c5aa !important;
}

@media(max-width:760px){
  .premium-section .teacher-card,
  .verified-section .teacher-card{
    grid-template-columns:1fr;
    gap:18px;
  }
  .premium-section .teacher-card img,
  .verified-section .teacher-card img,
  .premium-section .teacher-placeholder,
  .verified-section .teacher-placeholder{
    height:240px;
    min-height:0;
  }
}
.community-card .photo,
.teacher-card .teacher-media {
  overflow: hidden;
}

.community-card img,
.teacher-card img {
  transition: transform .35s ease, filter .35s ease;
}

.community-card:hover img,
.teacher-card:hover img {
  transform: scale(1.06);
}
.teacher-card img {
  transition: transform .35s ease, filter .35s ease;
}

.teacher-card:hover img {
  transform: scale(1.05);
}
.premium-card:hover img {
  transform: scale(1.07);
  filter: brightness(1.1);
}

.premium-card:hover {
  box-shadow: 0 24px 60px rgba(120,80,20,0.2);
}


/* ─────────────────────────────────────────────────────
   v13 — Identidad Argencello: paleta, tipografía, gancho editorial
   ───────────────────────────────────────────────────── */

:root {
  --bg:           #FAEEDA;
  --paper:        #FFFFFF;
  --accent:       #854F0B;
  --accent-dark:  #633806;
  --accent-light: #EF9F27;
  --ink:          #2C2C2A;
  --muted:        #7A7A76;
  --line:         #E8D9C4;
  --serif:        'EB Garamond', Georgia, serif;
  --sans:         'Inter', Arial, sans-serif;
}

body {
  font-family: var(--sans);
  background: var(--bg);
}

h1, h2, h3 {
  font-family: var(--serif);
}

.brand {
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: 0.1em;
  color: var(--ink);
}

.nav, label, input, textarea, select,
button, .button, .meta, .badge, .mini-badge,
.eyebrow, .footer, .pagination {
  font-family: var(--sans);
}

/* ── Hero: sin card, fondo cream, tipografía grande ── */
.home-hero {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 48px 0 42px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.home-hero h1 {
  font-size: 48px;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 14px;
  color: var(--ink);
}

.home-hero .lede {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 480px;
}

.home-hero .hero-cta {
  flex-shrink: 0;
  min-width: 200px;
  padding-top: 8px;
}

.home-hero .hero-cta > p {
  font-size: 14px;
  margin-bottom: 10px;
  color: var(--ink);
}

.home-hero .button {
  font-size: 12px;
  padding: 12px 20px;
  letter-spacing: 0.08em;
  background: var(--accent);
}

/* ── Filtros integrados ── */
.filtros {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 18px 0 22px;
  margin-bottom: 0;
}

.filtros input,
.filtros select {
  border-radius: 4px;
  border-color: #D4C4A4;
  background: white;
}

.filtros button {
  border-radius: 4px;
  background: var(--accent);
}

/* ── Secciones con tratamiento editorial ── */
.directory-section {
  margin-top: 56px;
  margin-bottom: 56px;
}

.directory-section > h2 {
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.section-intro {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
  margin-bottom: 28px;
}

/* ── Cards premium/verificados: borde amber izquierdo fuerte ── */
.premium-card {
  background: white !important;
  border-left: 5px solid var(--accent)    !important;
  border-top: 1px solid var(--line)       !important;
  border-right: 1px solid var(--line)     !important;
  border-bottom: 1px solid var(--line)    !important;
  border-radius: 0 6px 6px 0              !important;
  box-shadow: 0 8px 28px rgba(133,79,11,.12) !important;
}

.verified-card {
  background: white !important;
  border-left: 5px solid var(--accent-light) !important;
  border-top: 1px solid var(--line)           !important;
  border-right: 1px solid var(--line)         !important;
  border-bottom: 1px solid var(--line)        !important;
  border-radius: 0 6px 6px 0                  !important;
}

.premium-section .teacher-card h2,
.verified-section .teacher-card h2 {
  font-family: var(--serif);
  font-size: 32px;
  letter-spacing: -0.02em;
}

/* Badge verificado con amber */
.badge.verificado {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: rgba(250,238,218,.7);
  font-family: var(--sans);
}

/* ── Community grid: foto vertical, nombre serif ── */
.community-card {
  background: white;
}

.community-card-media {
  aspect-ratio: 3 / 4;
}

.community-card-info h3 {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.community-location {
  font-family: var(--sans);
  font-size: 12px;
}

.mini-badge {
  border-color: rgba(133,79,11,.4) !important;
  color: var(--accent)            !important;
  background: rgba(250,238,218,.8) !important;
}

/* ── Eyebrow ── */
.eyebrow {
  color: var(--accent);
  font-weight: 500;
}

@media(max-width: 760px) {
  .home-hero {
    display: block;
    padding: 32px 0 28px;
  }
  .home-hero h1 { font-size: 34px; }
  .home-hero .hero-cta { margin-top: 24px; }
}


/* ── v14: Video thumbnail con play button ── */

.yt-thumb {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 185px;
  cursor: pointer;
  overflow: hidden;
  background: #111;
}

.yt-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease, filter .35s ease;
  filter: brightness(.88);
}

.yt-thumb:hover img {
  transform: scale(1.04);
  filter: brightness(.7);
}

.yt-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(133,79,11,.92);
  color: white;
  font-size: 20px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  transition: background .2s, transform .2s;
  pointer-events: none;
}

.yt-thumb:hover .yt-play {
  background: var(--accent);
  transform: translate(-50%, -50%) scale(1.1);
}

.yt-thumb iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Badge de video en las cards */
.badge-video {
  border-color: rgba(133,79,11,.4);
  color: var(--accent);
  background: rgba(250,238,218,.7);
}

/* Perfil: iframe lazy-load */
.yt-embed-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #111;
  margin: 14px 0;
}

.yt-embed-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}


/* ── v14.1: yt-thumb en cards horizontales (premium/verified) ── */
.premium-section .yt-thumb,
.verified-section .yt-thumb {
  width: 100%;
  height: 100%;
  min-height: 185px;
  border: 1px solid #ded7cc;
}

.premium-section .yt-thumb img,
.verified-section .yt-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: none;
}

/* ── Scroll to top ───────────────────────────────────────────────────────── */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 10px 14px;
  font-family: Inter, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, background .2s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.scroll-top.visible { opacity: 1; pointer-events: auto; }
.scroll-top:hover { background: var(--accent-dark); }

/* ─────────────────────────────────────────────────────
   v15 — Boxed layout profesores: header sticky + main + footer
   Fondo gris exterior, caja blanca centrada como Mercado
   ───────────────────────────────────────────────────── */
html{
  background:#f2f0eb;
}

body{
  background:#f2f0eb;
}

.prof-boxed{
  width:min(100%, 1280px);
  min-height:100vh;
  margin:0 auto;
  background:#fff;
}

.site-header-sticky{
  width:100%;
  background:#fff;
}

.site-topbar-utility,
.site-header-main{
  max-width:none;
  width:100%;
}

.container{
  max-width:1280px;
}

.footer{
  background:#fff;
}

@media(max-width:640px){
  .prof-boxed{
    width:100%;
  }

  .site-header-main{
    flex-wrap:wrap;
    gap:14px;
  }

  .site-nav{
    width:100%;
    flex-wrap:wrap;
    gap:14px;
  }

  .site-nav-session{
    width:100%;
    padding-left:0;
    border-left:0;
    border-top:1px solid var(--line);
    padding-top:12px;
    flex-wrap:wrap;
  }
}

/* ─────────────────────────────────────────────────────
   v15.1 — Ajuste de aire superior bajo el header
   Reduce el espacio entre el header sticky y el inicio del directorio
   ───────────────────────────────────────────────────── */
.prof-boxed .container{
  margin-top:0;
}

.prof-boxed .home-hero{
  padding-top:30px;
}

@media(max-width:760px){
  .prof-boxed .home-hero{
    padding-top:24px;
  }
}

/* ─────────────────────────────────────────────────────
   Avatar con inicial — fallback cuando no hay foto
   ───────────────────────────────────────────────────── */
.avatar-inicial {
  border-radius: 50%;
  background: #854F0B;
  color: #FAEEDA;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'EB Garamond', Georgia, serif;
  font-weight: 600;
  line-height: 1;
  flex-shrink: 0;
}

.avatar-sm {
  width: 100%;
  aspect-ratio: 1;
  font-size: clamp(1.8rem, 6vw, 3rem);
}

.avatar-md {
  width: 100px;
  height: 100px;
  font-size: 2.2rem;
}

.avatar-lg {
  width: 140px;
  height: 140px;
  font-size: 3.5rem;
}
