@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400;1,700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --paper: #F0EFEA;
  --ink: #0A0A0A;
  --charcoal: #2A2A2A;
  --text-muted-custom: #6B6B6B;
  --accent-red: #C81010;
  --accent-red-dark: #A00D0D;
  --rule-blue: #1A4DB5;
  --warm-grey: #E5E3DC;
  --dark: #141414;
  --nav-height: 64px;
}

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

html {
  scroll-behavior: auto;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--paper);
  color: var(--charcoal);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: var(--ink);
  line-height: 1.1;
  font-weight: 700;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

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

.section-label {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-red);
}

.bg-paper {
  background-color: var(--paper) !important;
}

.bg-warm-grey {
  background-color: var(--warm-grey) !important;
}

.bg-dark-custom {
  background-color: var(--dark) !important;
}

.text-ink {
  color: var(--ink) !important;
}

.text-charcoal {
  color: var(--charcoal) !important;
}

.text-accent-red {
  color: var(--accent-red) !important;
}

.text-rule-blue {
  color: var(--rule-blue) !important;
}

.text-muted-custom {
  color: var(--text-muted-custom) !important;
}

.font-display {
  font-family: 'Playfair Display', serif;
}

.font-body {
  font-family: 'Inter', sans-serif;
}

/* ========== NAVIGATION ========== */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  height: var(--nav-height);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
  display: flex;
  align-items: center;
}

.site-nav.scrolled {
  background: rgba(240, 239, 234, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: rgba(10, 10, 10, 0.08);
}

.nav-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  flex-shrink: 0;
}

.nav-logo img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  position: relative;
  padding-bottom: 0.25rem;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-red);
  transition: width 0.3s ease-out;
  transform-origin: left;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-red);
}

.nav-social {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-social a {
  color: var(--ink);
  transition: color 0.2s ease;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ink);
  padding: 0.25rem;
  cursor: pointer;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1029;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu a {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--ink);
  transition: color 0.2s ease;
}

.mobile-menu a:hover {
  color: var(--accent-red);
}

.mobile-social {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
}

.mobile-social a {
  color: var(--ink);
}

.mobile-social a:hover {
  color: var(--accent-red);
}

/* ========== HERO ========== */

.hero {
  min-height: 100vh;
  background-color: var(--paper);
  padding-top: var(--nav-height);
  display: flex;
  align-items: center;
}

.hero-kicker {
  opacity: 0;
  transform: translateY(20px);
}

.hero-title {
  opacity: 0;
  transform: translateY(30px);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.hero-title .sin-red {
  color: var(--accent-red);
}

.hero-subtitle {
  opacity: 0;
  transform: translateY(20px);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.6;
  max-width: 480px;
}

.hero-manifesto {
  opacity: 0;
  font-size: 1rem;
  line-height: 1.7;
  max-width: 520px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-cta {
  opacity: 0;
  transform: translateY(10px);
}

.hero-logo-panel {
  opacity: 0;
  transform: scale(0.95);
  background: var(--warm-grey);
  padding: 2rem;
  border-radius: 4px;
  position: relative;
  max-width: 420px;
  margin: 0 auto;
}

.hero-logo-panel .blue-rule {
  position: absolute;
  bottom: 1rem;
  right: 1.5rem;
  width: 80px;
  height: 3px;
  background: var(--rule-blue);
}

.hero-bars {
  opacity: 0;
  transform: translateY(15px);
  max-width: 420px;
  margin: 1rem auto 0;
}

.invitation-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--warm-grey);
  padding: 1rem 1.25rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
  transition: background 0.2s ease;
  cursor: pointer;
}

.invitation-bar:hover {
  background: #D5D3CC;
}

.invitation-bar i {
  color: var(--accent-red);
  font-size: 1rem;
  flex-shrink: 0;
}

.invitation-bar span {
  font-size: 0.8125rem;
  color: var(--charcoal);
  line-height: 1.4;
}

/* ========== PORTADA ========== */

.section-portada {
  padding: 5rem 0;
}

.portada-header {
  margin-bottom: 3rem;
}

.portada-header h2 {
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.portada-header p {
  max-width: 640px;
  font-size: 1rem;
  line-height: 1.7;
}

.featured-article {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.featured-article img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.featured-article:hover img {
  transform: scale(1.03);
}

.featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.7) 0%, rgba(10, 10, 10, 0.2) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
}

.featured-tag {
  display: inline-block;
  align-self: flex-start;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--accent-red);
  padding: 0.25rem 0.75rem;
  margin-bottom: 0.75rem;
}

.featured-overlay h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  color: #fff;
  max-width: 90%;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.featured-overlay p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 85%;
  line-height: 1.5;
}

.featured-readmore {
  font-size: 0.75rem;
  color: #fff;
  text-decoration: underline;
  margin-top: 0.75rem;
  display: inline-block;
  cursor: pointer;
}

.featured-readmore:hover {
  text-decoration: none;
}

.sidebar-headline {
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(10, 10, 10, 0.08);
  cursor: pointer;
}

.sidebar-headline:first-child {
  padding-top: 0;
}

.headline-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.headline-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rule-blue);
  flex-shrink: 0;
}

.headline-category {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-red);
}

.sidebar-headline h4 {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  transition: color 0.2s ease;
  margin: 0;
}

.sidebar-headline:hover h4 {
  color: var(--accent-red);
}

/* ========== POLITICA ========== */

.section-politica {
  padding: 5rem 0;
}

.politica-heading h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.1;
}

.politica-heading .subtitle {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-style: italic;
  color: var(--text-muted-custom);
  margin-top: 0.75rem;
}

.politica-heading .description {
  font-size: 1rem;
  line-height: 1.7;
  max-width: 360px;
  margin-top: 2rem;
}

.politica-heading .update-note {
  margin-top: 1.5rem;
}

.politica-heading .update-note .blue-line {
  width: 40px;
  height: 2px;
  background: var(--rule-blue);
  margin-bottom: 0.75rem;
}

.politica-heading .update-note p {
  font-size: 0.8125rem;
  color: var(--text-muted-custom);
  margin: 0;
}

.article-card {
  display: grid;
  grid-template-columns: 45% 55%;
  background: var(--paper);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(10, 10, 10, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 1.5rem;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(10, 10, 10, 0.12);
}

.article-card.reversed {
  grid-template-columns: 55% 45%;
}

.article-card .card-image {
  overflow: hidden;
}

.article-card .card-image img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.article-card:hover .card-image img {
  transform: scale(1.03);
}

.article-card .card-body {
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.article-card .card-body h3 {
  font-size: 1.3rem;
  line-height: 1.3;
  margin-top: 0.5rem;
}

.article-card .card-body p {
  font-size: 0.9375rem;
  line-height: 1.65;
  margin-top: 0.75rem;
}

.article-card .doc-link {
  font-size: 0.8125rem;
  color: var(--rule-blue);
  text-decoration: underline;
  margin-top: 1rem;
  display: inline-block;
  cursor: pointer;
}

.article-card .doc-link:hover {
  text-decoration: none;
}

/* ========== SEGURIDAD ========== */

.seguridad-hero-image {
  position: relative;
  height: 50vh;
  min-height: 360px;
  overflow: hidden;
}

.seguridad-hero-image img {
  width: 100%;
  height: 130%;
  object-fit: cover;
}

.seguridad-hero-image .image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.6) 0%, transparent 100%);
}

.seguridad-hero-image .overlay-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 2.5rem;
}

.seguridad-hero-image .overlay-text h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: #fff;
  line-height: 1.2;
}

.seguridad-hero-image .overlay-text p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 520px;
  margin-top: 0.75rem;
  line-height: 1.6;
}

.seguridad-content {
  padding: 4rem 0;
}

.seguridad-content h3 {
  font-size: 1.5rem;
}

.seguridad-content .principles-list {
  list-style: none;
  padding: 0;
  margin-top: 2rem;
}

.seguridad-content .principles-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(10, 10, 10, 0.06);
  font-size: 0.9375rem;
  color: var(--ink);
}

.seguridad-content .principles-list li i {
  color: var(--accent-red);
  font-size: 1rem;
  flex-shrink: 0;
}

.info-box {
  background: var(--warm-grey);
  padding: 1.5rem 2rem;
  border-radius: 2px;
  border-left: 3px solid var(--accent-red);
}

.info-box h4 {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
}

.info-box p {
  font-size: 0.9375rem;
  line-height: 1.65;
  margin-top: 0.75rem;
}

.info-box .info-link {
  font-size: 0.875rem;
  color: var(--accent-red);
  text-decoration: underline;
  margin-top: 1rem;
  display: inline-block;
  cursor: pointer;
}

.info-box .info-link:hover {
  text-decoration: none;
}

.timeline-callout {
  background: var(--dark);
  color: var(--paper);
  padding: 1.5rem;
  border-radius: 2px;
}

.timeline-callout p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin-top: 0.75rem;
}

/* ========== MEXICO ========== */

.section-mexico {
  padding: 5rem 0;
}

.mexico-sidebar-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.vertical-label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-red);
  white-space: nowrap;
  margin-top: 2rem;
}

.globe-icon {
  color: var(--text-muted-custom);
  opacity: 0.3;
  margin-top: 2rem;
}

.mexico-center h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.15;
}

.mexico-center > p {
  font-size: 1rem;
  line-height: 1.7;
  margin-top: 1rem;
}

.featured-card {
  background: var(--paper);
  border-radius: 2px;
  box-shadow: 0 4px 20px rgba(10, 10, 10, 0.06);
  overflow: hidden;
  margin-top: 3rem;
}

.featured-card .card-image {
  overflow: hidden;
}

.featured-card .card-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.featured-card:hover .card-image img {
  transform: scale(1.03);
}

.featured-card .card-body {
  padding: 1.5rem 2rem;
}

.featured-card .card-body h3 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin-top: 0.5rem;
}

.featured-card .card-body p {
  font-size: 0.9375rem;
  line-height: 1.65;
  margin-top: 0.75rem;
}

.featured-card .methodology {
  font-size: 0.8125rem;
  color: var(--text-muted-custom);
  font-style: italic;
  margin-top: 1rem;
}

.tracking-list h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted-custom);
  margin-bottom: 1.5rem;
}

.tracking-item {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(10, 10, 10, 0.08);
  cursor: pointer;
  transition: padding-left 0.2s ease;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.tracking-item:hover {
  padding-left: 0.5rem;
}

.tracking-item .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rule-blue);
  flex-shrink: 0;
  margin-top: 0.5rem;
}

.tracking-item h5 {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.5;
  transition: color 0.2s ease;
  margin: 0;
}

.tracking-item:hover h5 {
  color: var(--accent-red);
}

/* ========== FOOTER ========== */

.footer-cta {
  padding: 5rem 0;
}

.footer-cta h3 {
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  color: var(--paper);
}

.footer-cta p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.75rem;
  max-width: 400px;
  line-height: 1.6;
}

.btn-primary-red {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-red);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.875rem 2rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
  text-decoration: none;
  margin-top: 1.5rem;
}

.btn-primary-red:hover {
  background: var(--accent-red-dark);
  color: #fff;
}

.btn-outline-light {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--paper);
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.875rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
  text-decoration: none;
  margin-top: 1.5rem;
}

.btn-outline-light:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
}

.footer-bar {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-bar-inner img {
  height: 32px;
  width: auto;
}

.footer-bar-inner span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ========== RESPONSIVE ========== */

@media (max-width: 991.98px) {
  .nav-links,
  .nav-social {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .hero-logo-panel {
    margin-top: 2rem;
  }

  .article-card,
  .article-card.reversed {
    grid-template-columns: 1fr;
  }

  .article-card .card-image img {
    min-height: 220px;
  }

  .vertical-label {
    writing-mode: horizontal-tb;
    transform: none;
    margin-top: 0;
    margin-bottom: 1rem;
  }

  .globe-icon {
    display: none;
  }

  .mexico-sidebar-left {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }

  .footer-bar-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 767.98px) {
  .section-portada,
  .section-politica,
  .section-mexico {
    padding: 3rem 0;
  }

  .seguridad-content {
    padding: 2.5rem 0;
  }

  .seguridad-hero-image {
    height: 40vh;
    min-height: 280px;
  }

  .hero {
    padding-top: calc(var(--nav-height) + 1rem);
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .featured-overlay {
    padding: 1.25rem;
  }

  .footer-cta {
    padding: 3rem 0;
  }
}
