@import url("https://fonts.googleapis.com/css2?family=Titillium+Web:wght@400;600;700&display=swap");

/* Identidad visual v1.2.0: paleta del portal Correos y Accesos Remotos */

:root {
  /* --navy-950: #421720; */
  --navy-950: #7a3339;
  --navy-900: #531f2c;
  --navy-800: #722c40;
  --cyan-500: #ef6687;
  --cyan-300: #f6a3b7;
  --blue-500: #a93f59;
  --violet-500: #b84662;
  --ink: #382a2d;
  --muted: #806a70;
  --line: #eadbdd;
  --page: #fbf7f7;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: "Titillium Web", Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
svg {
  display: block;
}

.portal-shell {
  position: relative;
  min-height: 100vh;
  padding: 0 6vw;
  overflow: hidden;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.97) 0,
      rgba(251, 247, 247, 0.99) 70%
    ),
    radial-gradient(
      circle at top right,
      rgba(239, 102, 135, 0.13),
      transparent 42%
    );
}
.portal-shell::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  pointer-events: none;
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(83, 31, 44, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(83, 31, 44, 0.026) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 76%);
}
.ambient {
  position: absolute;
  z-index: 0;
  width: 330px;
  height: 330px;
  border-radius: 50%;
  pointer-events: none;
}
.ambient-one {
  top: 118px;
  right: -190px;
  border: 55px solid rgba(239, 102, 135, 0.1);
}
.ambient-two {
  bottom: 105px;
  left: -240px;
  border: 70px solid rgba(83, 31, 44, 0.055);
}
.site-header,
.hero,
.apps-section,
.support-note,
footer {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 90px;
  width: calc(100% + 12vw);
  max-width: none;
  margin-left: -6vw;
  padding: 0 max(6vw, calc((100% - 1180px) / 2));
  border-bottom: 4px solid var(--cyan-500);
  color: #fff;
  background: linear-gradient(115deg, var(--navy-950), var(--navy-900));
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  border-radius: 12px;
}
.brand:focus-visible,
.app-link:focus-visible {
  outline: 3px solid rgba(239, 102, 135, 0.38);
  outline-offset: 4px;
}
.brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 7px 12px rgba(0, 0, 0, 0.22));
}
.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.brand-copy strong {
  color: #fff;
  font-size: 1rem;
  letter-spacing: 0.11em;
}
.brand-copy small {
  color: #f1becb;
  font-size: 0.76rem;
  letter-spacing: 0.02em;
}
.header-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #f8dce3;
  font-size: 0.81rem;
  font-weight: 700;
}
.status-dot {
  width: 9px;
  height: 9px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #21b974;
  box-shadow: 0 0 0 4px rgba(33, 185, 116, 0.12);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: end;
  gap: 80px;
  padding: 66px 0 54px;
}
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: #b84662;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.section-kicker::before {
  display: block;
  width: 28px;
  height: 2px;
  content: "";
  background: var(--cyan-500);
}
.hero h1 {
  max-width: 780px;
  margin: 0;
  color: var(--navy-950);
  font-size: clamp(2.65rem, 5vw, 4.75rem);
  font-weight: 750;
  line-height: 0.99;
  letter-spacing: -0.052em;
}
.hero h1 span {
  color: var(--cyan-500);
}
.hero-copy > p {
  max-width: 690px;
  margin: 24px 0 0;
  color: #806a70;
  font-size: 1.03rem;
  line-height: 1.75;
}
.date-card {
  position: relative;
  padding: 22px 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(145deg, var(--navy-950), #722c40);
  box-shadow: 0 22px 45px rgba(83, 31, 44, 0.19);
}
.date-card::after {
  position: absolute;
  top: -58px;
  right: -60px;
  width: 150px;
  height: 150px;
  content: "";
  border: 28px solid rgba(111, 224, 232, 0.16);
  border-radius: 50%;
}
.date-card span,
.date-card strong {
  position: relative;
  z-index: 1;
  display: block;
}
.date-card span {
  margin-bottom: 8px;
  color: var(--cyan-300);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.date-card strong {
  font-size: 0.95rem;
  line-height: 1.5;
}

.apps-section {
  padding: 11px 0 10px;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 24px;
}
.section-heading .section-kicker {
  margin-bottom: 7px;
}
.section-heading h2 {
  max-width: 690px;
  margin: 0;
  color: var(--navy-900);
  font-size: clamp(1.45rem, 2.4vw, 2.05rem);
  line-height: 1.25;
  letter-spacing: -0.025em;
}
.section-heading > p {
  margin: 0 0 4px;
  color: #9a858a;
  font-size: 0.78rem;
}
.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 19px;
}
.app-card {
  --accent: var(--cyan-500);
  --accent-soft: rgba(239, 102, 135, 0.11);
  position: relative;
  display: flex;
  min-height: 358px;
  padding: 26px;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 23px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 15px 45px rgba(83, 31, 44, 0.075);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
  backdrop-filter: blur(14px);
}
.app-card::before {
  position: absolute;
  top: 0;
  left: 26px;
  width: 50px;
  height: 3px;
  content: "";
  border-radius: 0 0 5px 5px;
  background: var(--accent);
}
.app-card:hover {
  border-color: color-mix(in srgb, var(--accent) 36%, white);
  box-shadow: 0 22px 52px rgba(83, 31, 44, 0.13);
  transform: translateY(-5px);
}
.app-card-violet {
  --accent: var(--violet-500);
  --accent-soft: rgba(184, 70, 98, 0.1);
}
.app-card-blue {
  --accent: var(--blue-500);
  --accent-soft: rgba(169, 63, 89, 0.1);
}
.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.app-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 16px;
  color: var(--accent);
  background: var(--accent-soft);
}
.app-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}
.app-code {
  display: grid;
  min-width: 36px;
  height: 36px;
  padding: 0 9px;
  place-items: center;
  border: 1px solid #eadbdd;
  border-radius: 11px;
  color: #9a858a;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: #fff9fa;
}
.card-content {
  margin-top: 28px;
}
.card-eyebrow {
  color: var(--accent);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.app-card h3 {
  margin: 9px 0 12px;
  color: var(--navy-900);
  font-size: 1.38rem;
  line-height: 1.25;
  letter-spacing: -0.025em;
}
.app-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}
.app-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  margin-top: auto;
  padding: 15px 17px;
  border-radius: 13px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--navy-900), #7d3147);
  transition: background 0.2s ease;
}
.app-link:hover {
  background: linear-gradient(135deg, var(--accent), var(--navy-900));
}
.app-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transition: transform 0.2s ease;
}
.app-link:hover svg {
  transform: translateX(3px);
}

.support-note {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 33px;
  padding: 18px 21px;
  border: 1px solid #efd4da;
  border-radius: 16px;
  color: #806a70;
  background: rgba(255, 248, 250, 0.82);
}
.support-icon {
  display: grid;
  width: 37px;
  height: 37px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #b84662;
  font-weight: 900;
  background: rgba(239, 102, 135, 0.12);
}
.support-note strong {
  display: block;
  margin-bottom: 2px;
  color: var(--navy-900);
  font-size: 0.87rem;
}
.support-note p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.5;
}
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 0 35px;
  color: #9b868b;
  font-size: 0.72rem;
}

@media (max-width: 980px) {
  .portal-shell {
    padding-inline: 4.5vw;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 27px;
  }
  .date-card {
    width: min(100%, 420px);
  }
  .apps-grid {
    grid-template-columns: 1fr;
  }
  .app-card {
    min-height: 310px;
  }
}
@media (max-width: 640px) {
  .portal-shell {
    padding-inline: 20px;
  }
  .site-header {
    min-height: 78px;
  }
  .brand-copy small {
    display: none;
  }
  .header-meta span:last-child {
    display: none;
  }
  .hero {
    padding: 46px 0 44px;
  }
  .hero h1 {
    font-size: clamp(2.35rem, 12vw, 3.2rem);
  }
  .hero-copy > p {
    font-size: 0.94rem;
  }
  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }
  .app-card {
    min-height: 335px;
    padding: 23px;
  }
  .support-note {
    align-items: flex-start;
  }
  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
