@import url('../assets/css/cerealto-marca.css');

/* Index V2 - Diseño moderno (colores alineados con marca Cerealto) */
:root {
  --azul: var(--cerealto-navy);
  --rojo: var(--cerealto-rojo);
  --rojo-hover: var(--cerealto-rojo-hover);
  --gris-100: #f8fafc;
  --gris-200: #e2e8f0;
  --gris-400: #94a3b8;
  --gris-600: #475569;
  --gris-800: #1e293b;
}

.index-v2 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--cerealto-fondo-pagina);
  color: var(--gris-800);
}

/* Cabecera + hero: fluye con el scroll (no fija al bajar) */
.header-v2 {
  position: relative;
  z-index: 1;
}

.navbar-v2 {
  background: var(--cerealto-franja) top / 100% 3px no-repeat, #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}

.nav-brand img {
  height: 42px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--gris-600);
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.5rem;
}

.nav-links a {
  color: var(--gris-600);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 6px;
}

.nav-links a:hover {
  color: var(--azul);
  background: var(--gris-100);
}

.nav-login {
  margin-left: auto;
  padding: 0.45rem 1rem !important;
  color: var(--azul) !important;
  font-weight: 600;
  flex-shrink: 0;
}

@media (max-width: 991px) {
  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .nav-inner {
    flex-wrap: wrap;
  }

  .nav-v2-collapse.show {
    display: flex !important;
    flex: 1 1 100%;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .nav-login {
    margin-left: 0;
    align-self: flex-start;
  }
}

@media (min-width: 992px) {
  /* Una sola fila: logo pegado a «Denunciar», menú + sesión a la derecha */
  .nav-inner {
    flex-wrap: nowrap;
  }

  .nav-inner > .nav-v2-collapse {
    display: flex !important;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    width: auto !important;
    max-width: none !important;
    gap: 0.25rem;
  }
}

/* Hero V2 */
.hero-v2 {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.hero-v2 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  /* Tono azul marino del logo (#003366 / #0b2343) */
  background: linear-gradient(135deg, rgba(11, 35, 67, 0.82), rgba(0, 51, 102, 0.52));
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
}

.hero-content h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.25rem 0;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.hero-content p {
  font-size: 0.9rem;
  opacity: 0.95;
  margin: 0 0 1rem 0;
}

.btn-hero {
  background: var(--rojo);
  color: #fff !important;
  padding: 0.5rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-hero:hover {
  background: var(--rojo-hover);
  color: #fff !important;
}

/* Main */
.main-v2 {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

/* Secciones */
.sect-v2 {
  margin-bottom: 2rem;
}

.sect-header {
  text-align: center;
  margin-bottom: 1.25rem;
}

.sect-header h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--azul);
  margin: 0 0 0.5rem 0;
}

.sect-header p {
  font-size: 0.9rem;
  color: var(--gris-600);
  margin: 0 0 0.35rem 0;
  line-height: 1.5;
}

.sect-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--azul);
  text-align: center;
  margin: 0 0 1rem 0;
}

/* Cards V2 */
.cards-v2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.card-v2 {
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  border: 1px solid var(--gris-200);
  display: flex;
  flex-direction: column;
}

.card-v2:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.card-v2-icon {
  margin-bottom: 0.75rem;
}

.card-v2-icon img {
  height: 44px;
  width: auto;
}

.card-v2 h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--azul);
  margin: 0 0 0.5rem 0;
}

.card-v2 p {
  font-size: 0.85rem;
  color: var(--gris-600);
  line-height: 1.5;
  margin: 0 0 1rem 0;
  flex: 1;
}

.card-v2-cta p { margin-bottom: 0.75rem; }

.btn-v2 {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-v2-red {
  background: var(--rojo);
  color: #fff !important;
}

.btn-v2-red:hover {
  background: var(--rojo-hover);
  color: #fff !important;
}

@media (max-width: 767px) {
  .cards-v2 { grid-template-columns: 1fr; }
}

/* Seguimiento V2 */
.sect-seguimiento .sect-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  border: 1px solid var(--gris-200);
}

.sect-seguimiento .sect-card h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--azul);
  margin: 0 0 1rem 0;
}

.sect-card-body p {
  font-size: 0.9rem;
  color: var(--gris-600);
  line-height: 1.55;
  margin: 0 0 0.5rem 0;
}

/* Accordion V2 */
.accordion-v2 {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.acc-item {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--gris-200);
}

.acc-header {
  width: 100%;
  text-align: left;
  padding: 0.85rem 1rem;
  background: var(--azul);
  color: #fff;
  border: none;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.acc-header::after {
  content: '\25BC';
  font-size: 0.7em;
  transition: transform 0.2s;
}

.acc-header.collapsed::after {
  transform: rotate(-90deg);
}

.acc-body {
  border-top: 1px solid var(--gris-200);
}

.acc-content {
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  color: var(--gris-600);
  line-height: 1.55;
}

.acc-content ul {
  margin: 0.5rem 0 0 0;
  padding-left: 1.25rem;
}

.acc-content li {
  margin-bottom: 0.25rem;
}

/* Cuéntanos V2 */
.cuentanos-v2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid var(--gris-200);
}

.cuentanos-img {
  min-height: 180px;
}

.cuentanos-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cuentanos-txt {
  padding: 1.5rem;
  background: var(--gris-100);
  border-left: 4px solid var(--rojo);
}

.cuentanos-txt h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--azul);
  margin: 0 0 0.2rem 0;
  text-align: center;
}

.cuentanos-txt h3 {
  font-size: 1rem;
  color: var(--rojo);
  margin: 0 0 1rem 0;
  text-align: center;
}

.cuentanos-txt p {
  font-size: 0.85rem;
  color: var(--gris-600);
  line-height: 1.5;
  margin: 0 0 0.5rem 0;
}

@media (max-width: 767px) {
  .cuentanos-v2 { grid-template-columns: 1fr; }
  .cuentanos-txt { border-left: none; border-top: 4px solid var(--rojo); }
}

/* Footer V2 */
.footer-cerealto {
  background: var(--azul);
  color: #fff;
  padding: 0.85rem;
  margin-top: 1.5rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-copyright {
  margin: 0 0 0.3rem 0;
  font-size: 0.85rem;
}

.footer-copyright a { color: #fff; }

.footer-links {
  margin: 0;
  font-size: 0.8rem;
}

.footer-links a { color: rgba(255,255,255,0.9); }

.footer-sep { margin: 0 0.4rem; opacity: 0.7; }
