/* ========================================
   DEPUEBLA.COM
   Bloque 1: encabezado y portada
======================================== */

:root {
  --black: #151515;
  --white: #ffffff;
  --accent: #e1262f;
  --max-width: 1440px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--black);
  background: var(--white);
}

a {
  color: inherit;
}

/* ENCABEZADO */

.site-header {
  position: relative;
  z-index: 10;
  min-height: 78px;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
}

.site-logo {
  flex-shrink: 0;
  color: var(--black);
  text-decoration: none;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -1.3px;
}

.site-logo span {
  font-weight: 900;
}

.site-logo small {
  font-size: 13px;
  letter-spacing: 0;
  font-weight: 600;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 23px;
}

.main-nav a {
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: color .2s ease;
}

.main-nav a:hover {
  color: var(--accent);
}

.menu-button {
  display: none;
  border: 0;
  padding: 8px;
  background: transparent;
  color: var(--black);
  font-size: 27px;
  cursor: pointer;
}

/* PORTADA */

.hero {
  position: relative;
  min-height: 650px;
  height: min(760px, calc(100svh - 78px));
  overflow: hidden;
  background: #343434;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 45%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, .78) 0%,
    rgba(0, 0, 0, .55) 38%,
    rgba(0, 0, 0, .12) 100%
  );
}

.hero-content {
  width: min(100% - 10%, var(--max-width));
  margin: 0 auto;
  padding-bottom: 25px;
}

.hero-kicker {
  margin: 0 0 25px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 3px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(64px, 8.5vw, 118px);
  font-weight: 900;
  line-height: .91;
  letter-spacing: -.065em;
}

.hero-description {
  max-width: 480px;
  margin: 28px 0;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.55;
  color: rgba(255, 255, 255, .92);
}

.hero-button {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding: 16px 22px;
  background: var(--white);
  color: var(--black);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .5px;
  transition: background .2s, color .2s;
}

.hero-button:hover {
  background: var(--accent);
  color: var(--white);
}

.hero-button span {
  font-size: 19px;
}

.hero-signature {
  position: absolute;
  right: 5%;
  bottom: 28px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.hero-signature span {
  font-weight: 400;
  color: rgba(255, 255, 255, .75);
}

/* TABLET Y MÓVIL */

@media (max-width: 1050px) {
  .site-header {
    min-height: 70px;
  }

  .menu-button {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 15px 5% 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 12px 20px rgba(0, 0, 0, .08);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 13px 0;
    border-bottom: 1px solid #eee;
    font-size: 15px;
  }
}

@media (max-width: 600px) {
  .site-header {
    padding: 0 20px;
    min-height: 64px;
  }

  .site-logo {
    font-size: 22px;
  }

  .hero {
    height: 680px;
    min-height: 540px;
    max-height: calc(100svh - 64px);
  }

  .hero-image {
    object-position: 58% center;
  }

  .hero-overlay {
    background: linear-gradient(
      0deg,
      rgba(0, 0, 0, .82) 0%,
      rgba(0, 0, 0, .43) 65%,
      rgba(0, 0, 0, .16) 100%
    );
  }

  .hero-content {
    width: calc(100% - 40px);
    padding-top: 90px;
  }

  .hero-kicker {
    margin-bottom: 20px;
    font-size: 10px;
    letter-spacing: 2px;
  }

  .hero h1 {
    font-size: clamp(58px, 13vw, 78px);
    letter-spacing: -.06em;
  }

  .hero-description {
    max-width: 340px;
    margin: 22px 0;
    font-size: 17px;
  }

  .hero-button {
    padding: 15px 17px;
  }

  .hero-signature {
    left: 20px;
    right: 20px;
    bottom: 18px;
    font-size: 9px;
    letter-spacing: 1px;
  }
}

/* ========================================
   BLOQUE 2: EN LA RUTA
======================================== */

.ruta-section {
  padding: 100px 5%;
  background: #f5f5f3;
}

.ruta-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.ruta-heading {
  max-width: 820px;
  margin-bottom: 48px;
}

.section-kicker {
  margin: 0 0 22px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.5px;
}

.ruta-heading h2 {
  margin: 0;
  font-size: clamp(38px, 5.5vw, 68px);
  line-height: 1.02;
  letter-spacing: -.055em;
  font-weight: 900;
}

.ruta-heading h2 span {
  display: block;
  color: #858585;
}

.ruta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid #d8d8d5;
  border-left: 1px solid #d8d8d5;
}

.ruta-card {
  position: relative;
  min-height: 190px;
  padding: 23px 20px;
  border-right: 1px solid #d8d8d5;
  border-bottom: 1px solid #d8d8d5;
  color: var(--black);
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}

.ruta-number {
  font-size: 11px;
  color: #777;
  font-weight: 700;
}

.ruta-arrow {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 22px;
  transition: transform .2s ease;
}

.ruta-card h3 {
  margin: 40px 0 8px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.7px;
}

.ruta-card p {
  margin: 0;
  color: #6e6e6e;
  font-size: 13px;
  line-height: 1.5;
}

.ruta-card:hover {
  background: var(--black);
  color: #fff;
}

.ruta-card:hover .ruta-number,
.ruta-card:hover p {
  color: #ccc;
}

.ruta-card:hover .ruta-arrow {
  transform: translate(3px, -3px);
  color: var(--accent);
}

/* TABLET */

@media (max-width: 1000px) {
  .ruta-section {
    padding: 80px 5%;
  }

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

/* MÓVIL */

@media (max-width: 600px) {
  .ruta-section {
    padding: 65px 20px;
  }

  .ruta-heading {
    margin-bottom: 32px;
  }

  .ruta-heading h2 {
    font-size: 40px;
  }

  .ruta-card {
    min-height: 155px;
    padding: 18px 14px;
  }

  .ruta-card h3 {
    margin-top: 34px;
    font-size: 21px;
  }

  .ruta-card p {
    font-size: 12px;
  }

  .ruta-arrow {
    right: 13px;
    top: 14px;
  }
}
/* ========================================
   BLOQUE 3: NOTICIAS DESTACADAS
======================================== */

.featured-section {
  padding: 100px 5%;
  background: #fff;
}

.featured-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.featured-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 35px;
}

.featured-heading .section-kicker {
  margin-bottom: 14px;
}

.featured-heading h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -.045em;
  font-weight: 900;
}

.featured-more {
  flex-shrink: 0;
  padding-bottom: 5px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.featured-more span {
  margin-left: 8px;
  font-size: 18px;
}

.featured-more:hover,
.read-more:hover {
  color: var(--accent);
}

/* DISTRIBUCIÓN PRINCIPAL */

.featured-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.featured-main,
.secondary-card {
  min-width: 0;
}

.featured-image-link,
.secondary-image-link {
  display: block;
  overflow: hidden;
  background: #e9e9e9;
}

.featured-image-link {
  aspect-ratio: 16 / 10;
}

.featured-image-link img,
.secondary-image-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.featured-image-link:hover img,
.secondary-image-link:hover img {
  transform: scale(1.035);
}

.featured-main-content {
  padding-top: 20px;
}

.news-category {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.8px;
}

.featured-main h3 {
  margin: 0;
  font-size: clamp(26px, 3vw, 39px);
  line-height: 1.12;
  letter-spacing: -.035em;
  font-weight: 900;
}

.featured-main h3 a,
.secondary-card h3 a {
  color: var(--black);
  text-decoration: none;
}

.featured-main h3 a:hover,
.secondary-card h3 a:hover {
  color: var(--accent);
}

.news-summary {
  max-width: 660px;
  margin: 16px 0;
  color: #666;
  font-size: 15px;
  line-height: 1.7;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 5px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.read-more span {
  font-size: 18px;
}

/* DOS NOTICIAS SECUNDARIAS */

.featured-secondary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.secondary-card {
  display: grid;
  grid-template-columns: minmax(110px, .95fr) minmax(0, 1.05fr);
  gap: 16px;
  padding-bottom: 22px;
  border-bottom: 1px solid #e5e5e5;
}

.secondary-card:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.secondary-image-link {
  aspect-ratio: 4 / 3;
}

.secondary-content {
  align-self: center;
}

.secondary-content .news-category {
  margin-bottom: 9px;
}

.secondary-card h3 {
  margin: 0;
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.25;
  letter-spacing: -.025em;
  font-weight: 800;
}

.news-meta {
  margin: 12px 0 0;
  color: #777;
  font-size: 11px;
}

/* TABLET */

@media (max-width: 900px) {
  .featured-section {
    padding: 75px 5%;
  }

  .featured-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 22px;
  }

  .secondary-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .secondary-image-link {
    aspect-ratio: 16 / 9;
  }
}

/* MÓVIL */

@media (max-width: 600px) {
  .featured-section {
    padding: 65px 20px;
  }

  .featured-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 28px;
  }

  .featured-heading h2 {
    font-size: 36px;
  }

  .featured-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .featured-image-link {
    aspect-ratio: 4 / 3;
  }

  .featured-main-content {
    padding-top: 16px;
  }

  .featured-main h3 {
    font-size: 29px;
  }

  .news-summary {
    font-size: 14px;
  }

  .featured-secondary {
    gap: 20px;
    padding-top: 22px;
    border-top: 1px solid #ddd;
  }

  .secondary-card {
    grid-template-columns: minmax(115px, .9fr) minmax(0, 1.1fr);
    gap: 14px;
    padding-bottom: 20px;
  }

  .secondary-image-link {
    aspect-ratio: 4 / 3;
  }

  .secondary-card h3 {
    font-size: 17px;
  }

  .news-meta {
    font-size: 10px;
  }
}
/* ========================================
   BLOQUE 4: IDENTIDAD DE MARCA
======================================== */

.brand-statement {
  position: relative;
  overflow: hidden;
  padding: 100px 5%;
  color: #fff;
  background: #171717;
}

.brand-statement-inner {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand-statement-kicker {
  margin: 0 0 38px;
  color: #f06b70;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.5px;
}

.brand-statement h2 {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0;
  font-size: clamp(42px, 7vw, 88px);
  line-height: 1.04;
  letter-spacing: -.06em;
  font-weight: 900;
}

.brand-statement h2 span,
.brand-statement h2 strong {
  display: block;
}

.brand-statement h2 span {
  color: #aaa;
}

.brand-statement h2 strong {
  color: #fff;
}

.brand-statement-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 38px;
}

.brand-statement-footer p {
  margin: 0;
  color: #d0d0d0;
  font-size: 14px;
  line-height: 1.6;
}

.brand-dot {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent);
}

/* Líneas decorativas inspiradas en rutas */

.brand-decoration {
  position: absolute;
  top: -55px;
  right: -20px;
  width: 280px;
  height: 280px;
  opacity: .18;
  pointer-events: none;
}

.brand-decoration span {
  position: absolute;
  inset: 0;
  border: 1px solid #fff;
  border-radius: 50%;
}

.brand-decoration span:nth-child(2) {
  inset: 25px;
}

.brand-decoration span:nth-child(3) {
  inset: 50px;
}

/* TABLET */

@media (max-width: 800px) {
  .brand-statement {
    padding: 80px 5%;
  }

  .brand-decoration {
    right: -110px;
    opacity: .12;
  }
}

/* MÓVIL */

@media (max-width: 600px) {
  .brand-statement {
    padding: 70px 20px;
  }

  .brand-statement-kicker {
    margin-bottom: 28px;
    font-size: 10px;
    letter-spacing: 1.8px;
  }

  .brand-statement h2 {
    font-size: clamp(39px, 10vw, 55px);
    letter-spacing: -.055em;
  }

  .brand-statement-footer {
    align-items: flex-start;
    margin-top: 30px;
  }

  .brand-statement-footer p {
    font-size: 13px;
  }

  .brand-decoration {
    top: -25px;
    right: -155px;
  }
}
/* ========================================
   BLOQUE 5: ÚLTIMAS NOTICIAS
======================================== */

.latest-section {
  padding: 95px 5% 45px;
  background: #fff;
  color: #171717;
}

.latest-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.latest-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 35px;
}

.section-kicker {
  margin: 0 0 13px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
}

.latest-header h2 {
  margin: 0;
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -2.5px;
}

.latest-header h2 span {
  color: var(--accent);
}

.latest-all {
  padding-bottom: 5px;
  color: #171717;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-decoration: none;
  white-space: nowrap;
}

.latest-all span {
  margin-left: 7px;
  color: var(--accent);
  font-size: 16px;
}

.latest-list {
  border-top: 2px solid #171717;
}

.latest-item {
  display: grid;
  grid-template-columns: 55px minmax(0, 1fr) 35px;
  gap: 22px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid #dedede;
}

.latest-number {
  padding-top: 2px;
  color: #bdbdbd;
  font-size: 23px;
  font-weight: 900;
  text-decoration: none;
}

.latest-content {
  min-width: 0;
}

.latest-category {
  margin: 0 0 9px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.5px;
}

.latest-content h3 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(19px, 2.3vw, 27px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.6px;
}

.latest-content h3 a {
  color: #171717;
  text-decoration: none;
  transition: color .2s ease;
}

.latest-content h3 a:hover {
  color: var(--accent);
}

.latest-summary {
  max-width: 680px;
  margin: 10px 0;
  color: #686868;
  font-size: 14px;
  line-height: 1.65;
}

.latest-content time {
  color: #888;
  font-size: 11px;
}

.latest-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #dedede;
  border-radius: 50%;
  color: #171717;
  font-size: 16px;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}

.latest-arrow:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.latest-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  color: #888;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

@media (max-width: 600px) {
  .latest-section {
    padding: 70px 20px 35px;
  }

  .latest-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 28px;
  }

  .latest-header h2 {
    letter-spacing: -1.8px;
  }

  .latest-item {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 13px;
    padding: 23px 0;
  }

  .latest-number {
    font-size: 17px;
  }

  .latest-content h3 {
    font-size: 20px;
  }

  .latest-summary {
    font-size: 13px;
  }

  .latest-arrow {
    display: none;
  }

  .latest-bottom {
    flex-direction: column;
    gap: 8px;
  }
}

/* ========================================
   BLOQUE 6: PIE DE PÁGINA
======================================== */

.site-footer {
  padding: 65px 5% 0;
  background: #111;
  color: #fff;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 45px;
  padding-bottom: 55px;
}

.footer-logo {
  display: inline-block;
  color: #fff;
  font-size: 27px;
  font-weight: 950;
  letter-spacing: -1.8px;
  line-height: 1;
  text-decoration: none;
}

.footer-logo span {
  color: var(--accent);
}

.footer-logo small {
  font-size: 12px;
  letter-spacing: -.3px;
}

.footer-slogan {
  margin: 14px 0 9px;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

.footer-description {
  max-width: 280px;
  margin: 0;
  color: #aaa;
  font-size: 13px;
  line-height: 1.7;
}

.footer-column h3 {
  margin: 4px 0 20px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.footer-column ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-column li {
  margin-bottom: 12px;
}

.footer-column a {
  color: #aaa;
  font-size: 13px;
  text-decoration: none;
  transition: color .2s ease;
}

.footer-column a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid #333;
}

.footer-bottom p {
  margin: 0;
  color: #888;
  font-size: 11px;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .footer-main {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 35px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .site-footer {
    padding: 50px 20px 0;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 35px 22px;
    padding-bottom: 35px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-description {
    max-width: 320px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    padding: 18px 0;
  }
}
