/* --- ESTILOS DE LA PÁGINA INFORMATIVA --- */

/* Definición de colores locales basados en la marca */
:root {
  --info-blue: #0B3B60;
  --info-pink: #CE1D81;
  --info-orange: #faa21b;
  --info-green: #00ae6f;
  --info-bg-light: #f8f9fa;
  --info-text-dark: #1a202c;
  --info-text-grey: #4a5568;
}
* {
  font-family: 'Poppins', sans-serif;
}

/* Sección Intro / Hero */
.info-hero {
  display: flex;
  flex-direction: column-reverse;
  gap: 2rem;
  margin-bottom: 4rem;
  background-color: #fff;
  border-radius: 16px;
  padding: 0;
}

@media (min-width: 768px) {
  .info-hero {
    flex-direction: row;
    align-items: center;
    gap: 3rem;
  }
}

.info-hero__content {
  flex: 1;
}

.info-hero__graphic {
  flex: 0 0 200px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.info-hero__graphic svg {
  width: 100%;
  max-width: 200px;
  height: auto;
}
.hero-icon-color { color: var(--info-blue); }

.info-label {
  display: inline-block;
  background-color: rgba(0, 78, 152, 0.1);
  color: var(--info-blue);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--info-text-dark);
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.info-desc {
  font-size: 1.1rem;
  color: var(--info-text-grey);
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* Sección Grid de Propósito */
.purpose-section {
  padding: 1rem 0;
}

/* --- ENCABEZADO DE SECCIÓN (¿Por qué existe?) --- */

.purpose-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem auto; /* Más separación con las tarjetas de abajo */
  position: relative;
}

/* 1. El Título: Mucho más grande y oscuro */
.purpose-header h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;   /* Antes era 1.5rem, ahora es GRANDE */
  font-weight: 800;    /* Extra negrita */
  color: #0F172A;      /* Azul marino casi negro (muy elegante) */
  margin-bottom: 1rem;
  letter-spacing: -1px; /* Las letras un poquito más juntas para que se vea compacto */
  position: relative;
  display: inline-block;
}

/* 2. Un detalle de diseño: Una línea de colores debajo del título */
.purpose-header h3::after {
  content: '';
  display: block;
  width: 60px;         /* Una línea corta */
  height: 6px;         /* Gruesa */
  background: linear-gradient(to right, #faa21b, #df1783, #0b3b60); /* Los colores de tu marca */
  border-radius: 3px;
  margin: 0.5rem auto 0 auto; /* Centrada debajo del texto */
}

/* 3. El Subtítulo: Más legible y menos "lavado" */
.purpose-header p {
  font-size: 1.25rem;  /* Letra más grande para leerse fácil */
  color: #475569;      /* Gris azulado oscuro (Slate-600), se lee perfecto */
  line-height: 1.6;
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Estilos de las Tarjetas */
/* --- MEJORAS EN TARJETAS (TEXTOS LLAMATIVOS) --- */

.info-card {
  background: white;
  border-radius: 16px; /* Un poco más redondeado */
  padding: 2rem;       /* Más espacio interno */
  box-shadow: 0 4px 6px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-top: 5px solid transparent; /* Borde superior un poco más grueso */
  display: flex;
  flex-direction: column;
  height: 100%;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1); /* Sombra más dramática al pasar el mouse */
}

/* Estilo base del Título de la tarjeta */
.info-card h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;    /* Más gordita la letra */
  font-size: 1.35rem;  /* Más grande (antes era 1.1rem) */
  margin-bottom: 1rem;
  line-height: 1.2;
}

/* Estilo del Párrafo descriptivo */
.info-card p {
  font-size: 1rem;       /* Tamaño estándar legible */
  color: #334155;        /* Gris azulado oscuro (mucho mejor contraste que el gris claro) */
  line-height: 1.6;      /* Buena separación entre líneas */
  font-weight: 500;      /* Un poquito más de peso que el normal (400) */
}

/* --- COLORES ESPECÍFICOS POR TARJETA --- */
/* Aquí está el truco: pintamos el TÍTULO del mismo color que su tema */

/* 1. Azul */
.card-blue { border-top-color: var(--info-blue); }
.card-blue .card-icon { 
    background-color: rgba(0, 78, 152, 0.08); 
    color: var(--info-blue); 
}
.card-blue h4 { color: var(--info-blue); } /* Título Azul */

/* 2. Rosa */
.card-pink { border-top-color: var(--info-pink); }
.card-pink .card-icon { 
    background-color: rgba(233, 30, 99, 0.08); 
    color: var(--info-pink); 
}
.card-pink h4 { color: var(--info-pink); } /* Título Rosa */

/* 3. Naranja */
.card-orange { border-top-color: var(--info-orange); }
.card-orange .card-icon { 
    background-color: rgba(255, 109, 0, 0.08); 
    color: var(--info-orange); 
}
.card-orange h4 { color: var(--info-orange); } /* Título Naranja */

/* 4. Verde */
.card-green { border-top-color: var(--info-green); }
.card-green .card-icon { 
    background-color: rgba(46, 125, 50, 0.08); 
    color: var(--info-green); 
}
.card-green h4 { color: var(--info-green); } /* Título Verde */

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.card-icon svg {
  width: 28px;
  height: 28px;
}



/* Variantes de color por tarjeta */
/* Azul */
.card-blue { border-top-color: var(--info-blue); }
.card-blue .card-icon { background-color: rgba(0, 78, 152, 0.1); color: var(--info-blue); }

/* Rosa */
.card-pink { border-top-color: var(--info-pink); }
.card-pink .card-icon { background-color: rgba(233, 30, 99, 0.1); color: var(--info-pink); }

/* Naranja */
.card-orange { border-top-color: var(--info-orange); }
.card-orange .card-icon { background-color: rgba(255, 109, 0, 0.1); color: var(--info-orange); }

/* Verde */
.card-green { border-top-color: var(--info-green); }
.card-green .card-icon { background-color: rgba(46, 125, 50, 0.1); color: var(--info-green); }
/* --- MEJORAS VISUALES (ARMONÍA) --- */

/* 1. Sección de Definición con fondo suave */
.info-hero {
  /* Cambiamos el blanco por un azul grisáceo muy tenue, elegante y corporativo */
  background-color: #F0F5F9; 
  /* Le quitamos la sombra para que parezca un bloque de contenido sólido, no una tarjeta flotando */
  box-shadow: none; 
  border-radius: 24px; /* Bordes más redondeados y amigables */
  padding: 3rem; /* Más espacio interno para que "respire" */
  
  display: flex;
  flex-direction: column-reverse;
  gap: 3rem;
  margin-bottom: 5rem; /* Más separación con las tarjetas de abajo */
  border: 1px solid rgba(0, 78, 152, 0.05); /* Un borde sutilísimo */
}

@media (min-width: 768px) {
  .info-hero {
    flex-direction: row;
    align-items: center;
  }
}

/* 2. Mejorar la tipografía del texto (para que no se vea tan ancho y perdido) */
.info-hero__content {
  flex: 1;
}

.info-desc {
  font-size: 1.15rem; /* Un pelín más grande */
  color: #4A5568; /* Gris oscuro, no negro puro, para suavizar la lectura */
  line-height: 1.7;
  max-width: 65ch; /* IMPORTANTE: Esto evita que el texto se estire hasta el infinito */
}

/* 3. Ajuste al título para darle jerarquía */
.info-title {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #0F172A; /* Azul marino muy oscuro */
  margin-bottom: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

/* 4. Ajuste del gráfico SVG para que se integre mejor */
.info-hero__graphic svg {
  width: 100%;
  max-width: 280px; /* Un poco más grande para equilibrar */
  height: auto;
  opacity: 0.8; /* Un poco transparente para que se funda con el fondo */
}

/* --- SECCIÓN DE TARJETAS (FONDO) --- */

/* Opcional: Si quieres que las tarjetas también resalten más */
.purpose-section {
    position: relative;
    padding-bottom: 3rem;
}
/* Ajuste del contenedor del gráfico */
.info-hero__graphic {
  flex: 0 0 250px; /* Le damos más espacio (antes 200px) */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Estilo de la ilustración */
.hero-illustration {
  width: 100%;
  height: auto;
  max-width: 250px;
  /* Sombra suave debajo del icono para dar profundidad */
  filter: drop-shadow(0 10px 15px rgba(0, 78, 152, 0.2)); 
  
  /* Animación de entrada suave */
  animation: floatIcon 6s ease-in-out infinite;
}

/* Animación para que el icono flote suavemente arriba y abajo */
@keyframes floatIcon {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

/* Ajuste Responsive para móviles */
@media (max-width: 768px) {
  .info-hero__graphic {
    flex: 0 0 180px; /* Un poco más chico en celular */
    margin-bottom: 1rem;
  }
}/* --- AJUSTE PARA ESTILO GUBERNAMENTAL --- */

.info-hero__graphic {
  flex: 0 0 220px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-illustration {
  width: 100%;
  height: auto;
  max-width: 220px;
  /* Quitamos la animación de "floatIcon" para que se vea firme y serio */
  animation: none; 
}

/* Opcional: Si quieres una entrada elegante pero quieta */
.hero-illustration {
  animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
/* 1. Subimos la sección de "¿Por qué existe?" pegándola más al bloque de arriba */
.info-hero {
  /* Antes tenías 5rem (80px), lo bajamos a 2rem (32px) */
  margin-bottom: 2.5rem; 
}

/* 2. (Opcional) Si sientes que el título "¿Por qué existe?" está muy separado de las tarjetas de abajo */
.purpose-header {
  /* Antes tenías 4rem, lo bajamos a 2rem */
  margin-bottom: 2rem;
  /* Aseguramos que no tenga margen arriba estorbando */
  margin-top: 0; 
}

/* 3. Ajuste extra por si el contenedor general tiene relleno */
.purpose-section {
  padding-top: 0;
}

/* ================================
   Franja compacta de pasos
   ================================ */

/* Contenedor de la franja: delgadito */
#innovative-info-section {
  padding: 1.2rem 1.8rem 1.3rem !important;  /* mucho más bajo */
}

/* Título y subtítulo compactos */
#innovative-info-section .info-header h2 {
  margin: 0;
  font-size: 1.35rem;
}

#innovative-info-section .info-header p {
  margin: 0.3rem 0 0.9rem;
  font-size: .9rem;
}

/* Tira de pasos en una sola línea (con wrap si no caben) */
#innovative-info-section .steps-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
}

/* Cada “pastilla” de paso */
#innovative-info-section .step-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  font-size: 0.85rem;
  color: #0b3b60;
  cursor: default;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  white-space: nowrap;
}

/* Iconito redondo mini dentro */
#innovative-info-section .step-icon {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--ic, #0076aa);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#innovative-info-section .step-icon svg {
  width: 14px;
  height: 14px;
  color: #fff;
}

/* Hover sutil para desktop */
#innovative-info-section .step-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
  border-color: rgba(11, 59, 96, 0.18);
}

/* Texto */
#innovative-info-section .step-label {
  font-weight: 500;
}

/* En móvil, que puedan hacer wrap sin cortar nada */
@media (max-width: 768px) {
  #innovative-info-section {
    padding-inline: 1rem !important;
  }
  #innovative-info-section .steps-strip {
    justify-content: flex-start;
  }
}
/* Texto dinámico debajo de los pasos */
#innovative-info-section .steps-description {
  margin-top: 0.8rem;
  font-size: 0.9rem;
  color: #4b5563;
  min-height: 2.2em;            /* reserva espacio para evitar saltos */
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .2s ease, transform .2s ease;
}

/* Cuando haya contenido activo */
#innovative-info-section .steps-description.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Pastilla activa más marcada */
#innovative-info-section .step-pill.is-active {
  border-color: rgba(11, 59, 96, 0.35);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.20);
  transform: translateY(-2px);
}
#innovative-info-section .steps-description {
  margin-top: 1rem;
  padding: 0.8rem 1rem 0.8rem 1.2rem;
  border-left: 4px solid #0b3b60;
  background: rgba(11,59,96,0.04);
  border-radius: 6px;
  color: #0b3b60;
  font-size: .95rem;
  line-height: 1.45;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 500;

  opacity: 0;
  transform: translateY(4px);
  transition: all .25s ease;
}

#innovative-info-section .steps-description.is-visible {
  opacity: 1;
  transform: translateY(0);
}
#innovative-info-section .steps-description {
  margin-top: 1rem;
  padding: 0.8rem 1rem 0.8rem 1.2rem;
  border-left: 4px solid #0b3b60;      /* El borde lateral */
  background: rgba(11,59,96,0.04);      /* El fondo suave */
  border-radius: 6px;
  color: #0b3b60;
  /* ...otros estilos de texto... */
  
  /* ESTO ES IMPORTANTE: Por defecto está invisible */
  opacity: 0;
  transform: translateY(4px);
  transition: all .25s ease;
}

/* Esta clase hace que aparezca */
#innovative-info-section .steps-description.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* =========================================
   NUEVO ESTILO: Contenedor tipo "Tarjeta"
   ========================================= */

#innovative-info-section {
  background-color: #ffffff;      /* Fondo blanco como las tarjetas de arriba */
  border-radius: 20px;            /* Bordes redondeados iguales */
  box-shadow: 0 4px 20px rgba(0,0,0,0.05); /* Sombra suave */
  padding: 2.5rem 2rem;           /* Espacio interno amplio */
  margin-top: 3rem;               /* Separación de la sección de arriba */
  text-align: center;             /* Todo centrado */
  max-width: 1200px;              /* Que no se estire infinito */
  margin-left: auto;
  margin-right: auto;
}

/* Títulos */
#innovative-info-section .section-header h2 {
  color: #0b3b60;                 /* Azul institucional fuerte */
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

#innovative-info-section .section-header .subtitle {
  color: #6b7785;                 /* Gris suave */
  font-size: 1rem;
  margin-bottom: 2rem;            /* Espacio antes de los botones */
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* La tira de pasos (Centrada) */
#innovative-info-section .steps-strip {
  justify-content: center;        /* Centra los botones */
  margin-bottom: 1.5rem;
}

/* =========================================
   CAJA DE DESCRIPCIÓN MEJORADA
   ========================================= */
#innovative-info-section .steps-description {
  /* Tamaño y posición */
  max-width: 600px;
  margin: 0 auto;                 /* Centrado horizontal */
  padding: 1rem 1.5rem;
  
  /* Estética más suave */
  background: #f0f4f8;            /* Gris/Azul muy clarito, no tan fuerte */
  border-radius: 12px;            /* Redondeado completo */
  border-left: none;              /* QUITAMOS la barra lateral tosca */
  
  /* Texto */
  color: #0b3b60;
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: center;             /* Texto centrado */
  
  /* Animación (igual que antes) */
  opacity: 0;
  transform: translateY(5px);
  transition: all 0.3s ease;
}

/* Estado visible */
#innovative-info-section .steps-description.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* =========================================
   GRID DE 11 TARJETAS (Temáticas)
   ========================================= */

.cards-grid-container {
  display: grid;
  /* Esto crea columnas automáticas que no bajan de 280px */
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  
  max-width: 1200px;
  margin: 3rem auto 4rem; /* Margen arriba y abajo */
  padding: 0 1.5rem;      /* Padding lateral para móviles */
}

/* Diseño de la Tarjeta Individual */
.topic-card {
  background: #ffffff;
  border-radius: 20px;    /* Mismo redondeo que la sección anterior */
  padding: 2rem 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Alineado a la izquierda para lectura cómoda */
  border: 1px solid rgba(0,0,0,0.03);
}

/* Efecto Hover: La tarjeta "flota" */
.topic-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

/* El Ícono */
.topic-card .card-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  /* Usamos la variable --accent definida en el HTML para el fondo suave */
  background: color-mix(in srgb, var(--accent) 10%, white); 
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: background 0.3s ease;
}

.topic-card:hover .card-icon {
  /* Al hacer hover, el fondo se vuelve un poquito más fuerte */
  background: color-mix(in srgb, var(--accent) 18%, white); 
}

/* El SVG dentro del ícono */
.topic-card .card-icon svg {
  width: 26px;
  height: 26px;
  color: var(--accent); /* El ícono toma el color fuerte */
  stroke-width: 2.5px;  /* Un poco más gordito para que destaque */
}

/* Título de la tarjeta */
.topic-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0b3b60; /* Azul institucional */
  margin: 0 0 0.75rem;
}

/* Frase explicativa */
.topic-card p {
  font-size: 0.95rem;
  color: #6b7785;
  line-height: 1.5;
  margin: 0 0 1.5rem;
  flex-grow: 1; /* Esto empuja el botón hacia abajo si el texto es corto */
}

/* CTA: Ver más */
.topic-card .card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent); /* Hereda el color de la tarjeta */
  text-decoration: none;
  transition: gap 0.2s ease;
}

.topic-card .card-cta svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

/* Animación del botón al pasar el mouse */
.topic-card:hover .card-cta {
  gap: 10px; /* Separa la flechita */
}

.topic-card:hover .card-cta svg {
  transform: translateX(2px);
}
/* =========================================
   ENCABEZADO DE SECCIÓN (INSTRUMENTOS)
   ========================================= */

.instruments-section-wrapper {
  margin-top: 4rem; /* Separación amplia de la sección anterior */
  margin-bottom: 4rem;
}

.instruments-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem; /* Centrado y con margen abajo */
  padding: 0 1.5rem;
}

.instruments-header h2 {
  font-size: 2.2rem;
  color: #0b3b60;      /* Tu azul institucional */
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.5px;
}

.instruments-header p {
  font-size: 1.05rem;
  color: #6b7785;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Pequeña línea decorativa debajo del título */
.instruments-header .header-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--pink));
  border-radius: 2px;
  margin: 0 auto;
}

/* Ajuste Responsive para el título */
@media (max-width: 768px) {
  .instruments-header h2 {
    font-size: 1.75rem;
  }
}
/* =========================================
   ANIMACIÓN SCROLL REVEAL
   ========================================= */

/* 1. Estado inicial (Invisible y desplazado hacia abajo) */
.topic-card, 
.instruments-header,
.steps-strip,
.section-header {
  opacity: 0;
  transform: translateY(50px); /* Empieza 50px más abajo */
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform; /* Optimización de rendimiento */
}

/* 2. Estado visible (Cuando el JS agrega esta clase) */
.is-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* 
   TRUCO PRO: Retardo en cascada para el Grid 
   (Hace que las tarjetas aparezcan una tras otra si están en la misma fila)
*/
.topic-card:nth-child(1) { transition-delay: 0.1s; }
.topic-card:nth-child(2) { transition-delay: 0.2s; }
.topic-card:nth-child(3) { transition-delay: 0.3s; }
/* Si en móviles se ven de 1 en 1, el delay se reinicia por el observer, 
   pero esto ayuda en pantallas grandes */
   /* =========================================
   SECCIÓN: DERECHOS (Layout 2 columnas)
   ========================================= */

.rights-section-wrapper {
  background-color: #f8fafc; /* Un gris muy tenue para diferenciar secciones */
  padding: 5rem 0;
  margin-top: 4rem;
}

.rights-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1.2fr; /* Izq un poco más chica, Der más ancha */
  gap: 4rem;
  align-items: center; /* Centrado verticalmente */
}

/* --- Columna Izquierda (Texto) --- */
.rights-intro {
  text-align: left;
}

.intro-badge {
  display: inline-block;
  background: rgba(11, 59, 96, 0.1);
  color: #0b3b60;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.rights-intro h2 {
  font-size: 2.5rem;
  color: #0b3b60;
  font-weight: 700;
  margin: 0 0 1.5rem;
  line-height: 1.1;
}

.rights-intro .intro-text {
  font-size: 1.1rem;
  color: #4b5563;
  line-height: 1.7;
}

/* Decoración (Ícono grande desvanecido) */
.intro-decoration {
  margin-top: 2rem;
  display: flex;
  justify-content: flex-start;
}

.intro-decoration svg {
  width: 80px;
  height: 80px;
  color: #e2e8f0; /* Color muy clarito decorativo */
}

/* --- Columna Derecha (Lista Grid) --- */
.rights-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columnas de derechos */
  gap: 1.5rem;
}

/* Tarjeta individual de Derecho */
.right-item {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  border: 1px solid rgba(0,0,0,0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.right-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  border-color: rgba(0,0,0,0.08);
}

/* Ícono del derecho */
.right-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--r-color) 12%, white);
  color: var(--r-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.right-icon-box svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.5px;
}

/* Textos de la tarjeta */
.right-content h4 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
}

.right-content p {
  margin: 0;
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.4;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .rights-container {
    grid-template-columns: 1fr; /* Una sola columna */
    gap: 2.5rem;
  }
  
  .rights-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
  }
  
  .intro-decoration {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .rights-list {
    grid-template-columns: 1fr; /* Derechos uno debajo del otro en móvil */
  }
}
/* ============================================================
   1. ELIMINAR MENÚ VIEJO (DRAWER) PARA EVITAR DUPLICADOS
   ============================================================ */
#topbar-drawer, .topbar__drawer, .topbar__scrim {
    display: none !important;
    visibility: hidden !important;
}

/* ============================================================
   2. MENÚ RESPONSIVE ALINEADO A LA IZQUIERDA
   ============================================================ */
@media (max-width: 992px) {
  /* Botón Hamburguesa: siempre visible por encima del panel */
  .topbar__toggle {
    display: block !important;
    position: relative !important;
    z-index: 9999999 !important;
    background: transparent;
    border: none;
  }

  /* Animación del botón a X */
  .topbar__toggle[aria-expanded="true"] .top { transform: translateY(5px) rotate(45deg); transform-origin: center; }
  .topbar__toggle[aria-expanded="true"] .middle { opacity: 0; }
  .topbar__toggle[aria-expanded="true"] .bottom { transform: translateY(-5px) rotate(-45deg); transform-origin: center; }
  .topbar__toggle .line { stroke: #0056b3; stroke-width: 2; transition: all 0.3s ease; }

  /* Panel lateral blanco (Alineado a la izquierda) */
  #topbar-links.topbar__links {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important; /* <--- Esto quita lo centrado */
    justify-content: flex-start !important;
    position: fixed !important;
    top: 0 !important;
    right: -100% !important;
    width: 280px !important;
    height: 100vh !important;
    background: #ffffff !important;
    z-index: 9999998 !important;
    padding: 80px 24px 40px 24px !important;
    box-shadow: -10px 0 20px rgba(0,0,0,0.1) !important;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    margin: 0 !important;
    overflow-y: auto !important;
  }

  #topbar-links.topbar__links.is-active {
    right: 0 !important;
  }

  /* Links normales: Texto Negro y alineado a la izquierda */
  .topbar__links .tb-link:not([data-variant="primary"]) {
    color: #333 !important;
    text-align: left !important;
    padding: 15px 0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
    width: 100% !important;
    display: block !important;
  }

  /* EL BOTÓN AZUL: Letras blancas, sin cambios raros */
  .topbar__links .tb-link[data-variant="primary"] {
    color: #ffffff !important; 
    background-color: #003e6a !important; 
    display: block !important;
    width: 100% !important;
    text-align: center !important; /* El texto del botón sí suele ir al centro */
    padding: 14px !important;
    margin-top: 20px !important;
    border-radius: 50px !important;
    border-bottom: none !important;
  }

  /* Dropdowns y Submenús (Estilo Acordeón) */
  .tb-dropdown-content, .tb-submenu-content {
    display: none !important;
    position: static !important;
    width: 100% !important;
    background: #ffffff !important;
    padding-left: 20px !important; /* Sangría para jerarquía */
    text-align: left !important;
    box-shadow: none !important;
  }

  /* Mostrar cuando estén abiertos */
  .tb-dropdown.is-open > .tb-dropdown-content,
  .tb-submenu.is-open > .tb-submenu-content {
    display: block !important;
  }

  /* Links internos de los submenús */
  .tb-dropdown-content a, .tb-submenu-content a {
    color: #666 !important;
    padding: 10px 0 !important;
    font-size: 0.95rem !important;
    border: none !important;
  }
}