
:root {
  --navy: #102653;
  --dark: #081225;
  --orange: #FF5A12;
  --pearl: #F4F7FC;
  --muted: #64748B;
  --white: #FFFFFF;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--pearl);
  color: var(--navy);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

button, input { font: inherit; }

header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 5%;
  background: rgba(8,18,37,.97);
  color: white;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid #FFFFFF15;
}

header img {
  width: 175px;
  border-radius: 6px;
}

nav, .actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: color .2s;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--orange);
}

.actions { gap: 12px; }

.cta, .outline {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 13px 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all .25s ease;
}

.cta {
  background: var(--orange);
  color: var(--dark);
  border: 1px solid var(--orange);
  box-shadow: 0 8px 30px #FF5A1230;
}

.cta:hover {
  transform: translateY(-3px);
  background: #FF783D;
  box-shadow: 0 12px 35px #FF5A1250;
}

.outline {
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
}

.outline:hover {
  transform: translateY(-2px);
  background: #94A3B815;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 650px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 5%;
  padding: 75px 6%;
  color: white;
  background:
    radial-gradient(ellipse at 85% 35%, #244A85 0%, transparent 55%),
    radial-gradient(ellipse at 0% 100%, #182D50 0%, transparent 50%),
    var(--dark);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(#FFFFFF06 1px, transparent 1px),
    linear-gradient(90deg,#FFFFFF06 1px, transparent 1px);
  background-size: 55px 55px;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.hero-copy::before {
  content: "TECNOLOGÍA PARA PROVEEDORES DEL ESTADO";
  display: inline-block;
  padding: 7px 14px;
  margin-bottom: 25px;
  border: 1px solid #FF5A1255;
  border-radius: 30px;
  background: #FF5A1212;
  color: #FF955E;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
}

h1 {
  font-size: clamp(36px,4.4vw,76px);
  line-height: 1.07;
  letter-spacing: -.055em;
  margin: 0 0 25px;
}

em {
  color: var(--orange);
  font-style: normal;
}

.hero-copy > p {
  font-size: clamp(17px,1.5vw,23px);
  color: #CBD5E1;
  max-width: 550px;
  margin: 0 0 32px;
}

.hero-visual {
  position: relative;
  min-width: 0;
  padding: 18px;
}

.hero-photo {
  width: 100%;
  height: 490px;
  object-fit: cover;
  object-position: center;
  border-radius: 32px;
  border: 1px solid #FFFFFF25;
  box-shadow: 0 35px 90px #00000060;
}

.payment-preview {
  position: absolute;
  right: -15px;
  bottom: 50px;
  width: min(250px,80%);
  padding: 20px;
  display: grid;
  gap: 12px;
  background: #FFFFFFF5;
  color: var(--navy);
  border-radius: 20px;
  border: 1px solid white;
  box-shadow: 0 20px 50px #00000040;
  animation: floating 4s ease-in-out 3;
}

.payment-preview span {
  padding: 12px;
  border-radius: 10px;
  color: #166534;
  background: #DCFCE7;
  font-weight: 700;
}

.payment-preview small {
  color: var(--muted);
  font-size: 11px;
}

@keyframes floating {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes entrance {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-copy {
  animation: entrance .7s ease-out both;
}

.hero-photo {
  animation: entrance .9s ease-out both;
}

h2 {
  font-size: clamp(28px,3.3vw,52px);
  line-height: 1.15;
  letter-spacing: -.035em;
  margin: 0 0 20px;
}

section[id] { scroll-margin-top: 115px; }

.home-query {
  position: relative;
  padding: 80px 6%;
  background: var(--pearl);
}

.home-query > h2,
.home-query > p {
  text-align: center;
}

.home-query > h2 span {
  color: #C2410C;
}

.home-query > p {
  color: var(--muted);
}

.query-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
  max-width: 1150px;
  margin: 40px auto 25px;
  padding: 32px;
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 28px;
  box-shadow: 0 20px 70px #10265312;
}

.query-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
  padding: 30px;
  background: #FFF7F0;
  border: 2px dashed #FF5A1270;
  border-radius: 20px;
  min-width: 0;
}

.query-upload::before {
  content: "↑";
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border-radius: 20px;
  background: #FF5A1218;
  color: #C2410C;
  font-size: 36px;
  font-weight: 700;
}

.query-upload h3,
.query-upload p {
  margin: 5px 0;
}

.query-upload small {
  font-size: 12px;
  color: var(--muted);
}

.query-upload label { max-width: 100%; }

.home-query form {
  display: grid;
  gap: 12px;
}

.home-query form h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.home-query label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
}

.home-query input {
  width: 100%;
  min-width: 0;
  padding: 13px;
  min-height: 48px;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  background: #FFFFFF;
  color: var(--navy);
}

.home-query input:focus {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

input[type="file"]::file-selector-button {
  padding: 10px;
  margin-right: 8px;
  background: var(--navy);
  color: white;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
}

.field-help {
  color: var(--muted);
  font-size: 13px;
}

.field-help summary { cursor: pointer; }

.field-help img {
  width: 100%;
  margin-top: 10px;
  border-radius: 10px;
}

.home-query button:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}

.query-note { font-size: 13px; }

.benefits {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 6%;
  padding: 90px 6%;
  background: white;
}

.laptop-art {
  padding: 20px;
  border-radius: 28px;
  background: linear-gradient(145deg,#E2E8F0,#F8FAFC);
}

.laptop-art img {
  width: 100%;
  border-radius: 15px;
  mix-blend-mode: multiply;
}

.demo {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
}

.benefits-copy em {
  color: #C2410C;
}

.benefit-list {
  list-style: none;
  padding: 0;
  margin: 28px 0;
  display: grid;
  gap: 15px;
}

.benefit-list li {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px;
  background: #F4F7FC;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 600;
}

.benefit-list li::before {
  content: "✓";
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #FF5A1218;
  color: #C2410C;
}

.benefits-copy > a {
  font-weight: 600;
  text-decoration: none;
}

.plans {
  padding: 100px 5%;
  text-align: center;
  color: white;
  background:
    radial-gradient(ellipse at 50% 0%,#233F70,transparent 65%),
    var(--dark);
}

.features {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 20px;
  max-width: 1400px;
  margin: 55px auto 30px;
}

.panel {
  position: relative;
  min-width: 0;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 35px 16px;
  border: 1px solid #FFFFFF25;
  border-radius: 24px;
  background: #FFFFFF08;
  transition: transform .25s,box-shadow .25s;
}

.panel:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px #00000030;
}

.panel h3 {
  font-size: 23px;
  margin: 0 0 20px;
}

.panel strong {
  font-size: clamp(27px,3vw,44px);
  line-height: 1.2;
  letter-spacing: -1px;
}

.panel p {
  color: #CBD5E1;
  font-size: 14px;
  margin: 20px 0 0;
}

.premium {
  border: 2px solid var(--orange);
  background: linear-gradient(145deg,#FF5A1218,#FFFFFF08);
  box-shadow: 0 0 40px #FF5A1220;
}

.premium strong { color: #FF955E; }

.plan-label {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%,-50%);
  padding: 7px 20px;
  border-radius: 30px;
  background: var(--orange);
  color: var(--dark);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.fine {
  max-width: 850px;
  margin: 25px auto 35px;
  color: #CBD5E1;
  font-size: 13px;
}

.closing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 5%;
  padding: 70px 6%;
  background: #E8EEF7;
}

.closing-visual img {
  width: 100%;
  border-radius: 25px;
}

.closing h2 b {
  color: #C2410C;
  font-size: 1.3em;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  padding: 50px 6%;
  color: #CBD5E1;
  background: var(--dark);
}

.footer-brand img {
  width: 180px;
  border-radius: 6px;
}

.footer-brand a {
  font-size: 14px;
}

.faq h2 {
  color: white;
  font-size: 24px;
}

.faq details {
  padding: 14px 0;
  border-bottom: 1px solid #FFFFFF20;
  font-size: 14px;
}

.faq summary {
  color: white;
  font-weight: 600;
  cursor: pointer;
}

.corporate-signature {
  padding: 20px;
  text-align: center;
  background: var(--dark);
  color: #94A3B8;
  border-top: 1px solid #FFFFFF15;
  font-size: 12px;
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}

@media (max-width: 1200px) {
  header { flex-wrap: wrap; }
  header nav {
    order: 3;
    width: 100%;
    justify-content: center;
  }
  .features {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

@media (max-width: 760px) {
  header {
    position: relative;
    padding: 15px 5%;
    gap: 14px;
  }

  header img { width: 135px; }

  header nav {
    justify-content: flex-start;
    gap: 16px;
  }

  nav a { font-size: 13px; }

  .actions { gap: 8px; }

  .cta,.outline {
    font-size: 13px;
    padding: 11px 15px;
  }

  .hero,.benefits,.closing,
  .query-grid,.footer-grid {
    grid-template-columns: minmax(0,1fr);
  }

  .hero {
    min-height: auto;
    padding: 45px 6%;
    gap: 35px;
  }

  .hero-copy::before {
    font-size: 9px;
    letter-spacing: .7px;
  }

  .hero-visual { padding: 0 0 25px; }

  .hero-photo {
    height: 360px;
    border-radius: 22px;
  }

  .payment-preview {
    right: 0;
    bottom: 0;
    padding: 14px;
    width: 210px;
  }

  .home-query,.benefits,.plans,.closing {
    padding: 50px 5%;
  }

  .query-grid {
    padding: 16px;
    gap: 25px;
  }

  .query-upload { padding: 20px; }

  .benefits,.closing { gap: 35px; }

  .features { gap: 14px; }

  .panel {
    min-height: 230px;
    padding: 28px 12px;
  }

  section[id] { scroll-margin-top: 20px; }
}

@media (max-width: 420px) {
  .features {
    grid-template-columns: minmax(0,1fr);
    gap: 25px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after {
    animation: none !important;
    transition: none !important;
  }
}

/* FENKIA - Alerta de pago animada */

.hero .payment-preview {
  animation: fenkiaAlert 8s ease-in-out infinite !important;
}

.hero .payment-preview strong {
  display: block;
  animation: fenkiaBell 8s ease-in-out infinite;
}

.hero .payment-preview span {
  animation: fenkiaPaid 8s ease-in-out infinite;
}

@keyframes fenkiaAlert {
  0%, 100% {
    opacity: 0;
    transform: translateY(18px) scale(.96);
  }

  12%, 78% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  90% {
    opacity: 0;
    transform: translateY(-8px) scale(.98);
  }
}

@keyframes fenkiaBell {
  0%, 12%, 30%, 100% {
    transform: rotate(0);
  }

  16%, 24% {
    transform: rotate(-3deg);
    color: #FF5A12;
  }

  20%, 28% {
    transform: rotate(3deg);
  }
}

@keyframes fenkiaPaid {
  0%, 100% {
    background: #E8F5E9;
    color: #166534;
    box-shadow: none;
  }

  20%, 45% {
    background: #16A34A;
    color: #FFFFFF;
    box-shadow: 0 0 20px #22C55E80;
  }

  65%, 90% {
    background: #DCFCE7;
    color: #166534;
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero .payment-preview,
  .hero .payment-preview strong,
  .hero .payment-preview span {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}

/* FENKIA - Alerta de pago animada */

.hero .payment-preview {
  animation: fenkiaAlert 8s ease-in-out infinite !important;
}

.hero .payment-preview strong {
  display: block;
  animation: fenkiaBell 8s ease-in-out infinite;
}

.hero .payment-preview span {
  animation: fenkiaPaid 8s ease-in-out infinite;
}

@keyframes fenkiaAlert {
  0%, 100% {
    opacity: 0;
    transform: translateY(18px) scale(.96);
  }

  12%, 78% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  90% {
    opacity: 0;
    transform: translateY(-8px) scale(.98);
  }
}

@keyframes fenkiaBell {
  0%, 12%, 30%, 100% {
    transform: rotate(0);
  }

  16%, 24% {
    transform: rotate(-3deg);
    color: #FF5A12;
  }

  20%, 28% {
    transform: rotate(3deg);
  }
}

@keyframes fenkiaPaid {
  0%, 100% {
    background: #E8F5E9;
    color: #166534;
    box-shadow: none;
  }

  20%, 45% {
    background: #16A34A;
    color: #FFFFFF;
    box-shadow: 0 0 20px #22C55E80;
  }

  65%, 90% {
    background: #DCFCE7;
    color: #166534;
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero .payment-preview,
  .hero .payment-preview strong,
  .hero .payment-preview span {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}

/* FENKIA - Fotografía principal ampliada */

@media (min-width: 761px) {
  .hero {
    grid-template-columns: 46% 54%;
    gap: 0;
    padding: 35px 3% 35px 6%;
    min-height: 740px;
  }

  .hero-visual {
    padding: 0;
  }

  .hero-photo {
    width: 100%;
    height: 670px;
    object-fit: cover;
    object-position: center top;
    border-radius: 24px;
  }

  .payment-preview {
    right: 15px;
    bottom: 75px;
  }
}

@media (max-width: 760px) {
  .hero-photo {
    height: auto;
    width: 100%;
    object-fit: contain;
  }
}

/* FENKIA - Fotografía panorámica sin bordes */

@media (min-width: 1000px) {

  .hero {
    grid-template-columns: 46% 54%;
    padding: 0 0 0 6%;
    gap: 0;
    min-height: 780px;
  }

  .hero-visual {
    position: relative;
    align-self: stretch;
    padding: 0;
    margin: 0;
  }

  .hero-photo {
    width: 100%;
    height: 100%;
    min-height: 780px;
    object-fit: cover;
    object-position: center center;
    border: none;
    border-radius: 0;
    box-shadow: none;

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

  .payment-preview {
    right: 5%;
    bottom: 22%;
    
/* FENKIA - Transición suave entre portada y consulta */

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(244, 247, 252, .12) 30%,
    rgba(244, 247, 252, .55) 65%,
    #F4F7FC 100%
  );
  z-index: 3;
  pointer-events: none;
}

.home-query {
  background: #F4F7FC;
  border-top: none;
}

@media (max-width: 760px) {
  .hero::after {
    height: 45px;
  }
}

    z-index: 5;
  }
}

