/* ==========================================================
   ESTILOS EXCLUSIVOS: nuestrahistoria.html
   Cargar este archivo DESPUÉS de assets/css/style.css
   ========================================================== */

body.history-page {
  --history-primary: #173f38;
  --history-accent: #cf1d2b;
  --history-text: #263238;
  --history-muted: #5f6b72;
  --history-bg: #f4f7f8;
  --history-card: #ffffff;

  margin: 0;
  color: var(--history-text);
  background: var(--history-bg);
  font-family: "Open Sans", sans-serif;
}

/* ---------- Encabezado ---------- */
body.history-page #header {
  min-height: 80px;
  padding: 0px 100px;
  background: #203d56
  /*box-shadow: 0 3px 16px rgba(0, 0, 0, 0.18); */
}

body.history-page #header .container {
  gap: 28px;
}

body.history-page .history-logo {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  text-decoration: none;
}

body.history-page .navbar__logo {
  display: block;
  width: 82px;
  height: 82px;
  object-fit: contain;
}

body.history-page #navbar {
  margin-left: auto;
}

body.history-page #navbar > ul {
  margin: 0;
}

body.history-page #navbar a,
body.history-page #navbar a:focus {
  color: #ffffff;
}

body.history-page #navbar a:hover,
body.history-page #navbar .active,
body.history-page #navbar .active:focus,
body.history-page #navbar li:hover > a {
  color: #ffd8dc;
}

body.history-page #navbar .dropdown ul {
  background: #ffffff;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.16);
}

body.history-page #navbar .dropdown ul a,
body.history-page #navbar .dropdown ul a:focus {
  color: var(--history-primary);
}

body.history-page #navbar .dropdown ul a:hover {
  color: var(--history-accent);
}

body.history-page .mobile-nav-toggle {
  color: #ffffff;
  font-size: 30px;
}

/* ---------- Contenido principal ---------- */
body.history-page main {
  min-height: 100vh;
}

body.history-page #about.history-section {
  min-height: 100vh;
  padding: 145px 0 80px;
  background:
    radial-gradient(circle at top right, rgba(23, 63, 56, 0.08), transparent 35%),
    var(--history-bg) !important;
}

body.history-page .history-card {
  max-width: 1060px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 60px);
  background: var(--history-card);
  border: 1px solid rgba(23, 63, 56, 0.1);
  border-radius: 20px;
  box-shadow: 0 18px 48px rgba(30, 50, 48, 0.1);
}

/* Anula el título decorativo gigante heredado del index */
body.history-page .history-card .section-title > span {
  display: none !important;
}

body.history-page .history-card .section-title {
  padding: 0 0 26px;
  text-align: center;
}

body.history-page .history-card .section-title h1,
body.history-page .history-card .section-title h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0 0 18px;
  color: #17242a !important;
  font-family: "Raleway", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.02em;
}

body.history-page .history-card .section-title h1::after,
body.history-page .history-card .section-title h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 72px;
  height: 4px;
  border-radius: 99px;
  background: var(--history-accent);
  transform: translateX(-50%);
}

body.history-page .history-intro {
  margin: 0 0 26px;
  color: var(--history-primary) !important;
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  font-weight: 700;
  line-height: 1.65;
  text-align: center;
}

body.history-page .history-content {
  color: var(--history-text) !important;
  font-size: 1.03rem;
  line-height: 1.9;
  text-align: left;
}

body.history-page .history-content p {
  width: auto !important;
  max-width: none !important;
  margin: 0 0 24px !important;
  padding: 0 !important;
  color: var(--history-text) !important;
  opacity: 1 !important;
  font-size: inherit !important;
  line-height: inherit !important;
  text-align: left !important;
}

body.history-page .history-content p:last-child {
  margin-bottom: 0 !important;
}

/* ---------- Video adaptable ---------- */
body.history-page .pasta-video {
  max-width: 900px;
  margin: 42px auto 0;
  overflow: hidden;
  background: #111;
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
  aspect-ratio: 16 / 9;
}

body.history-page .pasta-video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Adaptación móvil ---------- */
@media (max-width: 991px) {
  body.history-page #header {
    min-height: 78px;
  }

  body.history-page #header .container {
    padding-right: 20px;
    padding-left: 20px;
  }

  body.history-page .navbar__logo {
    width: 64px;
    height: 64px;
  }

  body.history-page #about.history-section {
    padding-top: 112px;
  }

  body.history-page .navbar-mobile {
    background: rgba(15, 35, 32, 0.96);
  }

  body.history-page .navbar-mobile > ul {
    background: #6c757d;
  }

  body.history-page .navbar-mobile a,
  body.history-page .navbar-mobile a:focus {
    color: var(--history-primary);
  }
}

@media (max-width: 575px) {
  body.history-page #about.history-section {
    padding: 100px 12px 48px;
  }

  body.history-page .history-card {
    padding: 25px 20px;
    border-radius: 14px;
  }

  body.history-page .history-content {
    font-size: 0.98rem;
    line-height: 1.75;
  }
}