@charset "utf-8";

/* ROOTS */
:root {
  --color-primario: #059696;
  --color-primario-oscuro: #30302f;
  --color-texto: #4b4b4b;
  --color-gris-claro: #c9c9c7;
  --color-blanco: #ffffff;
  --color-secundario-fondo: #f8f9fa;
  --color-verde-logo: #00aaad;
  --vh: 1vh;
  --font-base: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  --brand-grad: linear-gradient(135deg, #00aaad 0%, #059696 50%, #374550 100%);
  --accent: #00d9c8;
  /* acento vivo para micro-detalles/hover */
  --shadow-soft: 0 8px 28px rgba(0, 0, 0, 0.08);
}


html,
body {
  font-family: var(--font-base);
}

h1,
h2,
h3 {
  letter-spacing: 0.2px;
}

/*pruebas carrusel hero*/

.idioma {
  height: auto;
  width: 40%;
}

.idioma :hover {
  background-color: #01323373;
  z-index: 99;
  transition: 0.1s ease-in-out;
  border-radius: 50px;
  cursor: pointer;
}

@supports (height: 100dvh) {
  .hero-section {
    height: 100dvh;
  }
}

/* 1. Contenedor principal con imagen estática */
.hero-section {
  position: relative;
  height: calc(var(--vh, 1vh) * 100);
  background: url("imagenes/hero1.webp") center center / cover no-repeat;
  overflow: hidden;
}

/* 2. Capa semitransparente para mejorar contraste */
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

/* 3. Overlay con carrusel de texto y botón */
.hero-section .position-absolute {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 1rem;
  z-index: 2;
}

/* 4. Estilos para las frases del carrusel de texto */
#heroTextCarousel .carousel-item h2 {
  color: #fff;
  font-size: 2rem;
}

/* 5. Ajustes al botón CTA */
.hero-section .btn {
  padding: 0.75rem 2rem;
  font-size: 1.125rem;
  border-width: 2px;
}

/* GENERALES */

html {
  scroll-behavior: smooth;
}

section {
  padding: 2% 0;
}

.problema-card h5,
.servicio-card h5,
.aplicacion-card h5 {
  font-weight: 600;
  color: var(--color-texto);
}

.section-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.section-animate.active {
  opacity: 1;
  transform: translateY(0);
}

i.bi {
  color: var(--color-verde-logo) !important;
}

/* NAVBAR */

.navbar {
  background: #ffffff;
  border-bottom: 1px solid var(--color-primario);
}

.navbar.scrolled {
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.navbar-logo {
  max-height: 60px;
  height: auto;
  width: auto;
}

/* Responsive ajuste adicional para móvil */
@media (max-width: 768px) {
  .navbar-logo {
    max-height: 40px;
  }
}

.navbar.scrolled .navbar-logo {
  height: 40px;
}

.nav-link {
  font-size: 1.1rem;
  color: var(--color-texto) !important;
  font-weight: 400;
  transition: all 0.2s ease;
}

.nav-link:hover {
  font-weight: 600;
}

.nav-link:active {
  transform: scale(0.95);
}

/* HERO */

.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

#heroVideo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  filter: brightness(0.9);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

#textCarousel h2 {
  color: var(--color-blanco);
  font-size: 2.8rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-cta {
  position: absolute;
  bottom: 20%;
}

.btn-danger {
  background-color: #e63946 !important;
  padding: 15px 40px;
  font-size: 1.2rem;
  border: none;
}

@media (max-width: 768px) {
  #textCarousel h2 {
    font-size: 1.8rem;
  }

  .btn-danger {
    font-size: 1rem;
    padding: 12px 25px;
  }
}

/* QUIENES SOMOS */

#quienes-somos h2 {
  font-size: 2rem;
  color: var(--color-texto);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

#quienes-somos p {
  color: #555;
  font-size: 1rem;
  margin-bottom: 1rem;
}

#quienes-somos ul {
  list-style: none;
  padding: 0;
}

#quienes-somos ul li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 0.75rem;
  color: #444;
}

#quienes-somos ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--color-primario);
  font-weight: bold;
}

.yt {
  border-color: rgb(91, 84, 84);
  border-width: 1px;
  border-style: solid;
  border-radius: 20px;
  background-image: url(imagenes/yt_bg.webp);
  background-size: cover;
  background-position: center;
  width: 100%;
}

/* FILOSOFIA ORG */

#filosofia {
  background-color: var(--color-secundario-fondo);
}

#filosofia h3 {
  font-size: 1.5rem;
  color: var(--color-primario);
  margin-bottom: 1rem;
}

#filosofia p {
  color: #555;
  font-size: 1rem;
}

#filosofia ul {
  list-style: none;
  padding: 0;
}

#filosofia ul li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 0.5rem;
  color: #444;
}

#filosofia ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--color-primario);
  font-weight: bold;
}

/* PROBLEMAS*/

#problemas {
  background-color: var(--color-blanco);
}

.problema-card {
  background-color: var(--color-blanco);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px 20px;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.problema-card:hover {
  background-color: var(--color-secundario-fondo);
  border-color: var(--color-primario);
}

.problema-card p {
  color: #666;
  font-size: 0.95rem;
  flex-grow: 1;
}

.problema-card img {
  border-radius: 6px;
  margin-bottom: 15px;
}

.problema-card .btn {
  margin-top: 20px;
  padding: 10px 20px;
  font-weight: 600;
}

/* DIFERENCIADORES */

#diferenciadores {
  background-image: url(imagenes/bg_difer.webp) !important;
  background-position: top center;
  background-size: cover;
  background-attachment: fixed;
}

.diferenciador-card {
  background-color: var(--color-blanco);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.diferenciador-card:hover {
  border-color: var(--color-primario);
}

.diferenciador-card h5 {
  font-weight: 600;
  color: var(--color-texto);
  margin-bottom: 15px;
}

.diferenciador-card p {
  color: #666;
  font-size: 0.95rem;
  flex-grow: 1;
}

.diferenciador-card i {
  color: var(--color-primario);
  margin-bottom: 20px;
  font-size: 2.5rem;
}

/* CONTACTO */

#contacto {
  background-color: var(--color-gris-claro) !important;
  padding-bottom: 150px !important;
}


.contact-section {
  background: linear-gradient(rgba(255, 255, 255, 0.9),
      rgba(255, 255, 255, 0.9));
  background-size: cover;
}

.contact-form {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  border-radius: 15px;
  background: var(--color-blanco);
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.form-label {
  font-weight: 600;
  color: var(--color-texto);
}

.form-control {
  border: 2px solid #e0e0e0;
  padding: 0.8rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--color-primario);
  box-shadow: 0 0 0 3px rgba(0, 170, 187, 0.2);
}

/* SERVICIOS */

#servicios {
  background-color: var(--color-gris-claro);
}

.card-title {
  min-height: 3.5rem;
  /* Ajusta según el título más largo */
}

.servicio-card:hover {
  background-color: var(--color-secundario-fondo);
  border-color: var(--color-primario);
}

.servicio-card h5 {
  font-weight: 600;
  color: var(--color-texto);
  margin-bottom: 15px;
}

.servicio-card p {
  color: #666;
  font-size: 0.95rem;
}

.servicio-card .btn {
  margin-top: 20px;
  padding: 10px 20px;
  font-weight: 600;
}

/* APLICACIONES */

#aplicaciones {
  background-color: #beeaeb !important;
}

.aplicacion-card:hover {
  background-color: var(--color-secundario-fondo);
  border-color: var(--color-primario);
}

.aplicacion-card h5 {
  font-weight: 500;
  color: var(--color-texto);
  transition: font-weight 0.3s ease;
}

.aplicacion-card:hover h5 {
  font-weight: 600;
}

.aplicacion-card p {
  color: #666;
  font-size: 0.9rem;
}

/* CTA CONTACTO */

#cta-contacto {
  background-color: var(--color-primario);
  margin-bottom: 2% !important;
}

#cta-contacto h2 {
  font-weight: 700;
  color: var(--color-blanco);
}

#cta-contacto p {
  color: var(--color-blanco);
  font-size: 1.1rem;
}

#cta-contacto .btn {
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: 600;
}

/* Fondo global parallax */
.background-parallax {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("imagenes/parallax3.webp");
  /* Cambiar por tu imagen real */
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
  z-index: -1;
  transition: transform 0.1s ease-out;
}

/* Ajuste global de todas las secciones */
.section,
#problemas,
#diferenciadores,
#servicios,
#aplicaciones,
#contacto,
#cta-contacto {
  max-width: 95%;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.8);

  padding: 4rem 2rem;
}

.footer {
  background-color: #f2f2f2;
  color: #333;
  font-size: 0.95rem;
  padding: 0 !important;
}

.footer h5 {
  font-weight: 600;
  margin-bottom: 1rem;
  color: 111;
}

.footer a {
  color: #111;
  text-decoration: none;
}

.footer a:hover {
  color: var(--color-verde-logo);
}

.footer .social-icons a i {
  font-size: 1.25rem;
  color: var(--color-verde-logo);
  transition: color 0.3s ease;
}

.footer .social-icons a:hover i {
  color: #222;
}

.footer-bottom {
  background-color: #e9e9e9;
  font-size: 0.85rem;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 300ms;
  animation-timing-function: ease;
  animation-name: fade;
}

@keyframes fade {
  from {
    opacity: 0.5;
  }

  to {
    opacity: 1;
  }
}

#carruselmarcas {
  background-color: rgba(234, 234, 234, 0.5);
}

@media (max-width: 768px) {

  .section,
  #problemas,
  #diferenciadores,
  #servicios,
  #aplicaciones,
  #contacto,
  #cta-contacto {
    max-width: 100%;
    background-color: var(--color-blanco);
    padding: 2rem 1rem;
  }
}

/* WHATSAPP */

/* Variables ajustables */
:root {
  --wa-size-desktop: 56px;
  /* diámetro desktop */
  --wa-size-mobile: 44px;
  /* diámetro móvil */
  --wa-gap: 22px;
  /* separación de bordes */
  --wa-bg: #25d366;
  /* color WhatsApp */
  --wa-fg: #ffffff;
  /* icono/texto */
  --wa-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  --wa-radius: 999px;
  --wa-z: 9999;
}

/* Botón base */
.wa-fab {
  position: fixed;
  right: var(--wa-gap);
  bottom: calc(var(--wa-gap) + env(safe-area-inset-bottom, 0));
  width: var(--wa-size-desktop);
  height: var(--wa-size-desktop);
  border-radius: var(--wa-radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 16px;
  background: var(--wa-bg);
  color: var(--wa-fg);
  text-decoration: none;
  box-shadow: var(--wa-shadow);
  z-index: var(--wa-z);
  opacity: 0.95;
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
  will-change: transform, opacity;
}

/* Etiqueta visible sólo en desktop/tablet */
.wa-fab .wa-label {
  font-weight: 600;
  line-height: 1;
  user-select: none;
}

/* Hover/focus */
.wa-fab:hover,
.wa-fab:focus {
  opacity: 1;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

/* MODO MÓVIL: más compacto y sin etiqueta (menos invasivo) */
@media (max-width: 576px) {
  .wa-fab {
    width: var(--wa-size-mobile);
    height: var(--wa-size-mobile);
    padding: 0;
    /* icono puro */
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0));
    opacity: 0.92;
  }

  .wa-fab .wa-label {
    display: none;
  }
}

/* Ocultar/mostrar en scroll (sólo móvil) */
@media (max-width: 576px) {
  .wa-fab.is-hidden {
    transform: translateY(120%);
    opacity: 0;
    pointer-events: none;
  }
}

/* Respeta usuarios con reduce motion */
@media (prefers-reduced-motion: reduce) {
  .wa-fab {
    transition: none;
  }
}

:root {
  --wa-size-desktop: 52px;
  --wa-size-mobile: 44px;
  --wa-gap: 18px;
  --wa-green: #25d366;
  --wa-white: #ffffff;
  --wa-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
  --wa-z: 9999;
}

/* Contenedor del botón */
.wa-fab {
  position: fixed;
  right: var(--wa-gap);
  bottom: calc(var(--wa-gap) + env(safe-area-inset-bottom, 0));
  min-width: var(--wa-size-desktop);
  height: var(--wa-size-desktop);
  padding: 0 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  z-index: var(--wa-z);
  transition: transform 0.15s ease, background-color 0.15s ease,
    color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
  box-shadow: var(--wa-shadow);
  color: var(--wa-green);
  background: rgba(37, 211, 102, 0.06);
  border: 2px solid var(--wa-green);
}

/* Hover (desktop) */
@media (hover: hover) {
  .wa-fab:hover {
    background: var(--wa-green);
    color: var(--wa-white);
    transform: translateY(-1px);
  }
}

/* Imagen nítida */
.wa-icon {
  width: 22px;
  height: 22px;
  display: block;
  image-rendering: auto;
}

/* Si usas ícono blanco y quieres que cambie en hover, opcional: */
@media (hover: hover) {
  .wa-fab:hover .wa-icon {
    filter: brightness(0) invert(1);
    /* vuelve blanco si tu ícono es verde */
  }
}

/* Móvil: sólo icono, menos invasivo y ocultar al desplazarse */
@media (max-width: 576px) {
  .wa-fab {
    width: var(--wa-size-mobile);
    height: var(--wa-size-mobile);
    padding: 0;
    justify-content: center;
  }

  .wa-fab .wa-label {
    display: none;
  }

  .wa-fab.is-hidden {
    transform: translateY(120%);
    opacity: 0;
    pointer-events: none;
  }
}

/* Respeta reduce motion */
@media (prefers-reduced-motion: reduce) {
  .wa-fab {
    transition: none;
  }
}

/* CARRUSEL */

/* ===== Carrusel de marcas ===== */
.brand-carousel {
  --gap: clamp(24px, 4vw, 48px);
  --logo-w: clamp(90px, 12vw, 160px);
  /* ancho base de cada logo */
  --scale-min: 0.92;
  --scale-max: 1.06;
  /* zoom sutil en el centro */
  position: relative;
  overflow: hidden;
  padding: 20px 0;
  /* desvanecer bordes (opcional, sutil) */
  -webkit-mask-image: linear-gradient(to right,
      transparent 0,
      black 6%,
      black 94%,
      transparent 100%);
  mask-image: linear-gradient(to right,
      transparent 0,
      black 6%,
      black 94%,
      transparent 100%);
}

.brand-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: var(--gap);
  will-change: transform;
  animation: bc-scroll var(--speed, 38s) linear infinite;
  pointer-events: none;
  /* sin interacción */
}

.brand-track[data-speed] {
  --speed: attr(data-speed);
}

/* permite ajustar con data-speed */

.brand-list {
  display: flex;
  align-items: center;
  gap: var(--gap);
}

.logo-item {
  width: var(--logo-w);
  height: clamp(40px, 7vw, 72px);
  display: grid;
  place-items: center;
  will-change: transform, opacity;
  transform: scale(var(--scale, 1));
  opacity: var(--alpha, 0.9);
}

.logo-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: none;
}

@keyframes bc-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }

  /* se desplaza el ancho de la primera lista */
}

/* Respeta usuarios que prefieren menos movimiento */
@media (prefers-reduced-motion: reduce) {
  .brand-track {
    animation-duration: 120s;
  }
}

/* Animación de fondo hero (zoom sutil) */
.hero-section {
  isolation: isolate;
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  /* usa la misma imagen declarada inline */
  transform-origin: center;
  animation: heroZoom 12s ease-in-out infinite alternate;
  z-index: 0;
  filter: brightness(0.96) contrast(1.02);
}

@keyframes heroZoom {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.06);
  }
}

/* Eleva texto/CTA por encima del pseudo-elemento */
.hero-section>.position-absolute {
  position: relative;
  z-index: 1;
}

.btn,
.nav-link,
.card,
.problema-card,
.diferenciador-card,
.aplicacion-card {
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-primary,
.btn-outline-primary {
  --btn-glow: 0 0 0 rgba(0, 0, 0, 0);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 170, 173, 0.25);
}

.btn-outline-primary:hover {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent);
  transform: translateY(-1px);
}

/* Hover de cards con sombra sutil */
.card:hover,
.problema-card:hover,
.diferenciador-card:hover,
.aplicacion-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

/* Estado inicial ya existe: .section-animate { opacity:0; transform: translateY(30px) } */
.section-animate.active {
  opacity: 1;
  transform: none;
}

.section-animate .row>[class*="col-"] {
  opacity: 0;
  transform: translateY(16px);
}

.section-animate.active .row>[class*="col-"] {
  opacity: 1;
  transform: none;
}

.section-animate.active .row>[class*="col-"]:nth-child(1) {
  transition: all 0.38s ease 0.05s;
}

.section-animate.active .row>[class*="col-"]:nth-child(2) {
  transition: all 0.38s ease 0.12s;
}

.section-animate.active .row>[class*="col-"]:nth-child(3) {
  transition: all 0.38s ease 0.19s;
}

.section-animate.active .row>[class*="col-"]:nth-child(4) {
  transition: all 0.38s ease 0.26s;
}

.navbar {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(140%) blur(8px);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(160%) blur(10px);
}

#cta-contacto {
  background: var(--brand-grad);
}

#cta-contacto .btn {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

#cta-contacto .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

/* alternar fondos para más ritmo visual sin tocar HTML */
.section:nth-of-type(odd) {
  background: #fff;
}

.section:nth-of-type(even) {
  background: linear-gradient(180deg, #ffffff 0%, #f7fafb 100%);
}

.logo-item {
  transition: transform 0.2s ease, opacity 0.2s ease, filter 0.2s ease;
}

.logo-item:hover {
  transform: scale(1.08);
  filter: saturate(1.15);
}

:focus-visible {
  outline: 3px solid rgba(0, 170, 173, 0.45);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ===========================
   Servicios – hover institucional
   =========================== */
#servicios .card {
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.18s ease,
    box-shadow 0.18s ease, border-color 0.2s ease;
}

/* Fondo y elevación de la tarjeta */
#servicios .card:hover {
  background-color: #00aaad;
  /* verde institucional */
  color: #f1f8f8;
  /* texto general en hover */
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

/* Títulos, párrafos y listas dentro de la card al hover */
#servicios .card:hover h3,
#servicios .card:hover h4,
#servicios .card:hover p,
#servicios .card:hover li,
#servicios .card:hover .card-text {
  color: #f1f8f8;
}

/* Íconos (Bootstrap Icons con text-primary) */
#servicios .card i,
#servicios .card .bi,
#servicios .card svg {
  transition: color 0.2s ease, fill 0.2s ease, stroke 0.2s ease;
}

#servicios .card:hover i,
#servicios .card:hover .bi,
#servicios .card:hover svg {
  color: #c9d1d1 !important;
  /* gris del icono */
  fill: #c9d1d1;
  stroke: #c9d1d1;
}

/* Botón "Ver más" (btn-outline-primary) dentro de cada card */
#servicios .card .btn {
  transition: color 0.2s ease, border-color 0.2s ease,
    background-color 0.2s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

#servicios .card:hover .btn,
#servicios .card:hover .btn-outline-primary {
  color: #f1f8f8 !important;
  /* texto del botón */
  border-color: #f1f8f8 !important;
  /* borde del botón */
  background-color: transparent !important;
  box-shadow: none;
}

/* Evitar subrayado accidental en "Ver más" si hay estilos globales */
#servicios .card .btn.btn-outline-primary {
  text-decoration: none;
}

#servicios .card .btn.btn-outline-primary:hover {
  text-decoration: none;
}

/* Base: tarjeta preparada para overlay */
#servicios .card {
  position: relative;
  overflow: hidden;
  transition: color 0.25s ease, transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.25s ease;
}

/* Overlay que barre de izquierda a derecha */
#servicios .card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #00aaad;
  /* verde institucional */
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.32s ease;
  z-index: 0;
  /* detrás del contenido */
}

/* Hover: activa el barrido y eleva la tarjeta */
#servicios .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

#servicios .card:hover::before {
  transform: scaleX(1);
}

/* Contenido por encima del overlay */
#servicios .card>* {
  position: relative;
  z-index: 1;
}

/* Colores finales durante/tras el barrido */
#servicios .card:hover h3,
#servicios .card:hover h4,
#servicios .card:hover p,
#servicios .card:hover li,
#servicios .card:hover .card-text {
  color: #f1f8f8;
  /* texto */
  transition: color 0.25s ease;
}

/* Íconos (Bootstrap Icons / SVG) */
#servicios .card i,
#servicios .card .bi,
#servicios .card svg {
  transition: color 0.25s ease, fill 0.25s ease, stroke 0.25s ease;
}

#servicios .card:hover i,
#servicios .card:hover .bi,
#servicios .card:hover svg {
  color: #c9d1d1 !important;
  /* icono */
  fill: #c9d1d1;
  stroke: #c9d1d1;
}

/* Botón "Ver más" dentro de la card */
#servicios .card .btn {
  transition: color 0.25s ease, border-color 0.25s ease,
    background-color 0.25s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

#servicios .card:hover .btn,
#servicios .card:hover .btn-outline-primary {
  color: #f1f8f8 !important;
  border-color: #f1f8f8 !important;
  background-color: transparent !important;
}

/* Respeta usuarios con reducida animación */
@media (prefers-reduced-motion: reduce) {

  #servicios .card::before,
  #servicios .card,
  #servicios .card .btn {
    transition: none;
  }

  #servicios .card:hover::before {
    transform: none;
    /* sin barrido, pero mantiene contraste si tenías regla previa */
  }
}

/* ============================
   Diferenciadores – Glassmorphism
   ============================ */
#diferenciadores .card {
  position: relative;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.18),
      rgba(255, 255, 255, 0.06)) !important;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 16px;
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.2s ease, background 0.2s ease;
}

#diferenciadores h2 {
  color: white !important;
}

/* Brillo diagonal sutil */
#diferenciadores .card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(145deg,
      rgba(255, 255, 255, 0.45),
      rgba(255, 255, 255, 0) 40%);
  pointer-events: none;
  mix-blend-mode: screen;
}

/* Hover sutil */
#diferenciadores .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
  border-color: rgba(255, 255, 255, 0.38);
}

/* Legibilidad: tipografías dentro de la card */
#diferenciadores .card h2,
#diferenciadores .card h3,
#diferenciadores .card h4 {
  color: #f1f8f8 !important;
}

#diferenciadores .card p,
#diferenciadores .card li,
#diferenciadores .card .card-text {
  color: rgba(241, 248, 248, 0.92);
}

/* Iconos (Bootstrap Icons / SVG) */
#diferenciadores .card .bi,
#diferenciadores .card i,
#diferenciadores .card svg {
  color: #e9f2f2;
  fill: currentColor;
  transition: color 0.2s ease, fill 0.2s ease, stroke 0.2s ease;
}

/* Botones dentro de la card */
#diferenciadores .card .btn {
  color: #f1f8f8;
  border-color: rgba(241, 248, 248, 0.9);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: inherit;
  -webkit-backdrop-filter: inherit;
  transition: color 0.2s ease, border-color 0.2s ease,
    background-color 0.2s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

#diferenciadores .card .btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #f1f8f8;
  color: #f1f8f8;
}

/* Fallback si no hay soporte de backdrop-filter */
@supports not ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))) {
  #diferenciadores .card {
    background: rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.22);
  }
}

/* === Diferenciadores – activar glass y corregir overrides === */
#diferenciadores {
  position: relative;
  background-color: transparent !important;
  /* pisa el fondo blanco global de .section */
}

#diferenciadores>.container {
  position: relative;
  z-index: 1;
}

#diferenciadores .diferenciador-card {
  position: relative;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.18),
      rgba(255, 255, 255, 0.06)) !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  border-radius: 16px;
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.2s ease, background 0.2s ease;
  overflow: hidden;
}

/* brillo diagonal sutil */
#diferenciadores .diferenciador-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(145deg,
      rgba(255, 255, 255, 0.45),
      rgba(255, 255, 255, 0) 40%);
  pointer-events: none;
  mix-blend-mode: screen;
}

/* tipografía legible sobre glass */
#diferenciadores .diferenciador-card h3,
#diferenciadores .diferenciador-card h5 {
  color: #f1f8f8 !important;
}

#diferenciadores .diferenciador-card p {
  color: rgba(241, 248, 248, 0.92) !important;
}

/* íconos: pisa el global i.bi { color: var(--color-verde-logo) !important; } */
#diferenciadores .diferenciador-card .bi,
#diferenciadores .diferenciador-card i,
#diferenciadores .diferenciador-card svg {
  color: #e9f2f2 !important;
  fill: currentColor;
}

/* hover sutil */
#diferenciadores .diferenciador-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
  border-color: rgba(255, 255, 255, 0.38) !important;
}

/* fallback si no hay soporte de backdrop-filter */
@supports not ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))) {
  #diferenciadores .diferenciador-card {
    background: rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.22);
  }
}

#diferenciadores {
  position: relative;
}

#diferenciadores::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 20%,
      rgba(0, 0, 0, 0.22),
      transparent 45%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.08));
  pointer-events: none;
}