:root {
  --night: #07111f;
  --ink: #111827;
  --blue: #00a6ff;
  --blue-deep: #0b3f8a;
  --gold: #f0bf4c;
  --fire: #ff5a3d;
  --teal: #00c2a8;
  --leaf: #1f6f5b;
  --paper: #fff8e7;
  --mist: #dbeafe;
  --muted: #9fb4c7;
  --line: rgba(255, 255, 255, .16);
  --shadow: 0 24px 70px rgba(0, 0, 0, .38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #f8fbff;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(180deg, #07111f 0%, #0b1b2b 35%, #12131f 70%, #080b12 100%);
  background-size: 72px 72px, auto;
  font-family: "Segoe UI", Arial, sans-serif;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 10px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 17, 31, .9);
  backdrop-filter: blur(16px);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
}

.brand-link img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}

.brand-link span {
  max-width: 310px;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

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

.nav-links a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #d7e8ff;
  font-size: .94rem;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  border-color: rgba(240, 191, 76, .55);
  color: #fff5d2;
  outline: none;
}

.fullscreen-toggle {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(0, 166, 255, .45);
  border-radius: 8px;
  color: #e9f7ff;
  background: rgba(7, 17, 31, .54);
  font: inherit;
  font-size: .9rem;
  font-weight: 800;
  cursor: pointer;
}

.fullscreen-toggle:hover,
.fullscreen-toggle:focus-visible,
body.is-fullscreen-mode .fullscreen-toggle {
  border-color: rgba(240, 191, 76, .65);
  color: #fff5d2;
  outline: none;
}

.fullscreen-toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 50;
  max-width: min(420px, calc(100% - 28px));
  padding: 10px 14px;
  border: 1px solid rgba(240, 191, 76, .38);
  border-radius: 8px;
  color: #fff1bc;
  background: rgba(7, 17, 31, .92);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .34);
  font-size: .9rem;
  font-weight: 700;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity .2s ease, transform .2s ease;
}

.fullscreen-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

:fullscreen {
  overflow-y: auto;
  background: #07111f;
}

.hero {
  position: relative;
  min-height: min(780px, calc(100svh - 116px));
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 86px 28px 92px;
  border-bottom: 1px solid rgba(240, 191, 76, .3);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image: url("assets/brand/caballo-fuego-azul-logo.png");
  background-position: center right 8%;
  background-size: min(760px, 70vw);
  background-repeat: no-repeat;
  opacity: .68;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(7, 17, 31, .98) 0%, rgba(7, 17, 31, .86) 38%, rgba(7, 17, 31, .4) 70%, rgba(7, 17, 31, .78) 100%),
    linear-gradient(180deg, rgba(0, 166, 255, .18), rgba(255, 90, 61, .16));
}

.hero-content {
  width: min(760px, 100%);
  margin-left: max(0px, calc((100vw - 1180px) / 2));
}

.eyebrow,
.section-kicker,
.product-type {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  color: #fff7dd;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 5rem;
  line-height: .96;
  font-weight: 700;
  text-shadow: 0 12px 44px rgba(0, 0, 0, .55);
}

.hero-copy {
  max-width: 690px;
  margin: 24px 0 0;
  color: #dbeafe;
  font-size: 1.2rem;
  line-height: 1.65;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.primary {
  background: linear-gradient(90deg, #f0bf4c, #ffe8a3);
  color: #151107;
  border-color: rgba(255, 255, 255, .2);
}

.secondary {
  background: rgba(7, 17, 31, .54);
  color: #e9f7ff;
  border-color: rgba(0, 166, 255, .45);
}

.hero-strip {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #e8f7ff;
  font-size: .9rem;
}

.hero-strip span {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 8px;
  background: rgba(7, 17, 31, .7);
}

.section-inner {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.intro-band,
.trust-section {
  padding: 42px 0;
  background: #fff8e7;
  color: #17202a;
}

.intro-grid,
.trust-grid,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(260px, .82fr) minmax(280px, 1fr);
  gap: 34px;
  align-items: start;
}

.intro-band .section-kicker,
.trust-section .section-kicker {
  color: #9a521b;
}

.intro-band h2,
.trust-section h2,
.contact-section h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.1rem;
  line-height: 1.12;
}

.intro-band p,
.trust-section p,
.contact-section p {
  line-height: 1.65;
}

.catalog-section,
.formats-section,
.books-section,
.packages-section,
.contact-section {
  padding: 78px 0;
}

.formats-section {
  background: #101726;
}

.books-section {
  background: linear-gradient(180deg, rgba(0, 166, 255, .08), rgba(0, 194, 168, .06));
}

.packages-section {
  background: #0d1726;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading.compact {
  margin-bottom: 22px;
}

.section-heading h2 {
  margin: 0;
  color: #fff7dd;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3rem;
  line-height: 1.08;
}

.section-heading p:last-child {
  color: #c8d9e9;
  line-height: 1.6;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-card,
.book-card,
.package-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
  box-shadow: var(--shadow);
}

.product-card {
  display: flex;
  flex-direction: column;
}

.product-card.featured {
  grid-column: span 2;
}

.product-card.practical {
  border-color: rgba(0, 194, 168, .32);
}

.product-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
  background: #06101c;
}

.product-body,
.book-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.product-body h3,
.book-body h3,
.package-card h3 {
  margin: 0 0 10px;
  color: #fff7dd;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  line-height: 1.15;
}

.product-body p,
.book-body p,
.package-card p {
  color: #d7e4ef;
  line-height: 1.58;
}

.price-box {
  display: grid;
  gap: 4px;
  margin: 0 0 16px;
  padding: 10px 12px;
  border: 1px solid rgba(240, 191, 76, .5);
  border-radius: 8px;
  background: rgba(240, 191, 76, .1);
}

.price-box strong {
  color: #fff1bc;
  font-size: 1.05rem;
}

.price-box span {
  color: #ffd67a;
  font-size: .82rem;
  font-weight: 800;
}

.product-body ul {
  margin: 0 0 18px;
  padding-left: 18px;
  color: #bed3e4;
  line-height: 1.5;
}

.product-body li {
  margin: 5px 0;
}

.text-link {
  margin-top: auto;
  color: #ffe28a;
  font-weight: 800;
  text-decoration: none;
}

.text-link:hover,
.text-link:focus-visible {
  color: #fff7dd;
  outline: none;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.book-grid,
.format-grid,
.package-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.format-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.book-card {
  display: grid;
  grid-template-columns: minmax(210px, .9fr) minmax(240px, 1fr);
}

.book-card img {
  width: 100%;
  height: 100%;
  min-height: 310px;
  object-fit: contain;
  object-position: center;
  background: #070b12;
}

.package-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.format-card,
.package-card {
  padding: 22px;
  background: linear-gradient(180deg, rgba(255, 248, 231, .1), rgba(0, 194, 168, .08));
}

.format-card {
  min-height: 180px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.format-card.warning {
  border-color: rgba(255, 90, 61, .42);
  background: linear-gradient(180deg, rgba(255, 90, 61, .13), rgba(0, 166, 255, .07));
}

.format-card h3 {
  margin: 0 0 10px;
  color: #fff7dd;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  line-height: 1.18;
}

.format-card p {
  color: #d7e4ef;
  line-height: 1.58;
}

.format-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 18px;
}

.format-title,
.format-chip,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 8px;
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.2;
}

.format-title {
  color: #151107;
  background: #f0bf4c;
}

.format-chip,
.status-pill {
  color: #dff8ff;
  border: 1px solid rgba(0, 166, 255, .38);
  background: rgba(0, 166, 255, .12);
}

.status-pill {
  width: fit-content;
  margin: 0 0 10px;
  color: #fff1bc;
  border-color: rgba(240, 191, 76, .48);
  background: rgba(240, 191, 76, .12);
}

.compact-btn {
  margin-top: 8px;
  background: rgba(240, 191, 76, .12);
  color: #fff1bc;
}

.trust-list {
  display: grid;
  gap: 12px;
}

.trust-list p {
  margin: 0;
  padding: 14px 16px;
  border-left: 4px solid #0b6ecb;
  background: rgba(11, 63, 138, .08);
}

.contact-section {
  background:
    linear-gradient(90deg, rgba(0, 166, 255, .12), rgba(255, 90, 61, .1)),
    #07111f;
}

.contact-section p {
  color: #d7e4ef;
}

.site-footer {
  padding: 26px 0;
  border-top: 1px solid var(--line);
  background: #050914;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #bccddd;
}

.footer-inner img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.footer-inner p {
  margin: 0;
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .hero h1 {
    font-size: 3.6rem;
  }

  .hero-media {
    background-position: center bottom 18%;
    background-size: 78vw;
    opacity: .38;
  }

  .intro-grid,
  .trust-grid,
  .contact-layout,
  .book-card {
    grid-template-columns: 1fr;
  }

  .product-grid,
  .format-grid,
  .package-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-card.featured {
    grid-column: span 1;
  }

  .book-card img {
    min-height: 260px;
  }
}

@media (max-width: 680px) {
  .site-header {
    padding: 10px 14px;
  }

  .nav-links {
    gap: 4px;
  }

  .nav-links a {
    min-height: 36px;
    padding: 7px 8px;
    font-size: .86rem;
    white-space: nowrap;
  }

  .fullscreen-toggle {
    width: 100%;
  }

  .brand-link span {
    max-width: 230px;
  }

  .hero {
    min-height: auto;
    align-items: start;
    padding: 48px 18px 36px;
  }

  .hero h1 {
    font-size: 2.75rem;
  }

  .hero-copy {
    font-size: 1.05rem;
  }

  .hero-media {
    background-position: center bottom 88px;
    background-size: 96vw;
  }

  .hero-strip {
    position: static;
    margin-top: 18px;
  }

  .section-inner {
    width: min(100% - 24px, 1180px);
  }

  .section-heading h2 {
    font-size: 2.2rem;
  }

  .intro-band h2,
  .trust-section h2,
  .contact-section h2 {
    font-size: 1.8rem;
  }

  .product-grid,
  .book-grid,
  .package-grid {
    grid-template-columns: 1fr;
  }

  .catalog-section,
  .formats-section,
  .books-section,
  .packages-section,
  .contact-section {
    padding: 56px 0;
  }

  .format-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
