/*
Project Name: Portal Canal de Denuncias Bursán Empresas
Project URI: https://canaldenuncias.bursanempresas.com
Author: wekum
Author URI: https://www.wekum.cl
Description: Interfaz institucional de acceso al Canal de Denuncias de Bursán Empresas.
Version: 1.0.1
Copyright: © 2026 wekum. Todos los derechos reservados.
*/

/* =========================================================
   VARIABLES
   ========================================================= */

:root {
  --bursan-blue: #123d89;
  --bursan-orange: #ff9f43;
  --white: #ffffff;
  --ink: #111111;
  --content-width: 1280px;

  --header-height: 108px;
  --main-padding-top: 34px;
  --main-padding-bottom: 34px;
}

/* =========================================================
   NORMALIZACIÓN
   ========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Poppins", Arial, sans-serif;
  color: var(--white);
  background: var(--bursan-blue);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

.container {
  width: min(var(--content-width), calc(100% - 48px));
  margin-inline: auto;
}

/* =========================================================
   HEADER
   ========================================================= */

.portal-header {
  position: relative;
  z-index: 10;
  background: #ffffff;
  color: #111111;
}

.portal-header__inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.portal-logo {
  flex: 0 0 auto;
}

.portal-logo img {
  width: 180px;
  height: auto;
}

.portal-support {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.55;
}

.portal-support > span {
  margin-bottom: 2px;
}

.portal-support a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #111111;
  text-decoration: none;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.portal-support a img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
}

/* =========================================================
   CUERPO
   ========================================================= */

.portal-main {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - var(--header-height));
  padding:
    var(--main-padding-top)
    0
    var(--main-padding-bottom);
  background: var(--bursan-blue);
}

.portal-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.095;

  background-image:
    linear-gradient(
      rgba(255, 255, 255, 0.25) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.25) 1px,
      transparent 1px
    );

  background-size: 120px 120px;

  -webkit-mask-image:
    linear-gradient(
      to right,
      transparent 5%,
      #000 35%,
      #000 100%
    );

  mask-image:
    linear-gradient(
      to right,
      transparent 5%,
      #000 35%,
      #000 100%
    );
}

.portal-main > .container {
  position: relative;
  z-index: 2;

  min-height: calc(
    100vh
    - var(--header-height)
    - var(--main-padding-top)
    - var(--main-padding-bottom)
  );

  display: flex;
  flex-direction: column;
}

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

.portal-hero {
  display: grid;

  grid-template-columns:
    minmax(0, 0.92fr)
    minmax(420px, 1.08fr);

  align-items: center;
  gap: 60px;

  min-height: 0;
  flex: 1;
  padding-block: 8px 30px;
}

.portal-hero__copy {
  min-width: 0;
}

.portal-eyebrow {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.4;
}

.portal-hero h1 {
  margin: 0 0 14px;
  color: #ffffff;

  font-size:
    clamp(3.35rem, 4.8vw, 4.55rem);

  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.035em;
}

.portal-description {
  max-width: 585px;
  margin: 0 0 28px;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.7;
}

.portal-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 224px;
  min-height: 56px;
  padding: 13px 30px;

  border: 1px solid var(--bursan-orange);
  border-radius: 1px;

  color: #111111;
  background: var(--bursan-orange);

  font-size: 15px;
  font-weight: 600;
  text-decoration: none;

  transition:
    transform 0.18s ease,
    filter 0.18s ease;
}

.portal-button:hover {
  transform: translateY(-2px);
  filter: brightness(0.97);
}

.portal-button:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.85);
  outline-offset: 4px;
}

.portal-hero__image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.portal-hero__image img {
  width: min(100%, 540px);
  max-height: 345px;
  object-fit: contain;
}

/* =========================================================
   TARJETAS
   ========================================================= */

.portal-cards {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 18px;
  margin-top: auto;
  flex-shrink: 0;
}

.portal-card {
  min-width: 0;
  min-height: 150px;
  padding: 25px 22px;

  border-radius: 3px;
  color: var(--ink);
  background: #ffffff;
}

.portal-card__icon {
  width: 26px;
  height: 26px;
  margin: 0 0 12px;
  object-fit: contain;
}

.portal-card h2 {
  margin: 0 0 7px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}

.portal-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
}

/* =========================================================
   ESCRITORIO ALTO
   ========================================================= */

@media (min-width: 1101px) and (min-height: 851px) {

  .portal-hero {
    padding-block: 10px 34px;
  }

  .portal-hero__image img {
    max-height: 360px;
  }

  .portal-card {
    min-height: 154px;
    padding: 26px 22px;
  }
}

/* =========================================================
   NOTEBOOK O ESCRITORIO CON POCA ALTURA
   ========================================================= */

@media (min-width: 861px) and (max-height: 850px) {

  :root {
    --header-height: 88px;
    --main-padding-top: 24px;
    --main-padding-bottom: 24px;
  }

  .portal-logo img {
    width: 155px;
  }

  .portal-support {
    font-size: 11px;
  }

  .portal-main > .container {
    min-height: calc(
      100vh
      - var(--header-height)
      - var(--main-padding-top)
      - var(--main-padding-bottom)
    );
  }

  .portal-hero {
    min-height: 0;
    flex: 1;
    gap: 42px;
    padding-block: 0 14px;
  }

  .portal-eyebrow {
    margin-bottom: 7px;
    font-size: 13px;
  }

  .portal-hero h1 {
    margin-bottom: 10px;
    font-size: clamp(2.9rem, 4.4vw, 3.75rem);
    line-height: 1.1;
  }

  .portal-description {
    max-width: 550px;
    margin-bottom: 20px;
    font-size: 13px;
    line-height: 1.6;
  }

  .portal-button {
    min-height: 50px;
    padding: 11px 25px;
    font-size: 14px;
  }

  .portal-hero__image {
    min-height: 250px;
  }

  .portal-hero__image img {
    max-height: 275px;
  }

  .portal-cards {
    margin-top: 0;
  }

  .portal-card {
    min-height: 126px;
    padding: 19px 18px;
  }

  .portal-card__icon {
    width: 22px;
    height: 22px;
    margin-bottom: 9px;
  }

  .portal-card h2 {
    margin-bottom: 5px;
    font-size: 15px;
  }

  .portal-card p {
    font-size: 12px;
    line-height: 1.55;
  }
}

/* =========================================================
   TABLET HORIZONTAL / NOTEBOOK ESTRECHO
   ========================================================= */

@media (max-width: 1100px) {

  .container {
    width: min(100% - 56px, var(--content-width));
  }

  .portal-logo img {
    width: 165px;
  }

  .portal-support {
    font-size: 12px;
  }

  .portal-hero {
    grid-template-columns:
      minmax(0, 1fr)
      minmax(350px, 0.9fr);

    gap: 38px;
  }

  .portal-hero h1 {
    font-size: clamp(3.05rem, 5.6vw, 4rem);
  }

  .portal-hero__image img {
    width: min(100%, 460px);
    max-height: 320px;
  }

  .portal-cards {
    gap: 16px;
  }
}

/* =========================================================
   TABLET VERTICAL
   ========================================================= */

@media (max-width: 860px) {

  :root {
    --header-height: 100px;
    --main-padding-top: 52px;
    --main-padding-bottom: 70px;
  }

  .container {
    width: min(100% - 44px, var(--content-width));
  }

  .portal-logo img {
    width: 155px;
  }

  .portal-support {
    max-width: 340px;
    font-size: 12px;
    text-align: right;
    align-items: flex-end;
  }

  .portal-pattern {
    background-size: 100px 100px;
  }

  .portal-main > .container {
    min-height: auto;
    display: block;
  }

  .portal-hero {
    grid-template-columns: 1fr;
    gap: 24px;
    min-height: auto;
    padding-block: 0;
  }

  .portal-hero__copy {
    max-width: 720px;
  }

  .portal-hero h1 {
    max-width: 680px;
    font-size: clamp(3rem, 8vw, 4.2rem);
  }

  .portal-description {
    max-width: 660px;
  }

  .portal-hero__image {
    min-height: 300px;
    margin-top: 8px;
  }

  .portal-hero__image img {
    width: min(100%, 470px);
    max-height: 320px;
  }

  .portal-cards {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    margin-top: 34px;
  }

  .portal-card:last-child {
    grid-column: 1 / -1;
  }

  .portal-card {
    min-height: auto;
  }
}

/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 620px) {

  :root {
    --header-height: 96px;
    --main-padding-top: 42px;
    --main-padding-bottom: 58px;
  }

  .container {
    width: min(100% - 32px, var(--content-width));
  }

  .portal-header__inner {
    gap: 18px;
  }

  .portal-logo img {
    width: 128px;
  }

  .portal-support {
    max-width: 185px;
    font-size: 9px;
    line-height: 1.45;
    text-align: right;
    align-items: flex-end;
  }

  .portal-support a {
    justify-content: flex-end;
    font-size: 9px;
  }

  .portal-support a img {
    width: 14px;
    height: 14px;
  }

  .portal-pattern {
    opacity: 0.075;
    background-size: 82px 82px;

    -webkit-mask-image:
      linear-gradient(
        to bottom,
        #000 0%,
        #000 65%,
        transparent 100%
      );

    mask-image:
      linear-gradient(
        to bottom,
        #000 0%,
        #000 65%,
        transparent 100%
      );
  }

  .portal-hero {
    gap: 22px;
  }

  .portal-eyebrow {
    margin-bottom: 10px;
    font-size: 13px;
  }

  .portal-hero h1 {
    margin-bottom: 18px;

    font-size:
      clamp(2.65rem, 13vw, 3.45rem);

    line-height: 1.12;
    letter-spacing: -0.04em;
  }

  .portal-description {
    margin-bottom: 28px;
    font-size: 14px;
    line-height: 1.7;
  }

  .portal-button {
    width: 100%;
    min-width: 0;
    min-height: 56px;
    padding: 13px 20px;
  }

  .portal-hero__image {
    min-height: 230px;
    margin-top: 4px;
  }

  .portal-hero__image img {
    width: min(100%, 340px);
    max-height: 250px;
  }

  .portal-cards {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 26px;
  }

  .portal-card:last-child {
    grid-column: auto;
  }

  .portal-card {
    min-height: auto;
    padding: 27px 20px 25px;
  }

  .portal-card__icon {
    margin-bottom: 13px;
  }

  .portal-card h2 {
    font-size: 17px;
  }

  .portal-card p {
    font-size: 14px;
    line-height: 1.7;
  }
}

/* =========================================================
   MÓVIL PEQUEÑO
   ========================================================= */

@media (max-width: 390px) {

  :root {
    --header-height: 88px;
    --main-padding-top: 36px;
  }

  .container {
    width: min(100% - 24px, var(--content-width));
  }

  .portal-logo img {
    width: 112px;
  }

  .portal-support {
    max-width: 155px;
    font-size: 8px;
  }

  .portal-support a {
    font-size: 8px;
    gap: 5px;
  }

  .portal-hero h1 {
    font-size: 2.45rem;
  }

  .portal-description {
    font-size: 13px;
  }

  .portal-hero__image {
    min-height: 205px;
  }

  .portal-hero__image img {
    max-height: 215px;
  }

  .portal-card p {
    font-size: 13px;
  }
}