/* ================= Fonts (Altivo) ================= */
@font-face {
  font-family: 'Altivo';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/altivo-regular.otf') format('opentype');
}
@font-face {
  font-family: 'Altivo';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/altivo-medium.otf') format('opentype');
}
@font-face {
  font-family: 'Altivo';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/altivo-bold.otf') format('opentype');
}
@font-face {
  font-family: 'Altivo';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/altivo-bold.otf') format('opentype');
}

/* ================= Variables ================= */
:root {
  --navy: #062355;
  --navy-deep: #041c43;
  --cyan: #00A8EB;
  --cyan-2: #19b4ee;
  --cyan-soft: #73DBF6;
  --cyan-outline: #8fd9f7;
  --cyan-pale: #cfeafb;
  --bg: #eef6fc;
  --white: #ffffff;
  --shadow: 0 18px 40px rgba(6, 35, 85, 0.14);
}

/* ================= Base ================= */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Altivo', sans-serif;
  font-weight: 400;
  background: var(--bg);
  color: var(--navy);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}
img { display: block; max-width: 100%; }

.hl { color: var(--cyan); }

/* ================= Header ================= */
.site-header {
  background: var(--navy);
  position: relative;
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  gap: 1.5rem;
}
.brand img { height: 52px; width: auto; }
.gob img { height: 58px; width: auto; }

/* ================= Hero ================= */
.hero {
  position: relative;
  overflow: hidden;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  background:
    radial-gradient(120% 120% at 50% 0%, #ffffff 0%, var(--bg) 70%);
  padding: 0 4vw;
}

/* Palace background */
.palace {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
.palace img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ================= Hero content ================= */
.hero-content {
  position: relative;
  z-index: 2;
  flex: 0 0 55%;
  margin-left: 4vw;
  text-align: center;
}

/* Browser icon */
.browser-icon {
  position: relative;
  width: 104px;
  height: 80px;
  margin: 0 auto 2.6vh;
  border: 2px solid var(--cyan-outline);
  border-radius: 7px;
  background: rgba(255,255,255,0.35);
}
.browser-dot {
  position: absolute;
  top: 10px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan-outline);
}
.browser-dot:nth-child(1) { left: 13px; }
.browser-dot:nth-child(2) { left: 27px; }
.browser-dot:nth-child(3) { left: 41px; }
.browser-icon i {
  position: absolute;
  top: 56%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 30px;
  color: var(--cyan-outline);
}

/* Typography */
.estamos {
  margin: 0 0 1.3vh;
  font-size: clamp(1.3rem, 1.9vw, 1.95rem);
  font-weight: 400;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  color: var(--cyan-2);
}
.titulo {
  margin: 0 0 2.6vh;
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--navy);
}
.sub {
  margin: 0 auto 3.8vh;
  max-width: 640px;
  font-size: clamp(1rem, 1.3vw, 1.28rem);
  line-height: 1.4;
  font-weight: 600;
  color: var(--navy);
}

/* Card */
.card {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0 auto;
  max-width: 540px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 20px 26px 20px 20px;
  text-align: left;
}
.card-icon {
  flex: 0 0 auto;
  width: 76px; height: 76px;
  border-radius: 16px;
  background: linear-gradient(160deg, var(--cyan) 0%, #0091d1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 16px rgba(0, 168, 235, 0.4);
}
.card-icon i { color: #fff; font-size: 38px; }
.card-divider {
  flex: 0 0 2px;
  height: 66px;
  background: #cfd6e2;
  border-radius: 2px;
}
.card-text {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.45;
  font-weight: 600;
  color: var(--navy);
}

/* Robot */
.robot {
  position: absolute;
  top: 0;
  right: 7vw;
  width: 35vw;
  max-width: 900px;
  height: auto;
  max-height: 100%;
  z-index: 3;
  pointer-events: none;
}

/* ================= Footer ================= */
.site-footer {
  background: var(--navy);
  border-top: 6px solid var(--cyan-soft);
  height: 90px;
  position: relative;
  z-index: 4;
}

/* ================= Responsive (Mobile) ================= */
@media (max-width: 900px) {

  .header-inner { min-height: 96px; gap: 0.75rem; }
  .brand img { height: 30px; }
  .gob img { height: 40px; }

  .hero {
    display: block;
    min-height: auto;
    padding: 26px 0 60px;
    background: url('../imagenes/fondo_movil.png') center top / cover no-repeat;
  }
  .hero-content { max-width: 480px; margin: 0 auto; }
  .palace { display: none; }

  .browser-icon { width: 108px; height: 86px; margin-bottom: 24px; }
  .browser-icon i { font-size: 32px; }

  .estamos { font-size: 1.5rem; letter-spacing: 0.3em; text-indent: 0.3em; }
  .titulo { font-size: 2.2rem; letter-spacing: 0.01em; margin-bottom: 22px; }
  .sub { max-width: 320px; font-size: 1.24rem; line-height: 1.5; margin-bottom: 30px; }

  .card { max-width: 100%; gap: 16px; padding: 18px 18px 18px 16px; }
  .card-icon { width: 62px; height: 62px; border-radius: 14px; }
  .card-icon i { font-size: 28px; }
  .card-divider { height: 54px; }
  .card-text { font-size: clamp(0.76rem, 3.8vw, 1.25rem); }

  .robot {
    position: relative;
    top: auto;
    right: auto;
    width: 70%;
    max-width: 360px;
    height: auto;
    margin: 0 auto;
  }

  .site-footer { height: 66px; }
}

@media (min-width: 901px) {
  html, body { height: 100%; }
  body { overflow: hidden; }
}
