/* Estilos del portal público */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Raleway:wght@300;400;500;600;700&display=swap");

:root {
  --primary: #3c44d1;
  --secondary: #02004d;
  --accent: #ff7900;
  --light: #f4f5fa;
  --dark: #141414;
  --white: #ffffff;
  --font-heading: "Poppins", sans-serif;
  --font-body: "Raleway", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #000;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

/* ========== HEADER ========== */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: 86px;
  background: var(--white);
  display: flex;
  align-items: center;
}

.topbar-inner {
  width: min(1300px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand img {
  height: 42px;
  width: auto;
}

.menu {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
}

.menu-item {
  position: relative;
}

.menu-item > button,
.menu-item > a.nav-link {
  appearance: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--dark);
  padding: 0;
  white-space: nowrap;
}

.menu-item > button:hover,
.menu-item.open > button {
  color: var(--primary);
}

.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-20%);
  background: var(--light);
  border-radius: 6px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(2, 0, 77, 0.12);
  z-index: 120;
  min-width: 760px;
}

.menu-item.open .dropdown {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.menu-item.narrow .dropdown {
  min-width: 240px;
  left: 0;
  transform: none;
  flex-direction: column;
}

.drop-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  min-width: 160px;
}

.drop-col h4 {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
}

.drop-col a {
  display: block;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 400;
  color: var(--primary);
  padding: 8px;
  border-radius: 2px;
}

.drop-col a:hover {
  background: rgba(60, 68, 209, 0.06);
}

.online-wrap {
  margin-left: auto;
  position: relative;
}

/* Botón exacto del original */
.btn-online {
  width: 210px;
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 2px;
  background: var(--primary);
  color: var(--light);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  line-height: 16.8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-online:hover {
  background: #5058e0;
}

.online-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: var(--white);
  min-width: 210px;
  border-radius: 6px;
  box-shadow: 0 12px 28px rgba(2, 0, 77, 0.16);
  overflow: hidden;
  z-index: 130;
}

.online-wrap.open .online-menu {
  display: block;
}

.online-menu a {
  display: block;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--secondary);
  border-bottom: 1px solid #eee;
}

.online-menu a:hover {
  background: var(--light);
  color: var(--primary);
}

.burger {
  display: none;
  margin-left: auto;
  border: 0;
  background: var(--primary);
  color: var(--light);
  height: 32px;
  padding: 0 12px;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  cursor: pointer;
}

/* ========== PAGE / HERO ========== */
.page {
  padding-top: 86px;
}

.hero {
  display: flex;
  height: 460px;
  position: relative;
}

.hero-left {
  flex: 1;
  max-width: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 48px 0 48px 48px;
}

.hero-frame {
  width: min(650px, 100%);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-top: 1px solid var(--secondary);
  border-bottom: 1px solid var(--secondary);
  padding-right: 32px;
}

.hero-frame h1 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 40px;
  line-height: 1.2;
  color: var(--light);
  max-width: 600px;
}

.hero-frame p {
  margin: 8px 0 0;
  font-size: 26px;
  line-height: 1.2;
  color: var(--light);
  padding-right: 32px;
}

.hero-right {
  flex: 1;
  max-width: 50%;
  overflow: hidden;
  background: var(--secondary);
}

.hero-right img {
  width: 100%;
  height: 460px;
  object-fit: cover;
}

.hero-dots {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.hero-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 0;
}

.hero-dots button.active {
  background: var(--accent);
}

.social-rail {
  position: absolute;
  right: 0;
  top: 200px;
  z-index: 5;
  background: var(--secondary);
  border-radius: 5px 0 0 5px;
  min-width: 40px;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  padding: 16px 8px;
  gap: 8px;
}

.social-rail a {
  display: grid;
  place-items: center;
}

/* ========== PRODUCTS (cards originales) ========== */
.products-block {
  width: min(1300px, 100%);
  margin: 0 auto;
  display: flex;
  min-height: 420px;
}

.products-pair {
  width: 650px;
  display: flex;
  align-items: flex-start;
  padding-top: 62px;
}

.product-card {
  width: 309px;
  margin-right: 32px;
}

.product-card:last-child {
  margin-right: 0;
}

.product-media {
  background: var(--light);
  border-radius: 5px 5px 0 0;
  padding: 16px;
  height: 217px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-media img {
  width: 195px;
  height: 185px;
  object-fit: contain;
}

.product-bar {
  background: var(--primary);
  border-radius: 0 0 5px 5px;
  height: 80px;
  padding: 28px 16px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.product-bar h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 300;
  line-height: 1.2;
  color: var(--light);
  text-align: center;
  width: 100%;
}

.product-bar .ver-mas {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  padding: 0 12px;
  background: var(--primary);
}

.product-card:hover .product-bar h3 {
  display: none;
}

.product-card:hover .ver-mas {
  display: flex;
}

.ver-mas .icon {
  width: 33px;
  height: 33px;
  border-radius: 2px;
  background: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.ver-mas .label {
  background: var(--white);
  color: var(--secondary);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  height: 33px;
  display: flex;
  align-items: center;
  padding: 0 12px 0 32px;
  margin-left: -8px;
  border-radius: 0 2px 2px 0;
  flex: 1;
}

.solutions {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 0 48px;
  background: transparent;
}

.solutions-inner {
  max-width: 602px;
}

.solutions h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 300;
  line-height: 1.2;
  color: var(--secondary);
}

.solutions h2 strong {
  font-weight: 700;
}

.solutions p {
  margin: 12px 0 0;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--dark);
  max-width: 40ch;
}

.solutions p strong {
  font-weight: 700;
}

/* ========== TESTIMONIALS ========== */
.testimonials {
  display: flex;
  background:
    radial-gradient(circle at 12px 12px, rgba(60, 68, 209, 0.25) 2px, transparent 2.5px) 0 0 / 28px 28px,
    var(--secondary);
  min-height: 480px;
}

.testimonials-intro {
  width: min(650px, 50%);
  padding: 72px 48px 72px max(48px, calc((100% - 1300px) / 2 + 24px));
  color: var(--light);
}

.testimonials-intro h2 {
  margin: 0 0 16px;
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--light);
}

.testimonials-intro p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  max-width: 520px;
}

.testimonials-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding: 48px 48px 48px 24px;
}

.quote {
  background: var(--white);
  border-radius: 16px;
  padding: 24px;
  max-width: 560px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.quote-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.quote-head img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.quote-head strong {
  display: block;
  font-family: var(--font-heading);
  color: var(--secondary);
  font-size: 16px;
}

.quote-head span {
  color: #777;
  font-size: 13px;
}

.quote p {
  margin: 0;
  color: #333;
  font-size: 14px;
  line-height: 1.55;
}

.quote .tag {
  margin-top: 12px;
  color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--primary);
  color: var(--white);
  padding: 40px 0 0;
}

.footer-grid {
  width: min(1300px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-bottom: 36px;
}

.footer-col h3 {
  margin: 0 0 12px;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  width: fit-content;
}

.footer-col h4 {
  margin: 16px 0 8px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
}

.footer-col a {
  display: block;
  font-family: var(--font-heading);
  font-weight: 100;
  font-size: 14px;
  margin-bottom: 4px;
  color: var(--white);
  width: fit-content;
  line-height: 1.2;
}

.footer-col a:hover {
  text-decoration: underline;
}

.footer-bottom {
  background: var(--white);
  color: var(--primary);
  text-align: center;
  padding: 16px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
}

/* ========== LOGIN ========== */
.login-page {
  min-height: 100vh;
  background: #f4f5fa;
  font-family: Arial, Helvetica, sans-serif;
}

.login-header {
  background: #02004d;
  border-bottom: 5px solid #082c62;
  min-height: 65px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.login-header img {
  height: 42px;
  width: auto;
  filter: brightness(0) invert(1);
}

.login-header .rif {
  color: #fff;
  font-size: 10px;
}

.login-container {
  width: min(960px, calc(100% - 24px));
  margin: 32px auto 48px;
  background: #fff;
  border: 1px solid #d9dceb;
  box-shadow: 0 8px 28px rgba(2, 0, 77, 0.1);
}

.login-title {
  padding: 20px 24px 0;
}

.login-title h1 {
  margin: 0;
  color: #02004d;
  font-size: 28px;
  font-weight: normal;
  font-family: Arial, Helvetica, sans-serif;
}

.login-title h1 span {
  color: #ff7900;
}

.login-columns {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 24px;
  padding: 16px 24px 28px;
}

.login-box h2 {
  margin: 0 0 6px;
  color: #02004d;
  font-size: 18px;
}

.orange-line {
  width: 80px;
  height: 3px;
  background: #ff7900;
  margin-bottom: 16px;
}

.login-box label {
  display: block;
  font-size: 12px;
  margin-bottom: 6px;
  color: #333;
}

.login-box input[type="text"] {
  width: 100%;
  max-width: 280px;
  padding: 8px 10px;
  border: 1px solid #c2c2c2;
  font-size: 13px;
  margin-bottom: 12px;
}

.btn-login {
  border: 1px solid #3c44d1;
  border-radius: 3px;
  color: #fff;
  padding: 5px 14px;
  font-size: 11px;
  background: #3c44d1;
  cursor: pointer;
}

.btn-register {
  border: 1px solid #eee;
  border-radius: 3px;
  color: #444;
  padding: 5px 14px;
  font-size: 11px;
  background: #eee;
  cursor: pointer;
}

.login-links {
  margin-top: 14px;
  font-size: 11px;
}

.login-links a {
  color: #3c44d1;
  text-decoration: underline;
}

.login-help {
  text-align: center;
  font-size: 12px;
  color: #444;
  padding: 0 16px 12px;
}

.login-policies {
  text-align: center;
  padding-bottom: 20px;
  font-size: 12px;
}

.login-policies a {
  color: #3c44d1;
  margin: 0 10px;
  text-decoration: underline;
}

.login-footer {
  background: #e8eaf5;
  color: #444;
  font-size: 11px;
  text-align: center;
  padding: 10px 16px;
  line-height: 1.4;
}

.result-wrap {
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.result-card {
  background: #fff;
  border: 1px solid #d9dceb;
  box-shadow: 0 8px 28px rgba(2, 0, 77, 0.1);
  padding: 28px;
  max-width: 480px;
  width: 100%;
}

.result-card h1 {
  margin: 0 0 10px;
  color: #02004d;
  font-size: 20px;
}

.result-card p {
  margin: 0 0 14px;
  color: #555;
  font-size: 14px;
}

.result-card code {
  background: #f4f5fa;
  padding: 2px 6px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1100px) {
  .menu {
    display: none;
  }

  .burger {
    display: inline-flex;
    align-items: center;
  }

  .topbar.mobile-open .menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 86px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 16px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    gap: 16px;
  }

  .menu-item.open .dropdown {
    position: static;
    min-width: 0;
    transform: none;
    box-shadow: none;
    flex-wrap: wrap;
  }

  .online-wrap {
    margin-left: 0;
  }

  .hero {
    flex-direction: column;
    height: auto;
  }

  .hero-left,
  .hero-right {
    max-width: 100%;
  }

  .hero-left {
    justify-content: flex-start;
    padding: 36px 24px;
    min-height: 280px;
  }

  .hero-frame h1 {
    font-size: 28px;
  }

  .hero-frame p {
    font-size: 18px;
  }

  .hero-right img {
    height: 260px;
  }

  .social-rail {
    display: none;
  }

  .products-block {
    flex-direction: column;
  }

  .products-pair {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    padding: 32px 16px 0;
    gap: 16px;
  }

  .product-card {
    margin-right: 0;
  }

  .solutions {
    padding: 32px 24px 48px;
  }

  .solutions h2 {
    font-size: 32px;
  }

  .testimonials {
    flex-direction: column;
  }

  .testimonials-intro {
    width: 100%;
    padding: 48px 24px;
  }

  .testimonials-intro h2 {
    font-size: 36px;
  }

  .testimonials-list {
    padding: 0 16px 40px;
  }

  .footer-grid,
  .login-columns {
    grid-template-columns: 1fr;
  }
}
