:root {
  --azul: #0f1923;
  --azul-medio: #1a2a3a;
  --terracota: #c73e1d;
  --terracota-claro: #e05a35;
  --dorado: #c9a227;
  --dorado-claro: #ddb94d;
  --crema: #f5f0e8;
  --crema-oscura: #e8e0d4;
  --texto-claro: #f0ebe3;
  --texto-oscura: #1a1a1a;
  --texto-muted: #6b6560;
  --fuente-titulo: "Cormorant Garamond", Georgia, serif;
  --fuente-cuerpo: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  font-family: var(--fuente-cuerpo);
  color: var(--texto-oscura);
  background-color: var(--crema);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background-color: var(--terracota);
  color: #fff;
}

::-moz-selection {
  background-color: var(--terracota);
  color: #fff;
}

.navbar {
  background: rgba(15, 25, 35, 0.85);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.6rem 0;
  transition: background 0.3s ease, padding 0.3s ease;
}

.navbar.scrolled {
  background: rgba(15, 25, 35, 0.97);
  padding: 0.35rem 0;
}

.nav-logo {
  height: 42px;
  width: auto;
  transition: transform 0.3s ease;
  filter: brightness(0) invert(1);
}

.nav-logo:hover {
  transform: scale(1.04);
}

.nav-link {
  font-family: var(--fuente-cuerpo);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(240, 235, 227, 0.7);
  padding: 0.5rem 1rem;
  transition: color 0.25s ease;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 1rem;
  right: 1rem;
  height: 1px;
  background: var(--terracota);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--texto-claro);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.btn-outline-facebook {
  font-family: var(--fuente-cuerpo);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(240, 235, 227, 0.75);
  border: 1px solid rgba(240, 235, 227, 0.2);
  border-radius: 4px;
  padding: 0.4rem 0.9rem;
  transition: all 0.25s ease;
}

.btn-outline-facebook:hover {
  color: var(--texto-claro);
  border-color: #1877f2;
  background: rgba(24, 119, 242, 0.12);
}

.btn-outline-mail {
  font-family: var(--fuente-cuerpo);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(240, 235, 227, 0.75);
  border: 1px solid rgba(240, 235, 227, 0.2);
  border-radius: 4px;
  padding: 0.4rem 0.9rem;
  transition: all 0.25s ease;
}

.btn-outline-mail:hover {
  color: var(--texto-claro);
  border-color: var(--terracota);
  background: rgba(199, 62, 29, 0.12);
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.15);
  padding: 0.3rem 0.5rem;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28240, 235, 227, 0.7%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  aspect-ratio: 16 / 9;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 25, 35, 0.3) 0%,
    rgba(15, 25, 35, 0.65) 40%,
    rgba(15, 25, 35, 0.92) 75%,
    var(--azul) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 8rem;
}

.hero-eyebrow {
  font-family: var(--fuente-cuerpo);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dorado);
  margin-bottom: 1.2rem;
}

.hero-title {
  font-family: var(--fuente-titulo);
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--texto-claro);
  margin-bottom: 1.8rem;
}

.hero-lead {
  font-family: var(--fuente-cuerpo);
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  font-weight: 300;
  line-height: 1.85;
  color: rgba(240, 235, 227, 0.88);
  margin-bottom: 1.3rem;
}

.hero-body {
  font-family: var(--fuente-cuerpo);
  font-size: clamp(0.88rem, 1.4vw, 1rem);
  font-weight: 300;
  line-height: 1.8;
  color: rgba(240, 235, 227, 0.72);
  margin-bottom: 2.5rem;
}

.hero-cta {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-text {
  font-family: var(--fuente-titulo);
  font-size: 1.25rem;
  font-weight: 500;
  font-style: italic;
  color: var(--dorado-claro);
  margin-bottom: 1.2rem;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-facebook {
  background: #1877f2;
  border: none;
  color: #fff;
  font-family: var(--fuente-cuerpo);
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 4px;
  padding: 0.75rem 1.6rem;
  transition: all 0.25s ease;
}

.btn-facebook:hover {
  background: #1568d4;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(24, 119, 242, 0.3);
}

.btn-mail {
  background: var(--terracota);
  border: none;
  color: #fff;
  font-family: var(--fuente-cuerpo);
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 4px;
  padding: 0.75rem 1.6rem;
  transition: all 0.25s ease;
}

.btn-mail:hover {
  background: var(--terracota-claro);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(199, 62, 29, 0.3);
}

.hero-scroll {
  position: absolute;
  bottom: 1.8rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(240, 235, 227, 0.4);
  font-size: 1.4rem;
  animation: bounceDown 2s ease-in-out infinite;
}

@keyframes bounceDown {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 0.4;
  }
  50% {
    transform: translateX(-50%) translateY(8px);
    opacity: 0.8;
  }
}

.section {
  position: relative;
}

.section-dark {
  background-color: var(--azul);
}

.section-light {
  background-color: var(--crema);
}

.section-image-full {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.section-img {
  width: 100%;
  display: block;
  object-fit: cover;
}

#politico .section-img {
  aspect-ratio: 21 / 9;
  min-height: 320px;
  max-height: 520px;
}

#economia .section-img {
  aspect-ratio: 16 / 9;
  min-height: 340px;
  max-height: 480px;
}

#sociedad .section-img {
  aspect-ratio: 21 / 9;
  min-height: 320px;
  max-height: 520px;
}

.section-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(15, 25, 35, 0.88) 0%,
    rgba(15, 25, 35, 0.3) 55%,
    rgba(15, 25, 35, 0.15) 100%
  );
}

.section-img-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3rem 2rem 2rem;
  text-align: center;
}

.section-number {
  display: inline-block;
  font-family: var(--fuente-cuerpo);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--dorado);
  margin-bottom: 0.6rem;
}

.section-title-overlay {
  font-family: var(--fuente-titulo);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--texto-claro);
  line-height: 1.2;
  margin: 0;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.4);
}

.section-body {
  padding: 4rem 1.5rem 5rem;
}

.section-intro {
  font-family: var(--fuente-cuerpo);
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  font-weight: 300;
  line-height: 1.9;
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-dark .section-intro {
  color: rgba(240, 235, 227, 0.78);
}

.section-light .section-intro {
  color: var(--texto-muted);
}

.content-heading {
  font-family: var(--fuente-titulo);
  font-size: 1.15rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 0;
  letter-spacing: 0.02em;
}

.section-dark .content-heading {
  color: var(--dorado-claro);
}

.section-light .content-heading {
  color: var(--terracota);
}

.content-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 2.2rem 1.8rem;
  height: 100%;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section-light .content-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.content-card:hover {
  transform: translateY(-6px);
  border-color: rgba(199, 62, 29, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.section-light .content-card:hover {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(199, 62, 29, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.3rem;
  font-size: 1.3rem;
  color: var(--terracota);
}

.section-light .card-icon {
  background: rgba(199, 62, 29, 0.08);
}

.card-icon i {
  line-height: 1;
}

.card-title {
  font-family: var(--fuente-titulo);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  line-height: 1.3;
}

.section-dark .card-title {
  color: var(--texto-claro);
}

.section-light .card-title {
  color: var(--texto-oscura);
}

.card-text {
  font-family: var(--fuente-cuerpo);
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.75;
  margin: 0;
}

.section-dark .card-text {
  color: rgba(240, 235, 227, 0.62);
}

.section-light .card-text {
  color: var(--texto-muted);
}

.section-quote {
  position: relative;
  margin: 0;
  padding: 2rem 2.5rem;
  text-align: center;
}

.section-quote::before {
  content: "\201C";
  font-family: var(--fuente-titulo);
  font-size: 5rem;
  line-height: 1;
  color: var(--terracota);
  opacity: 0.35;
  display: block;
  margin-bottom: -1.5rem;
}

.section-quote p {
  font-family: var(--fuente-titulo);
  font-size: 1.2rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.75;
  margin: 0;
}

.section-dark .section-quote p {
  color: rgba(240, 235, 227, 0.8);
}

.section-light .section-quote p {
  color: var(--texto-muted);
}

.section-closing {
  background: var(--azul);
  padding: 6rem 1.5rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.closing-icon {
  font-size: 2.5rem;
  color: var(--terracota);
  margin-bottom: 1.5rem;
  display: inline-block;
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

.closing-title {
  font-family: var(--fuente-titulo);
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  font-weight: 600;
  color: var(--texto-claro);
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.closing-subtitle {
  font-family: var(--fuente-titulo);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 400;
  font-style: italic;
  color: var(--dorado-claro);
  margin-bottom: 2rem;
}

.closing-divider {
  width: 60px;
  height: 2px;
  background: var(--terracota);
  margin: 0 auto 2rem;
  border-radius: 2px;
}

.closing-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.footer {
  background: #0a1118;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2rem 0;
}

.footer-logo {
  height: 72px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.7;
}

.footer-copy {
  font-family: var(--fuente-cuerpo);
  font-size: 0.78rem;
  color: rgba(240, 235, 227, 0.35);
  margin: 0;
  letter-spacing: 0.02em;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(240, 235, 227, 0.5);
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.25s ease;
}

.footer-link:hover {
  background: var(--terracota);
  color: #fff;
  transform: translateY(-2px);
}

@media (max-width: 991px) {
  .navbar-collapse {
    background: rgba(15, 25, 35, 0.98);
    padding: 1rem 1.5rem;
    margin-top: 0.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-item {
    margin: 0.2rem 0;
  }

  .nav-link::after {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-bottom: 4rem;
  }

  .hero-content {
    padding-top: 6rem;
  }

  .hero-img {
    aspect-ratio: 3 / 4;
    min-height: 600px;
  }

  .section-img {
    min-height: 250px !important;
    max-height: 360px !important;
  }

  .section-body {
    padding: 2.5rem 1rem 3rem;
  }

  .content-card {
    padding: 1.8rem 1.4rem;
  }

  .cta-buttons {
    justify-content: center;
  }

  .closing-cta {
    flex-direction: column;
    align-items: center;
  }

  .closing-cta .btn-lg {
    width: 100%;
    max-width: 300px;
  }

  .footer .row > div {
    text-align: center !important;
    margin: 0.5rem 0;
  }

  .footer-logo {
    margin: 0 auto;
    display: block;
  }
}

@media (max-width: 575px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .hero-lead {
    font-size: 0.9rem;
  }

  .hero-body {
    font-size: 0.85rem;
  }

  .btn-lg {
    padding: 0.65rem 1.2rem;
    font-size: 0.88rem;
  }

  .section-title-overlay {
    font-size: 1.5rem;
  }

  .section-quote {
    padding: 1.5rem 1rem;
  }

  .section-quote p {
    font-size: 1.05rem;
  }

  .content-card {
    padding: 1.5rem 1.2rem;
  }
}
