
:root {
  --navy: #071A52;
  --blue: #1646B5;
  --yellow: #FFC928;
  --white: #ffffff;
  --muted: #a6b9e6;
  --light: #cdd4e6;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--navy);
  color: var(--white);
}

header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 18px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  background: rgba(4, 35, 64, 0.94);
  border-bottom: 1px solid rgba(135, 123, 123, 0.186);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand img {
  display: block;
  width: 145px;
  height: auto;
  object-fit: contain;
}

nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

nav a {
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--yellow);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 76vh;
  padding: 100px 8%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 40%, #1444b6 0%, var(--navy) 68%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(255, 201, 40, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  top: -120px;
  left: -100px;
}

.hero::after {
  right: -120px;
  bottom: -140px;
}

.stars {
  color: var(--yellow);
  font-size: 22px;
  letter-spacing: 12px;
  margin-bottom: 28px;
}

h1 {
  font-size: clamp(52px, 9vw, 104px);
  line-height: 1;
  margin: 0;
  letter-spacing: 5px;
}

h1 span {
  color: var(--yellow);
}

.subtitle {
  color: var(--yellow);
  font-size: 12px;
  letter-spacing: 5px;
  margin-top: 22px;
}

.hero p {
  max-width: 640px;
  color: #f9f5f5;
  font-size: 18px;
  line-height: 1.8;
  margin: 28px 0 34px;
}

.button {
  display: inline-block;
  background: var(--yellow);
  color: var(--navy);
  padding: 16px 26px;
  border: 1px solid var(--yellow);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-3px);
  background: #FFDA62;
}

.services {
  padding: 90px 8%;
  background: var(--light);
  color: var(--navy);
  text-align: center;
}

.section-label {
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 11px;
  font-weight: 700;
}

.services h2 {
  font-size: clamp(30px, 5vw, 46px);
  margin: 16px 0;
}

.section-intro {
  max-width: 600px;
  margin: 0 auto;
  color: #52617F;
  line-height: 1.7;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 44px;
  text-align: left;
}

.service {
  padding: 30px;
  border: 1px solid #E1E7F3;
  border-radius: 16px;
  background: var(--white);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 35px rgba(7, 26, 82, 0.08);
}

.service h3 {
  color: var(--blue);
  font-size: 20px;
}

.service p {
  color: #52617F;
  line-height: 1.7;
}

footer {
  padding: 30px 8%;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

@media (max-width: 800px) {
  header {
    padding: 16px 5%;
  }

  nav {
    gap: 16px;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    min-height: 68vh;
    padding: 80px 6%;
  }
}

@media (max-width: 560px) {
  header {
    flex-wrap: wrap;
    justify-content: center;
  }

  .brand img {
    width: 125px;
  }

  nav {
    width: 100%;
    justify-content: center;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .services {
    padding: 65px 6%;
  }

  .hero p {
    font-size: 16px;
  }

  .subtitle {
    letter-spacing: 3px;
  }
}

.nav-cta {
  padding: 11px 17px;
  border-radius: 7px;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 700;
}

nav a.nav-cta:hover {
  color: var(--navy);
  background: #FFDA62;
}

.contact {
  padding: 90px 8%;
  text-align: center;
  background:
    radial-gradient(ellipse at center, #234a99 0%, var(--navy) 75%);
}

.contact-content {
  max-width: 720px;
  margin: 0 auto;
}

.contact h2 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.15;
  margin: 20px 0;
}

.contact p {
  max-width: 580px;
  margin: 0 auto 30px;
  color: #d2e2f2;
  line-height: 1.8;
}

@media (max-width: 560px) {
  .contact {
    padding: 65px 6%;
  }

  .nav-cta {
    padding: 9px 12px;
  }
}

/* ===== STAR AI: PORTADA PREMIUM ===== */

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 30px;
  min-height: 590px;
  padding: 85px 8%;
  overflow: hidden;
  background:
    radial-gradient(
      ellipse at 78% 48%,
      rgba(14, 75, 157, 0.35),
      transparent 48%
    ),
    linear-gradient(115deg, #020817 0%, #061632 58%, #020817 100%);
  border-bottom: 1px solid rgba(45, 137, 255, 0.35);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(70, 133, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70, 133, 255, 0.12) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to right, transparent, black);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.hero-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  color: #DDE8FF;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
}

.hero-line {
  display: inline-block;
  width: 38px;
  height: 2px;
  background: var(--yellow);
}

.hero h1 {
  margin: 0;
  color: #FFFFFF;
  font-size: clamp(38px, 4.6vw, 66px);
  line-height: 1.08;
  letter-spacing: -2px;
  font-weight: 800;
}

.hero h1 span {
  color: var(--yellow);
}

.hero-description {
  max-width: 540px;
  margin: 25px 0 30px;
  color: #D0DCF2;
  font-size: 16px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.hero-actions a {
  text-decoration: none;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.hero-actions a:hover {
  transform: translateY(-3px);
}

.hero .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 15px 21px;
  border: 1px solid var(--yellow);
  border-radius: 7px;
  background: var(--yellow);
  color: #06132B;
  font-size: 14px;
  font-weight: 800;
}

.hero .button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 21px;
  border: 1px solid rgba(222, 234, 255, 0.65);
  border-radius: 7px;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 600;
}

.hero .button-secondary:hover {
  border-color: var(--yellow);
  background: rgba(255, 255, 255, 0.05);
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 35px;
  color: #9FB5D8;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
}

.trust-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 12px rgba(255, 195, 45, 0.75);
}

/* Gráfico tecnológico creado con CSS, sin imágenes externas */

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  justify-self: center;
  width: min(100%, 480px);
  aspect-ratio: 1;
}

.hero-glow {
  position: absolute;
  width: 68%;
  height: 68%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(21, 109, 255, 0.32),
    rgba(5, 32, 83, 0.12) 52%,
    transparent 72%
  );
  filter: blur(8px);
}

.hero-orbit {
  position: absolute;
  width: 83%;
  height: 83%;
  border: 1px solid rgba(70, 158, 255, 0.55);
  border-radius: 50%;
  box-shadow:
    0 0 24px rgba(0, 107, 255, 0.08),
    inset 0 0 24px rgba(0, 107, 255, 0.06);
}

.orbit-one {
  transform: rotate(-30deg) scaleY(0.48);
}

.orbit-two {
  transform: rotate(48deg) scaleY(0.58);
  border-color: rgba(255, 195, 45, 0.5);
}

.hero-core {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 46%;
  aspect-ratio: 1;
  border: 1px solid rgba(100, 174, 255, 0.7);
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 25%,
    #123B79,
    #06152E 68%
  );
  box-shadow:
    0 0 55px rgba(0, 105, 255, 0.25),
    inset 0 0 35px rgba(33, 118, 255, 0.18);
}

.core-star {
  color: var(--yellow);
  font-size: 40px;
  line-height: 1.2;
  text-shadow: 0 0 25px rgba(255, 195, 45, 0.5);
}

.core-name {
  margin-top: 8px;
  color: #FFFFFF;
  font-size: clamp(16px, 2vw, 25px);
  font-weight: 800;
  letter-spacing: 5px;
}

.core-caption {
  margin-top: 8px;
  color: #AFC8EE;
  font-size: 7px;
  letter-spacing: 2px;
  text-align: center;
}

.hero-node {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 195, 45, 0.75);
  border-radius: 13px;
  background: #071B3B;
  color: var(--yellow);
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 0 25px rgba(0, 99, 255, 0.18);
}

.node-one {
  top: 15%;
  right: 17%;
}

.node-two {
  bottom: 17%;
  right: 12%;
  font-size: 24px;
}

.node-three {
  bottom: 22%;
  left: 10%;
  color: #FFFFFF;
  border-color: rgba(87, 167, 255, 0.8);
}

/* Adaptación a tablets y móviles */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 70px 7% 45px;
  }

  .hero-content {
    max-width: 700px;
  }

  .hero-visual {
    width: min(82%, 390px);
    margin-top: 5px;
  }
}

@media (max-width: 560px) {
  .hero {
    padding: 55px 6% 35px;
  }

  .hero h1 {
    font-size: clamp(36px, 10vw, 48px);
    letter-spacing: -1.5px;
  }

  .hero-label {
    font-size: 9px;
    letter-spacing: 2px;
  }

  .hero-description {
    font-size: 15px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions a {
    width: 100%;
    box-sizing: border-box;
  }

  .hero-trust {
    font-size: 9px;
    letter-spacing: 1.3px;
  }

  .hero-visual {
    width: 100%;
    max-width: 330px;
  }
}

/* ===== STAR AI: SERVICIOS PREMIUM ===== */

.services {
  position: relative;
  padding: 100px 8%;
  overflow: hidden;
  background: #050D1D;
}

.services::before {
  content: "";
  position: absolute;
  width: 450px;
  height: 450px;
  top: 20%;
  left: -300px;
  border-radius: 50%;
  background: rgba(20, 91, 210, 0.12);
  filter: blur(100px);
  pointer-events: none;
}

.services .section-label {
  position: relative;
  color: var(--yellow);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.services h2 {
  position: relative;
  max-width: 700px;
  margin: 18px 0;
  color: #FFFFFF;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.15;
  letter-spacing: -1.5px;
}

.services .section-intro {
  position: relative;
  max-width: 650px;
  margin-bottom: 45px;
  color: #AEBED8;
  font-size: 16px;
  line-height: 1.8;
}

.service-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.service {
  position: relative;
  min-height: 235px;
  padding: 30px 26px;
  overflow: hidden;
  border: 1px solid rgba(132, 169, 224, 0.17);
  border-radius: 14px;
  background: linear-gradient(
    145deg,
    rgba(16, 35, 68, 0.88),
    rgba(7, 17, 35, 0.96)
  );
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.service::after {
  content: "";
  position: absolute;
  top: 0;
  left: 25px;
  width: 55px;
  height: 2px;
  background: var(--yellow);
  opacity: 0.85;
}

.service:hover {
  transform: translateY(-7px);
  border-color: rgba(255, 195, 45, 0.6);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
}

.service h3 {
  margin: 25px 0 14px;
  color: #FFFFFF;
  font-size: 21px;
  letter-spacing: -0.4px;
}

.service p {
  margin: 0;
  color: #B3C2DA;
  font-size: 14px;
  line-height: 1.85;
}

@media (max-width: 900px) {
  .services {
    padding: 75px 7%;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .services {
    padding: 60px 6%;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service {
    min-height: auto;
    padding: 27px 23px;
  }
}

/* Iconos de los servicios */

.service-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 195, 45, 0.3);
  border-radius: 12px;
  background: rgba(255, 195, 45, 0.07);
}

.service-icon svg {
  width: 27px;
  height: 27px;
  stroke: var(--yellow);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s ease;
}

.service:hover .service-icon svg {
  transform: scale(1.1);
}

/* ===== STAR AI: CABECERA PREMIUM ===== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(5, 13, 29, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-container {
  max-width: 1440px;
  min-height: 90px;
  margin: 0 auto;
  padding: 12px 8%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logotipo */
.site-header .brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.site-header .brand img {
  width: 145px;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.site-header .brand:hover img {
  transform: scale(1.04);
}

/* Navegación */
.site-header .main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.site-header .main-nav a {
  position: relative;
  color: #D7E2F4;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-header .main-nav a:hover {
  color: #FFC32D;
}

.site-header .main-nav a::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 0;
  height: 2px;
  background: #FFC32D;
  transition: width 0.3s ease;
}

.site-header .main-nav a:hover::after {
  width: 100%;
}

/* Botón Hablemos */
.site-header .header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  background: #FFC32D;
  color: #07152B;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.3s ease, transform 0.3s ease;
}

.site-header .header-cta:hover {
  background: #FFDA62;
  transform: translateY(-2px);
}

/* Ajustes para móviles */
@media (max-width: 700px) {
  .header-container {
    min-height: 75px;
    padding: 12px 5%;
    gap: 12px;
    flex-wrap: wrap;
  }

  .site-header .brand img {
    width: 105px;
  }

  .site-header .main-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 24px;
    padding: 8px 0;
  }

  .site-header .main-nav a {
    font-size: 13px;
  }

  .site-header .header-cta {
    padding: 10px 14px;
    font-size: 12px;
  }
}

/* ===== STAR AI: FOOTER ===== */

.site-footer {
  background: #030916;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 75px 8% 25px;
}

.footer-container {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 45px;
}

.footer-brand img {
  width: 145px;
  height: auto;
}

.footer-brand p {
  max-width: 300px;
  margin-top: 20px;
  color: #93A7C5;
  font-size: 14px;
  line-height: 1.8;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  min-width: 0;
}

.footer-column h3 {
  color: #FFFFFF;
  font-size: 15px;
  margin: 0 0 10px;
}

.footer-column a {
  color: #93A7C5;
  font-size: 13px;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: #FFC32D;
}

.footer-column p {
  color: #93A7C5;
  font-size: 13px;
  margin: 0;
}

.footer-bottom {
  max-width: 1300px;
  margin: 65px auto 0;
  padding-top: 25px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: #7186A6;
  font-size: 12px;
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 35px;
  }
}

@media (max-width: 550px) {
  .site-footer {
    padding: 55px 6% 25px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .footer-bottom {
    flex-direction: column;
    margin-top: 45px;
  }
}

/* ===== STAR AI: CONTACTO PREMIUM ===== */

.contact {
  padding: 110px 8%;
  background:
    radial-gradient(
      ellipse at 15% 50%,
      rgba(22, 80, 180, 0.22),
      transparent 55%
    ),
    #071326;
  text-align: left;
}

.contact-container {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 75px;
  align-items: center;
}

.contact-info .section-label {
  color: #FFC32D;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
}

.contact-info h2 {
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.15;
  color: white;
  margin: 22px 0;
}

.contact-info h2 span {
  color: #FFC32D;
}

.contact-info > p {
  color: #A9BBD6;
  font-size: 15px;
  line-height: 1.9;
  margin: 0 0 30px;
}

.contact-benefits {
  display: flex;
  flex-direction: column;
  gap: 15px;
  color: #DDE7F6;
  font-size: 14px;
  margin-bottom: 40px;
}

.contact-email {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.contact-email span {
  color: #91A7C6;
  font-size: 13px;
}

.contact-email a {
  color: #FFC32D;
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}

/* Tarjeta del formulario */

.contact-form-wrapper {
  padding: 38px;
  border-radius: 18px;
  border: 1px solid rgba(140, 175, 230, 0.2);
  background: linear-gradient(
    145deg,
    rgba(20, 42, 79, 0.95),
    rgba(9, 23, 46, 0.98)
  );
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.25);
}

.contact-form-wrapper h3 {
  color: white;
  font-size: 25px;
  margin: 0 0 10px;
}

.contact-form-wrapper > p {
  color: #A9BBD6;
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 30px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 22px;
}

.form-group label {
  color: #E4ECF9;
  font-size: 13px;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 15px;
  background: #0A1931;
  border: 1px solid #2A4264;
  border-radius: 8px;
  color: white;
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #FFC32D;
}

.form-group textarea {
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #8094B1;
}

.contact-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 20px;
  border: none;
  border-radius: 8px;
  background: #FFC32D;
  color: #071326;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.3s ease,
              transform 0.3s ease;
}

.contact-submit:hover {
  background: #FFDA62;
  transform: translateY(-2px);
}

.contact-form-wrapper .form-note {
  color: #91A7C6;
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
  margin: 18px 0 0;
}

/* Adaptación a móviles */

@media (max-width: 900px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .contact {
    padding: 75px 7%;
  }
}

@media (max-width: 550px) {
  .contact {
    padding: 60px 6%;
  }

  .contact-form-wrapper {
    padding: 25px 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* Confirmación del formulario Star AI */

.form-status {
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.7;
}

.form-status[hidden] {
  display: none;
}

.form-status.success {
  color: #B9F5D1;
  background: rgba(31, 160, 93, 0.12);
  border: 1px solid rgba(69, 211, 133, 0.35);
}

.form-status.error {
  color: #FFD0D0;
  background: rgba(220, 50, 50, 0.12);
  border: 1px solid rgba(255, 100, 100, 0.35);
}

.contact-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

/* ===== ASISTENTE STAR AI ===== */

.chat-launcher {
  position: fixed;
  right: 25px;
  bottom: 25px;
  z-index: 1100;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 22px;
  background: #FFC32D;
  color: #071326;
  border: none;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 35px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}

.chat-launcher:hover {
  transform: translateY(-4px);
}

.chat-launcher span:first-child {
  font-size: 22px;
}

.chat-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1190;
}

.chat-overlay[hidden] {
  display: none;
}

.chat-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 100%);
  height: 100vh;
  height: 100dvh;
  background: #071326;
  border-left: 1px solid #243B60;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  box-shadow: -15px 0 50px rgba(0,0,0,0.35);
  transform: translateX(105%);
  visibility: hidden;
  transition: transform 0.35s ease,
              visibility 0.35s ease;
}

.chat-panel.active {
  transform: translateX(0);
  visibility: visible;
}

/* Cabecera */

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 23px;
  background: #0E2343;
  border-bottom: 1px solid #243B60;
}

.chat-identity {
  display: flex;
  align-items: center;
  gap: 13px;
}

.chat-avatar {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #FFC32D;
  color: #071326;
  font-size: 25px;
}

.chat-identity strong {
  display: block;
  color: white;
  font-size: 16px;
}

.chat-identity span {
  display: block;
  margin-top: 5px;
  color: #A9BBD6;
  font-size: 12px;
}

.chat-close {
  background: transparent;
  color: white;
  border: none;
  font-size: 32px;
  cursor: pointer;
}

/* Mensajes */

.chat-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 25px 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.chat-message {
  max-width: 85%;
  padding: 15px 17px;
  border-radius: 15px;
  font-size: 14px;
  line-height: 1.7;
}

.bot-message {
  align-self: flex-start;
  background: #142B4E;
  color: #E7EEFA;
  border-bottom-left-radius: 4px;
}

.user-message {
  align-self: flex-end;
  background: #FFC32D;
  color: #071326;
  border-bottom-right-radius: 4px;
}

/* Zona de escritura */

.chat-input-area {
  display: flex;
  gap: 10px;
  padding: 20px;
  background: #0E2343;
  border-top: 1px solid #243B60;
}

.chat-input-area input {
  flex: 1;
  min-width: 0;
  padding: 14px;
  border: 1px solid #304B70;
  border-radius: 10px;
  background: #071326;
  color: white;
  outline: none;
  font-size: 14px;
}

.chat-input-area input:focus {
  border-color: #FFC32D;
}

.chat-input-area button {
  width: 48px;
  flex-shrink: 0;
  border: none;
  border-radius: 10px;
  background: #FFC32D;
  color: #071326;
  font-size: 20px;
  cursor: pointer;
}

@media (max-width: 550px) {
  .chat-launcher {
    right: 15px;
    bottom: 15px;
    padding: 13px 17px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chat-panel,
  .chat-launcher {
    transition: none;
  }
}

/* ===== PREGUNTAS RÁPIDAS STAR AI ===== */

.chat-quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  padding: 15px 18px;
  background: #0A1B35;
  border-top: 1px solid #243B60;
}

.chat-quick-actions button {
  padding: 12px 9px;
  border: 1px solid #304B70;
  border-radius: 10px;
  background: #102747;
  color: #E7EEFA;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s ease,
              border-color 0.25s ease;
}

.chat-quick-actions button:hover {
  background: #1A3962;
  border-color: #FFC32D;
}

@media (max-width: 350px) {
  .chat-quick-actions {
    grid-template-columns: 1fr;
  }
}

/* ===== PRESUPUESTO DESDE CHATBOT ===== */

.chat-budget-action {
  padding: 12px 18px;
  background: #0A1B35;
}

.chat-budget-action[hidden] {
  display: none;
}

.chat-budget-action button {
  width: 100%;
  padding: 15px;
  background: #FFC32D;
  color: #071326;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.3s ease;
}

.chat-budget-action button:hover {
  background: #FFDA62;
}

/* STAR AI - Reiniciar conversación */

.chat-reset-button {
  padding: 11px 18px;
  background: #0A1B35;
  color: #A9BBD6;
  border: none;
  border-top: 1px solid #243B60;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.25s ease;
}

.chat-reset-button:hover {
  color: #FFC32D;
}

/* =========================================
   STAR AI - RESPONSIVE V1
   MÓVILES Y TABLETAS
========================================= */

/* Ajustes generales */

html {
  scroll-padding-top: 100px;
}

body {
  overflow-x: clip;
}

img,
svg {
  max-width: 100%;
}

/* TABLETAS Y PANTALLAS MEDIANAS */

@media (max-width: 1100px) {

  .header-container {
    padding-left: 5%;
    padding-right: 5%;
    gap: 16px;
  }

  .site-header .main-nav {
    gap: 18px;
  }

  .site-header .main-nav a {
    font-size: 13px;
  }

  .site-header .header-cta {
    padding: 12px 15px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 75px 7% 50px;
  }

  .hero-content {
    max-width: 720px;
  }

  .hero-visual {
    width: min(75%, 380px);
  }

  .footer-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

/* MÓVILES */

@media (max-width: 700px) {

  .header-container {
    padding: 12px 5%;
    gap: 12px;
  }

  .site-header .brand img {
    width: 105px;
  }

  .site-header .main-nav {
    width: 100%;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .site-header .main-nav a {
    font-size: 12px;
    padding: 6px 2px;
  }

  .site-header .header-cta {
    padding: 10px 12px;
    font-size: 12px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 55px 6% 40px;
  }

  .hero h1 {
    font-size: clamp(34px, 9vw, 48px);
    line-height: 1.12;
    overflow-wrap: break-word;
  }

  .hero-description {
    font-size: 15px;
    line-height: 1.75;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions a {
    width: 100%;
    text-align: center;
  }

  .hero-visual {
    width: min(100%, 310px);
    margin: 15px auto 0;
  }

  .services {
    padding: 65px 6%;
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .service {
    min-height: auto;
  }

  .contact {
    padding: 65px 6%;
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .contact-form-wrapper {
    min-width: 0;
    padding: 25px 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .site-footer {
    padding: 55px 6% 25px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
  }

}

/* MÓVILES PEQUEÑOS */

@media (max-width: 400px) {

  .site-header .main-nav {
    gap: 8px;
  }

  .site-header .main-nav a {
    font-size: 11px;
  }

  .hero-label {
    letter-spacing: 1px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero-trust {
    flex-wrap: wrap;
  }

  .chat-launcher {
    right: 12px;
    bottom: 12px;
    padding: 12px 15px;
  }

  .chat-message {
    max-width: 92%;
    padding: 12px 14px;
  }

}

/* CHATBOT ADAPTADO A MÓVILES */

@media (max-width: 550px) {

  .chat-panel {
    width: 100%;
    height: 100dvh;
  }

  .chat-header {
    padding: 15px;
  }

  .chat-messages {
    padding: 15px;
    gap: 12px;
  }

  .chat-quick-actions {
    padding: 10px 12px;
    gap: 7px;
  }

  .chat-quick-actions button {
    padding: 10px 7px;
    font-size: 11px;
  }

  .chat-input-area {
    padding: 12px;
  }

  .chat-input-area input {
    font-size: 16px;
  }

  .chat-budget-action {
    padding: 10px 12px;
  }

  .chat-reset-button {
    padding: 9px 12px;
  }

}

/* DISPOSITIVOS CON POCO ESPACIO VERTICAL */

@media (max-height: 600px) {

  .chat-header {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .chat-quick-actions {
    padding-top: 7px;
    padding-bottom: 7px;
  }

  .chat-messages {
    padding-top: 10px;
    padding-bottom: 10px;
  }

}

/* ACCESIBILIDAD */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  .hero-actions a,
  .service,
  .chat-panel {
    transition: none;
  }

}

/* ======================================
   STAR AI - MEJORAS VISUALES
====================================== */

/* CENTRAR SECCIÓN QUÉ HACEMOS */

.services {
  text-align: center;
}

.services .section-label {
  display: block;
  text-align: center;
}

.services h2 {
  max-width: 850px;
  margin: 18px auto;
  text-align: center;
}

.services .section-intro {
  max-width: 700px;
  margin: 0 auto 45px;
  text-align: center;
  color: #FFFFFF;
  line-height: 1.8;
}

/* CENTRAR NUESTRAS SOLUCIONES */

.service-grid {
  width: 100%;
  max-width: 1200px;
  margin: 35px auto 0;
}

/* TARJETAS EQUILIBRADAS */

.service {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

/* TEXTOS DE LOS SERVICIOS */

.service h3 {
  color: #FFFFFF;
}

.service p {
  color: #E3ECFA;
}

/* ICONOS DE LOS SERVICIOS */

.service-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  min-width: 54px;
  border: 1px solid rgba(255, 201, 40, 0.45);
  border-radius: 12px;
  background: rgba(255, 201, 40, 0.10);
  color: #FFC928;
}

.service-icon svg {
  width: 27px;
  height: 27px;
  stroke: #FFC928;
  fill: none;
}

/* AJUSTES EN MÓVILES */

@media (max-width: 700px) {

  .services h2 {
    font-size: 34px;
    text-align: center;
  }

  .services .section-intro {
    font-size: 15px;
    text-align: center;
  }

  .service-grid {
    margin-top: 30px;
  }

}

/* Texto de Nuestras soluciones en blanco */

.services .section-intro {
  color: #FFFFFF !important;
}

/* ======================================
   STAR AI - MENÚ MÓVIL
====================================== */

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid #304B70;
  border-radius: 9px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  border-radius: 2px;
  background: #FFC928;
}

@media (max-width: 700px) {

  .header-container {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 12px;
  }

  .site-header .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .menu-toggle {
    display: block;
    grid-column: 2;
    grid-row: 1;
  }

  .site-header .header-cta {
    grid-column: 3;
    grid-row: 1;
  }

  .site-header .main-nav {
    display: none;
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 0;
    border-top: 1px solid #243B60;
  }

  .site-header .main-nav.menu-open {
    display: flex;
  }

  .site-header .main-nav a {
    padding: 14px 12px;
    font-size: 15px;
  }

}

@media (max-width: 360px) {

  .site-header .brand img {
    width: 85px;
  }

  .site-header .header-cta {
    padding: 9px;
    font-size: 11px;
  }

}
