/* ==========================================================================
   Julio Ribes — components.css
   Botones, listas, bloques a dos columnas, libros, reseñas, tarjetas, contacto, horario
   ========================================================================== */

/* --------------------------------------------------------------------------
   4. Botones
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.25s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.btn--sm {
  min-height: 42px;
  padding: 10px 18px;
  font-size: 13px;
}

.btn--dark {
  background: var(--dark);
  color: var(--cream);
}

.btn--dark:hover {
  background: #2a2823;
}

.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn--outline:hover {
  border-color: var(--ink);
}

.btn--outline-light {
  background: transparent;
  color: var(--cream);
  border-color: var(--line-dark);
}

.btn--outline-light:hover {
  border-color: var(--cream);
}

.btn--gold {
  background: var(--gold);
  color: var(--dark);
}

.btn--gold:hover {
  background: #d49c3a;
}

.btn--light {
  background: var(--cream);
  color: var(--dark);
}

.btn--red {
  background: var(--red);
  color: #fff;
}

.btn--red:hover {
  background: #d4453a;
}

.btn--block {
  width: 100%;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--gold);
  transition: gap 0.25s;
}

.link-arrow:hover {
  gap: 12px;
}

.link-arrow svg {
  width: 14px;
  height: 14px;
}

.link-gold {
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  line-height: 1.35;
}

.link-gold svg {
  width: 12px;
  height: 12px;
  flex: none;
  margin-top: 2px;
}

.link-gold:hover {
  text-decoration: underline;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Iconos de línea reutilizables */
.icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --------------------------------------------------------------------------
   8. Listas numeradas (universo, recorrido, formación)
   -------------------------------------------------------------------------- */
.index-list {
  margin-top: 56px;
  border-top: 1px solid var(--line-dark);
}

.index-list__item {
  display: grid;
  grid-template-columns: 130px 1fr 1fr 40px;
  align-items: center;
  gap: 24px;
  padding-block: 40px;
  border-bottom: 1px solid var(--line-dark);
  transition: background-color 0.3s;
}

.index-list__item:hover {
  background: rgba(255, 255, 255, 0.02);
}

.index-list__num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 40px;
  color: var(--gold);
}

.index-list__title {
  font-size: clamp(24px, 2.4vw, 30px);
  color: var(--cream);
}

.index-list__desc {
  font-size: 14px;
  color: var(--muted-dark);
}

.index-list__links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  margin-top: 14px;
}

.index-list__arrow {
  justify-self: end;
  color: var(--gold);
  transition: transform 0.3s var(--ease);
}

.index-list__item:hover .index-list__arrow {
  transform: translate(3px, -3px);
}

.index-list__arrow .icon {
  width: 16px;
  height: 16px;
}

/* Recorrido (fondo claro) */
.steps {
  margin-top: 48px;
}

.step {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  align-items: center;
  gap: 24px;
  padding-block: 40px;
  border-bottom: 1px solid var(--line);
}

.step__title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 26px;
}

.step__title i {
  font-style: italic;
  font-size: 22px;
  color: var(--gold);
}

.step__desc {
  font-size: 15px;
}

/* Lista corta de primera visita */
.visit-list li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 18px;
  font-size: 15px;
}

.visit-list i {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--gold);
}

/* --------------------------------------------------------------------------
   9. Bloques a dos columnas (texto + imagen)
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
}

.split--reverse > :first-child {
  order: 2;
}

.split__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.split__media--tall img {
  aspect-ratio: 3 / 4;
}

/* Foto vertical de poca resolución: marco estrecho para no ampliarla de más */
.split__media--compact {
  justify-self: end;
  width: 100%;
  max-width: 400px;
}

.split__media--compact img {
  aspect-ratio: 4 / 5;
  object-position: center 60%;
}

.split__body .btn-group {
  margin-top: 32px;
}

.split__body .lead {
  margin-top: 16px;
}

.split__body .link-arrow {
  margin-top: 28px;
}

.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 32px;
  margin-top: 28px;
  font-size: 14px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-list li::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--gold);
}

/* Mosaico del centro */
.mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
}

.mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mosaic__tall {
  grid-row: 1 / 3;
}

.mosaic__tall img {
  aspect-ratio: 3 / 4;
}

.mosaic__square img {
  aspect-ratio: 1 / 1;
}

.services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}

.service {
  padding-top: 20px;
  border-top: 1px solid var(--gold);
}

.service .icon {
  color: var(--gold);
}

.service h3 {
  margin-top: 14px;
  font-size: 20px;
}

.service p {
  margin-top: 8px;
  font-size: 13px;
}

.service strong {
  color: var(--ink);
}

.service .link-gold {
  margin-top: 14px;
  font-size: 13px;
}

.services--wide {
  margin-top: 32px;
}

.services--wide .service p {
  font-size: 14px;
}

/* Texto corrido largo (trayectoria) */
.prose {
  max-width: 920px;
  margin-top: 28px;
  font-size: 14px;
  line-height: 1.7;
}

.prose p + p {
  margin-top: 18px;
}

/* Estantería de portadas (Sobre Julio) */
.shelf__heading {
  margin-top: 40px;
  font-size: 18px;
}

.shelf__heading small {
  font-size: 14px;
  color: var(--muted);
}

.shelf {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 24px;
  margin-top: 20px;
}

.shelf a {
  display: block;
}

.shelf img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  padding: 4px;
  background: #fff;
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease);
}

.shelf a:hover img {
  transform: translateY(-4px);
}

.shelf span {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  color: var(--text);
}

.shelf__actions {
  margin-top: 40px;
}

/* Preguntas frecuentes */
.faq__list {
  margin-top: 36px;
  border-top: 1px solid var(--line);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question:hover {
  color: var(--gold-dark);
}

.faq__icon {
  position: relative;
  flex: none;
  width: 12px;
  height: 12px;
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  background: var(--gold);
  transition: transform 0.3s var(--ease);
}

.faq__icon::before {
  top: 5.5px;
  left: 0;
  width: 12px;
  height: 1px;
}

.faq__icon::after {
  top: 0;
  left: 5.5px;
  width: 1px;
  height: 12px;
}

.faq__item[open] .faq__icon::after {
  transform: rotate(90deg);
}

.faq__answer {
  max-width: 760px;
  padding: 0 0 24px;
  font-size: 15px;
}

.section--dark .faq__list,
.section--dark .faq__item {
  border-color: var(--line-dark);
}

.section--dark .faq__question {
  color: var(--cream);
}

.section--dark .faq__question:hover {
  color: var(--gold);
}

/* --------------------------------------------------------------------------
   11. Libros
   -------------------------------------------------------------------------- */
.books-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.books-preview img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  padding: 4px;
  background: #fff;
  box-shadow: 0 20px 40px -24px rgba(23, 22, 18, 0.35);
  transition: transform 0.4s var(--ease);
}

.books-preview a:hover img {
  transform: translateY(-6px);
}

.tabs {
  display: flex;
  gap: 8px;
  margin-top: 36px;
  border-bottom: 1px solid var(--line);
}

.tab {
  padding: 14px 24px;
  margin-bottom: -1px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.tab:hover {
  color: var(--ink);
}

.tab[aria-selected="true"] {
  color: var(--gold-dark);
  border-bottom-color: var(--gold);
}

.tab-panel[hidden] {
  display: none;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px 32px;
  margin-top: 40px;
}

.book__cover {
  position: relative;
  aspect-ratio: 2 / 3;
  perspective: 1400px;
}

.book__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s var(--ease);
}

.book.is-flipped .book__inner {
  transform: rotateY(180deg);
}

.book__face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  padding: 4px;
  background: #fff;
  border: 1px solid var(--line);
}

.book__face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book__face--back {
  transform: rotateY(180deg);
}

.book__title {
  margin-top: 18px;
  font-size: 18px;
  line-height: 1.3;
  min-height: 2.6em;
}

.book__desc {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.55;
}

.book__actions {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.book__actions .btn {
  min-height: 38px;
  padding: 8px 14px;
  font-size: 12px;
  width: 100%;
}

.btn--flip {
  color: var(--gold-dark);
  border-color: rgba(198, 143, 47, 0.45);
}

.btn--flip:hover {
  border-color: var(--gold);
  background: var(--gold-soft);
}

.btn--flip .icon {
  width: 13px;
  height: 13px;
}

/* --------------------------------------------------------------------------
   12. Testimonios
   -------------------------------------------------------------------------- */
.testimonials {
  padding-block: 112px;
  background: var(--beige);
}

.rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 8px 16px;
  font-size: 13px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.rating-pill strong {
  color: var(--gold-dark);
}

.slider {
  position: relative;
  max-width: 768px;
  margin: 56px auto 0;
}

.slider__viewport {
  overflow: hidden;
}

.slider__track {
  display: flex;
  transition: transform 0.6s var(--ease);
}

.slide {
  flex: 0 0 100%;
  padding: 12px;
}

.quote-card {
  position: relative;
  padding: 56px 48px 40px;
  text-align: center;
  background: var(--cream);
  box-shadow: var(--shadow-card);
}

.quote-card::before {
  content: "\201D";
  position: absolute;
  top: -28px;
  left: 28px;
  font-family: var(--font-display);
  font-size: 110px;
  line-height: 1;
  color: var(--sand);
}

.quote-card blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.4;
  color: var(--ink);
}

.quote-card figcaption {
  margin-top: 28px;
  font-size: 13px;
}

.quote-card figcaption strong {
  display: block;
  font-weight: 600;
  color: var(--ink);
}

.quote-card figcaption span {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.slider__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 32px;
}

.slider__btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--cream);
  color: var(--ink);
  transition: border-color 0.2s, background-color 0.2s;
}

.slider__btn:hover {
  border-color: var(--ink);
}

.slider__btn .icon {
  width: 14px;
  height: 14px;
}

.slider__dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.slider__dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border-radius: 999px;
  background: #cdc7bb;
  transition: width 0.3s var(--ease), background-color 0.3s;
}

.slider__dot[aria-current="true"] {
  width: 28px;
  background: var(--gold);
}

/* --------------------------------------------------------------------------
   15. Tarjetas en rejilla (visión, atajos, reservar)
   -------------------------------------------------------------------------- */
.facets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 48px;
  border: 1px solid var(--line-dark);
}

.facet {
  padding: 32px 24px;
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.facet:nth-child(2n) {
  border-right: 0;
}

.facet:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.facet i {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 26px;
  color: var(--gold);
}

.facet h3 {
  margin-top: 14px;
  font-size: 22px;
}

.facet p {
  margin-top: 10px;
  font-size: 14px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cards--2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--cream);
  transition: border-color 0.3s, transform 0.3s var(--ease);
}

a.card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}

.card .icon {
  color: var(--gold);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 28px;
  background: var(--dark);
  color: var(--cream);
}

.card__icon .icon {
  color: var(--cream);
  width: 20px;
  height: 20px;
}

.card h3 {
  margin-top: 18px;
  font-size: 22px;
}

.card__icon + h3 {
  margin-top: 0;
}

.card p {
  margin-top: 8px;
  font-size: 14px;
}

.card .link-arrow {
  margin-top: 20px;
  border-bottom: 0;
  padding-bottom: 0;
  font-size: 13px;
}

.card .btn {
  margin-top: 24px;
  justify-content: flex-start;
  min-height: 42px;
  font-size: 13px;
}

.card__phone {
  display: inline-block;
  margin-top: 24px;
  font-size: 18px;
  font-weight: 600;
  color: var(--gold-dark);
}

/* Lista de formaciones */
.course-list {
  margin-top: 48px;
}

.course {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  align-items: center;
  gap: 24px;
  padding-block: 44px;
  border-bottom: 1px solid var(--line);
}

.course:first-child {
  border-top: 1px solid var(--line);
}

.course i {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 44px;
  color: var(--gold);
}

.course h3 {
  font-size: 26px;
}

.course p {
  margin-top: 8px;
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   16. Contacto
   -------------------------------------------------------------------------- */
.contact-rows {
  display: grid;
  gap: 14px;
  margin-top: 36px;
}

.contact-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--cream);
}

.contact-row__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  background: var(--dark);
  color: var(--cream);
}

.contact-row__label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-row__value {
  display: block;
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ink);
}

.contact-row__value--sm {
  font-family: var(--font-body);
  font-size: 16px;
}

.contact-row small {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.reserve-bar {
  background: var(--beige);
  padding-block: 40px;
}

.reserve-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px 48px;
  font-size: 14px;
}

.reserve-bar__inner .proof-item strong {
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   19. Horario
   -------------------------------------------------------------------------- */
.hours {
  display: grid;
  grid-template-columns: max-content max-content;
  gap: 4px 20px;
  font-size: 14px;
}

.hours span:nth-child(even) {
  color: var(--ink);
}

.section--dark .hours span:nth-child(even) {
  color: var(--cream);
}

.contact-row .hours {
  margin-top: 6px;
}
