:root {
  --rojo-oscuro: #bc0a1c;
  --rojo: #d51c1f;
  --azul: #2b518f;
  --gris: #383838;

  --bg-principal: #f7f9fc;
  --bg-secundario: #ffffff;
  --bg-azul: #eef4ff;
  --bg-rojo: #fff4f4;

  --texto: #2b518f;
  --texto-suave: #6c7480;
  --borde: #dde5f0;
  --sombra: 0 18px 45px rgba(43, 81, 143, 0.08);
  --radius: 24px;
}

/* ================= BASE ================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: var(--bg-principal);
  color: var(--texto);
  overflow-x: hidden;
}
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

a {
  text-decoration: none;
}

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

/* ================= COMPONENTES GENERALES ================= */

.section-padding {
  padding: 95px 0;
}

.section-kicker {
  color: var(--rojo);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  margin-bottom: 0.8rem;
  display: inline-block;
}

.section-title {
  color: var(--texto);
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}

.section-text {
  color: var(--texto-suave);
  line-height: 1.75;
  font-size: 1.05rem;
}

.bg-soft {
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
}

.btn-dime {
  border: 0;
  color: #fff !important;
  font-weight: 700;
  background: linear-gradient(135deg, var(--rojo), var(--rojo-oscuro));
  box-shadow: 0 14px 34px rgba(213, 28, 31, 0.22);
  transition: 0.25s ease;
  padding: 10px;
}

.btn-dime:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(213, 28, 31, 0.32);
}

.btn-outline-dime {
  color: var(--azul);
  border: 1px solid rgba(43, 81, 143, 0.3);
  font-weight: 700;
  background: #fff;
}

.btn-outline-dime:hover {
  color: #fff;
  background: var(--azul);
  border-color: var(--azul);
}

/* ================= NAVBAR ================= */

.navbar-dime {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--borde);
  padding-top: 1rem;
  padding-bottom: 0;
  transition:
    padding 0.35s ease,
    background 0.35s ease,
    box-shadow 0.35s ease;
}

.navbar-dime.navbar-scrolled {
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 30px rgba(43, 81, 143, 0.08);
}

.navbar-brand {
  color: var(--texto) !important;
  font-weight: 800;
}

.logo-navbar {
  height: 140px;
  width: auto;
  object-fit: contain;
  transition:
    height 0.35s ease,
    transform 0.35s ease;
}

.navbar-dime.navbar-scrolled .logo-navbar {
  height: 85px;
}

.navbar .nav-link {
  color: var(--texto);
  font-weight: 600;
}

.navbar .nav-link:hover {
  color: var(--rojo);
}
.navbar-toggler {
  background-color: var(--rojo-oscuro) !important;
}
/* ================= HERO ================= */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;

  background: linear-gradient(135deg, #ffffff 0%, #f7f9fc 45%, #eef4ff 100%);

  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;

  background:
    radial-gradient(
      circle at 15% 20%,
      rgba(213, 28, 31, 0.08),
      transparent 30%
    ),
    radial-gradient(circle at 85% 25%, rgba(43, 81, 143, 0.1), transparent 35%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 170px;
  padding-bottom: 80px;
}

.hero-image-wrapper {
  position: relative;
}

.hero-image {
  width: 100%;
  border-radius: 32px;

  box-shadow: 0 30px 70px rgba(43, 81, 143, 0.18);

  border: 1px solid var(--borde);
}
.hero-benefits {
  display: grid;
  gap: 12px;
}

.hero-benefits div {
  display: flex;
  align-items: center;
  gap: 10px;

  color: var(--texto);
  font-weight: 600;
}

.hero-benefits i {
  width: 26px;
  height: 26px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: var(--rojo);
  color: #fff;
  font-size: 0.75rem;
}

.badge-dime {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  color: var(--rojo);
  background: var(--bg-rojo);
  border: 1px solid rgba(213, 28, 31, 0.18);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  color: var(--texto);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.hero-text {
  color: var(--texto-suave);
  font-size: 1.1rem;
  line-height: 1.75;
  max-width: 680px;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-pills span {
  color: var(--texto);
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--borde);
  box-shadow: 0 8px 24px rgba(43, 81, 143, 0.05);
  font-size: 0.9rem;
  font-weight: 700;
}

/* ================= PANEL HERO ================= */

.futuristic-panel {
  position: relative;
  border-radius: 30px;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--borde);
  box-shadow: var(--sombra);
  backdrop-filter: blur(18px);
}

.panel-window {
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--borde);
  overflow: hidden;
}

.panel-header {
  display: flex;
  gap: 0.5rem;
  padding: 1rem;
  border-bottom: 1px solid var(--borde);
}

.panel-header span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ccd6e5;
}

.panel-body {
  padding: 1.5rem;
}

.panel-alert {
  padding: 1.1rem;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff4f4, #eef4ff);
  color: var(--texto);
  border: 1px solid var(--borde);
}

.panel-alert small {
  color: var(--texto-suave);
}

.panel-alert strong {
  display: block;
  font-size: 1.2rem;
  margin-top: 0.25rem;
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
  margin-top: 1rem;
}

.panel-grid div {
  padding: 1rem;
  border-radius: 16px;
  color: var(--texto);
  background: #f8fbff;
  border: 1px solid var(--borde);
  font-weight: 700;
}

.panel-grid i {
  color: var(--rojo);
  margin-right: 0.45rem;
}

.terminal {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 16px;
  background: #f7f9fc;
  color: var(--texto-suave);
  border: 1px solid var(--borde);
  font-family: Consolas, monospace;
  font-size: 0.88rem;
}

.terminal p {
  margin-bottom: 0.4rem;
}

/* ================= NOSOTROS ================= */

.about-image-wrapper {
  position: relative;
}

.about-image {
  width: 100%;
  border-radius: 32px;
  object-fit: cover;
  box-shadow: 0 30px 60px rgba(43, 81, 143, 0.12);
  border: 1px solid var(--borde);
}

.about-floating-card {
  position: absolute;
  left: 30px;
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid var(--borde);
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(43, 81, 143, 0.12);
}

.floating-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--rojo), var(--azul));
  color: #fff;
  font-size: 1.3rem;
}

.about-floating-card strong {
  display: block;
  color: var(--texto);
  font-size: 1rem;
}

.about-floating-card small {
  color: var(--texto-suave);
}

.check-list {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.check-list div {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  color: var(--texto);
  font-weight: 650;
}

.check-list i {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 50%;
  color: #fff;
  background: var(--rojo);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.about-mini-card {
  height: 100%;
  background: #fff;
  border: 1px solid var(--borde);
  border-radius: 18px;
  padding: 1rem;
  box-shadow: 0 12px 28px rgba(43, 81, 143, 0.05);
}

.about-mini-card strong {
  display: block;
  color: var(--texto);
  margin-bottom: 0.35rem;
}

.about-mini-card span {
  color: var(--texto-suave);
  font-size: 0.92rem;
}
/* ================= DIRECTOR ================= */

.director-section {
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
}

.director-card {
  background: #ffffff;
  border-radius: 32px;
  padding: 3rem;
  border: 1px solid var(--borde);
  box-shadow: 0 20px 50px rgba(43, 81, 143, 0.08);
  position: relative;
  overflow: hidden;
}

.director-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 8px;
  height: 100%;
  background: linear-gradient(180deg, var(--rojo), var(--rojo-oscuro));
}

.director-image-wrapper {
  position: relative;
}

.director-image {
  width: 100%;
  max-width: 340px;
  border-radius: 24px;
  border: 6px solid #fff;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
}

.director-info {
  margin-top: 1.5rem;
}

.director-info h3 {
  color: var(--texto);
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
}

.director-info span {
  color: var(--rojo);
  font-weight: 700;
}

.director-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.director-contact a {
  color: var(--texto);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.director-contact i {
  color: var(--rojo);
}

.director-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.director-badges span {
  background: #fff4f4;
  color: var(--rojo);
  border: 1px solid rgba(213, 28, 31, 0.15);
  padding: 0.7rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
}

.director-badges i {
  margin-right: 0.4rem;
}

@media (max-width: 768px) {
  .director-card {
    padding: 2rem;
  }

  .director-contact {
    flex-direction: column;
    gap: 0.8rem;
  }
}

/* ================= VALORES ================= */

.value-strip {
  background: #fff;
}

.value-item {
  height: 100%;
  padding: 1.4rem;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--borde);
  box-shadow: var(--sombra);
}

.value-item i {
  color: var(--rojo);
  font-size: 1.6rem;
  margin-bottom: 0.9rem;
}

.value-item h3 {
  font-size: 1rem;
  font-weight: 800;
}

.value-item p {
  color: var(--texto-suave);
  margin-bottom: 0;
  font-size: 0.94rem;
}

/* ================= ÁREAS DE ESPECIALIDAD ================= */

.services-section {
  background:
    radial-gradient(
      circle at 85% 15%,
      rgba(213, 28, 31, 0.08),
      transparent 30%
    ),
    linear-gradient(135deg, #ffffff 0%, #f6f9ff 100%);
}

.service-card {
  height: 100%;
  padding: 1.6rem;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--borde);
  color: var(--texto);
  box-shadow: 0 14px 40px rgba(43, 81, 143, 0.06);
  transition: 0.25s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(213, 28, 31, 0.25);
}

.service-card i {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: #fff1f1;
  color: var(--rojo);
  margin-bottom: 1.1rem;
}

.service-card h3 {
  font-size: 1.14rem;
  font-weight: 850;
}

.service-card p {
  color: var(--texto-suave);
  line-height: 1.65;
  margin-bottom: 0;
}

/* ================= IA FISCAL ================= */

.ia-section {
  background:
    radial-gradient(
      circle at 15% 15%,
      rgba(213, 28, 31, 0.08),
      transparent 30%
    ),
    linear-gradient(135deg, #ffffff 0%, #f7f9fc 100%);
}

.ia-card {
  background: #ffffff;
  border: 1px solid var(--borde);
  border-radius: 34px;
  padding: 3rem;
  box-shadow: var(--sombra);
  position: relative;
  overflow: hidden;
}

.ia-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 8px;
  background: linear-gradient(180deg, var(--rojo), var(--rojo-oscuro));
}

.ia-highlight {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  background: #fff4f4;
  border: 1px solid rgba(213, 28, 31, 0.18);
  color: var(--rojo-oscuro);
  padding: 1rem 1.2rem;
  border-radius: 18px;
  font-weight: 800;
  margin: 1.5rem 0;
}

.ia-highlight i {
  margin-top: 0.2rem;
  color: var(--rojo);
}

.ia-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.ia-list div {
  display: flex;
  gap: 0.8rem;
  color: var(--texto);
  font-weight: 650;
}

.ia-list i {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 50%;
  background: var(--rojo);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.ia-image-wrapper {
  position: relative;
  padding: 1rem;
  border-radius: 32px;
  background: linear-gradient(135deg, #fff4f4, #f1f3f6);
  border: 1px solid var(--borde);
}

.ia-image {
  width: 100%;
  border-radius: 26px;
  object-fit: cover;
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.12);
}

.ia-web-badge {
  position: absolute;
  left: 35px;
  bottom: 35px;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border: 1px solid var(--borde);
  border-radius: 999px;
  padding: 0.8rem 1.1rem;
  color: var(--texto);
  font-weight: 800;
  box-shadow: 0 16px 36px rgba(43, 81, 143, 0.14);
}

.ia-web-badge i {
  color: var(--rojo);
}

@media (max-width: 768px) {
  .ia-card {
    padding: 2rem;
  }

  .ia-web-badge {
    position: static;
    margin-top: 1rem;
    justify-content: center;
    border-radius: 18px;
    text-align: center;
  }
}

/* ================= CONSULTORÍA ESPECIALIZADA ================= */

.service-detail-card {
  background: #fff;
  border: 1px solid var(--borde);
  border-radius: 32px;
  padding: 2.5rem;
  box-shadow: var(--sombra);
}

.service-detail-sidebar {
  position: sticky;
  top: 120px;
}

.service-detail-header {
  padding-right: 1rem;
}

.service-number {
  display: inline-block;
  font-size: 4rem;
  line-height: 1;
  font-weight: 900;
  color: rgba(43, 81, 143, 0.12);
  margin-bottom: 1rem;
}

.service-detail-icon {
  width: 78px;
  height: 78px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--azul), var(--rojo));
  color: #fff;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.service-detail-header h3 {
  font-size: 1.7rem;
  font-weight: 850;
  margin-bottom: 1rem;
  color: var(--texto);
}

.service-detail-header p {
  color: var(--texto-suave);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.service-detail-image-wrapper {
  position: relative;
}

.service-detail-image {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 30px;
  border: 1px solid var(--borde);
  box-shadow: 0 30px 60px rgba(43, 81, 143, 0.12);
}

.service-image-badge {
  position: absolute;
  left: 25px;
  bottom: 25px;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1.2rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  border: 1px solid var(--borde);
  box-shadow: 0 18px 40px rgba(43, 81, 143, 0.1);
}

.service-image-badge i {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--rojo), var(--azul));
  color: #fff;
  font-size: 1.1rem;
}

.service-image-badge span {
  font-weight: 700;
  color: var(--texto);
}

.service-list-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.service-list-grid div {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: #f8fbff;
  border: 1px solid var(--borde);
  color: var(--texto);
  font-weight: 550;
  line-height: 1.6;
  transition: 0.25s ease;
}

.service-list-grid div:hover {
  transform: translateY(-4px);
  border-color: rgba(213, 28, 31, 0.22);
  background: #fff;
}

.service-list-grid i {
  color: var(--rojo);
  margin-top: 0.2rem;
}

/* ================= PROCESO ================= */

.process-card {
  height: 100%;
  padding: 1.5rem;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--borde);
  box-shadow: var(--sombra);
}

.process-card span {
  display: inline-block;
  color: var(--azul);
  font-size: 2rem;
  font-weight: 950;
  margin-bottom: 1rem;
}

.process-card h3 {
  font-weight: 850;
  font-size: 1.15rem;
}

.process-card p {
  color: var(--texto-suave);
  line-height: 1.65;
  margin-bottom: 0;
}

/* ================= CTA ================= */

.cta-band {
  background: #f7f9fc;
}

.cta-card {
  padding: 2.3rem;
  border-radius: 30px;
  background:
    radial-gradient(circle at 85% 0%, rgba(213, 28, 31, 0.1), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #eef4ff 100%);
  border: 1px solid var(--borde);
  box-shadow: var(--sombra);
}

.cta-card h2 {
  color: var(--texto);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.cta-card p {
  color: var(--texto-suave);
}

/* ================= CONTACTO ================= */

.contact-section {
  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(213, 28, 31, 0.08),
      transparent 26%
    ),
    linear-gradient(135deg, #ffffff 0%, #f7f9fc 100%);
}

.contact-info {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.contact-info a,
.contact-info div {
  display: flex;
  gap: 0.9rem;
  color: var(--texto);
  align-items: flex-start;
}

.contact-info i {
  color: var(--rojo);
  margin-top: 0.25rem;
}

.contact-form {
  padding: 2rem;
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--borde);
  box-shadow: var(--sombra);
}

.contact-form label {
  color: var(--texto);
  font-weight: 700;
}

.contact-form .form-control,
.contact-form .form-select {
  min-height: 52px;
  background: #f8fbff;
  border: 1px solid var(--borde);
  color: var(--texto);
}

.contact-form .form-control::placeholder {
  color: #9aa4b2;
}

.form-note {
  color: var(--texto-suave);
}

/* ================= FOOTER ================= */

/* ================= FOOTER GRUPO ================= */

.footer {
  background: #ffffff;
  border-top: 1px solid var(--borde);
  padding: 3rem 0 1.5rem;
}

.footer-group {
  text-align: center;
  margin-bottom: 2rem;
}

.footer-group-label {
  display: block;
  color: var(--texto-suave);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  font-weight: 700;
}

.footer-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.footer-logos img {
  height: 120px;
  width: auto;
  object-fit: contain;
  opacity: 0.85;
  transition: all 0.3s ease;
  filter: grayscale(100%);
}

.footer-logos img:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: translateY(-3px);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--borde);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--texto-suave);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .footer-logos {
    gap: 1.5rem;
  }

  .footer-logos img {
    height: 42px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ================= WHATSAPP FLOAT ================= */

.whatsapp-widget {
  position: fixed;
  right: 24px;
  bottom: 70px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.whatsapp-message {
  background: #ffffff;
  border: 1px solid var(--borde);
  box-shadow: 0 18px 45px rgba(43, 81, 143, 0.16);
  border-radius: 18px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  animation: whatsappMessage 1s ease both;
}

.whatsapp-message strong {
  color: var(--texto);
  font-size: 0.95rem;
  line-height: 1.2;
}

.whatsapp-message span {
  color: var(--texto-suave);
  font-size: 0.82rem;
}

.whatsapp-button {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: #fff;
  font-size: 2rem;
  box-shadow: 0 18px 38px rgba(37, 211, 102, 0.34);
  position: relative;
  transition: 0.25s ease;
}

.whatsapp-button:hover {
  transform: translateY(-4px) scale(1.04);
  color: #fff;
  box-shadow: 0 22px 50px rgba(37, 211, 102, 0.45);
}

.whatsapp-button::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid var(--rojo);
  animation: whatsappPulse 1.8s infinite;
}

/* ================= ANIMACIONES ================= */

.reveal,
.reveal-left,
.reveal-right,
.reveal-zoom {
  opacity: 0;
  will-change: opacity, transform;
  transition:
    opacity 0.75s ease,
    transform 0.75s ease;
}

.reveal {
  transform: translateY(35px);
}

.reveal-left {
  transform: translateX(-35px);
}

.reveal-right {
  transform: translateX(35px);
}

.reveal-zoom {
  transform: scale(0.96);
}

.reveal.show,
.reveal-left.show,
.reveal-right.show,
.reveal-zoom.show {
  opacity: 1;
  transform: none;
}

.delay-1 {
  transition-delay: 0.08s;
}
.delay-2 {
  transition-delay: 0.16s;
}
.delay-3 {
  transition-delay: 0.24s;
}
.delay-4 {
  transition-delay: 0.32s;
}
.delay-5 {
  transition-delay: 0.4s;
}
.delay-6 {
  transition-delay: 0.48s;
}

@keyframes whatsappPulse {
  0% {
    transform: scale(0.85);
    opacity: 0.9;
  }

  100% {
    transform: scale(1.25);
    opacity: 0;
  }
}

@keyframes whatsappMessage {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ================= RESPONSIVE ================= */

@media (max-width: 991px) {
  section[id] {
    scroll-margin-top: 95px;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding-top: 180px;
  }

  .futuristic-panel {
    margin-top: 3rem;
  }

  .service-detail-sidebar,
  .service-detail-header {
    position: relative;
    top: 0;
  }

  .service-detail-image {
    height: 320px;
  }

  .service-list-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .logo-navbar {
    height: 140px;
  }

  .navbar-dime.navbar-scrolled .logo-navbar {
    height: 55px;
  }

  .about-floating-card {
    position: relative;
    left: auto;
    bottom: auto;
    margin-top: 1rem;
  }

  .service-detail-card {
    padding: 1.5rem;
  }

  .service-number {
    font-size: 3rem;
  }

  .service-detail-header h3 {
    font-size: 1.4rem;
  }

  .service-detail-image {
    height: 260px;
  }

  .service-image-badge {
    left: 15px;
    right: 15px;
    bottom: 15px;
  }

  .whatsapp-widget {
    right: 18px;
    bottom: 18px;
  }

  .whatsapp-message {
    display: none;
  }

  .whatsapp-button {
    width: 58px;
    height: 58px;
    font-size: 1.9rem;
  }
}

@media (max-width: 575px) {
  .hero h1 {
    font-size: 2.35rem;
  }

  .section-padding {
    padding: 75px 0;
  }

  .panel-grid {
    grid-template-columns: 1fr;
  }

  .contact-form,
  .cta-card {
    padding: 1.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-zoom {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 768px) {
  .reveal-left,
  .reveal-right {
    transform: translateY(35px);
  }

  .reveal-left.show,
  .reveal-right.show {
    transform: none;
  }
}

/* ================= SERVICIOS FISCALES INTELIGENTES ================= */

.ia-feature-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 22px;
  background: #f8fbff;
  border: 1px solid var(--borde);
  margin: 1.5rem 0;
}

.ia-feature-icon {
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--rojo), var(--azul));
  font-size: 1.45rem;
}

.ia-feature-card h3,
.smart-service-body h3,
.dictamen-grid h3,
.pld-content-list h3 {
  color: var(--texto);
  font-weight: 850;
}

.ia-feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.45rem;
}

.ia-feature-card p {
  color: var(--texto-suave);
  line-height: 1.7;
  margin-bottom: 0;
}

.smart-service-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--borde);
  border-radius: 28px;
  box-shadow: var(--sombra);
  transition: 0.25s ease;
}

.smart-service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(213, 28, 31, 0.25);
}

.smart-service-img {
  width: 100%;
  height: 270px;
  object-fit: cover;
  display: block;
}

.smart-service-body {
  padding: 1.7rem;
}

.smart-service-body span {
  display: inline-block;
  color: var(--rojo);
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
  margin-bottom: 0.7rem;
}

.smart-service-body h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.smart-service-body p {
  color: var(--texto-suave);
  line-height: 1.7;
}

.legal-dictamen-card {
  background: #fff;
  border: 1px solid var(--borde);
  border-radius: 34px;
  padding: 3rem;
  box-shadow: var(--sombra);
  position: relative;
  overflow: hidden;
}

.legal-dictamen-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 8px;
  background: linear-gradient(90deg, var(--rojo), var(--azul));
}

.dictamen-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: #fff4f4;
  border: 1px solid rgba(213, 28, 31, 0.18);
  color: var(--rojo-oscuro);
  font-weight: 800;
}

.dictamen-grid {
  display: grid;
  gap: 1rem;
}

.dictamen-grid article,
.credibility-note,
.pld-content-list div {
  background: #f8fbff;
  border: 1px solid var(--borde);
  border-radius: 22px;
  padding: 1.35rem;
}

.dictamen-grid article i,
.credibility-note i,
.pld-content-list i {
  color: var(--rojo);
  font-size: 1.5rem;
  margin-bottom: 0.85rem;
}

.dictamen-grid p,
.credibility-note p,
.pld-content-list p {
  color: var(--texto-suave);
  line-height: 1.75;
  margin-bottom: 0;
}

.credibility-note {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: #fff4f4;
  border-color: rgba(213, 28, 31, 0.18);
}

.credibility-note i {
  margin-bottom: 0;
  margin-top: 0.25rem;
}

/* ================= PREVENCIÓN LAVADO DE DINERO ================= */

.pld-section {
  background: linear-gradient(135deg, #ffffff 0%, #f7f9fc 100%);
}

.pld-image-wrapper {
  position: relative;
}

.pld-image {
  width: 100%;
  min-height: 460px;
  object-fit: cover;
  border-radius: 32px;
  border: 1px solid var(--borde);
  box-shadow: 0 30px 70px rgba(43, 81, 143, 0.14);
}

.pld-floating-card {
  position: absolute;
  left: 28px;
  bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.95rem 1.2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--borde);
  box-shadow: 0 18px 40px rgba(43, 81, 143, 0.13);
  color: var(--texto);
  font-weight: 850;
}

.pld-floating-card i {
  color: var(--rojo);
}

.pld-content-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (max-width: 991px) {
  .service-detail-sidebar {
    position: static;
  }

  .legal-dictamen-card {
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  .ia-feature-card,
  .credibility-note {
    flex-direction: column;
  }

  .smart-service-img {
    height: 220px;
  }

  .pld-image {
    min-height: 320px;
  }

  .pld-floating-card {
    position: static;
    margin-top: 1rem;
    border-radius: 18px;
    width: 100%;
    justify-content: center;
  }
}

/* ================= BANNER ESTRATEGICO ================= */
.partner-banner {
  position: relative;
  padding: 220px 0;

  background: url("../img/banner_estrategico.jpeg") center center/cover
    no-repeat;
  overflow: hidden;
}

.partner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 17, 34, 0.75);
}

.partner-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: auto;
}

.partner-content h2 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 25px;
}

.partner-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.15rem;
  max-width: 750px;
  margin: 0 auto 35px;
}

.partner-content .section-kicker {
  color: var(--rojo-oscuro);
  display: block;
  margin-bottom: 15px;
}
