/*
Theme Name: El Fallero Blog
Theme URI: https://fallero.net/blog/
Author: Celebrand
Description: Tema editorial del blog de El Fallero, integrado visualmente con la tienda PrestaShop.
Version: 1.2.0
Text Domain: fallero-blog
*/

:root {
  --fa-navy: #1b2a4e;
  --fa-blue: #075ca8;
  --fa-blue-bright: #0875c9;
  --fa-ink: #17233d;
  --fa-muted: #687387;
  --fa-line: #dfe5ee;
  --fa-soft: #f4f7fb;
  --fa-white: #fff;
  --fa-shadow: 0 16px 42px rgba(27, 42, 78, .12);
  --fa-radius: 14px;
  --fa-container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--fa-ink);
  background: var(--fa-white);
  font-family: Inter, Montserrat, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.admin-bar .fallero-header { top: 32px; }
a { color: var(--fa-blue); text-decoration: none; }
a:hover { color: var(--fa-blue); }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
  z-index: 100000; top: 8px; left: 8px; width: auto; height: auto; clip: auto;
  padding: 10px 14px; color: var(--fa-navy); background: #fff; font-weight: 800;
}
.fallero-container { width: min(calc(100% - 40px), var(--fa-container)); margin-inline: auto; }

.fallero-topbar { background: var(--fa-navy); color: #fff; font-size: 12px; font-weight: 700; }
.fallero-topbar__inner { min-height: 31px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.fallero-topbar__group { display: flex; align-items: center; gap: 0; }
.fallero-topbar a { color: #fff; }
.fallero-topbar a + a::before, .fallero-topbar span + a::before, .fallero-topbar a + span::before {
  content: ""; display: inline-block; width: 1px; height: 12px; margin: 0 14px; vertical-align: -2px; background: rgba(255,255,255,.35);
}
.fallero-header { position: relative; z-index: 50; background: #fff; border-bottom: 1px solid var(--fa-line); }
.fallero-brand-row { min-height: 88px; display: grid; grid-template-columns: 150px minmax(280px, 1fr) auto; align-items: center; gap: 28px; }
.fallero-logo { display: flex; align-items: center; }
.fallero-logo img { width: 150px; height: 57px; object-fit: contain; }
.fallero-search { position: relative; display: flex; align-items: center; }
.fallero-search input {
  width: 100%; min-height: 46px; padding: 0 52px 0 46px; border: 1px solid #cfd7e3; border-radius: 10px;
  color: var(--fa-ink); background: #f7f9fc; outline: 0; transition: .2s ease;
}
.fallero-search input:focus { border-color: var(--fa-blue); background: #fff; box-shadow: 0 0 0 3px rgba(7,92,168,.12); }
.fallero-search::before { content: "⌕"; position: absolute; left: 17px; z-index: 1; color: #667286; font-size: 24px; line-height: 1; transform: rotate(-15deg); }
.fallero-search button {
  position: absolute; right: 5px; width: 38px; height: 36px; border: 0; border-radius: 8px; cursor: pointer;
  color: #fff; background: var(--fa-blue); font-size: 0;
}
.fallero-search button::after { content: "→"; font-size: 18px; font-weight: 900; }
.fallero-header-actions { display: flex; align-items: center; gap: 24px; }
.fallero-header-action { display: grid; grid-template-columns: 31px auto; align-items: center; color: var(--fa-ink); line-height: 1.15; }
.fallero-header-action__icon { font-size: 25px; color: var(--fa-navy); }
.fallero-header-action small { display: block; color: #778195; font-size: 9px; letter-spacing: .13em; text-transform: uppercase; }
.fallero-header-action strong { display: block; margin-top: 3px; font-size: 13px; }
.fallero-nav { border-top: 1px solid var(--fa-line); background: #fff; }
.fallero-nav__inner { min-height: 57px; display: flex; align-items: center; gap: 42px; }
.fallero-category-pill {
  display: inline-flex; align-items: center; gap: 12px; padding: 11px 21px; border-radius: 999px;
  color: #fff; background: var(--fa-blue); font-size: 13px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase;
  box-shadow: 0 5px 12px rgba(7,92,168,.22);
}
.fallero-category-pill:hover { color: #fff; background: var(--fa-navy); }
.fallero-category-pill::before { content: "☰"; font-size: 16px; }
.fallero-menu { display: flex; align-items: center; justify-content: center; flex: 1; gap: 42px; margin: 0; padding: 0; list-style: none; }
.fallero-menu a { color: var(--fa-ink); font-size: 13px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.fallero-menu a:hover, .fallero-menu .is-current a { color: var(--fa-blue); }
.fallero-phone-button { padding: 9px 22px; border: 2px solid var(--fa-blue); border-radius: 999px; color: var(--fa-blue); font-size: 13px; font-weight: 900; }
.fallero-phone-button:hover { color: #fff; background: var(--fa-blue); }
.fallero-sentence { padding: 9px 20px; color: #fff; background: var(--fa-blue); text-align: center; font-size: 15px; }

.fallero-hero { position: relative; min-height: 420px; display: grid; align-items: center; overflow: hidden; color: #fff; background: var(--fa-navy); }
.fallero-hero::before { content: ""; position: absolute; inset: 0; background: url("assets/images/fallero-hero-modelismo.jpg") center 52%/cover no-repeat; }
.fallero-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(27,42,78,.99) 0%, rgba(27,42,78,.94) 38%, rgba(27,42,78,.65) 62%, rgba(27,42,78,.18) 100%); }
.fallero-hero__content { position: relative; z-index: 1; width: min(680px, 65%); padding: 68px 0; }
.fallero-eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 15px; color: #fff; font-size: 13px; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; }
.fallero-eyebrow::before { content: ""; width: 27px; height: 3px; background: var(--fa-blue-bright); }
.fallero-hero h1 { max-width: 650px; margin: 0; font-size: clamp(42px, 5.2vw, 68px); line-height: .98; letter-spacing: -.045em; }
.fallero-hero h1 span { display: inline; box-shadow: inset 0 -.52em 0 var(--fa-blue); }
.fallero-hero p:not(.fallero-eyebrow) { max-width: 610px; margin: 24px 0 0; color: #e6ebf4; font-size: 18px; }
.fallero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.fallero-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border: 2px solid transparent; border-radius: 8px; color: #fff; background: var(--fa-blue); font-size: 14px; font-weight: 900; }
.fallero-button:hover { color: #fff; background: var(--fa-navy); }
.fallero-button--ghost { border-color: rgba(255,255,255,.55); background: rgba(27,42,78,.38); }
.fallero-button--ghost:hover { border-color: #fff; background: #fff; color: var(--fa-navy); }

.fallero-main { padding: 66px 0 82px; background: var(--fa-soft); }
.fallero-section-heading { margin-bottom: 30px; }
.fallero-section-heading__overline { margin: 0 0 5px; color: var(--fa-blue); font-size: 12px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.fallero-section-heading h1, .fallero-section-heading h2 { margin: 0; color: var(--fa-navy); font-size: clamp(30px, 4vw, 44px); line-height: 1.12; letter-spacing: -.035em; }
.fallero-content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; align-items: start; gap: 36px; }
.fallero-post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px; }
.fallero-card { position: relative; overflow: hidden; border: 1px solid var(--fa-line); border-radius: var(--fa-radius); background: #fff; box-shadow: 0 8px 24px rgba(27,42,78,.07); transition: transform .2s ease, box-shadow .2s ease; }
.fallero-card:hover { transform: translateY(-4px); box-shadow: var(--fa-shadow); }
.fallero-card__media { position: relative; display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--fa-navy); }
.fallero-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.fallero-card:hover .fallero-card__media img { transform: scale(1.035); }
.fallero-card__placeholder { width: 100%; height: 100%; background: linear-gradient(120deg, rgba(27,42,78,.78), rgba(7,92,168,.28)), url("assets/images/fallero-hero-modelismo.jpg") center/cover; }
.fallero-card__category { position: absolute; left: 18px; bottom: 16px; padding: 6px 11px; border-radius: 999px; color: #fff; background: var(--fa-blue); font-size: 10px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.fallero-card__body { padding: 23px 24px 25px; }
.fallero-card__meta { margin: 0 0 9px; color: var(--fa-muted); font-size: 12px; font-weight: 700; }
.fallero-card h2 { margin: 0; font-size: 23px; line-height: 1.25; letter-spacing: -.025em; }
.fallero-card h2 a { color: var(--fa-navy); }
.fallero-card h2 a:hover { color: var(--fa-blue); }
.fallero-card__excerpt { margin: 13px 0 18px; color: var(--fa-muted); font-size: 14px; }
.fallero-read-more { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.fallero-read-more::after { content: "→"; transition: transform .2s ease; }
.fallero-read-more:hover::after { transform: translateX(4px); }
.fallero-sidebar { display: grid; gap: 22px; }
.fallero-widget { padding: 25px; border: 1px solid var(--fa-line); border-radius: var(--fa-radius); background: #fff; box-shadow: 0 8px 24px rgba(27,42,78,.06); }
.fallero-widget h2 { margin: 0 0 16px; color: var(--fa-navy); font-size: 18px; }
.fallero-widget ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.fallero-widget li { padding-bottom: 10px; border-bottom: 1px solid var(--fa-line); }
.fallero-widget li:last-child { padding-bottom: 0; border-bottom: 0; }
.fallero-widget a { color: var(--fa-ink); font-size: 14px; font-weight: 750; }
.fallero-widget a:hover { color: var(--fa-blue); }
.fallero-shop-card { color: #fff; border: 0; background: linear-gradient(150deg, var(--fa-navy), var(--fa-blue)); }
.fallero-shop-card h2, .fallero-shop-card p { color: #fff; }
.fallero-shop-card p { margin: 0 0 18px; color: #e2e9f5; font-size: 14px; }
.fallero-shop-card .fallero-button { width: 100%; color: var(--fa-navy); background: #fff; }
.fallero-shop-card .fallero-button:hover { color: #fff; background: var(--fa-blue-bright); }
.nav-links { display: flex; gap: 8px; margin-top: 34px; }
.page-numbers { min-width: 42px; min-height: 42px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--fa-line); border-radius: 8px; color: var(--fa-navy); background: #fff; font-weight: 800; }
.page-numbers.current, .page-numbers:hover { color: #fff; border-color: var(--fa-blue); background: var(--fa-blue); }

.fallero-article-hero { padding: 58px 0 52px; color: #fff; background: linear-gradient(135deg, var(--fa-navy), #263f73); }
.fallero-breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 23px; color: #c8d2e5; font-size: 12px; }
.fallero-breadcrumbs a { color: #fff; }
.fallero-article-hero h1 { max-width: 900px; margin: 0; font-size: clamp(36px, 5vw, 61px); line-height: 1.05; letter-spacing: -.04em; }
.fallero-article-meta { display: flex; flex-wrap: wrap; gap: 17px; margin-top: 22px; color: #d9e1ef; font-size: 13px; font-weight: 700; }
.fallero-article-wrap { width: min(calc(100% - 40px), 910px); margin: 0 auto; padding: 58px 0 82px; }
.fallero-featured-image { display: flex; align-items: center; justify-content: center; overflow: hidden; margin: -28px auto 42px; border: 8px solid #fff; border-radius: var(--fa-radius); box-shadow: var(--fa-shadow); }
.fallero-featured-image img { display: block; max-width: 100%; height: auto; }
.fallero-entry-content { color: #303b51; font-family: Georgia, "Times New Roman", serif; font-size: 19px; line-height: 1.85; }
.fallero-entry-content > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.fallero-entry-content h2, .fallero-entry-content h3, .fallero-entry-content h4 { color: var(--fa-navy); font-family: Inter, Montserrat, "Segoe UI", Arial, sans-serif; line-height: 1.2; letter-spacing: -.025em; }
.fallero-entry-content h2 { margin-top: 2.1em; font-size: 33px; }
.fallero-entry-content h3 { margin-top: 1.8em; font-size: 25px; }
.fallero-entry-content a { text-decoration: underline; text-decoration-color: rgba(7,92,168,.35); text-underline-offset: 3px; }
.fallero-entry-content blockquote { padding: 22px 28px; border-left: 5px solid var(--fa-blue); background: var(--fa-soft); color: var(--fa-navy); font-size: 21px; font-style: italic; }
.fallero-entry-content img { border-radius: 10px; }
.fallero-entry-content .wp-block-image, .fallero-entry-content .alignwide { max-width: 900px; }
.fallero-entry-content table { width: 100%; border-collapse: collapse; font-family: Inter, Arial, sans-serif; font-size: 15px; }
.fallero-entry-content th, .fallero-entry-content td { padding: 12px 14px; border: 1px solid var(--fa-line); text-align: left; }
.fallero-entry-content th { color: #fff; background: var(--fa-navy); }
.fallero-post-footer { max-width: 760px; margin: 42px auto 0; padding-top: 24px; border-top: 1px solid var(--fa-line); }
.fallero-back-link { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 900; text-transform: uppercase; }

.fallero-empty { padding: 50px; border-radius: var(--fa-radius); background: #fff; text-align: center; }
.fallero-empty h2 { margin-top: 0; color: var(--fa-navy); }
.fallero-footer { color: #dce4f2; background: var(--fa-navy); }
.fallero-footer__main { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 65px; padding: 58px 0 48px; }
.fallero-footer__logo { width: 170px; margin-bottom: 18px; }
.fallero-footer p { margin: 0; color: #b9c4d7; font-size: 14px; }
.fallero-footer h2 { margin: 0 0 17px; color: #fff; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; }
.fallero-footer ul { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.fallero-footer a { color: #dce4f2; font-size: 14px; }
.fallero-footer a:hover { color: #fff; }
.fallero-footer__bottom { padding: 17px 0; border-top: 1px solid rgba(255,255,255,.15); color: #9facbf; font-size: 12px; }
.fallero-footer__bottom .fallero-container { display: flex; justify-content: space-between; gap: 20px; }

@media (max-width: 1050px) {
  .fallero-brand-row { grid-template-columns: 140px 1fr; }
  .fallero-header-actions { display: none; }
  .fallero-nav__inner { gap: 22px; }
  .fallero-menu { gap: 22px; }
  .fallero-phone-button { display: none; }
}
@media (max-width: 800px) {
  body.admin-bar .fallero-header { top: 46px; }
  .fallero-container { width: min(calc(100% - 28px), var(--fa-container)); }
  .fallero-topbar__inner { min-height: 34px; justify-content: center; }
  .fallero-topbar__group:first-child a:nth-child(n+3), .fallero-topbar__group:last-child { display: none; }
  .fallero-brand-row { min-height: 76px; grid-template-columns: 118px 1fr; gap: 16px; }
  .fallero-logo img { width: 118px; height: 48px; }
  .fallero-search input { min-height: 42px; padding-left: 16px; font-size: 13px; }
  .fallero-search::before { display: none; }
  .fallero-nav__inner { min-height: auto; overflow-x: auto; gap: 18px; padding: 11px 0; scrollbar-width: none; }
  .fallero-category-pill { flex: 0 0 auto; padding: 9px 15px; font-size: 11px; }
  .fallero-menu { flex: 0 0 auto; justify-content: flex-start; gap: 20px; }
  .fallero-menu li:nth-child(4), .fallero-menu li:nth-child(5) { display: none; }
  .fallero-menu a { white-space: nowrap; font-size: 11px; }
  .fallero-sentence { font-size: 12px; }
  .fallero-hero { min-height: 470px; }
  .fallero-hero::before { background-position: 62% center; }
  .fallero-hero::after { background: linear-gradient(90deg, rgba(27,42,78,.98), rgba(27,42,78,.84)); }
  .fallero-hero__content { width: 100%; padding: 60px 0; }
  .fallero-hero h1 { font-size: clamp(39px, 12vw, 58px); }
  .fallero-hero p:not(.fallero-eyebrow) { font-size: 16px; }
  .fallero-main { padding: 48px 0 62px; }
  .fallero-content-layout { grid-template-columns: 1fr; }
  .fallero-sidebar { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .fallero-footer__main { grid-template-columns: 1fr 1fr; gap: 38px; }
  .fallero-footer__brand { grid-column: 1/-1; }
}
@media (max-width: 560px) {
  .fallero-topbar__group:first-child a:nth-child(2)::before { margin: 0 8px; }
  .fallero-brand-row { grid-template-columns: 105px 1fr; }
  .fallero-logo img { width: 105px; }
  .fallero-search button { display: none; }
  .fallero-search input { padding-right: 12px; }
  .fallero-menu li:nth-child(3) { display: none; }
  .fallero-post-grid { grid-template-columns: 1fr; }
  .fallero-sidebar { grid-template-columns: 1fr; }
  .fallero-article-hero { padding: 42px 0; }
  .fallero-article-wrap { width: min(calc(100% - 28px), 910px); padding: 42px 0 60px; }
  .fallero-entry-content { font-size: 17px; line-height: 1.75; }
  .fallero-footer__main { grid-template-columns: 1fr; gap: 30px; }
  .fallero-footer__brand { grid-column: auto; }
  .fallero-footer__bottom .fallero-container { flex-direction: column; text-align: center; }
}

/*
 * La cabecera (.fa-literal-header) y el pie (.fa-literal-footer) se estilan 1:1
 * desde assets/css/shop-chrome.css (copia del theme.css de la tienda PrestaShop),
 * encolado despues de esta hoja en functions.php. No dupliques aqui esas reglas.
 */

/* Evita que Safari/iOS amplíe toda la página al enfocar un campo menor de 16 px. */
@media (max-width: 640px) {
  .fa-literal-header .fa-header-search input,
  .fa-literal-header .fa-header-search input[type="search"] { font-size: 16px !important; }
}
