:root {
  --bg: #f4f8fc;
  --bg-soft: #ffffff;
  --text: #0b2d67;
  --muted: #4f6690;
  --primary: #0a2f6f;
  --primary-2: #1f5fbf;
  --accent: #ff7a00;
  --shadow: 0 20px 60px rgba(13, 44, 95, 0.1);
  --radius: 18px;
  --danger-bg: #ffe5e5;
  --danger-text: #9b1c1c;
  --ok-bg: #e8f7e8;
  --ok-text: #256029;
}

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  background: linear-gradient(270deg, #f7fbff, #e8f2ff, #f7fbff);
  background-size: 600% 600%;
  animation: gradientMove 12s ease infinite;
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  z-index: -1;
  animation: float 10s ease-in-out infinite;
}

body::before {
  background: #1f5fbf;
  top: 10%;
  left: 10%;
}

body::after {
  background: #ff7a00;
  bottom: 10%;
  right: 10%;
  animation-delay: 4s;
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

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

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.container {
  max-width: 1240px;
  margin: auto;
  padding: 20px;
}

header {
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid #e5eef7;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all 0.3s ease;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  flex-shrink: 0;
}

.logo img {
  height: 120px;
  border-radius: 8px;
  background: white;
  transition: height 0.3s ease;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-name {
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  color: var(--text);
}

.brand-claim {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.35;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: flex-start;
  min-width: 0;
  margin-left: 12px;
  flex-wrap: nowrap;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: 0.25s;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;
}

.sticky-header {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 30px rgba(13, 44, 95, 0.08);
}

.sticky-header .logo img {
  height: 84px;
}

.sticky-header .brand-claim {
  font-size: 13px;
}

.btn {
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.primary {
  background: var(--primary);
  color: white;
}

.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(10, 47, 111, 0.2);
}

.secondary {
  border: 1px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.secondary:hover {
  background: rgba(10, 47, 111, 0.05);
}

footer {
  text-align: center;
  padding: 40px;
  color: var(--muted);
}

.site-footer {
  margin-top: 56px;
  padding: 36px 20px 44px;
  background: rgba(255, 255, 255, 0.78);
  border-top: 1px solid #d9e6f2;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.site-footer .footer-inner {
  max-width: 1240px;
  margin: 0 auto;
}

.site-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: center;
  margin-bottom: 18px;
}

.site-footer .footer-links a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

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

.site-footer .footer-copy,
.site-footer .footer-contact {
  margin: 6px 0;
  color: var(--muted);
}

.site-footer .footer-contact a {
  color: var(--primary);
  text-decoration: none;
}

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

.info-page .hero {
  padding: 56px 0 24px;
}

.info-page .hero h1 {
  font-size: 44px;
  line-height: 1.1;
  margin: 0;
}

.info-page .hero p {
  margin: 18px 0 0;
  max-width: 820px;
  font-size: 18px;
  color: var(--muted);
}

.info-page .content-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

.info-page .content-card + .content-card {
  margin-top: 22px;
}

.info-page .content-card h2 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 28px;
}

.info-page .content-card h3 {
  margin-bottom: 10px;
  color: var(--primary);
}

.info-page .content-card p,
.info-page .content-card li,
.info-page .content-card address {
  color: var(--muted);
  line-height: 1.7;
}

.info-page .content-card ul {
  padding-left: 20px;
  margin: 0;
}

.info-page .content-card address {
  font-style: normal;
}

.landing-page .brand-claim {
  max-width: 320px;
}

.landing-page h1 {
  font-size: 48px;
  line-height: 1.1;
  margin: 0;
}

.landing-page h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

.landing-page .hero {
  padding: 60px 0;
}

.landing-page .hero-copy {
  margin: 20px 0;
  font-size: 18px;
  color: var(--muted);
}

.landing-page .hero-copy p {
  margin: 0 0 12px;
}

.landing-page .hero-copy p:last-child {
  margin-bottom: 0;
}

.landing-page .hero-actions {
  display: flex;
  gap: 10px;
}

.landing-page .grid {
  display: grid;
  gap: 20px;
}

.landing-page .grid-2 {
  grid-template-columns: 1fr 1fr;
}

.landing-page .grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.landing-page .card {
  background: white;
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: 0.3s;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
}

.landing-page .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 70px rgba(13, 44, 95, 0.15);
}

.landing-page .feature-card {
  display: flex;
  align-items: center;
  gap: 30px;
}

.landing-page .feature-media,
.landing-page .feature-copy {
  flex: 1;
}

.landing-page .feature-copy p,
.landing-page .contact-card p {
  color: var(--muted);
}

.landing-page .contact-section {
  margin-top: 40px;
}

.landing-page .comparison-visual {
  margin: 18px 0 22px;
  text-align: center;
}

.landing-page .comparison-visual img {
  width: 100%;
  max-width: 1040px;
  display: inline-block;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(13, 44, 95, 0.16);
}

.landing-page .contact-card {
  text-align: center;
}

.landing-page .contact-card p {
  margin-bottom: 20px;
}

.landing-page .ai-image {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.landing-page .ai-image::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle, rgba(31, 95, 191, 0.2), transparent 60%);
  filter: blur(40px);
  z-index: 0;
}

.landing-page .ai-image img {
  position: relative;
  width: 100%;
  display: block;
  z-index: 1;
  transition: 0.4s;
}

.landing-page .ai-image:hover img {
  transform: scale(1.05);
}

.landing-page .benefits .card {
  background: linear-gradient(180deg, rgba(10, 47, 111, 0.1), rgba(255, 122, 0, 0.12));
  border: 1px solid rgba(10, 47, 111, 0.15);
  position: relative;
  overflow: hidden;
}

.landing-page .benefits .card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: all 0.35s ease;
  box-shadow: 0 0 0 rgba(255, 122, 0, 0);
}

.landing-page .benefits .card:nth-child(odd) {
  background: linear-gradient(180deg, rgba(10, 47, 111, 0.07), rgba(255, 122, 0, 0.08));
}

.landing-page .benefits .card:hover::before {
  height: 6px;
  box-shadow: 0 0 18px rgba(255, 122, 0, 0.35);
  filter: saturate(1.15);
}

.landing-page .benefits .icon-badge {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(10, 47, 111, 0.1);
  color: var(--primary);
  font-size: 20px;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(10, 47, 111, 0.08);
}

.landing-page .how .card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(10, 47, 111, 0.1);
}

.landing-page .how .card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: all 0.35s ease;
  box-shadow: 0 0 0 rgba(255, 122, 0, 0);
}

.landing-page .how .card:hover::before {
  height: 6px;
  box-shadow: 0 0 16px rgba(255, 122, 0, 0.3);
}

.landing-page .how .icon-badge {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  margin-bottom: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(232, 242, 255, 0.9));
  border: 1px solid rgba(10, 47, 111, 0.1);
  color: var(--primary);
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(10, 47, 111, 0.08);
  letter-spacing: 0.02em;
}

.landing-page .how .flow-grid {
  position: relative;
}

.landing-page .how .flow-grid::before {
  content: "";
  position: absolute;
  left: 16.66%;
  right: 16.66%;
  top: 34px;
  height: 2px;
  background: linear-gradient(90deg, rgba(10, 47, 111, 0.18), rgba(255, 122, 0, 0.28), rgba(10, 47, 111, 0.18));
  z-index: 3;
  pointer-events: none;
}

.landing-page .how .flow-grid .card {
  position: relative;
  z-index: 1;
  padding-top: 58px;
}

.landing-page .how .flow-node {
  position: absolute;
  top: 26px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  border: 2px solid rgba(255, 122, 0, 0.45);
  box-shadow: 0 0 0 6px rgba(255, 122, 0, 0.08);
  pointer-events: none;
  z-index: 2;
}

.landing-page .how .flow-node.node-1 { left: calc(16.66% - 9px); }
.landing-page .how .flow-node.node-2 { left: calc(50% - 9px); }
.landing-page .how .flow-node.node-3 { left: calc(83.33% - 9px); }

.landing-page .problems .card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(10, 47, 111, 0.1);
  background: white;
}

.landing-page .problems .card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  transition: all 0.35s ease;
  box-shadow: 0 0 0 rgba(255, 122, 0, 0);
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}

.landing-page .problems .card:hover::before {
  height: 6px;
  box-shadow: 0 0 16px rgba(255, 122, 0, 0.3);
}

.landing-page .problems .icon-badge {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(10, 47, 111, 0.1);
  color: var(--accent);
  font-size: 20px;
  box-shadow: 0 8px 20px rgba(10, 47, 111, 0.08);
}

.diagnostico-page .brand-claim {
  max-width: 360px;
}

.diagnostico-page .hero {
  padding: 56px 0 28px;
}

.diagnostico-page h1 {
  font-size: 48px;
  line-height: 1.1;
  margin: 0;
}

.diagnostico-page h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

.diagnostico-page .hero p {
  margin: 20px 0;
  font-size: 18px;
  color: var(--muted);
  max-width: 900px;
}

.diagnostico-page .card {
  background: white;
  padding: 26px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: 0.3s;
}

.diagnostico-page .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 70px rgba(13, 44, 95, 0.15);
}

.diagnostico-page .form-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(10, 47, 111, 0.1);
}

.diagnostico-page .form-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.diagnostico-page .intro-grid {
  display: block;
  width: 100%;
  margin-bottom: 30px;
}

.diagnostico-page .intro-grid > .form-card {
  display: block;
  width: 100%;
  max-width: none;
}

.diagnostico-page .form-intro-primary {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.diagnostico-page .form-intro-secondary {
  color: var(--muted);
  line-height: 1.65;
}


.diagnostico-page .bloque-contacto {
  background: #f8fbff;
  border: 1px solid #dde7f3;
  padding: 22px;
  border-radius: 14px;
  margin-bottom: 28px;
}

.diagnostico-page .fila {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.diagnostico-page .campo label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.diagnostico-page .campo input {
  width: 100%;
  padding: 14px 14px;
  border: 1px solid #cfd8e3;
  border-radius: 12px;
  box-sizing: border-box;
  font-size: 15px;
  color: var(--text);
  background: white;
  transition: 0.2s;
}

.diagnostico-page .campo input:focus {
  outline: none;
  border-color: var(--primary-2);
  box-shadow: 0 0 0 4px rgba(31, 95, 191, 0.1);
}

.diagnostico-page .pregunta {
  margin-bottom: 24px;
  padding: 22px;
  border-radius: 16px;
  background: white;
  border: 1px solid rgba(10, 47, 111, 0.1);
  box-shadow: 0 12px 30px rgba(13, 44, 95, 0.06);
}

.diagnostico-page .pregunta h3 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 20px;
}

.diagnostico-page .opcion {
  display: block;
  margin-bottom: 10px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e5eef7;
  cursor: pointer;
  transition: 0.2s;
  color: var(--muted);
}

.diagnostico-page .opcion:hover {
  background: #eef4ff;
  border-color: rgba(31, 95, 191, 0.25);
}

.diagnostico-page .opcion input {
  margin-right: 10px;
}

.diagnostico-page .errores,
.diagnostico-page .ok {
  padding: 16px 18px;
  border-radius: 14px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.diagnostico-page .errores {
  background: var(--danger-bg);
  color: var(--danger-text);
}

.diagnostico-page .ok {
  background: var(--ok-bg);
  color: var(--ok-text);
}

.diagnostico-page .resultado {
  margin-top: 30px;
  padding: 24px;
  border-radius: 18px;
  background: #eef7ee;
  border-left: 6px solid #2e7d32;
  box-shadow: var(--shadow);
}

.diagnostico-page .resultado h2 {
  margin-top: 0;
  color: #2e7d32;
}

.diagnostico-page .puntuacion {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 12px;
}

.diagnostico-page .cta {
  margin-top: 16px;
  padding: 16px;
  background: #f3f7ff;
  border-left: 4px solid var(--primary);
  border-radius: 12px;
  color: var(--text);
}

.diagnostico-page .btn {
  cursor: pointer;
  border: none;
}

.diagnostico-page.modal-open {
  overflow: hidden;
}

.diagnostico-page .resultado-modal-backdrop {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(11, 45, 103, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 200;
}

.diagnostico-page .resultado-modal {
  position: relative;
  width: min(720px, 100%);
  max-height: calc(100vh - 48px);
  margin-top: 0;
  overflow-y: auto;
  border-left-width: 0;
  border-top: 6px solid #2e7d32;
  box-shadow: 0 30px 90px rgba(13, 44, 95, 0.28);
}

.diagnostico-page .resultado-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(13, 44, 95, 0.12);
}

.diagnostico-page .resultado-modal-close:hover {
  background: white;
}

@media (max-width: 1180px) {
  .landing-page .nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
  }

  .landing-page .logo-wrap {
    order: 1;
  }

  .landing-page .nav-links {
    order: 2;
    flex: 1 1 auto;
    margin-left: 12px;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .landing-page .nav-links::-webkit-scrollbar {
    display: none;
  }

  .landing-page .nav-actions {
    order: 3;
    margin-left: 0;
    flex-shrink: 0;
  }

  .landing-page .brand-claim {
    max-width: 260px;
  }
}

@media (max-width: 980px) {
  

.diagnostico-page .intro-grid > .form-card {
  width: 100%;
  max-width: none;
  grid-column: 1 / -1;
}
}

@media (max-width: 900px) {
  .landing-page .grid-2,
  .landing-page .grid-3 {
    grid-template-columns: 1fr;
  }

  .landing-page .feature-card {
    flex-direction: column;
  }

  .landing-page .how .flow-grid::before,
  .landing-page .how .flow-node {
    display: none;
  }

  .diagnostico-page .nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
  }

  .diagnostico-page .nav-links {
    order: 2;
    flex: 1 1 auto;
    margin-left: 0;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .diagnostico-page .nav-links::-webkit-scrollbar {
    display: none;
  }

  .diagnostico-page .nav-actions {
    order: 3;
    margin-left: 0;
  }

  .diagnostico-page .fila {
    grid-template-columns: 1fr;
  }

  .site-footer .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  .landing-page .nav {
    align-items: flex-start;
  }

  .landing-page .logo-wrap {
    width: 100%;
  }

  .landing-page .logo img,
  .diagnostico-page .logo img {
    height: 88px;
  }

  .landing-page .brand-name,
  .diagnostico-page .brand-name {
    font-size: 18px;
  }

  .landing-page .brand-claim,
  .diagnostico-page .brand-claim {
    font-size: 12px;
  }

  .landing-page .nav-links {
    order: 2;
    width: 100%;
    margin-left: 0;
    gap: 14px;
    flex: 0 0 100%;
  }

  .landing-page .nav-actions {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
    margin-left: 0;
  }

  .landing-page .btn {
    padding: 10px 14px;
    font-size: 14px;
  }

  .landing-page .sticky-header .logo img,
  .diagnostico-page .sticky-header .logo img {
    height: 70px;
  }

  .diagnostico-page h1 {
    font-size: 36px;
  }

  .diagnostico-page h2 {
    font-size: 28px;
  }

  .diagnostico-page .btn {
    padding: 12px 16px;
    font-size: 14px;
  }

  .diagnostico-page .resultado-modal-backdrop {
    padding: 16px;
  }

  .diagnostico-page .resultado-modal {
    max-height: calc(100vh - 32px);
    padding: 22px 18px;
  }

  .site-footer {
    padding: 28px 16px 34px;
  }

  .site-footer .footer-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .info-page .hero h1 {
    font-size: 34px;
  }

  .info-page .hero p {
    font-size: 16px;
  }

  .info-page .content-card {
    padding: 22px 18px;
  }
}
