/*--------------------------------------------------------------
# Canal Ético Textiles Camones — rediseño 2026
--------------------------------------------------------------*/
:root {
  --navy: #0b1d5b;
  --navy-deep: #071340;
  --blue: #00519e;
  --blue-hover: #003f7d;
  --blue-soft: #e6eefa;
  --cta: #d7141a;
  --cta-hover: #b51016;
  --mint: #8ff0cb;
  --green: #0f9a6a;
  --ink: #13203f;
  --text: #2b3756;
  --muted: #4a5675;
  --on-dark: #d3dcf5;
  --surface: #f4f7fb;
  --border: #e1e7f2;
  --radius: 20px;
  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Open Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

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

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  color: var(--blue-hover);
}

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--navy);
  margin: 0;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
}

/*--------------------------------------------------------------
# Botones
--------------------------------------------------------------*/
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 26px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-sm {
  min-height: 44px;
  padding: 0 22px;
  font-size: 14px;
}

.btn-lg {
  min-height: 54px;
  padding: 0 30px;
  font-size: 16px;
}

.btn-cta {
  background: var(--cta);
  color: #fff;
}

.btn-cta:hover {
  background: var(--cta-hover);
  color: #fff;
}

.btn-ghost {
  border-color: rgba(255, 255, 255, .55);
  color: #fff;
  font-weight: 600;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, .1);
  border-color: #fff;
  color: #fff;
}

.btn-light {
  background: #fff;
  color: var(--navy);
}

.btn-light:hover {
  background: var(--blue-soft);
  color: var(--navy);
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  transition: box-shadow .2s;
}

.header.header-scrolled {
  box-shadow: 0 6px 24px rgba(7, 19, 64, .35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.logo img {
  height: 36px;
  width: auto;
}

.navbar ul {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.navbar a {
  display: block;
  padding: 10px 0;
  white-space: nowrap;
  color: #dbe4ff;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
}

.navbar a:hover,
.navbar a.active {
  color: #fff;
}

.navbar a.active {
  box-shadow: inset 0 -2px 0 var(--mint);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .navbar {
    display: none;
  }

  .navbar.navbar-mobile {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    border-top: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 12px 24px rgba(7, 19, 64, .35);
  }

  .navbar.navbar-mobile ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 16px;
  }

  .navbar.navbar-mobile a {
    padding: 14px 0;
    font-size: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }

  .navbar.navbar-mobile a.active {
    box-shadow: none;
    color: var(--mint);
  }
}

@media (max-width: 420px) {
  .header .container {
    padding-inline: 16px;
  }

  .header-inner {
    gap: 10px;
  }

  .logo img {
    height: 24px;
  }

  .header-actions {
    gap: 4px;
  }

  .header-actions .btn-sm {
    padding: 0 14px;
    font-size: 13px;
  }
}

/*--------------------------------------------------------------
# Hero
--------------------------------------------------------------*/
.hero {
  background: var(--navy);
  color: #fff;
}

.hero-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
  padding-top: clamp(48px, 7vw, 80px);
  padding-bottom: clamp(56px, 8vw, 96px);
}

.hero-text {
  flex: 1 1 520px;
  min-width: 0;
}

.eyebrow {
  margin-bottom: 10px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
}

.eyebrow-light {
  margin-bottom: 16px;
  color: var(--mint);
}

.hero h1 {
  max-width: 660px;
  margin-bottom: 20px;
  color: #fff;
  font-size: clamp(34px, 2.8vw + 12px, 54px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.hero .lead {
  max-width: 600px;
  margin-bottom: 32px;
  color: var(--on-dark);
  font-size: clamp(16px, .4vw + 14px, 18px);
  line-height: 1.65;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  color: var(--on-dark);
  font-size: 14px;
}

.trust-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-list i {
  color: var(--mint);
  font-size: 18px;
}

.hero-seal {
  flex: 0 1 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-inline: auto;
  padding: 28px 32px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 24px;
  background: rgba(255, 255, 255, .07);
  text-align: center;
}

.hero-seal img {
  width: 128px;
}

.hero-seal p {
  color: var(--on-dark);
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 575px) {
  .btn-row .btn {
    flex: 1 1 100%;
  }

  .hero-seal {
    flex-direction: row;
    flex-basis: 100%;
    gap: 18px;
    padding: 18px 20px;
    text-align: left;
  }

  .hero-seal img {
    width: 72px;
  }
}

/*--------------------------------------------------------------
# Secciones
--------------------------------------------------------------*/
.section {
  padding-block: clamp(56px, 6vw, 88px);
}

.section-alt {
  background: var(--surface);
}

.section-head {
  margin-bottom: clamp(32px, 4vw, 48px);
}

.section-head h2 {
  max-width: 760px;
  font-size: clamp(27px, 1.2vw + 18px, 36px);
  font-weight: 800;
  line-height: 1.2;
}

.section-intro {
  max-width: 760px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 17px;
}

.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 22px;
}

.icon-tile-sm {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 20px;
}

.icon-tile-solid {
  background: var(--blue);
  color: #fff;
}

.icon-tile-mint {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(143, 240, 203, .16);
  color: var(--mint);
  font-size: 26px;
}

/*--------------------------------------------------------------
# Cómo funciona
--------------------------------------------------------------*/
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 800;
}

.step h3 {
  margin: 20px 0 8px;
  font-size: 19px;
  font-weight: 700;
}

.step p {
  color: var(--muted);
  font-size: 15px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
}

.chips-label {
  margin-right: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.chip {
  padding: 8px 14px;
  border: 1px solid #d5ddeb;
  border-radius: 999px;
  color: var(--ink);
  font-size: 14px;
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 40px;
  padding: 24px 28px;
  border-radius: var(--radius);
  background: #eaf7f1;
}

.notice > i {
  flex: none;
  color: #0f7a55;
  font-size: 24px;
  line-height: 1.2;
}

.notice h3 {
  margin-bottom: 4px;
  color: #0b4a35;
  font-size: 17px;
  font-weight: 700;
}

.notice p {
  color: #1f4a3c;
  font-size: 15px;
}

/*--------------------------------------------------------------
# Qué puedes denunciar
--------------------------------------------------------------*/
.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: start;
  gap: 24px;
}

.topic-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.topic-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.badge-dark {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.topic-card h3 {
  margin: 20px 0 14px;
  font-size: 20px;
  font-weight: 700;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text);
  font-size: 15px;
}

.check-list li {
  position: relative;
  padding-left: 28px;
}

.check-list li::before {
  content: "\F633"; /* bi-check-lg */
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--green);
  font-family: "bootstrap-icons";
  font-size: 18px;
  line-height: 1.3;
}

.definitions {
  margin-top: 12px;
}

.definitions summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.definitions summary::-webkit-details-marker {
  display: none;
}

.definitions summary::after {
  content: "\F282"; /* bi-chevron-down */
  font-family: "bootstrap-icons";
  font-size: 12px;
  transition: transform .2s;
}

.definitions[open] summary::after {
  transform: rotate(180deg);
}

.definitions dl {
  margin: 4px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 14px;
}

.definitions dt {
  color: var(--ink);
  font-weight: 700;
}

.definitions dd {
  margin: 2px 0 12px;
  color: var(--text);
}

.definitions dd:last-child {
  margin-bottom: 0;
}

.topic-card-cta {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  border: 0;
  background: var(--navy);
}

.topic-card-cta h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
}

.topic-card-cta p {
  color: var(--on-dark);
  font-size: 15px;
}

.topic-card-cta .btn {
  align-self: flex-start;
}

/*--------------------------------------------------------------
# Brújula Ética
--------------------------------------------------------------*/
.docs-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 24px;
}

.doc-featured {
  flex: 1 1 340px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 36px 32px;
  border-radius: 24px;
  background: var(--navy);
  color: #fff;
}

.doc-featured h3 {
  margin-bottom: 8px;
  color: #fff;
  font-size: 24px;
  font-weight: 800;
}

.doc-featured p {
  color: var(--on-dark);
  font-size: 15px;
}

.doc-featured .btn {
  align-self: flex-start;
  margin-top: auto;
}

.doc-list {
  flex: 2 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.doc-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}

.doc-row:hover {
  border-color: #b9cbe6;
  box-shadow: 0 8px 24px rgba(11, 29, 91, .08);
  transform: translateY(-2px);
  color: var(--ink);
}

.doc-row-text {
  flex: 1 1 auto;
  min-width: 0;
}

.doc-row-text strong {
  display: block;
  color: var(--navy);
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.doc-row-text small {
  display: block;
  margin-top: 2px;
  color: #5b6685;
  font-size: 13px;
}

.doc-row-action {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 575px) {
  .doc-featured {
    padding: 28px 24px;
  }

  .doc-row {
    gap: 14px;
    padding: 16px 18px;
  }

  .doc-row-action {
    font-size: 0;
  }

  .doc-row-action i {
    font-size: 16px;
  }
}

/*--------------------------------------------------------------
# Canales
--------------------------------------------------------------*/
.channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.channel-card {
  padding: 28px;
  border-radius: var(--radius);
  background: #fff;
}

.channel-card h3 {
  margin: 18px 0 6px;
  font-size: 18px;
  font-weight: 700;
}

.channel-card p {
  color: var(--text);
  font-size: 15px;
}

.channel-email {
  overflow-wrap: anywhere;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
  background: var(--navy-deep);
  color: #b9c4e4;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-block: 40px;
  text-align: center;
}

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

.footer-text {
  font-size: 13px;
  line-height: 1.7;
}

/*--------------------------------------------------------------
# Volver arriba
--------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  right: 16px;
  bottom: 96px; /* deja espacio al botón del chatbot */
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  font-size: 28px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}

.back-to-top:hover {
  background: var(--blue-hover);
  color: #fff;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

/*--------------------------------------------------------------
# Accesibilidad: menos movimiento
--------------------------------------------------------------*/
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .doc-row {
    transition: none;
  }

  .btn:hover,
  .doc-row:hover {
    transform: none;
  }
}
