@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --azul-oscuro: #1B3A5C;
  --azul-medio: #2E6DA4;
  --azul-claro: #E8F0F8;
  --dorado: #C8A84E;
  --dorado-claro: #F5EDD6;
  --gris-texto: #4A4A4A;
  --gris-claro: #F7F8FA;
  --blanco: #FFFFFF;
  --rojo: #C0392B;
  --verde: #27AE60;
  --morado: #6C3483;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--gris-texto);
  line-height: 1.6;
  background: var(--blanco);
}

/* ===== HEADER ===== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--blanco);
  border-bottom: 1px solid #E5E7EB;
  z-index: 1000;
  padding: 0 2rem;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo img { height: 52px; }

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav a {
  text-decoration: none;
  color: var(--azul-oscuro);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.2s;
}

nav a:hover, nav a.active { color: var(--azul-medio); }

nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--dorado);
  transition: width 0.3s;
}

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

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--azul-oscuro);
  margin: 5px 0;
  transition: all 0.3s;
}

/* ===== PAGE HEADER (subpages) ===== */
.page-header {
  margin-top: 72px;
  background: linear-gradient(135deg, var(--azul-oscuro) 0%, var(--azul-medio) 100%);
  color: var(--blanco);
  padding: 4rem 2rem;
  text-align: center;
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.page-header p {
  font-size: 1rem;
  opacity: 0.85;
  max-width: 600px;
  margin: 0 auto;
}

.breadcrumb {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1rem 2rem;
  font-size: 0.85rem;
  color: #9CA3AF;
}

.breadcrumb a {
  color: var(--azul-medio);
  text-decoration: none;
}

.breadcrumb a:hover { text-decoration: underline; }

/* ===== GENERAL ===== */
section { padding: 4rem 2rem; }

.container { max-width: 1000px; margin: 0 auto; }

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--azul-oscuro);
  margin-bottom: 1rem;
}

.accent-line {
  width: 50px; height: 3px;
  background: var(--dorado);
  margin-bottom: 1.5rem;
}

.content-block { margin-bottom: 3rem; }

.content-block h2 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--azul-oscuro);
  margin-bottom: 0.8rem;
}

.content-block h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--azul-oscuro);
  margin-bottom: 0.6rem;
}

.content-block p {
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.content-block ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1rem;
}

.content-block ul li {
  padding: 0.5rem 0 0.5rem 1.5rem;
  font-size: 0.93rem;
  line-height: 1.7;
  position: relative;
}

.content-block ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1rem;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--azul-medio);
}

.highlight-box {
  background: var(--azul-claro);
  border-left: 4px solid var(--azul-medio);
  border-radius: 0 8px 8px 0;
  padding: 1.5rem 2rem;
  margin: 1.5rem 0;
}

.highlight-box p {
  color: var(--azul-oscuro);
  margin-bottom: 0;
}

.highlight-box-gold {
  background: var(--dorado-claro);
  border-left: 4px solid var(--dorado);
  border-radius: 0 8px 8px 0;
  padding: 1.5rem 2rem;
  margin: 1.5rem 0;
}

/* ===== CARDS GRID ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.info-card {
  background: var(--blanco);
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 2rem;
  transition: box-shadow 0.3s;
}

.info-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06); }

.info-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--azul-oscuro);
  margin-bottom: 0.6rem;
}

.info-card p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: #6B7280;
}

.card-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--azul-claro);
  color: var(--azul-medio);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}

.btn-primary { background: var(--dorado); color: var(--azul-oscuro); }
.btn-primary:hover { background: #b8983f; transform: translateY(-1px); }

.btn-blue { background: var(--azul-medio); color: var(--blanco); }
.btn-blue:hover { background: var(--azul-oscuro); transform: translateY(-1px); }

.btn-outline-dark {
  background: transparent;
  color: var(--azul-oscuro);
  border: 2px solid #E5E7EB;
}
.btn-outline-dark:hover { border-color: var(--azul-medio); color: var(--azul-medio); }

/* ===== ARTICLE LAYOUT ===== */
.article-section {
  border-bottom: 1px solid #F0F0F0;
  padding-bottom: 2.5rem;
  margin-bottom: 2.5rem;
}

.article-section:last-child {
  border-bottom: none;
}

/* ===== FOOTER ===== */
footer {
  background: var(--azul-oscuro);
  color: rgba(255,255,255,0.7);
  padding: 3rem 2rem;
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-left img {
  height: 40px;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.footer-left span {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
}

.footer-right {
  text-align: right;
  font-size: 0.8rem;
  line-height: 1.8;
}

.footer-right a { color: var(--dorado); text-decoration: none; }
.footer-right a:hover { text-decoration: underline; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .menu-toggle { display: block; }

  nav ul {
    display: none;
    position: absolute;
    top: 72px; left: 0;
    width: 100%;
    background: var(--blanco);
    flex-direction: column;
    padding: 1rem 2rem;
    border-bottom: 1px solid #E5E7EB;
    gap: 0.5rem;
  }

  nav ul.open { display: flex; }
  nav a { padding: 0.8rem 0; }

  .page-header { padding: 3rem 1.5rem; }
  .page-header h1 { font-size: 1.5rem; }

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

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-right { text-align: center; }
}
