:root {
  /* Corregido: los paddings negativos no existen en CSS, cambiado a valor positivo seguro */
  --padding-container: 60px 80px;

  --color-bg-main: #181818;
  --color-bg-card: #0f0f14;
  --color-text-primary: #ffffff;
  --color-text-muted: #9494a8;
  --color-red-primary: #ff333a;
  --color-red-secundary: #9c0a0f;
  --color-pink-accent: #ff4d80;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ==========================================================================
   💥 DESACTIVADOR DE TEXTOS RÍGIDOS (OBLIGATORIO)
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6,
.card__title-section,
.services .subtitle,
h2[style],
h3[style] {
  white-space: normal !important;
  word-break: keep-all !important;
  overflow-wrap: break-word !important;
  text-align: center !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 15px !important;
  box-sizing: border-box !important;
}

p,
p[style],
.card__copy,
.services__description {
  white-space: normal !important;
  overflow-wrap: break-word !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 15px !important;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--color-text-muted);
  background-color: var(--color-bg-main);
  overflow-x: hidden;
  letter-spacing: -0.1px;
  padding-top: 0; /* ❌ Cambiado de 100px a 0 para quitar la franja vacía */
}
/* CONTENEDOR PRINCIPAL */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--padding-container);
}

section {
  padding: 20px 0;
  margin: 0;
}

.card,
.services {
  margin: 0;
  padding: 20px 0;
}

/* CORRECCIÓN DE ANCHO Y DESBORDAMIENTO */
.card__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;

  width: 100%;
  max-width: 1450px;
  margin: 0 auto;
  padding: 0 40px;
  box-sizing: border-box;
}

.card__item {
  width: 100%;
  max-width: none;
  min-height: 400px;

  position: relative;
  overflow: hidden;
  padding: 35px 25px;

  display: flex;
  flex-direction: column;
  align-items: center;

  background: rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  transition: transform 0.4s ease;
}

/* ==========================================================================
   1. BARRA DE NAVEGACIÓN
   ========================================================================== */
header {
  position: relative;
  z-index: 999999;
}

.nav {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  height: 100px;
  padding: 0 5%;
  background-color: #00000075 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 2147483647 !important;
  box-sizing: border-box !important;
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease;
}

.nav__brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px 0;
}

.brand-logo__img {
  height: 85px !important;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.brand-logo__img:hover {
  transform: scale(1.05);
}

.nav__menu {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 1000000 !important;
}

.nav__img {
  width: 30px;
  height: 30px;
  filter: brightness(0) invert(1) !important;
}

/* MENÚ EN ESCRITORIO */
.nav__link {
  display: flex;
  gap: 30px;
  list-style: none;
  align-items: center;
  margin: 0;
  padding: 0;
  z-index: 999999 !important;
}

.nav__items-close {
  display: none;
  cursor: pointer;
}

.nav__links {
  text-decoration: none;
  color: #ffffff !important;
  font-weight: 500;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.nav__links:hover {
  color: var(--color-red-primary) !important;
}

.nav__links--active {
  color: var(--color-red-primary) !important;
  font-weight: 700;
}

/* ESTADO DEL MENU BLANCO */

/* ==========================================================================
   4. SECCIÓN HERO
   ========================================================================== */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  animation: heroSlider 15s infinite ease-in-out;
  /* Cambiamos 'cover' por un tamaño controlado o ajustado si prefieres que se vea completa, 
     o mantenemos cover pero asegurando que la posición centre la mejor parte de la cara */
  background-size: cover;
  background-position: center 20%; /* Sube un poco el encuadre para que no se estire tanto la cara */
  background-repeat: no-repeat;
  z-index: -1;
}

.hero {
  /* Si quieres que la sección no sea tan gigante y la foto no se estire tanto en pantallas grandes, 
     puedes limitar su altura máxima o cambiar los vh por un alto más prudente */
  min-height: 85vh;
  height: 75vh;
  position: relative;
  overflow: hidden;
}

.hero__container {
  min-height: 85vh;
  height: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero__content-wrapper {
  width: 100%;
  margin-top: auto;
  padding-top: 120px;
  padding-bottom: 40px;

  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__title {
  font-size: 45px;
  line-height: 1.1;
  margin-bottom: 15px;
  color: #fff;
}

.hero__subtitle {
  font-size: 30px;
  background-color: #00000064 !important;
  color: #fff !important;
  border-radius: 12px !important;
  line-height: 1.5;
}

.hero__paragraph {
  font-size: 35px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  margin-bottom: 35px;
}

.hero__highlight {
  font-size: 25px;
  font-weight: 700;
  color: #ffffff;
}

.hero__description {
  font-size: 1.2rem;
  color: #ffffff;
  line-height: 1.5;
}

.cta {
  display: inline-block !important;
  font-size: 20px !important;
  background-color: var(--color-red-primary) !important;
  color: #fff !important;
  text-decoration: none !important;
  padding: 20px 40px !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  transition:
    transform 0.4s ease,
    background-color 0.3s ease !important;
  width: 85% !important;
  max-width: 280px !important;
  text-align: center !important;
  display: block !important;
  margin: 0 auto !important;
}

.cta:hover {
  background-color: var(--color-red-hover) !important;
  transform: translateY(-4px) !important;
}

@keyframes heroSlider {
  0%,
  30% {
    background-image:
      linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.308) 0%,
        rgba(15, 15, 20, 0.322) 60%,
        var(--color-bg-main) 93%,
        var(--color-bg-main) 100%
      ),
      url("../images/fondo\ 1.jpeg");
    background-size: cover !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
  }

  35%,
  65% {
    background-image:
      linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.308) 0%,
        rgba(15, 15, 20, 0.45) 60%,
        var(--color-bg-main) 93%,
        var(--color-bg-main) 100%
      ),
      url("../images/fondo2.jpeg");
    background-size: cover !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
  }

  70%,
  95% {
    background-image:
      linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.308) 0%,
        rgba(15, 15, 20, 0.322) 60%,
        var(--color-bg-main) 93%,
        var(--color-bg-main) 100%
      ),
      url("../images/fondo3.jpg");
    background-size: cover !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
  }

  100% {
    background-image:
      linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.308) 0%,
        rgba(15, 15, 20, 0.322) 60%,
        var(--color-bg-main) 93%,
        var(--color-bg-main) 100%
      ),
      url("../images/fondo\ 1.jpeg");
    background-size: cover !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
  }
}

/* ==========================================================================
   📱 CAMBIO AUTOMÁTICO DE IMÁGENES PARA CELULARES
   ========================================================================== */
@media (max-width: 768px) {
  /* Sobrescribimos la animación del hero para que use la carpeta de celulares */
  .hero,
  .hero__container {
    animation-name: heroSliderMobile !important;
  }
}

/* ==========================================================================
   ⚡ SECCIÓN SERVICES
   ========================================================================== */
.services {
  padding: 40px 0;
  margin: 0;
  background-color: var(--color-bg-main);
  overflow: hidden;
}

.services .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 40px;
  box-sizing: border-box;
}

.services .subtitle {
  color: #ff2a44;
  font-size: 3.5rem;
  font-weight: 800;
  text-align: center;
  margin: 0 0 20px;
  line-height: 1.2;
}

.services__description {
  color: rgba(255, 255, 255, 0.85);
  max-width: 700px;
  margin: 0 auto 40px;
  padding: 0 20px;
  font-size: 21px;
  text-align: center;
  box-sizing: border-box;
}

/* CARRUSEL */
.services__slider-wrapper,
.carrusel-padre-clase {
  position: relative;
  width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  padding: 0 30px;
}

.services__container {
  display: flex;
  flex-wrap: nowrap;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 25px;
  scrollbar-width: none;
}

.services__container::-webkit-scrollbar {
  display: none;
}

/* TARJETAS DE SERVICIOS */
.services__card {
  flex: 0 0 350px;
  height: 350px;
  border-radius: 20px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.services__card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 40px rgba(255, 42, 68, 0.3);
}

.services__card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
  transition: background 0.4s ease;
}

.services__card:hover::before {
  background: linear-gradient(
    to top,
    rgba(3, 3, 5, 0.98) 55%,
    rgba(3, 3, 5, 0.4) 100%
  );
}

.services__card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  z-index: 2;
  box-sizing: border-box;
}

.services__card-title {
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.services__card-hover-info {
  max-height: 0;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.services__card:hover .services__card-hover-info {
  max-height: 250px;
  opacity: 1;
  transform: translateY(0);
}

/* FLECHAS */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  border: none;
  border-radius: 50%;
  background: #6e1417;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 100;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.slider-arrow:hover {
  transform: translateY(-50%) scale(1.05);
  background: #ff2a44;
}

.arrow-left {
  left: 20px;
}

.arrow-right {
  right: 20px;
}

.slider-arrow i,
.slider-arrow svg {
  font-size: 18px;
}

/* ==========================================================================
   SECCIÓN CARDS
   ========================================================================== */
.card {
  background-color: var(--color-bg-main);
  text-align: center;
  padding: 20px 0;
  margin: 0;
  width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.card__copy {
  line-height: 1.6;
  color: rgba(252, 252, 252, 0.82);
  max-width: 800px;
  margin: 0 auto 40px;
  font-size: 18px;
  padding: 0 20px;
}

.card__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  max-width: 1400px;
  margin: 0 auto !important;
  padding: 0 20px;
  box-sizing: border-box;
  justify-items: center;
}

.card__item {
  width: 100%;
  max-width: none;
  min-height: 400px;
  position: relative;
  overflow: hidden;
  padding: 30px 20px !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  transition: transform 0.4s ease;
}

.card__item:hover {
  transform: translateY(-8px);
}

.card__img {
  background: var(--color-bg-main);
  margin-bottom: 20px;
  width: 70px;
  height: 70px;
  border-radius: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.card__picture {
  width: 50%;
  height: 50%;
  object-fit: contain;
}

.card__title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
}

.price__features {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 10px;
  font-weight: 500;
  word-break: normal;
  overflow-wrap: break-word;
}

/* ==========================================================================
   ANIME DEL HOVER (Para computadoras de escritorio)
   ========================================================================== */

/* 1. Por defecto, ocultamos las características y las bajamos un poco */
.price__items {
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0.3s;
}

/* 2. Cuando se pasa el mouse por la tarjeta, se revelan con suavidad */
.card__item:hover .price__items {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ==========================================================================
   PROTECCIÓN RESPONSIVA (Fuerza visibilidad fija en celulares)
   ========================================================================== */

/* ==========================================================================
   SECCIÓN KNOWLEDGE
   ========================================================================== */
.knowledge {
  background-color: #181818;
  padding: 80px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  overflow: hidden;
  box-sizing: border-box;
}

.knowledge__container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  box-sizing: border-box;
}

.knowledge__picture {
  position: relative;
  width: 100%;
}

.knowledge__picture::before {
  content: "";
  position: absolute;
  inset: 15px -15px -15px 15px;
  background: linear-gradient(
    135deg,
    var(--color-red-primary),
    var(--color-pink-accent)
  );
  border-radius: 24px;
  opacity: 0.35;
  z-index: 0;
}

.knowledge__img {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  transition: transform 0.5s ease;
}

.knowledge__container:hover .knowledge__img {
  transform: scale(1.03);
}

.knowledge__paragraph {
  line-height: 1.8;
  color: var(--color-text-muted);
  margin-bottom: 35px;
  font-size: 1.25rem;
}

.knowledge__btn {
  display: inline-block;
  background-color: var(--color-red-primary);
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  padding: 18px 40px;
  border-radius: 12px;
  transition: all 0.3s ease;
  margin: 0 auto;
}

.knowledge__btn:hover {
  background-color: var(--color-red-hover);
  transform: translateY(-4px);
}

.knowledge__texts {
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   SECCIÓN QUESTIONS (FAQ)
   ========================================================================== */
.questions {
  text-align: center;
}

.questions__container {
  display: grid;
  gap: 2em;
  padding-top: 50px;
  padding-bottom: 100px;
}

.questions__padding {
  padding: 10px;
  transition: padding 0.3s;
  border: 1px solid #c21515;
  border-radius: 6px;
}

.questions__padding--add {
  padding-bottom: 30px;
}

.questions__answer {
  padding: 0 30px 0;
  overflow: hidden;
}

.questions__title {
  text-align: left;
  display: flex;
  font-size: 20px;
  padding: 30px 0 30px;
  cursor: pointer;
  color: var(--color-title);
  justify-content: space-between;
}

.questions__arrow {
  border-radius: 50%;
  background-color: var(--color-title);
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  align-self: flex-end;
  margin-left: 10px;
  transition: transform 0.3s;
}

.questions__arrow--rotate {
  transform: rotate(180deg);
}

.questions__show {
  text-align: left;
  height: 0;
  transition: height 0.3s;
}

.questions__img {
  display: block;
}

.questions__copy {
  width: 60%;
  margin: 0 auto;
  margin-bottom: 30px;
}

/* ==========================================================================
   SECCIÓN DE CIERRE / CTA OFFER
   ========================================================================== */
.questions__offer {
  text-align: center;
  background: linear-gradient(135deg, #0f0f14 0%, #161622 100%);
  border: 1px solid rgba(255, 77, 128, 0.15);
  border-radius: 24px;
  padding: 50px 40px;
  max-width: 900px;
  margin: 20px auto 0 auto;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(255, 51, 58, 0.03);
}

.questions__offer::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: var(--color-pink-glow, rgba(255, 77, 128, 0.08));
  filter: blur(80px);
  border-radius: 50%;
  pointer-events: none;
}

.questions__offer::after {
  content: "";
  position: absolute;
  bottom: -50%;
  left: -20%;
  width: 300px;
  height: 300px;
  background: var(--color-red-glow, rgba(255, 51, 58, 0.05));
  filter: blur(80px);
  border-radius: 50%;
  pointer-events: none;
}

.questions__offer .subtitle {
  color: var(--color-text-primary, #fff);
  font-size: 2.2rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.questions__offer .cta {
  display: inline-block;
  background: linear-gradient(
    90deg,
    var(--color-red-primary, #ff333a),
    var(--color-pink-accent, #ff4d80)
  );
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 16px 45px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(255, 51, 58, 0.3);
  transform: translateY(0);
  transition:
    transform 0.3s cubic-bezier(0.25, 1, 0.5, 1),
    box-shadow 0.3s cubic-bezier(0.25, 1, 0.5, 1),
    filter 0.3s ease;
}

.questions__offer .cta:hover {
  transform: translateY(-4px);
  filter: brightness(1.1);
  box-shadow:
    0 15px 35px rgba(255, 77, 128, 0.45),
    0 0 15px rgba(255, 51, 58, 0.2);
}

.questions__offer .cta:active {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(255, 51, 58, 0.3);
}

/* ==========================================================================
   SECCIÓN ABOUT (SOBRE NOSOTROS)
   ========================================================================== */
.about {
  text-align: center;
  background-color: var(--color-bg-main);
  padding: 60px 20px;
}

.subtitle {
  color: var(--color-text-primary);
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
  display: inline-block;
}

.subtitle::after {
  content: "";
  display: block;
  width: 70px;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--color-red-primary),
    var(--color-pink-accent)
  );
  margin: 14px auto 0;
  border-radius: 4px;
}

.about__paragraph {
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
  max-width: 780px;
  margin: 0 auto 50px auto;
  font-size: 1.1rem;
}

.about__main {
  display: grid;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  gap: 25px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.about__icons {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 25px;
  background: var(--color-bg-card);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease,
    border-color 0.3s ease;
}

.about__icons:hover {
  transform: translateY(-10px);
  background: var(--color-bg-card-hover);
  border-color: rgba(255, 77, 77, 0.4);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 20px var(--color-pink-glow);
}

.about__icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
  filter: none;
  margin-bottom: 15px;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.about__icons:hover .about__icon {
  transform: scale(1.15);
}

/* ==========================================================================
   SECCIÓN IDENTITY
   ========================================================================== */
.identity {
  text-align: center;
  padding: 60px 20px;
  background-color: var(--color-bg-main);
}

.identity__grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.identity__item {
  flex: 1;
  max-width: 400px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 40px;
  transition: transform 0.3s ease;
}

.identity__img {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
}

.identity__picture {
  width: 100%;
  filter: brightness(0) invert(1);
}

.identity__copy {
  margin-bottom: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}
/* ==========================================================================
   SECCIÓN IDENTIDAD: ESTILOS RENOMBRADOS
   ========================================================================== */
.identity {
  background-color: var(--color-bg-main);
  text-align: center;
  padding: 40px 20px !important;
}

.identity__copy {
  line-height: 1.6;
  color: rgba(252, 252, 252, 0.822);
  max-width: 800px;
  margin: 0 auto 40px auto !important;
  font-size: 18px;
}

/* El grid flexible que centra los elementos */
.identity__grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px !important;
  max-width: 1200px;
  margin: 0 auto !important;
  padding: 0 20px;
  box-sizing: border-box;
}

/* 1. TARJETA: ESTRUCTURA */
.identity__item {
  width: 100%;
  max-width: 350px;
  position: relative;
  overflow: hidden;
  padding: 30px 20px !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  transition: transform 0.4s ease;
}

/* 2. IMAGEN Y PROPORCIÓN */
.identity__img {
  background: var(--color-bg-main);
  margin-bottom: 20px !important;
  width: 70px !important;
  height: 70px !important;
  border-radius: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}
.identity__picture {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
  filter: none;
}
/* 3. TEXTOS */
.identity__title {
  font-size: 1.3rem !important;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 10px !important;
}

.identity__features {
  font-size: 1.1rem !important;
  color: var(--color-text-muted) !important;
  margin-bottom: 10px !important;
  font-weight: 500;
}

/* 4. REVELADO AL PASAR EL MOUSE */
.identity__items {
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.4s ease;
}

.identity__item:hover .identity__items {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.identity__item:hover {
  transform: translateY(-8px);
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.6),
    0 0 20px var(--color-pink-glow);
}

/* ==========================================================================
   BOTÓN FLOTANTE DE WHATSAPP CON MENÚ DE SERVICIOS
   ========================================================================== */

:root {
  --whatsapp-green: #25d366;
  --whatsapp-dark: #128c7e;
  --text-dark: #333333;
  --bg-light: #f4f7f6;
}

/* Contenedor fijo global en la esquina inferior derecha */
.wpp-floating-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  font-family:
    system-ui,
    -apple-system,
    sans-serif;
}

/* Botón flotante principal */
.wpp-main-btn {
  width: 60px;
  height: 60px;
  background-color: var(--whatsapp-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition:
    transform 0.3s ease,
    background-color 0.3s ease;

  /* ANIMACIÓN */
  animation: whatsappPulse 1s infinite;
}

.wpp-main-btn:hover {
  transform: scale(1.1);
  background-color: var(--whatsapp-dark);
}

.wpp-main-btn svg {
  width: 35px;
  height: 35px;
  fill: #ffffff;
}

/* Tarjeta / Menú desplegable */
.wpp-menu-card {
  position: absolute;
  bottom: 75px;
  right: 0;
  width: 320px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

/* Estado activo (controlado por JavaScript) */
.wpp-menu-card.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Encabezado de la tarjeta */
.wpp-card-header {
  background-color: var(--whatsapp-dark);
  color: #ffffff;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.wpp-header-avatar {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.wpp-header-title h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.wpp-header-title p {
  margin: 2px 0 0 0;
  font-size: 0.75rem;
  color: #e0f2f1;
}

/* Cuerpo de la tarjeta */
.wpp-card-body {
  padding: 12px;
  background-color: var(--bg-light);
  max-height: 300px;
  overflow-y: auto;
}

.wpp-card-body p {
  margin: 0 0 8px 5px;
  font-size: 0.8rem;
  color: #666666;
  font-weight: 500;
}

/* Botones individuales de cada servicio */
.wpp-service-item {
  display: block;
  width: 100%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
  text-align: left;
  color: var(--text-dark);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    background-color 0.2s,
    border-color 0.2s,
    color 0.2s;
}

.wpp-service-item:hover {
  background-color: #edf2f7;
  border-color: var(--whatsapp-green);
  color: var(--whatsapp-dark);
}

.wpp-service-item:last-child {
  margin-bottom: 0;
}
/* --- SECCIÓN NUESTROS CLIENTES --- */
.clientes {
  background-color: var(--color-bg-main);
  padding: var(--padding-container);
  text-align: center;
  width: 100%;
}

.clientes__title {
  color: var(--color-red-primary);
  font-size: 2.2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
}

/* Línea decorativa roja bajo el título */
.clientes__title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--color-red-primary);
  margin: 10px auto 0;
  border-radius: 2px;
}

/* Rejilla adaptativa automática */
.clientes__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

/* Tarjeta individual para cada logo */
.clientes__card {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 15px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

/* Efecto al pasar el mouse por encima */
.clientes__card:hover {
  transform: translateY(-6px);
  border-color: var(--color-red-primary);
  box-shadow: 0 8px 20px rgba(255, 51, 58, 0.25);
}

.clientes__card img {
  max-width: 100%;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* --- ADAPTACIÓN A PANTALLAS MÓVILES --- */
@media (max-width: 768px) {
  .clientes {
    padding: 40px 20px;
  }

  .clientes__title {
    font-size: 1.6rem;
    margin-bottom: 25px;
  }

  .clientes__grid {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
  }

  .clientes__card {
    height: 85px;
    padding: 10px;
  }

  .clientes__card img {
    max-height: 60px;
  }
}
/* ==========================================================================
   FOOTER & NEWSLETTER (NEGRO INTENSO CYBERPUNK)
   ========================================================================== */
.main-footer {
  background-color: #030305; /* Fondo oscuro de la web */
  border-top: 2px solid rgba(255, 255, 255, 0.05);
}

/* Franja Superior de Contacto - REDUCIDO PADDING */
.footer__contact-bar {
  background-color: #08090e; /* Variante sutilmente más clara para diferenciar la franja */
  padding: 20px 0; /* Reducido de 35px a 20px para quitar aire */
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: center;
  text-align: center !important;
}

/* Forzar que todos los divs hijos estén perfectamente centrados */
.footer__contact-grid > div {
  text-align: center !important;
}

.contact-box__title {
  color: var(--color-red-primary, #ff2a44);
  /* Resaltado con tu color institucional */
  font-size: 18px;
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.contact-box__text {
  color: #ffffff;
  margin: 4px 0;
  font-size: 16px;
  opacity: 0.85;
  text-align: center !important; /* Asegura el centrado absoluto de los textos de celular */
}

/* Botón/Caja destacada del correo electrónico central */
.contact-box__badge {
  display: inline-block;
  background-color: var(--color-red-primary, #ff2a44);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  transition:
    transform 0.2s ease,
    background-color 0.2s;
}

.contact-box__badge:hover {
  transform: scale(1.03);
  filter: brightness(1.1);
}

/* Bloque Inferior del Footer - REDUCIDO ESPACIO SUPERIOR */
.footer__body {
  padding: 15px 0 40px 0; /* padding-top de 15px reduce a la mitad la separación con los datos de arriba */
}

/* Menú de navegación plano alineado al centro */
.footer__nav-links {
  text-align: center;
  margin-top: 0 !important; /* Elimina cualquier margen superior residual */
  margin-bottom: 35px;
}

.footer__nav-links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
  transition: color 0.2s;
}

.footer__nav-links a:hover {
  color: var(--color-red-primary, #ff2a44);
}

.nav-divider {
  color: rgba(255, 255, 255, 0.2);
  margin: 0 15px;
}

/* Rejilla de Identidad Corporativa (3 Columnas asimétricas) */
.footer__identity-grid {
  display: grid;
  grid-template-columns: 0.6fr 1.6fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.identity-brand {
  display: flex;
  justify-content: center;
}

.identity-brand__logo {
  max-width: 230px;
  height: auto;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.05));
}

.identity-info__name {
  color: #ffffff;
  font-size: 1.4rem;
  margin-bottom: 12px;
  font-weight: 700;
}

.identity-info__desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* Contenedor del Mapa Geográfico derecho */
.identity-map-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.identity-map-box__img {
  max-width: 230px;
  height: auto;
  opacity: 0.8;
  margin-bottom: 10px;
}

.identity-map-box__tag {
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: bold;
}

/* Alineaciones Auxiliares */
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}
/* ==========================================================================
   ANIMACIONES MODERNAS DE ENTRADA CON SCROLL (SMOOTH SCROLL DELIGHT)
   ========================================================================= */
.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.9s cubic-bezier(0.215, 0.61, 0.355, 1),
    transform 0.9s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition:
    opacity 0.9s cubic-bezier(0.215, 0.61, 0.355, 1),
    transform 0.9s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition:
    opacity 0.9s cubic-bezier(0.215, 0.61, 0.355, 1),
    transform 0.9s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.fade-in-up.is-visible,
.fade-in-left.is-visible,
.fade-in-right.is-visible {
  opacity: 1;
  transform: translate(0);
}

/* Efecto Cascada Secuencial (Stagger) para Grid */
.about__main .about__icons,
.card__container .card__item,
.price__table .price__element {
  opacity: 0;
  transform: translateY(35px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.is-visible .about__icons:nth-child(1),
.is-visible .card__item:nth-child(1),
.is-visible .price__element:nth-child(1) {
  transition-delay: 0.1s;
  opacity: 1;
  transform: translateY(0);
}

.is-visible .about__icons:nth-child(2),
.is-visible .card__item:nth-child(2),
.is-visible .price__element:nth-child(2) {
  transition-delay: 0.25s;
  opacity: 1;
  transform: translateY(0);
}

.is-visible .about__icons:nth-child(3),
.is-visible .card__item:nth-child(3),
.is-visible .price__element:nth-child(3) {
  transition-delay: 0.4s;
  opacity: 1;
  transform: translateY(0);
}

.is-visible .card__item:nth-child(4) {
  transition-delay: 0.55s;
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   💥 ELIMINAR LA DECORACIÓN EN V DEL HEADER HERO (RECTO ABSOLUTO)
   ========================================================================== */
header.hero,
header.hero::before,
header.hero::after {
  /* 1. Eliminamos cualquier máscara de recorte diagonal */
  clip-path: none !important;
  -webkit-clip-path: none !important;

  /* 2. Removemos cualquier borde o sombra que herede la forma de flecha */
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

/* 3. Aseguramos que la base del header se fusione de forma recta con el fondo negro */
header.hero {
  border-bottom: none !important;
  margin-bottom: 0 !important;
}

/* ANIMACIÓN */
@keyframes whatsappPulse {
  0%,
  85%,
  100% {
    transform: scale(1);
  }

  90% {
    transform: scale(1.12);
  }

  95% {
    transform: scale(1);
  }
}
/* ==========================================================================
     💥 FORZAR VISIBILIDAD DE TARJETAS EN MÓVIL (ELIMINA HOVERS OCULTOS)
     ========================================================================== */

/* 1. Forzamos a que todos los textos e imágenes de la tarjeta sean visibles */
.card__item,
.card__item *,
.card__title,
.price__name,
.price__items,
.price__features {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(
    0
  ) !important; /* Cancela cualquier animación que los desplace */
}

/* 2. Aseguramos que los textos sean blancos para que resalten en el fondo oscuro */
.card__title {
  color: #ffffff !important;
  font-size: 1.4rem !important;
  margin-bottom: 10px !important;
}

.price__name {
  color: #ffffff !important;
  font-size: 1.1rem !important;
  margin-bottom: 15px !important;
}

.price__features {
  color: #e0e0e0 !important; /* Un gris claro para las características */
}

/* 3. Control de la imagen para que no colapse ni se rompa */
.card__picture {
  display: block !important;
  width: 100% !important;
  max-width: 80px; /* Ajusta este tamaño al tamaño real de tu icono */
  height: auto !important;
  margin: 0 auto 15px auto !important; /* La centra y le da margen abajo */
}
@media (max-width: 768px) {
  .hero,
  .hero__container {
    background-size: contain !important; /* Muestra la imagen completa sin recortar los lados */
    background-position: center center !important;
    background-repeat: no-repeat !important;
    /* Rellena el espacio vacío superior e inferior con tu color de fondo */
    min-height: 400px !important;
  }
  /* Ajuste de la caja de textos para que se adapte y no se encime */
  .hero__content-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 10px !important;
    box-sizing: border-box !important;
  }

  .hero__title {
    font-size: 1.6rem !important; /* Tamaño equilibrado para móvil */
    line-height: 1.2 !important;
    margin-bottom: 15px !important;
  }
}
