/* =========================================================
   CLUB DEL 5% — APP.CSS (v0.2.x)
   - Mobile first
   - Dark premium UI
   - Flat gold borders for dark cards
   - Gutenberg buttons styled
   - Prose content has NO borders
   ========================================================= */

/* =========================
   0) Variables & Reset
   ========================= */
:root{
  --c5-gold:#C9A24D;
  --c5-black:#0F0F0F;
  --c5-dark:#1A1A1A;
  --c5-gray:#BFBFBF;

  --c5-text:#EDEDED;
  --c5-text-dim: rgba(237,237,237,.75);

  --c5-card: rgba(255,255,255,.03);
  --c5-shadow: 0 18px 40px rgba(0,0,0,.45);

  --c5-radius-lg: 20px;

  /* Flat borders */
  --c5-border-gold: rgba(201,162,77,.35);
  --c5-border-soft: rgba(255,255,255,.08);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; height:auto; display:block; }

/* =========================
   1) Body / Background
   ========================= */
body.c5{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(1000px 600px at 60% -10%, rgba(201,162,77,.14), transparent 60%),
    radial-gradient(900px 700px at -10% 30%, rgba(255,255,255,.06), transparent 60%),
    var(--c5-black);
  color: var(--c5-text);
}

/* =========================
   2) Layout Shell
   ========================= */
.c5-shell{ min-height:100vh; display:flex; }
.c5-main{ flex:1; display:flex; flex-direction:column; min-width:0; }
.c5-content{ padding: 14px; padding-bottom: 92px; }

@media (min-width: 980px){
  .c5-content{ padding: 20px 24px 24px; padding-bottom: 24px; }
}

/* =========================
   3) Topbar
   ========================= */
.c5-topbar{
  position: sticky; top:0; z-index:10;
  display:flex; justify-content:space-between; align-items:center;
  padding: 14px 14px 10px;
  background: linear-gradient(to bottom, rgba(15,15,15,.92), rgba(15,15,15,.55));
  border-bottom: 1px solid rgba(255,255,255,.06);
  backdrop-filter: blur(10px);
}
.c5-topbar__brand{ display:flex; align-items:baseline; gap:10px; }
.c5-brand__mark{ font-weight:700; font-size:22px; color:var(--c5-gold); }
.c5-brand__name{ font-size:12px; letter-spacing:.18em; color:rgba(237,237,237,.78); text-transform:uppercase; }

.c5-iconbtn{
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.02);
  color: var(--c5-text-dim);
  border-radius: 8px;
  padding: 8px 10px;
  cursor:pointer;
}
.c5-only-mobile{ display:inline-flex; }
@media (min-width: 980px){ .c5-only-mobile{ display:none; } }

.c5-user{ display:flex; align-items:center; gap:10px; color: var(--c5-text-dim); }
.c5-user__name{ font-weight:600; font-size:13px; }
.c5-user__avatar img{ border-radius:999px; border:1px solid rgba(255,255,255,.10); }

/* Logo del header (evita “600px”) */
.c5-topbar__brand .custom-logo{
  width:auto;
  max-width:160px;
  height:32px;
  object-fit:contain;
  display:block;
}

/* =========================
   4) Typography & Page
   ========================= */
.c5-page{ max-width:1600px; }
.c5-pagehead{ margin-bottom: 40px; }

/* Imagen de cabecera en la Home — máximo 650px */
.c5-home-header-img{
  margin-bottom: 16px;
  width: 100%;
  max-width: 650px;
  border-radius: var(--c5-radius-lg);
  overflow: hidden;
}
.c5-home-header-img img{
  width: 100%;
  height: auto;
  display: block;
}

.c5-h1{
  font-size: clamp(36px, 4vw, 65px);
  font-weight: 900;
  margin: 20px 0 10px;
  letter-spacing: .02em;
  text-transform: uppercase;
  display: inline-block;
  background: linear-gradient(90deg, rgba(201,162,77,.62) 0%, #C9A24D 30%, #dbb96a 50%, #C9A24D 70%, rgba(201,162,77,.62) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.05;
  margin: 0 0 10px;
}

/* 40px solo en singles y archives */
.single-c5_entrenamiento .c5-h1,
.single-c5_unit .c5-h1,
.post-type-archive-c5_entrenamiento .c5-h1,
.post-type-archive-c5_session .c5-h1 { margin-bottom: 40px; }

.page-template-page-home .c5-h1{
  font-size: clamp(40px, 8vw, 100px);
}
.page-template-page-home .c5-h2{
  font-size: clamp(16px, 4vw, 32px);
}

/* Gutenberg: aplicar estilos automáticamente a h1/h2/h3 sin clase manual */
.c5-prose h1, .wp-block-heading.has-text-align-left:is(h1),
h1.wp-block-heading { color: var(--c5-gold); font-size: clamp(36px, 6vw, 72px); font-weight: 900; text-transform: uppercase; letter-spacing: .02em; line-height: 1.05; margin: 0 0 10px; }

.c5-prose h2, h2.wp-block-heading { font-size: clamp(15px, 2vw, 24px); font-weight: 300; letter-spacing: .1em; text-transform: uppercase; color: var(--c5-text); margin: 0 0 10px; }

.c5-prose h3, h3.wp-block-heading { font-size: clamp(13px, 1.4vw, 16px); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: rgba(201,162,77,.75); margin: 0 0 10px; }

/* Ocultar título de página en perfil */
.c5-page--perfil .wp-block-heading,
.c5-page--perfil h1,
.c5-page--perfil h2:first-child { display: none; }

.c5-h2{
  font-size: clamp(15px, 2vw, 24px);
  font-weight: 300;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c5-text);
  margin: 0 0 10px;
}
.c5-h2--tight{ margin-bottom:6px; }

.c5-h3{
  font-size: clamp(13px, 1.4vw, 16px);
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(201,162,77,.75);
  margin: 0 0 10px;
}

.c5-muted{ color: rgba(237,237,237,.72); line-height:1.5; }
.c5-small{ font-size:12px; }
.c5-strong{ font-weight:700; }

/* Embeds de Gutenberg (YouTube, Vimeo, etc.) a ancho completo */
.wp-block-embed{
  width: 100%;
  margin: 0 0 16px;
}
.wp-block-embed__wrapper{
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--c5-radius-lg);
  overflow: hidden;
}
.wp-block-embed__wrapper iframe{
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ✅ Prose content: NO border, NO card (solo texto) */
.c5-prose{
  line-height:1.7;
  color: rgba(237,237,237,.82);
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}
.c5-prose p{ margin: 0 0 12px; }
/* Descripción con espacio vertical, sin borde ni card */
.c5-prose--spaced{ padding: 16px 0; }

/* =========================
   5) Cards / Grids / Lists (Flat gold border)
   ========================= */
.c5-card{
  background: rgba(26,26,26,.85);
  border: 3px solid var(--c5-border-gold);
  border-radius: var(--c5-radius-lg);
  box-shadow: var(--c5-shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}

/* Hover lift premium */
.c5-card:hover{
  box-shadow: 0 26px 56px rgba(0,0,0,.6);
  transform: translateY(-2px);
}

.c5-grid{ display:grid; grid-template-columns:1fr; gap:12px; }
@media(min-width:720px){ .c5-grid{ grid-template-columns:1fr 1fr; } }

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

.c5-btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--c5-gold);
  background: var(--c5-gold);
  color: #0F0F0F;
  font-weight:700;
  cursor:pointer;
  transition: background .15s, border-color .15s;
}
.c5-btn:hover{ background: #d4aa57; border-color: #d4aa57; }
.c5-btn--ghost{
  border: 1px solid var(--c5-gold);
  background: var(--c5-gold);
  color: #0F0F0F;
}

.c5-homegrid{ display:grid; grid-template-columns:1fr; gap:14px; }
@media(min-width:860px){ .c5-homegrid{ grid-template-columns:1fr 1fr; } }

/* Home cards (flat gold border) */
.c5-homecard{
  display:flex; gap:14px;
  padding: 14px;
  border-radius: var(--c5-radius-lg);
  background: rgba(26,26,26,.85);
  border: 3px solid var(--c5-border-gold);
  box-shadow: var(--c5-shadow);
}
.c5-homecard__media{
  width: 92px; min-width:92px;
  aspect-ratio: 1/1;
  border-radius: 8px;
  overflow:hidden;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--c5-border-soft);
}
.c5-homecard__media img{
  width:100%; height:100%;
  object-fit:cover; display:block;
}

.c5-cards{ display:grid; gap:12px; }
/* En móvil las cards de sesión se apilan (imagen arriba, texto abajo) */
.c5-card--row{ display:flex; gap:12px; align-items:flex-start; }
@media(max-width:639px){
  .c5-card--row{ flex-direction:column; }
  .c5-card--row .c5-thumb{ width:100%; min-width:0; }
}

.c5-thumb{
  width: 130px; min-width:130px;
  aspect-ratio: 1/1;
  border-radius:16px;
  overflow:hidden;
  border:1px solid var(--c5-border-soft);
  background: rgba(255,255,255,.04);
}
.c5-thumb--wide{ width:100%; min-width:0; aspect-ratio: 1/1; }
.c5-thumb__placeholder{ aspect-ratio: 1/1; background: rgba(255,255,255,.04); }
.c5-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.c5-card__body{ flex:1; min-width:0; }

/* Cards como links — el <a> ocupa todo el área clicable */
a.c5-card{ display:block; color:inherit; }
a.c5-card--row, a.c5-card.c5-card--row{ display:flex; }
a.c5-card:hover{ box-shadow: 0 26px 56px rgba(0,0,0,.6); transform: translateY(-2px); }

.c5-gridcards{ display:grid; gap:12px; grid-template-columns:1fr; }
@media(min-width:640px){ .c5-gridcards{ grid-template-columns: 1fr 1fr; } }
@media(min-width:980px){ .c5-gridcards{ grid-template-columns: 1fr 1fr 1fr; } }

/* Lists (flat gold border) */
.c5-list{ list-style:none; padding:0; margin:0; display:grid; gap:10px; }
.c5-list__link{
  display:flex; justify-content:space-between; align-items:center;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(26,26,26,.85);
  border: 1px solid var(--c5-border-gold);
  box-shadow: var(--c5-shadow);
}
.c5-list__meta{ color: rgba(237,237,237,.55); font-size:12px; }

/* Pagination */
.c5-pagination{ margin-top: 20px; display:flex; flex-wrap:wrap; gap:6px; }
.c5-pagination .page-numbers{
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  color: rgba(237,237,237,.75);
  font-size: 13px;
  font-weight: 600;
  transition: background .15s;
}
.c5-pagination .page-numbers:hover{
  background: rgba(255,255,255,.07);
}
.c5-pagination .current{
  border-color: rgba(201,162,77,.55);
  background: rgba(201,162,77,.10);
  color: var(--c5-gold);
}

/* =========================
   6) Video
   ========================= */
.c5-video{
  border-radius: var(--c5-radius-lg);
  overflow:hidden;
  border: 1px solid var(--c5-border-gold);
  background: rgba(0,0,0,.25);
  box-shadow: var(--c5-shadow);
  margin-bottom: 12px;
}
.c5-video iframe{ width:100%; height:auto; aspect-ratio:16/9; display:block; border:0; }

/* =========================
   7) Sidebar
   ========================= */
.c5-sidebar{
  position: fixed;
  top:0; left:0; bottom:0;
  width: 270px;
  transform: translateX(-110%);
  transition: transform .2s ease;
  z-index: 50;
  background: rgba(15,15,15,.92);
  border-right: 1px solid rgba(255,255,255,.06);
  backdrop-filter: blur(10px);
}
.c5-sidebar.is-open{ transform: translateX(0); }
@media(min-width:980px){ .c5-sidebar{ position: sticky; transform:none; } }

.c5-sidebar__inner{ height:100%; display:flex; flex-direction:column; padding: 16px 14px; }
.c5-sidebar__logo{ display:block; padding: 6px 8px 14px; border-bottom:1px solid rgba(255,255,255,.06); margin-bottom: 12px; }
.c5-sidebar__logo img{ max-height: 52px; }

.c5-nav{ list-style:none; padding:0; margin:0; display:grid; gap:6px; }
.c5-nav__link{
  display:flex; align-items:center; gap:10px;
  padding: 10px 10px;
  border-radius: 8px;
  color: rgba(237,237,237,.75);
  border: 1px solid transparent;
}
.c5-nav__link:hover{ background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.06); }
.c5-nav__link.is-active{
  background: rgba(201,162,77,.08);
  border-color: rgba(201,162,77,.3);
  color: var(--c5-gold);
}
.c5-nav__link.is-active .c5-nav__icon{ color: var(--c5-gold); }
.c5-nav__icon{ display:inline-flex; color: rgba(237,237,237,.75); }
.c5-nav__label{ font-weight:600; }

.c5-sidebar__footer{ margin-top:auto; padding-top: 12px; border-top:1px solid rgba(255,255,255,.06); }
.c5-ghostbtn{
  display:inline-flex;
  padding:10px 12px;
  border-radius: 8px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  color: rgba(237,237,237,.75);
}

/* =========================
   8) Bottom Navigation (mobile)
   ========================= */
.c5-bottomnav{
  position: fixed; left:0; right:0; bottom:0; z-index: 40;
  display:flex; justify-content:space-around; align-items:center;
  padding: 10px 10px 8px;
  background: rgba(15,15,15,.92);
  border-top: 1px solid rgba(255,255,255,.06);
  backdrop-filter: blur(10px);
}
@media(min-width:980px){ .c5-bottomnav{ display:none; } }

.c5-bottomnav__link{ display:flex; flex-direction:column; align-items:center; gap:4px; color: rgba(237,237,237,.72); }
.c5-bottomnav__link.is-active{ color: var(--c5-gold); }
.c5-bottomnav__label{ font-size:11px; font-weight:600; }

/* Logo en la barra de navegación móvil */
.c5-bottomnav__logo{
  display:flex; align-items:center; justify-content:center;
  padding: 4px 6px;
}
.c5-bottomnav__logo img{
  max-height: 50px;
  width: auto;
  display:block;
  object-fit:contain;
}

/* =========================
   9) Chat "Tino Virtual"
   Diseño de burbujas tipo mensajería.
   IA: izquierda con avatar. Usuario: derecha con gold tint.
   ========================= */
.c5-chat{
  margin-top: 20px;
  border-radius: var(--c5-radius-lg);
  background: rgba(20,20,20,.9);
  border: 1px solid var(--c5-border-gold);
  box-shadow: var(--c5-shadow);
  overflow: hidden;
  /* Altura fija: log crece dentro y el formulario no se mueve */
  display: flex;
  flex-direction: column;
  max-height: min(580px, 78vh);
}

/* Cabecera con identidad de Tino Virtual */
.c5-chat__head{
  display:flex; justify-content:space-between; align-items:center;
  padding: 14px 16px;
  background: rgba(0,0,0,.25);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.c5-chat__identity{ display:flex; align-items:center; gap:10px; }
.c5-chat__avatar{
  width: 38px; height: 38px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid var(--c5-gold);
  flex-shrink: 0;
}
.c5-chat__name{ font-weight:700; font-size:14px; color: var(--c5-text); }

/* Área de mensajes: ocupa el espacio disponible dentro del chat */
.c5-chat__log{
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 120px;
  overflow-y: auto;
  padding: 16px;
  scroll-behavior: smooth;
}

/* Burbujas de mensajes */
.c5-bubble{
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 82%;
}
.c5-bubble--ai{ align-self: flex-start; }
.c5-bubble--user{ align-self: flex-end; flex-direction: row-reverse; }

/* Avatar junto a la burbuja de la IA */
.c5-bubble__avatar{
  width: 26px; height: 26px;
  border-radius: 999px;
  object-fit: cover;
  border: 1.5px solid rgba(201,162,77,.5);
  flex-shrink: 0;
}

/* Texto de la burbuja */
.c5-bubble__text{
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--c5-text);
  /* Preserva saltos de línea en las respuestas de la IA */
  white-space: pre-wrap;
}
.c5-bubble--ai .c5-bubble__text{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-bottom-left-radius: 4px;
}
.c5-bubble--user .c5-bubble__text{
  background: rgba(201,162,77,.12);
  border: 1px solid rgba(201,162,77,.28);
  border-bottom-right-radius: 4px;
}

/* Indicador de escritura: puntos animados */
.c5-typing-dots{
  display: flex; gap: 5px; align-items: center;
  padding: 2px 0;
}
.c5-typing-dots span{
  width: 7px; height: 7px;
  border-radius: 999px;
  background: rgba(237,237,237,.35);
  animation: c5DotPulse 1.3s infinite ease-in-out;
}
.c5-typing-dots span:nth-child(2){ animation-delay: .2s; }
.c5-typing-dots span:nth-child(3){ animation-delay: .4s; }
@keyframes c5DotPulse{
  0%, 80%, 100%{ transform:scale(1); opacity:.35; }
  40%{ transform:scale(1.4); opacity:1; }
}

/* Formulario de envío: anclado al fondo del chat */
.c5-chat__form{
  display: flex;
  flex-shrink: 0;
  /* padding-right mayor para que el botón no quede recortado por el border-radius del contenedor */
  padding: 12px 14px 12px 12px;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,.06);
  background: rgba(0,0,0,.15);
}
.c5-chat__input{
  flex: 1;
  min-width: 0;
  padding: 11px 12px;
  border-radius: 24px 0 0 24px;
  border: 1px solid rgba(255,255,255,.12);
  border-right: none;
  background: rgba(255,255,255,.04);
  color: var(--c5-text);
  /* 16px mínimo para evitar el zoom automático de iOS Safari en focus */
  font-size: 16px;
  font-family: inherit;
  outline: none;
  transition: border-color .15s;
}
.c5-chat__input:focus{ border-color: rgba(201,162,77,.5); }
.c5-chat__input:disabled{ opacity: .5; }
.c5-chat__send{
  display: inline-flex; align-items:center; justify-content:center;
  flex-shrink: 0;
  width: 48px;
  border-radius: 0 24px 24px 0;
  border: 1px solid var(--c5-gold);
  background: var(--c5-gold);
  color: #0F0F0F;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
}
.c5-chat__send:hover{ background: #d4aa57; }

.c5-chat__mic{
  display: inline-flex; align-items:center; justify-content:center;
  flex-shrink: 0;
  width: 40px;
  border: 1px solid rgba(255,255,255,.12);
  border-left: none;
  border-right: none;
  background: rgba(255,255,255,.04);
  color: var(--c5-gray);
  cursor: pointer;
  transition: color .15s, background .15s;
}
.c5-chat__mic:hover{ color: var(--c5-text); }
.c5-chat__mic.is-recording{
  color: #ef4444;
  background: rgba(239,68,68,.1);
  animation: c5-mic-pulse 1s ease-in-out infinite;
}
@keyframes c5-mic-pulse{
  0%,100%{ opacity:1; } 50%{ opacity:.5; }
}

/* Botón reset del chat */
.c5-chat__resetbtn{
  display: inline-flex; align-items:center; justify-content:center;
  padding: 6px;
  border: 1px solid transparent;
  border-radius: 50%;
  background: none;
  color: rgba(255,255,255,.3);
  cursor: pointer;
  transition: color .15s, border-color .15s;
}
.c5-chat__resetbtn:hover{ color: #e07070; }

/* Botón speaker del header (toggle TTS) */
.c5-chat__voicetoggle{
  display: inline-flex; align-items:center; justify-content:center;
  padding: 6px;
  border: 1px solid transparent;
  border-radius: 50%;
  background: none;
  color: rgba(255,255,255,.3);
  cursor: pointer;
  transition: color .15s, border-color .15s;
}
.c5-chat__voicetoggle:hover{ color: var(--c5-text); }
.c5-chat__voicetoggle.is-active{
  color: var(--c5-gold);
  border-color: rgba(201,162,77,.4);
}

/* =========================
   10) Gutenberg Buttons (within prose)
   - Esto hace que los botones del editor mantengan el look del club
   ========================= */

/* Default WP button block */
.c5 .wp-block-button__link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--c5-gold);
  background: var(--c5-gold);
  color: #0F0F0F !important;
  font-weight:700;
  text-decoration:none !important;
  box-shadow: none;
  transition: background .15s;
}
.c5 .wp-block-button__link:hover{ background: #d4aa57; border-color: #d4aa57; }

/* Custom class: c5-gbtn (para usar en Gutenberg en “Clase CSS adicional”) */
.c5 .c5-gbtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--c5-gold);
  background: var(--c5-gold);
  color: #0F0F0F !important;
  font-weight:700;
  text-decoration:none !important;
  transition: background .15s;
}
.c5 .c5-gbtn:hover{ background: #d4aa57; }

/* =========================
   11) Login & Registro
   ========================= */
body.c5-login{ display:block; }

/* H1 más pequeño en páginas de acceso, login y registro */
body.c5-login .c5-h1,
.page-template-page-registro-php .c5-h1,
.page-template-page-acceso-php .c5-h1,
.c5-login__card .c5-h1 { font-size: 50px; margin-bottom: 16px; }
.c5-login__wrap{ min-height:100vh; display:flex; align-items:center; justify-content:center; padding: 24px; }

.c5-login__card{
  width: min(420px, 100%);
  border-radius: var(--c5-radius-lg);
  background: rgba(26,26,26,.85);
  border: 1px solid var(--c5-border-gold);
  box-shadow: var(--c5-shadow);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.c5-login__brand{ display:flex; justify-content:center; margin-bottom: 20px; }
.c5-login__brand img{ max-height: 44px; }

/* WP login form */
.c5-login__form #loginform{ display:grid; gap:14px; margin:0; }
.c5-login__form #loginform > p,
.c5-login__form .user-pass-wrap{ margin:0; }

.c5-login__form label{
  display:block;
  font-size:13px;
  font-weight:500;
  color: rgba(237,237,237,.72);
  margin-bottom: 6px;
}
.c5-login__form input[type="text"],
.c5-login__form input[type="password"]{
  width:100%;
  padding: 12px 16px;
  border-radius: 8px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  color: var(--c5-text);
  font-size:14px;
  font-family:inherit;
  outline:none;
  box-shadow:none;
  transition: border-color .15s;
}
.c5-login__form input[type="text"]:focus,
.c5-login__form input[type="password"]:focus{
  border-color: rgba(201,162,77,.55);
}
/* Show/hide password button (WP 5.9+) */
.c5-login__form .wp-pwd{ display:flex; align-items:center; gap:8px; }
.c5-login__form .wp-pwd input{ flex:1; }
.c5-login__form .wp-hide-pw{
  background:transparent;
  border:1px solid rgba(255,255,255,.1);
  color:rgba(237,237,237,.55);
  border-radius:8px;
  padding: 8px 12px;
  cursor:pointer;
  flex-shrink:0;
  line-height:1;
}
/* Remember me */
.c5-login__form .forgetmenot label{
  display:flex;
  align-items:center;
  gap:8px;
  cursor:pointer;
  margin-bottom:0;
}
.c5-login__form input[type="checkbox"]{ accent-color:var(--c5-gold); width:15px; height:15px; }
/* Submit */
.c5-login__form .submit{ margin:0; }
.c5-login__form input[type="submit"]{
  width:100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--c5-gold);
  background: var(--c5-gold);
  color: #0F0F0F;
  font-weight:700;
  font-size:14px;
  font-family:inherit;
  cursor:pointer;
  transition: background .15s, border-color .15s;
}
.c5-login__form input[type="submit"]:hover{ background: #d4aa57; border-color: #d4aa57; }

.c5-login__links{ margin-top: 12px; text-align:center; font-size:13px; }
.c5-link{ color: rgba(201,162,77,.95); }

/* Registro — form fields */
.c5-form{ display:grid; gap:14px; }
.c5-form__field{ display:grid; gap:6px; }
.c5-label{ font-size:13px; font-weight:500; color:rgba(237,237,237,.72); }
.c5-input{
  width:100%;
  padding: 12px 16px;
  border-radius: 8px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  color: var(--c5-text);
  font-size:14px;
  font-family:inherit;
  outline:none;
  transition: border-color .15s;
}
.c5-input:focus{ border-color: rgba(201,162,77,.55); }

/* Alerts */
.c5-alert{
  padding: 10px 16px;
  border-radius: 8px;
  font-size:13px;
  margin-bottom: 4px;
}
.c5-alert--error{
  background: rgba(248,113,113,.08);
  border:1px solid rgba(248,113,113,.28);
  color: #fca5a5;
}

/* =========================
   12) Página de producto / ventas
   ========================= */
.c5-product-page{
  max-width: 680px;
  margin: 0 auto;
  padding-bottom: 40px;
  position: relative; /* necesario para el gradiente decorativo */
}

/* Gradiente dorado decorativo de fondo en la zona hero */
.c5-product-page::before{
  content: '';
  position: absolute;
  top: -40px; left: 50%;
  transform: translateX(-50%);
  width: 500px; height: 220px;
  background: radial-gradient(ellipse at center, rgba(201,162,77,.12), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.c5-product-hero{
  text-align: center;
  padding: 40px 0 32px;
  position: relative;
  z-index: 1;
}
.c5-product-hero__label{
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--c5-gold);
  margin-bottom: 12px;
}
.c5-product-hero__title{
  font-size: clamp(26px, 5vw, 40px);
  font-weight: 700;
  margin: 0 0 20px;
  line-height: 1.15;
  color: var(--c5-text);
}
.c5-product-hero__bar{
  width: 48px;
  height: 2px;
  background: var(--c5-gold);
  margin: 0 auto;
  border-radius: 2px;
  opacity: .7;
}

.c5-product-body{
  background: rgba(26,26,26,.85);
  border: 1px solid var(--c5-border-gold);
  border-radius: var(--c5-radius-lg);
  box-shadow: var(--c5-shadow);
  padding: 24px;
}

/* =========================
   13) Units Grid (course page)
   ========================= */
.c5-units-grid{
  display:grid;
  gap:16px;
}
@media(min-width:768px){
  .c5-units-grid{ grid-template-columns:repeat(2,1fr); }
}
@media(min-width:980px){
  .c5-units-grid{ grid-template-columns:repeat(3,1fr); }
}

/* Cards de unidad: sin padding, border-radius 20px */
.c5-units-grid .c5-card{
  padding: 0 !important;
  border-radius: 20px !important;
  overflow: hidden;
}

/* Cards con padding explícito (ej: perfil) */
.c5-card--padded{
  padding: 14px !important;
}

/* Thumbnail de unidad dentro de la grid del entrenamiento */
.c5-unit-thumb{
  display:block;
  aspect-ratio: 1/1;
  border-radius: 0;
  overflow:hidden;
  background: rgba(255,255,255,.04);
  margin-bottom: 0;
}
.c5-unit-thumb img{
  width:100%; height:100%;
  object-fit:cover; display:block;
}

/* =========================
   14) Checkout (SureCart)
   ========================= */
.c5-checkout-page{
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: 40px;
}

/* Plantilla SureCart blank */
.page-template-template-surecart-blank .wp-block-surecart-column img {
  display: none;
}

sc-order-coupon-form {
  display: none !important;
}


body.page-template-template-surecart-blank,
body.page-template-template-surecart-blank .wp-site-blocks,
body.page-template-template-surecart-blank .wp-block-group.alignfull {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background-color: #0F0F0F !important;
  margin: 0 !important;
  padding: 0 !important;
}



/* Botón volver (single entrenamiento / unidad) */
.c5-back-link{
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(237,237,237,.55);
  margin-bottom: 16px;
  transition: color .15s;
}
.c5-back-link:hover{ color: var(--c5-gold); }

/* Honeypot anti-bot (visualmente oculto pero accesible al DOM) */
.c5-hp{
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  tab-index: -1;
}

/* =========================
   15) Breadcrumb (topbar)
   ========================= */
.c5-breadcrumb{
  display:flex; align-items:center; gap:6px;
  font-size: 12px;
  color: rgba(237,237,237,.5);
  min-width: 0; /* permite truncar en flex */
}
.c5-breadcrumb a{
  color: rgba(237,237,237,.5);
  white-space: nowrap;
  transition: color .15s;
}
.c5-breadcrumb a:hover{ color: var(--c5-gold); }
.c5-breadcrumb__sep{ opacity:.4; flex-shrink:0; }
/* El título actual se trunca si es muy largo */
.c5-breadcrumb__current{
  color: rgba(237,237,237,.8);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =========================
   15) Empty states
   ========================= */
.c5-empty{
  text-align: center;
  padding: 48px 20px;
  color: rgba(237,237,237,.45);
}
.c5-empty__icon{
  display:flex; justify-content:center;
  margin-bottom: 14px;
  opacity: .35;
}
.c5-empty__text{
  font-size: 14px;
  line-height: 1.5;
}