/* ============================================================
   TABERNA 7 · Estilos de las entradas del blog
   Solo se carga en las páginas cuyo contenido usa la clase .t7-post
   ============================================================ */

.t7-post {
  --t7-vino: #5b1517;       /* burdeos de la marca */
  --t7-vino-oscuro: #2a0a0b;
  --t7-crema: #fdecd0;      /* crema de la cabecera */
  --t7-crema-suave: #fdf7ec;
  --t7-madera: #c9a06a;
  --t7-aceituna: #66702a;
  --t7-mar: #3d5560;
  --t7-guindilla: #b23a1e;
  --t7-linea: #ead9bd;
}

/* Ritmo del texto */
.t7-post p { margin: 0 0 1.25em; line-height: 1.85; }
.t7-post h2 { margin: 2.6em 0 .8em; line-height: 1.2; scroll-margin-top: 130px; }
.t7-post h2::before { content: ""; display: block; width: 56px; height: 4px; background: var(--t7-vino); margin-bottom: .7em; border-radius: 2px; }
.t7-post h3 { margin: 2em 0 .5em; line-height: 1.3; color: var(--t7-vino); scroll-margin-top: 130px; }
.t7-post a { color: var(--t7-vino); text-underline-offset: 3px; }
.t7-post a:focus-visible, .t7-post summary:focus-visible { outline: 2px solid var(--t7-vino); outline-offset: 3px; }
html { scroll-behavior: smooth; }

/* Entradilla */
.t7-post .t7-entradilla { font-size: 1.22em; line-height: 1.6; font-style: italic; color: var(--t7-vino-oscuro); }

/* Resumen: bloque oscuro, como la cabecera del post */
.t7-post .t7-resumen {
  background: linear-gradient(135deg, var(--t7-vino) 0%, var(--t7-vino-oscuro) 100%);
  color: var(--t7-crema-suave);
  padding: 1.7em 1.9em;
  margin: 0 0 1.4em;
  border-radius: 2px;
}
.t7-post .t7-resumen p { line-height: 1.7; }
.t7-post .t7-resumen strong { color: #fff; }
.t7-post .t7-resumen-titulo { font-size: 1.3em; font-weight: 700; color: var(--t7-crema) !important; margin: 0 0 .5em !important; }
.t7-post .t7-resumen-datos { list-style: none; margin: 1em 0 0 !important; padding: 1em 0 0 !important; border-top: 1px solid rgba(253, 236, 208, .25); font-size: .93em; line-height: 1.6; }
.t7-post .t7-resumen-datos li { margin-bottom: .35em; }
.t7-post .t7-resumen-datos strong { color: var(--t7-crema); }

/* Índice plegable */
.t7-post .t7-indice { background: var(--t7-crema-suave); border: 1px solid var(--t7-linea); border-radius: 2px; margin: 0 0 2.4em; padding: 0; }
.t7-post .t7-indice summary { cursor: pointer; list-style: none; padding: 1em 1.4em; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.t7-post .t7-indice summary::-webkit-details-marker { display: none; }
.t7-post .t7-indice summary::after { content: "+"; font-size: 1.4em; line-height: 1; color: var(--t7-vino); }
.t7-post .t7-indice[open] summary::after { content: "−"; }
.t7-post .t7-indice ol { margin: 0; padding: 0 1.4em 1.2em 2.8em; line-height: 1.7; }
.t7-post .t7-indice li::marker { color: var(--t7-vino); font-weight: 700; }
.t7-post .t7-indice a { color: inherit; text-decoration: none; }
.t7-post .t7-indice a:hover { color: var(--t7-vino); text-decoration: underline; }

/* Cita destacada */
.t7-post .t7-cita { border: 0; padding: 1.4em 0; margin: 2.2em 0; text-align: center; }
.t7-post .t7-cita blockquote { margin: 0; padding: 0; border: 0; }
.t7-post .t7-cita p { font-size: 1.6em; line-height: 1.35; font-style: italic; color: var(--t7-vino); margin: 0 0 .5em; }
.t7-post .t7-cita cite { font-size: .85rem; font-style: normal; color: #6b5a45; text-transform: none; }

/* La brocheta: los tres pilares ensartados en un palillo */
.t7-post .t7-brocheta { position: relative; margin: 2.2em 0 2.6em; gap: 1em; }
.t7-post .t7-brocheta::before {
  content: ""; position: absolute; left: -3%; right: -5%; top: 34px; height: 6px;
  background: var(--t7-madera);
  clip-path: polygon(0 0, 97% 0, 100% 50%, 97% 100%, 0 100%);
}
.t7-post .t7-brocheta > .wp-block-column { position: relative; text-align: center; }
.t7-post .t7-brocheta > .wp-block-column::before {
  content: ""; display: block; width: 74px; height: 74px; margin: 0 auto .9em; border-radius: 50%;
  background: var(--t7-bola);
  box-shadow: inset -7px -9px 0 rgba(0, 0, 0, .18), inset 6px 6px 0 rgba(255, 255, 255, .12);
}
.t7-post .t7-brocheta > .wp-block-column:nth-child(1) { --t7-bola: var(--t7-aceituna); }
.t7-post .t7-brocheta > .wp-block-column:nth-child(2) { --t7-bola: var(--t7-mar); }
.t7-post .t7-brocheta > .wp-block-column:nth-child(3) { --t7-bola: var(--t7-guindilla); }
.t7-post .t7-brocheta p { margin: 0; line-height: 1.5; font-size: .92em; color: #5e5040; }
.t7-post .t7-brocheta .t7-bocado-nombre { font-size: 1.1em; font-weight: 700; margin-bottom: .2em; }
.t7-post .t7-brocheta .t7-bocado-nombre a { text-decoration: none; }
.t7-post .t7-brocheta .t7-bocado-nombre a:hover { text-decoration: underline; }

/* Checklist: cómo reconocer una buena gilda */
.t7-post .t7-checklist { border: 2px dashed var(--t7-aceituna); padding: 1.4em 1.7em; margin: 2.4em 0; border-radius: 2px; }
.t7-post .t7-checklist h3 { margin-top: 0; color: var(--t7-aceituna); }
.t7-post .t7-checklist ul { list-style: none; margin: 0; padding: 0; }
.t7-post .t7-checklist li { position: relative; padding-left: 1.8em; margin-bottom: .55em; line-height: 1.55; }
.t7-post .t7-checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; font-weight: 700; color: var(--t7-aceituna); }

/* Tabla de maridaje */
.t7-post .t7-tabla { margin: 1.6em 0 2em; overflow-x: auto; }
.t7-post .t7-tabla table { width: 100%; border-collapse: collapse; font-size: .95em; line-height: 1.5; }
.t7-post .t7-tabla th { background: var(--t7-vino); color: var(--t7-crema); text-align: left; padding: .8em 1em; border: 0; }
.t7-post .t7-tabla td { padding: .8em 1em; border: 0; border-bottom: 1px solid var(--t7-linea); vertical-align: top; }
.t7-post .t7-tabla tbody tr:nth-child(odd) td { background: var(--t7-crema-suave); }

/* Imágenes */
.t7-post figure.wp-block-image { margin: 2.2em 0; }
.t7-post figure.wp-block-image img { border-radius: 2px; }
.t7-post figcaption { font-size: .85rem; color: #7a6a55; font-style: italic; text-align: left; margin-top: .5em; }

/* Frase firma */
.t7-post .t7-firma { text-align: center; font-size: 1.2em; line-height: 1.5; color: var(--t7-vino); font-weight: 700; padding: 1.2em 0; margin: 2em 0; border-top: 1px solid var(--t7-linea); border-bottom: 1px solid var(--t7-linea); }

/* Ficha de visita */
.t7-post .t7-visita { background: var(--t7-crema); padding: 1.6em 1.8em; margin: 2.4em 0; border-radius: 2px; }
.t7-post .t7-visita-titulo { font-size: 1.3em; font-weight: 700; color: var(--t7-vino); margin: 0 0 .6em !important; }
.t7-post .t7-visita p { line-height: 1.8; }
.t7-post .t7-visita .wp-block-buttons { margin: .4em 0 0; }
.t7-post .t7-visita .wp-block-button__link { background: var(--t7-vino); color: var(--t7-crema); border-radius: 0; padding: .8em 1.6em; }
.t7-post .t7-visita .wp-block-button__link:hover { background: var(--t7-vino-oscuro); }

/* Ficha de visita: dos locales y horario */
.t7-post .t7-locales { gap: 1em; margin: 0 0 1.4em; }
.t7-post .t7-locales > .wp-block-column { background: #fff; padding: 1.1em 1.3em; border-top: 3px solid var(--t7-vino); }
.t7-post .t7-locales p { margin: 0 0 .35em; line-height: 1.55; }
.t7-post .t7-locales p:last-child { margin: .6em 0 0; }
.t7-post .t7-local-nombre { font-weight: 700; font-size: 1.05em; color: var(--t7-vino); }
.t7-post .t7-horario-titulo { font-weight: 700; color: var(--t7-vino); margin: 0 0 .3em !important; }
.t7-post .t7-horario { list-style: none; margin: 0 0 1.5em; padding: 0; max-width: 420px; }
.t7-post .t7-horario li { display: flex; justify-content: space-between; gap: 1em; padding: .4em 0; margin: 0; border-bottom: 1px dotted var(--t7-madera); line-height: 1.4; }
.t7-post .t7-horario li:last-child { border-bottom: 0; }

/* Preguntas frecuentes */
.t7-post .t7-faq { background: var(--t7-crema-suave); border-left: 3px solid var(--t7-vino); margin: 0 0 .7em; padding: 0; }
.t7-post .t7-faq summary { cursor: pointer; list-style: none; position: relative; padding: 1em 2.8em 1em 1.2em; font-weight: 700; line-height: 1.45; }
.t7-post .t7-faq summary::-webkit-details-marker { display: none; }
.t7-post .t7-faq summary::after { content: "+"; position: absolute; right: 1em; top: .8em; font-size: 1.4em; color: var(--t7-vino); }
.t7-post .t7-faq[open] summary::after { content: "−"; }
.t7-post .t7-faq p { padding: 0 1.2em 1.1em; margin: 0; }

/* Móvil */
@media (max-width: 781px) {
  .t7-post .t7-resumen { padding: 1.3em 1.2em; }
  .t7-post .t7-brocheta { gap: 1.3em; }
  .t7-post .t7-brocheta::before {
    left: 34px; right: auto; top: -10px; bottom: -16px; width: 6px; height: auto;
    clip-path: polygon(0 0, 100% 0, 100% 96%, 50% 100%, 0 96%);
  }
  .t7-post .t7-brocheta > .wp-block-column { text-align: left; padding-left: 92px; min-height: 74px; display: flex; flex-direction: column; justify-content: center; }
  .t7-post .t7-brocheta > .wp-block-column::before { position: absolute; left: 0; top: 0; margin: 0; }
  .t7-post .t7-cita p { font-size: 1.35em; }
  .t7-post .t7-checklist { padding: 1.2em; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
