:root {
  --navy-950: #071c2e;
  --navy-900: #0d2b45;
  --navy-800: #12395a;
  --navy-700: #1e4d6b;
  --red-600: #d7263d;
  --red-500: #f04e5e;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #eef2f6;
  --gray-300: #cbd5e1;
  --gray-700: #334155;
  --dark: #111827;
  --shadow: 0 24px 60px rgba(7, 28, 46, 0.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  background: rgba(7, 28, 46, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar {
  width: min(1180px, calc(100% - 40px));
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 900;
  letter-spacing: 0.04em;
}

.brand-logo { width: 42px; height: 42px; object-fit: contain; }
.brand-name { font-size: 1.25rem; }

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 26px;
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 700;
}

.nav-links a { opacity: 0.9; transition: 0.2s; }
.nav-links a:hover { color: var(--red-500); opacity: 1; }

.nav-cta,
.btn-primary {
  background: var(--red-600);
  color: var(--white);
  border-radius: 10px;
  padding: 13px 20px;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(215, 38, 61, 0.25);
  transition: 0.2s ease;
}

.nav-cta:hover,
.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--red-500);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px auto;
  background: var(--white);
  border-radius: 99px;
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: 48% 52%;
  overflow: hidden;
  background: #0d2b45;
}

/* Panel izquierdo con diagonal */
.hero-panel {
  position: relative;
  z-index: 3;
  background: #ffffff;
  clip-path: polygon(0 0, 92% 0, 82% 100%, 0% 100%);
  display: flex;
  align-items: center;
  padding-left: clamp(2rem, 8vw, 9rem);
  padding-right: 7rem;
}

/* Contenido más seguro para que no se corte */
.hero-content {
  max-width: 620px;
  position: relative;
  z-index: 5;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #0d2b45;
  margin-bottom: 1.2rem;
}

.eyebrow span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #e32645;
  box-shadow: 0 0 0 8px rgba(227, 38, 69, 0.12);
}

.hero h1 {
  font-size: clamp(3rem, 5.4vw, 6.2rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
  color: #030712;
  margin-bottom: 1.4rem;
}

.hero h1::after {
  content: "";
  display: block;
  width: 220px;
  height: 7px;
  border-radius: 999px;
  background: #e32645;
  margin-top: 1.2rem;
}

.hero-text {
  max-width: 520px;
  font-size: 1.1rem;
  line-height: 1.75;
  color: #24364a;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

/* Lado derecho con imagen */
.hero-visual {
  position: relative;
  z-index: 1;
  background-image:
    linear-gradient(
      90deg,
      rgba(13, 43, 69, 0.96) 0%,
      rgba(13, 43, 69, 0.78) 42%,
      rgba(13, 43, 69, 0.55) 100%
    ),
    url("../img/prof1.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Ya no necesitamos una capa blanca encima */
.hero-visual .overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 45% 45%, rgba(227, 38, 69, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(13, 43, 69, 0.2), rgba(13, 43, 69, 0.88));
  z-index: 1;
}

.hero-visual {
  position: relative;
  min-height: calc(100vh - 76px);
  background:
    linear-gradient(rgba(13, 43, 69, 0.45), rgba(7, 28, 46, 0.88)),
    url("../img/hero.jpg");
  background-size: cover;
  background-position: center;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 55% 45%, rgba(240, 78, 94, 0.23), transparent 30%),
    linear-gradient(110deg, rgba(7, 28, 46, 0.88), rgba(13, 43, 69, 0.2));
}

.floating-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(13, 43, 69, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  color: #ffffff;
  border-radius: 18px;
  padding: 1rem 1.25rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.floating-card img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 14px;
  padding: 0.35rem;
}

.floating-card strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
}

.floating-card span {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.86;
}

.main-card {
  left: 20%;
  bottom: 30%;
}

.metric-card {
  right: 12%;
  bottom: 18%;
}

.main-card img { width: 54px; height: 54px; object-fit: contain; background: var(--white); border-radius: 14px; padding: 6px; }
.main-card strong, .metric-card strong { display: block; font-size: 1.35rem; line-height: 1.1; }
.main-card span, .metric-card span { display: block; opacity: 0.72; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.12em; }
.metric-card { right: 14%; bottom: 9%; padding: 18px 22px; }

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 96px 0;
}

.section-header { max-width: 760px; margin-bottom: 42px; }
.section-header.compact { text-align: center; margin-inline: auto; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.05; letter-spacing: -0.045em; color: var(--navy-950); margin-bottom: 18px; }
.section-header p:not(.eyebrow), .solution-content p, .contact p { color: var(--gray-700); font-size: 1.05rem; }

.cards-grid, .alerts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.info-card, .alert-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
  transition: 0.25s ease;
}
.info-card:hover, .alert-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }

.icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--navy-900);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  font-weight: 900;
  margin-bottom: 22px;
}

.info-card h3, .alert-card h3 { color: var(--navy-950); font-size: 1.35rem; margin-bottom: 10px; }
.info-card p, .alert-card p { color: var(--gray-700); }

.solution {
  background: var(--navy-950);
  color: var(--white);
  display: grid;
  grid-template-columns: 42% 58%;
  gap: 50px;
  align-items: center;
  padding: 90px max(30px, calc((100vw - 1180px) / 2));
}
.solution-image {
  background: linear-gradient(145deg, var(--white), var(--gray-100));
  border-radius: 34px;
  padding: 44px;
  display: grid;
  place-items: center;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.25);
}
.solution-image img { width: min(280px, 80%); }
.solution h2 { color: var(--white); }
.solution .eyebrow { color: var(--red-500); }
.solution-content p { color: rgba(255,255,255,0.78); }
.check-list { list-style: none; margin-top: 26px; display: grid; gap: 14px; }
.check-list li { position: relative; padding-left: 34px; color: rgba(255,255,255,0.9); font-weight: 700; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: -1px; color: var(--red-500); font-weight: 900; }

.alert-section { padding-top: 100px; }
.alerts-grid { grid-template-columns: repeat(4, 1fr); }
.alert-card { border-top: 7px solid var(--red-600); }
.alert-card span { font-weight: 900; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.15em; }
.alert-card.red { border-top-color: #d7263d; }
.alert-card.yellow { border-top-color: #f2c94c; }
.alert-card.blue { border-top-color: #2d9cdb; }
.alert-card.orange { border-top-color: #f2994a; }

.contact {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 90px;
  padding: 44px;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-950));
  color: var(--white);
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
  box-shadow: var(--shadow);
}
.contact h2 { color: var(--white); font-size: clamp(1.8rem, 3vw, 2.8rem); }
.contact p { color: rgba(255,255,255,0.72); max-width: 720px; }
.contact .eyebrow { color: var(--red-500); }

.footer {
  padding: 28px 20px;
  text-align: center;
  background: var(--navy-950);
  color: rgba(255,255,255,0.72);
}

@media (max-width: 980px) {
  .nav-cta { display: none; }
  .menu-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 30px;
    background: var(--navy-950);
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .nav-links.active { display: flex; }
  .hero { grid-template-columns: 1fr; }
  .hero-panel { clip-path: none; min-height: auto; }
  .hero-content { margin: 0 auto; width: min(720px, calc(100% - 40px)); }
  .hero-visual { min-height: 460px; }
  .cards-grid, .alerts-grid { grid-template-columns: repeat(2, 1fr); }
  .solution { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .navbar { width: calc(100% - 28px); }
  .brand-name { font-size: 1rem; }
  .hero-content { padding: 52px 0; }
  .cards-grid, .alerts-grid { grid-template-columns: 1fr; }
  .solution { padding: 70px 20px; }
  .contact { flex-direction: column; align-items: flex-start; padding: 30px; }
  .main-card { left: 20px; right: 20px; bottom: 120px; }
  .metric-card { left: 20px; right: auto; bottom: 40px; }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    clip-path: none;
    padding: 6rem 1.5rem 3rem;
  }

  .hero-visual {
    min-height: 420px;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 12vw, 4rem);
  }

  .main-card {
    left: 1.5rem;
    bottom: 8rem;
  }

  .metric-card {
    right: 1.5rem;
    bottom: 2rem;
  }
}