:root {
  --azul: #7dabc2;
  --rojo: #d90a00;
  --rojo-dark: #b80800;
  --texto: #2c2c2c;
  --gris: #f5f7f8;
  --gris-2: #e9eef1;
  --blanco: #ffffff;
  --negro: #101820;
  --sombra: 0 20px 40px rgba(0, 0, 0, 0.08);
  --radius: 18px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--texto);
  background: var(--blanco);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: min(1180px, 92%);
  margin: auto;
}

.header {
  background: var(--blanco);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 70px;
}

.menu {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 600;
}

.menu a {
  color: var(--texto);
  transition: color 0.2s ease;
}

.menu a:hover {
  color: var(--rojo);
}

.btn-menu {
  background: var(--rojo);
  color: var(--blanco) !important;
  padding: 11px 20px;
  border-radius: 999px;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 32px;
  cursor: pointer;
}

.hero {
  min-height: 720px;
  background:
    linear-gradient(90deg, rgba(16, 24, 32, 0.88), rgba(16, 24, 32, 0.35)),
    url("../img/hero-industrial.jpg") center/cover no-repeat;
  color: var(--blanco);
  position: relative;
  display: flex;
  align-items: center;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 50px;
  align-items: center;
}

.tag,
.section-label {
  display: inline-block;
  background: rgba(125, 171, 194, 0.4);
  color: #d90a00;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  margin-bottom: 18px;
}
.tag2 {
  display: inline-block;
  background: rgba(125, 171, 194, 0.18);
  color: #7dabc2;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  max-width: 760px;
  margin-bottom: 54px;
}

.hero p {
  font-size: 20px;
  max-width: 660px;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 54px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 14px 24px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--rojo);
  color: var(--blanco);
}

.btn-primary:hover {
  background: var(--rojo-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--blanco);
  color: var(--negro);
}

.btn-secondary:hover {
  background: var(--gris-2);
  transform: translateY(-2px);
}

.hero-card {
  background: rgba(255, 255, 255, 0.92);
  color: var(--texto);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--sombra);
}

.hero-card h3 {
  color: var(--rojo);
  margin-bottom: 10px;
  font-size: 26px;
}

.features {
  margin-top: -70px;
  position: relative;
  z-index: 5;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature-card {
  background: var(--blanco);
  padding: 26px;
  border-radius: var(--radius);
  box-shadow: var(--sombra);
  border-top: 5px solid var(--azul);
}

.feature-card h3 {
  margin-bottom: 10px;
  color: var(--negro);
}

.section {
  padding: 90px 0;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 55px;
  align-items: center;
}

h2 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.15;
  color: var(--negro);
  margin-bottom: 18px;
}

.section-heading {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px;
}

.products {
  background: var(--gris);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.product-card {
  background: var(--blanco);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--sombra);
  transition: 0.2s ease;
}

.product-card:hover {
  transform: translateY(-6px);
}

.product-image {
  position: relative;
  width: 100%;
  height: 230px;
  overflow: hidden;
  background: var(--gris);
}

.product-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.product-img-main {
  opacity: 1;
  z-index: 1;
}

.product-img-hover {
  opacity: 0;
  z-index: 2;
}

.product-card:hover .product-img-main {
  opacity: 0;
}

.product-card:hover .product-img-hover {
  opacity: 1;
  transform: scale(1.04);
}

.product-body {
  padding: 26px;
}

.product-body h3 {
  color: var(--negro);
  margin-bottom: 10px;
  font-size: 22px;
}

.product-body p {
  margin-bottom: 18px;
}

.product-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.product-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  transition: 0.2s ease;
}

.product-btn-primary {
  background: var(--rojo);
  color: var(--blanco);
}

.product-btn-primary:hover {
  background: var(--rojo-dark);
  transform: translateY(-2px);
}

.product-btn-secondary {
  background: var(--gris);
  color: var(--negro);
  border: 1px solid var(--gris-2);
}

.product-btn-secondary:hover {
  background: var(--azul);
  color: var(--blanco);
  transform: translateY(-2px);
}

.industries {
  position: relative;
  background: url("../img/aplicaciones-bg.jpg") center center / cover no-repeat;
  overflow: hidden;
}

.industries::before {
  content: "";
  position: absolute;
  inset: 0;
}

.industries .container {
  position: relative;
  z-index: 1;
  margin-bottom: 90px;
}

.industries .section-heading h2,
.industries .section-heading p,
.industries .section-label {
  position: relative;
  z-index: 1;
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.industry-item {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(125, 171, 194, 0.18);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 24px;
  text-align: center;
  border-radius: var(--radius);
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
  transition: 0.2s ease;
}

.industry-item:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
}

.ai-section {
  background:
    linear-gradient(135deg, rgba(125, 171, 194, 0.18), rgba(217, 10, 0, 0.06));
}

.ai-box {
  background: var(--blanco);
  padding: 34px;
  border-radius: var(--radius);
  box-shadow: var(--sombra);
}

.ai-box h3 {
  color: var(--rojo);
  margin-bottom: 15px;
}

.ai-box ul {
  padding-left: 22px;
}

.ai-box li {
  margin-bottom: 8px;
}

.quote-section {
  padding: 70px 0;
}

.quote-box {
  background: var(--negro);
  color: var(--blanco);
  text-align: center;
  padding: 60px 30px;
  border-radius: 28px;
}

.quote-box h2 {
  color: var(--blanco);
}

.quote-box p {
  max-width: 720px;
  margin: 0 auto 28px;
}

.contact {
  background: var(--gris);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
}

.contact-info {
  margin-top: 28px;
  background: var(--blanco);
  padding: 24px;
  border-radius: var(--radius);
}

.contact-info p {
  margin-bottom: 8px;
}

.form {
  background: var(--blanco);
  padding: 34px;
  border-radius: var(--radius);
  box-shadow: var(--sombra);
  display: grid;
  gap: 16px;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid var(--gris-2);
  border-radius: 12px;
  font-size: 16px;
  font-family: inherit;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid rgba(125, 171, 194, 0.45);
}

.footer {
  background: #101820;
  color: var(--blanco);
  padding-top: 70px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.9fr 1fr;
  gap: 45px;
  align-items: flex-start;
}

.footer-logo {
  width: 92px;
  height: auto;
  margin-bottom: 20px;
  background: var(--blanco);
  padding: 10px;
  border-radius: 14px;
}

.footer-brand p {
  max-width: 430px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 22px;
}

.footer-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--rojo);
  color: var(--blanco);
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  transition: 0.2s ease;
}

.footer-whatsapp:hover {
  background: var(--rojo-dark);
  transform: translateY(-2px);
}

.footer h4 {
  color: var(--blanco);
  font-size: 16px;
  margin-bottom: 18px;
  position: relative;
}

.footer h4::after {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  background: var(--azul);
  border-radius: 99px;
  margin-top: 9px;
}

.footer-links a {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 10px;
  font-size: 15px;
  transition: 0.2s ease;
}

.footer-links a:hover {
  color: var(--azul);
  padding-left: 4px;
}

.footer-contact p {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.5;
}

.footer-contact strong {
  display: block;
  color: var(--blanco);
  font-size: 14px;
  margin-bottom: 3px;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.75);
  transition: 0.2s ease;
}

.footer-contact a:hover {
  color: var(--azul);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  margin-top: 55px;
  padding: 22px 0;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
}

.footer-bottom span {
  margin-left: 8px;
}

.footer-bottom a {
  color: var(--azul);
  font-weight: 700;
  transition: 0.2s ease;
}

.footer-bottom a:hover {
  color: var(--blanco);
}

.whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  background: var(--rojo);
  color: var(--blanco);
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  z-index: 90;
  box-shadow: var(--sombra);
}

.assistant-modal {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 32, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}

.assistant-modal.active {
  display: flex;
}

.assistant-box {
  background: var(--blanco);
  width: min(520px, 100%);
  padding: 34px;
  border-radius: 24px;
  position: relative;
  box-shadow: var(--sombra);
}

.assistant-close {
  position: absolute;
  right: 18px;
  top: 14px;
  background: transparent;
  border: none;
  font-size: 32px;
  cursor: pointer;
}

.assistant-box h3 {
  color: var(--negro);
  font-size: 28px;
  margin-bottom: 8px;
}

.assistant-intro {
  margin-bottom: 22px;
}

.assistant-step {
  display: none;
}

.assistant-step.active {
  display: grid;
  gap: 16px;
}

.assistant-step label {
  font-weight: 700;
}

.assistant-step select {
  padding: 15px;
  border: 1px solid var(--gris-2);
  border-radius: 12px;
  font-size: 16px;
}

.recommendation {
  background: var(--gris);
  padding: 20px;
  border-radius: 14px;
  border-left: 5px solid var(--rojo);
}

@media (max-width: 980px) {
  .hero-content,
  .split,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .grid-4,
  .product-grid,
  .industry-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    min-height: auto;
    padding: 110px 0;
  }

  .features {
    margin-top: 30px;
  }
  .footer-grid {
  grid-template-columns: repeat(2, 1fr);
}
}

@media (max-width: 720px) {
  
  .footer {
  padding-top: 50px;
}

.footer-grid {
  grid-template-columns: 1fr;
  gap: 32px;
}

.footer-bottom p {
  display: grid;
  gap: 6px;
}

.footer-bottom span {
  margin-left: 0;
}
  .menu-toggle {
    display: block;
  }

  .menu {
    position: absolute;
    top: 86px;
    left: 0;
    right: 0;
    background: var(--blanco);
    flex-direction: column;
    align-items: flex-start;
    padding: 25px 4%;
    display: none;
    box-shadow: 0 20px 24px rgba(0,0,0,0.08);
  }

  .menu.active {
    display: flex;
  }

  .grid-4,
  .product-grid,
  .industry-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero p {
    font-size: 18px;
  }

  .section {
    padding: 65px 0;
  }

  .whatsapp {
    right: 14px;
    bottom: 14px;
  }
}
.footer-bottom a {
  color: var(--azul);
  font-weight: 700;
  transition: 0.2s ease;
}

.footer-bottom a:hover {
  color: var(--blanco);
}
@media (max-width: 720px) {
  .footer {
    padding-top: 38px;
    padding-bottom: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-brand {
    text-align: center;
  }

  .footer-logo {
    width: 78px;
    margin: 0 auto 16px;
  }

  .footer-brand p {
    max-width: 100%;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 18px;
  }

  .footer-whatsapp {
    padding: 10px 18px;
    font-size: 14px;
  }

  .footer-links,
  .footer-contact {
    text-align: center;
  }

  .footer h4 {
    font-size: 16px;
    margin-bottom: 14px;
  }

  .footer h4::after {
    margin: 8px auto 0;
  }

  .footer-links a {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .footer-links a:hover {
    padding-left: 0;
  }

  .footer-contact p {
    font-size: 14px;
    margin-bottom: 12px;
  }

  .footer-bottom {
    margin-top: 35px;
    padding: 18px 18px 84px;
  }

  .footer-bottom p {
    font-size: 13px;
    line-height: 1.6;
  }

  .footer-bottom span {
    display: block;
    margin-left: 0;
    margin-top: 4px;
  }

  .whatsapp {
    right: 16px;
    bottom: 16px;
    padding: 12px 20px;
    font-size: 14px;
  }
}
.gallery-section {
  background: var(--blanco);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.gallery-item {
  position: relative;
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--gris);
  box-shadow: var(--sombra);
  padding: 0;
  height: 230px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.35s ease;
}

.gallery-item span {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  background: rgba(16, 24, 32, 0.78);
  color: var(--blanco);
  padding: 10px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  backdrop-filter: blur(6px);
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 32, 0.86);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 24px;
}

.gallery-lightbox.active {
  display: flex;
}

.gallery-lightbox-content {
  width: min(980px, 96vw);
  text-align: center;
}

.gallery-lightbox-content img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 18px;
  background: var(--blanco);
}

.gallery-lightbox-content p {
  color: var(--blanco);
  font-size: 18px;
  font-weight: 700;
  margin-top: 14px;
}

.gallery-lightbox-close {
  position: fixed;
  top: 24px;
  right: 28px;
  background: var(--rojo);
  color: var(--blanco);
  border: none;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  z-index: 310;
}

.gallery-lightbox-close:hover {
  background: var(--rojo-dark);
}

@media (max-width: 980px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 720px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .gallery-item {
    height: 165px;
  }

  .gallery-item span {
    left: 8px;
    right: 8px;
    bottom: 8px;
    font-size: 11px;
    padding: 8px 10px;
  }

  .gallery-lightbox-content img {
    max-height: 72vh;
  }

  .gallery-lightbox-close {
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    font-size: 28px;
  }
}
.use-section {
  background: var(--gris);
}

.use-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.use-card {
  background: var(--blanco);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--sombra);
  transition: 0.25s ease;
}

.use-card:hover {
  transform: translateY(-6px);
}

.use-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.use-body {
  padding: 24px;
}

.use-body h3 {
  color: var(--negro);
  font-size: 22px;
  line-height: 1.2;
  margin-bottom: 10px;
}

.use-body p {
  color: var(--texto);
  font-size: 15px;
  line-height: 1.6;
}

.use-cta {
  margin-top: 45px;
  background: var(--negro);
  color: var(--blanco);
  padding: 42px 30px;
  border-radius: 26px;
  text-align: center;
}

.use-cta h3 {
  font-size: 30px;
  margin-bottom: 10px;
}

.use-cta p {
  max-width: 650px;
  margin: 0 auto 24px;
  color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 980px) {
  .use-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .use-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .use-card img {
    height: 230px;
  }

  .use-body {
    padding: 20px;
  }

  .use-body h3 {
    font-size: 20px;
  }

  .use-cta {
    margin-top: 34px;
    padding: 34px 22px;
  }

  .use-cta h3 {
    font-size: 24px;
  }
}
.simple-gallery-section {
  background: var(--gris);
}

.simple-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.simple-gallery-item {
  background: var(--gris);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--sombra);
  height: 260px;
  transition: 0.25s ease;
}

.simple-gallery-item:hover {
  transform: translateY(-5px);
}

.simple-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Tablet */
@media (max-width: 980px) {
  .simple-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .simple-gallery-item {
    height: 240px;
  }
}

/* Móvil */
@media (max-width: 720px) {
  .simple-gallery-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .simple-gallery-item {
    height: 230px;
  }
}

@media (hover: none) {
  .product-card:hover .product-img-main {
    opacity: 1;
  }

  .product-card:hover .product-img-hover {
    opacity: 0;
    transform: none;
  }
}

/* =======================================================
   ASESOR VIRTUAL TEXAFIL
======================================================= */

.advisor-section {
  background: #f5f7f8;
}

.advisor-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 58px;
  overflow: hidden;
  border-radius: 28px;
  background:
    linear-gradient(
      115deg,
      rgba(16, 24, 32, 0.98),
      rgba(16, 24, 32, 0.92)
    );
  color: #ffffff;
  box-shadow: 0 24px 60px rgba(16, 24, 32, 0.15);
}

.advisor-banner-content {
  max-width: 680px;
}

.advisor-banner-content .section-label {
  background: rgba(125, 171, 194, 0.18);
  color: #9dc8dc;
}

.advisor-banner-content h2 {
  margin: 18px 0 16px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.05;
  color: white;
}

.advisor-banner-content p {
  max-width: 630px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 17px;
  line-height: 1.7;
}

.advisor-banner-icon {
  display: grid;
  flex: 0 0 180px;
  width: 180px;
  height: 180px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background:
    radial-gradient(
      circle,
      rgba(125, 171, 194, 0.4),
      rgba(125, 171, 194, 0.08)
    );
}

.advisor-banner-icon span {
  color: #ffffff;
  font-size: 54px;
  font-weight: 800;
}

/* Modal */

.advisor-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
  background: rgba(8, 14, 20, 0.88);
  backdrop-filter: blur(8px);
}

.advisor-modal.active {
  display: flex;
}

.advisor-dialog {
  width: min(1050px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.35);
}

.advisor-header {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 25px 32px;
  border-bottom: 1px solid #e7ecef;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.advisor-kicker {
  display: block;
  margin-bottom: 4px;
  color: #7dabc2;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.advisor-header h2 {
  margin: 0;
  color: #101820;
  font-size: 23px;
}

.advisor-progress {
  display: flex;
  align-items: center;
}

.advisor-progress-item {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 2px solid #dbe4e9;
  border-radius: 50%;
  background: #ffffff;
  color: #79858d;
  font-size: 13px;
  font-weight: 800;
  transition: 0.25s ease;
}

.advisor-progress-item.active,
.advisor-progress-item.completed {
  border-color: #d90a00;
  background: #d90a00;
  color: #ffffff;
}

.advisor-progress-line {
  width: 35px;
  height: 2px;
  background: #dbe4e9;
}

.advisor-content {
  padding: 36px 32px 34px;
}

.advisor-step {
  display: none;
}

.advisor-step.active {
  display: block;
  animation: advisorFade 0.3s ease;
}

@keyframes advisorFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.advisor-step-heading {
  max-width: 720px;
  margin-bottom: 30px;
}

.advisor-step-number {
  display: inline-block;
  margin-bottom: 9px;
  color: #d90a00;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.advisor-step-heading h3 {
  margin: 0 0 10px;
  color: #101820;
  font-size: clamp(27px, 4vw, 38px);
  line-height: 1.15;
}

.advisor-step-heading p {
  margin: 0;
  color: #64717a;
  line-height: 1.65;
}

/* Opciones de aplicación */

.advisor-applications {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.advisor-option {
  display: flex;
  align-items: center;
  gap: 17px;
  min-height: 112px;
  padding: 21px;
  border: 1px solid #dde5e9;
  border-radius: 18px;
  background: #ffffff;
  color: #101820;
  text-align: left;
  cursor: pointer;
  transition: 0.22s ease;
}

.advisor-option:hover,
.advisor-option:focus-visible {
  border-color: #7dabc2;
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(16, 24, 32, 0.09);
  outline: none;
}

.advisor-option-icon {
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  background: #e8f1f5;
  color: #5d91aa;
  font-size: 13px;
  font-weight: 800;
}

.advisor-option-text {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.advisor-option-text strong {
  font-size: 16px;
  line-height: 1.3;
}

.advisor-option-text small {
  color: #6f7b83;
  font-size: 13px;
  line-height: 1.45;
}

/* Presentaciones */

.advisor-presentations {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.advisor-presentation {
  position: relative;
}

.advisor-presentation input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.advisor-presentation label {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border: 2px solid #e3e9ec;
  border-radius: 16px;
  background: #ffffff;
  color: #26333b;
  font-weight: 750;
  text-align: center;
  cursor: pointer;
  transition: 0.2s ease;
}

.advisor-presentation label:hover {
  border-color: #7dabc2;
}

.advisor-presentation input:checked + label {
  border-color: #d90a00;
  background: rgba(217, 10, 0, 0.05);
  color: #d90a00;
  box-shadow: 0 0 0 3px rgba(217, 10, 0, 0.08);
}

.advisor-step-actions {
  margin-top: 28px;
  text-align: right;
}

.advisor-step-actions button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Resumen */

.advisor-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 25px;
}

.advisor-summary div {
  padding: 17px 19px;
  border: 1px solid #dfe7eb;
  border-radius: 15px;
  background: #f7f9fa;
}

.advisor-summary span {
  display: block;
  margin-bottom: 5px;
  color: #748088;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.advisor-summary strong {
  color: #101820;
  font-size: 15px;
}

/* Recomendación principal */

.advisor-primary-result {
  padding: 5px;
  border-radius: 22px;
  background:
    linear-gradient(
      135deg,
      rgba(125, 171, 194, 0.28),
      rgba(217, 10, 0, 0.13)
    );
}

.advisor-result-label {
  padding: 13px 17px 8px;
  color: #101820;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.advisor-product-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 25px;
  border-radius: 18px;
  background: #ffffff;
}

.advisor-product-result-content {
  flex: 1;
}

.advisor-product-result h4 {
  margin: 0 0 9px;
  color: #101820;
  font-size: 24px;
  line-height: 1.25;
}

.advisor-product-result p {
  max-width: 680px;
  margin: 0;
  color: #64717a;
  line-height: 1.6;
}

.advisor-product-links {
  display: flex;
  flex: 0 0 auto;
  gap: 9px;
  flex-wrap: wrap;
}

.advisor-pdf-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 15px;
  border: 1px solid #dce4e8;
  border-radius: 999px;
  background: #f5f7f8;
  color: #101820;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  transition: 0.2s ease;
}

.advisor-pdf-link:hover {
  border-color: #7dabc2;
  color: #527f95;
}

/* Alternativas */

.advisor-alternatives-wrapper {
  margin-top: 32px;
}

.advisor-alternatives-heading {
  margin-bottom: 17px;
}

.advisor-alternatives-heading h4 {
  margin: 0 0 5px;
  color: #101820;
  font-size: 22px;
}

.advisor-alternatives-heading p {
  margin: 0;
  color: #6d7880;
}

.advisor-alternatives {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.advisor-alternative-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 165px;
  padding: 20px;
  border: 1px solid #e0e7eb;
  border-radius: 17px;
  background: #ffffff;
}

.advisor-alternative-card h5 {
  margin: 0 0 7px;
  color: #101820;
  font-size: 17px;
  line-height: 1.35;
}

.advisor-alternative-card p {
  margin: 0 0 17px;
  color: #6c7880;
  font-size: 13px;
  line-height: 1.5;
}

/* Acciones finales */

.advisor-final-actions {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-wrap: wrap;
  margin-top: 35px;
  padding-top: 25px;
  border-top: 1px solid #e1e7ea;
}

.advisor-close-final {
  margin-left: auto;
  padding: 11px 8px;
  border: 0;
  background: transparent;
  color: #68747c;
  font-weight: 700;
  cursor: pointer;
}

.advisor-close-final:hover {
  color: #d90a00;
}

/* Responsive */

@media (max-width: 850px) {
  .advisor-banner {
    padding: 42px 30px;
  }

  .advisor-banner-icon {
    display: none;
  }

  .advisor-applications {
    grid-template-columns: 1fr;
  }

  .advisor-presentations {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .advisor-product-result {
    align-items: flex-start;
    flex-direction: column;
  }

  .advisor-alternatives {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .advisor-modal {
    align-items: flex-start;
    padding: 0;
  }

  .advisor-dialog {
    min-height: 100vh;
    max-height: none;
    border-radius: 0;
  }

  .advisor-header {
    align-items: flex-start;
    padding: 20px;
  }

  .advisor-header h2 {
    font-size: 19px;
  }

  .advisor-progress-line {
    width: 18px;
  }

  .advisor-progress-item {
    width: 29px;
    height: 29px;
  }

  .advisor-content {
    padding: 27px 20px 30px;
  }

  .advisor-presentations {
    grid-template-columns: 1fr;
  }

  .advisor-summary {
    grid-template-columns: 1fr;
  }

  .advisor-product-links,
  .advisor-final-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .advisor-product-links a,
  .advisor-final-actions .btn {
    width: 100%;
    text-align: center;
  }

  .advisor-close-final {
    width: 100%;
    margin-left: 0;
    text-align: center;
  }
}
/* =======================================================
   CONTROLES DE NAVEGACIÓN DEL ASESOR
======================================================= */

.advisor-header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.advisor-close-top {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #f1f4f6;
  color: #101820;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.advisor-close-top:hover {
  background: #d90a00;
  color: #ffffff;
  transform: rotate(90deg);
}

.advisor-close-top:focus-visible {
  outline: 3px solid rgba(125, 171, 194, 0.45);
  outline-offset: 2px;
}

.advisor-step-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.advisor-back-button {
  border: 1px solid #dce4e8;
  background: #f5f7f8;
  color: #101820;
}

.advisor-back-button:hover {
  border-color: #7dabc2;
  background: #e8f1f5;
  color: #527f95;
}

@media (max-width: 620px) {
  .advisor-header {
    align-items: center;
    gap: 12px;
  }

  .advisor-header-actions {
    gap: 10px;
  }

  .advisor-close-top {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
    font-size: 26px;
  }

  .advisor-progress-line {
    width: 12px;
  }

  .advisor-progress-item {
    width: 27px;
    height: 27px;
    font-size: 12px;
  }

  .advisor-step-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .advisor-step-actions .btn {
    width: 100%;
  }
}
/* =======================================================
   PASO 3 COMPACTO — RESULTADOS SIN SCROLL EN ESCRITORIO
======================================================= */

@media (min-width: 851px) and (min-height: 720px) {
  .advisor-results-active {
    padding: 10px;
    overflow: hidden;
  }

  .advisor-results-active .advisor-dialog {
    display: flex;
    flex-direction: column;
    width: min(1080px, calc(100vw - 20px));
    height: calc(100vh - 20px);
    max-height: calc(100vh - 20px);
    overflow: hidden;
    border-radius: 26px;
  }

  .advisor-results-active .advisor-header {
    flex: 0 0 auto;
    padding: 14px 30px;
  }

  .advisor-results-active .advisor-header h2 {
    font-size: 22px;
    line-height: 1.15;
  }

  .advisor-results-active .advisor-kicker {
    margin-bottom: 2px;
    font-size: 11px;
  }

  .advisor-results-active .advisor-progress-item {
    width: 34px;
    height: 34px;
  }

  .advisor-results-active .advisor-content {
    flex: 1;
    min-height: 0;
    padding: 18px 30px 16px;
    overflow: hidden;
  }

  .advisor-results-active #advisorStep3 {
    height: 100%;
  }

  /* Encabezado del resultado */

  .advisor-results-active .advisor-result-heading {
    margin-bottom: 14px;
  }

  .advisor-results-active .advisor-result-heading .advisor-step-number {
    margin-bottom: 3px;
    font-size: 11px;
  }

  .advisor-results-active .advisor-result-heading h3 {
    margin-bottom: 4px;
    font-size: 29px;
    line-height: 1.05;
  }

  .advisor-results-active .advisor-result-heading p {
    font-size: 14px;
    line-height: 1.4;
  }

  /* Resumen de aplicación y presentación */

  .advisor-results-active .advisor-summary {
    gap: 10px;
    margin-bottom: 12px;
  }

  .advisor-results-active .advisor-summary div {
    padding: 10px 16px;
  }

  .advisor-results-active .advisor-summary span {
    margin-bottom: 2px;
    font-size: 10px;
  }

  .advisor-results-active .advisor-summary strong {
    font-size: 13px;
    line-height: 1.25;
  }

  /* Producto principal */

  .advisor-results-active .advisor-primary-result {
    padding: 4px;
    border-radius: 18px;
  }

  .advisor-results-active .advisor-result-label {
    padding: 7px 14px 4px;
    font-size: 10px;
  }

  .advisor-results-active .advisor-product-result {
    gap: 16px;
    padding: 14px 20px;
    border-radius: 15px;
  }

  .advisor-results-active .advisor-product-result h4 {
    margin-bottom: 3px;
    font-size: 19px;
  }

  .advisor-results-active .advisor-product-result p {
    font-size: 13px;
    line-height: 1.4;
  }

  .advisor-results-active .advisor-product-links {
    flex-wrap: nowrap;
  }

  .advisor-results-active .advisor-pdf-link {
    padding: 8px 12px;
    font-size: 11px;
    white-space: nowrap;
  }

  /* Productos alternativos */

  .advisor-results-active .advisor-alternatives-wrapper {
    margin-top: 14px;
  }

  .advisor-results-active .advisor-alternatives-heading {
    margin-bottom: 8px;
  }

  .advisor-results-active .advisor-alternatives-heading h4 {
    margin-bottom: 1px;
    font-size: 18px;
  }

  .advisor-results-active .advisor-alternatives-heading p {
    font-size: 12px;
    line-height: 1.3;
  }

  .advisor-results-active .advisor-alternatives {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
  }

  .advisor-results-active .advisor-alternative-card {
    min-height: 120px;
    padding: 12px 14px;
    border-radius: 14px;
  }

  .advisor-results-active .advisor-alternative-card h5 {
    margin-bottom: 3px;
    font-size: 14px;
    line-height: 1.25;
  }

  .advisor-results-active .advisor-alternative-card p {
    display: -webkit-box;
    margin-bottom: 8px;
    overflow: hidden;
    font-size: 11px;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .advisor-results-active .advisor-alternative-card .advisor-pdf-link {
    width: 100%;
    padding: 7px 10px;
  }

  /* Botones inferiores */

  .advisor-results-active .advisor-final-actions {
    gap: 8px;
    margin-top: 13px;
    padding-top: 11px;
  }

  .advisor-results-active .advisor-final-actions .btn {
    min-height: 38px;
    padding: 9px 15px;
    font-size: 12px;
  }

  .advisor-results-active .advisor-close-final {
    padding: 8px;
    font-size: 12px;
  }
}
@media (min-width: 851px) and (max-height: 719px) {
  .advisor-results-active .advisor-dialog {
    max-height: calc(100vh - 20px);
    overflow-y: auto;
  }
}
/* =======================================================
   SECCIÓN CLIENTES
======================================================= */

.clients-section {
  background: #ffffff;
}

.clients-section .section-heading p {
  color: #64717a;
  line-height: 1.7;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.client-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid #e3e9ec;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(16, 24, 32, 0.06);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.client-card:hover {
  border-color: #7dabc2;
  transform: translateY(-5px);
  box-shadow: 0 18px 38px rgba(16, 24, 32, 0.11);
}

.client-card img {
  display: block;
  width: 100%;
  max-width: 190px;
  height: 82px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.75;
  transition:
    filter 0.25s ease,
    opacity 0.25s ease,
    transform 0.25s ease;
}

.client-card:hover img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.04);
}

/* Tablet */

@media (max-width: 980px) {
  .clients-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Tablet pequeña */

@media (max-width: 760px) {
  .clients-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .client-card {
    min-height: 130px;
    padding: 20px;
  }

  .client-card img {
    max-width: 160px;
    height: 70px;
  }
}

/* Móvil */

@media (max-width: 480px) {
  .clients-grid {
    grid-template-columns: 1fr;
  }

  .client-card {
    min-height: 120px;
  }

  .client-card img {
    max-width: 180px;
    height: 70px;
  }
}

/* =======================================================
   ARTÍCULO TIPO BLOG
======================================================= */

.blog-section {
  background: #f5f7f8;
}

.blog-article {
  max-width: 1120px;
  margin: 0 auto;
}

.blog-header {
  max-width: 920px;
  margin: 0 auto 48px;
  text-align: center;
}

.blog-header h2 {
  margin-bottom: 22px;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.08;
}

.blog-intro {
  max-width: 840px;
  margin: 0 auto;
  color: #5f6c74;
  font-size: 19px;
  line-height: 1.8;
}

.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 46px;
  align-items: start;
}

.blog-main {
  min-width: 0;
}

.blog-video {
  margin: 0 0 42px;
  overflow: hidden;
  border-radius: 24px;
  background: #101820;
  box-shadow: 0 24px 55px rgba(16, 24, 32, 0.16);
}

.blog-video video {
  display: block;
  width: 100%;
  max-height: 620px;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: #000000;
}

.blog-video figcaption {
  padding: 16px 22px 19px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.6;
}

.blog-block {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 24px;
  margin-bottom: 22px;
  padding: 30px;
  border: 1px solid #e0e7eb;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(16, 24, 32, 0.05);
}

.blog-number {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 16px;
  background: rgba(125, 171, 194, 0.18);
  color: #578ca5;
  font-size: 15px;
  font-weight: 800;
}

.blog-block h3 {
  margin: 0 0 11px;
  color: #101820;
  font-size: 25px;
  line-height: 1.25;
}

.blog-block p {
  margin: 0 0 12px;
  color: #59666e;
  font-size: 16px;
  line-height: 1.75;
}

.blog-block p:last-child {
  margin-bottom: 0;
}

.blog-highlight {
  position: relative;
  margin: 34px 0;
  padding: 34px 38px;
  border-left: 6px solid #d90a00;
  border-radius: 0 20px 20px 0;
  background: #101820;
}

.blog-highlight p {
  margin: 0;
  color: #ffffff;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.55;
}

.blog-conclusion {
  margin-top: 38px;
  padding: 38px;
  border-radius: 24px;
  background:
    linear-gradient(
      135deg,
      rgba(125, 171, 194, 0.22),
      rgba(217, 10, 0, 0.07)
    );
}

.blog-conclusion > span {
  display: inline-block;
  margin-bottom: 10px;
  color: #d90a00;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-conclusion h3 {
  margin: 0 0 14px;
  color: #101820;
  font-size: 29px;
}

.blog-conclusion p {
  margin: 0 0 13px;
  color: #58656d;
  line-height: 1.75;
}

.blog-conclusion .btn {
  margin-top: 12px;
}

/* Barra lateral */

.blog-sidebar {
  position: sticky;
  top: 115px;
  display: grid;
  gap: 20px;
}

.blog-sidebar-card {
  padding: 26px;
  border: 1px solid #e0e7eb;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(16, 24, 32, 0.05);
}

.blog-sidebar-label {
  display: block;
  margin-bottom: 15px;
  color: #5d91aa;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.blog-sidebar-card ul {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.blog-sidebar-card li {
  position: relative;
  padding-left: 24px;
  color: #46535b;
  font-size: 14px;
  line-height: 1.5;
}

.blog-sidebar-card li::before {
  content: "✓";
  position: absolute;
  top: 0;
  left: 0;
  color: #d90a00;
  font-weight: 900;
}

.blog-sidebar-cta {
  border: 0;
  background: #101820;
  color: #ffffff;
}

.blog-sidebar-cta .blog-sidebar-label {
  color: #8ebbd0;
}

.blog-sidebar-cta h3 {
  margin: 0 0 11px;
  color: #ffffff;
  font-size: 23px;
  line-height: 1.3;
}

.blog-sidebar-cta p {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.65;
}

/* Tablet */

@media (max-width: 980px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Móvil */

@media (max-width: 680px) {
  .blog-header {
    margin-bottom: 34px;
    text-align: left;
  }

  .blog-header h2 {
    font-size: 36px;
  }

  .blog-intro {
    font-size: 16px;
  }

  .blog-video {
    border-radius: 18px;
  }

  .blog-video video {
    aspect-ratio: 9 / 16;
    max-height: 580px;
  }

  .blog-block {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 23px;
  }

  .blog-number {
    width: 48px;
    height: 48px;
  }

  .blog-block h3 {
    font-size: 21px;
  }

  .blog-block p {
    font-size: 15px;
  }

  .blog-highlight {
    padding: 27px 24px;
  }

  .blog-highlight p {
    font-size: 18px;
  }

  .blog-conclusion {
    padding: 27px 23px;
  }

  .blog-conclusion h3 {
    font-size: 24px;
  }

  .blog-sidebar {
    grid-template-columns: 1fr;
  }
}