/* Fuente principal para texto general: Roboto (sans-serif) */
body {
    font-family: 'Roboto', sans-serif;
}

/* Fuente secundaria para títulos o secciones específicas: IBM Plex Serif */
.serif-title,
h1, h2, h3, span {
    font-family: 'IBM Plex Serif', serif;
}

/* Si deseas aplicarla a ciertos bloques de texto */
.text-serif {
    font-family: 'IBM Plex Serif', serif;
}

/* 1. CLASE HERO: Quita el desvanecimiento de aquí */
.hero {
  margin: 0;
  padding-top: 100px;
  min-height: 100vh;
  /* 🛑 ¡Importante! Quita el primer linear-gradient de desvanecimiento de aquí */
  background-image: 
    linear-gradient(45deg, rgb(37, 6, 46) 0%, rgb(37, 6, 46) 28%, rgb(66, 27, 59) 28%, rgb(66, 27, 59) 31%, rgb(96, 48, 72) 31%, rgb(96, 48, 72) 59%, rgb(125, 69, 85) 59%, rgb(125, 69, 85) 66%, rgb(154, 90, 97) 66%, rgb(154, 90, 97) 68%, rgb(184, 111, 110) 68%, rgb(184, 111, 110) 94%, rgb(213, 132, 123) 94%, rgb(213, 132, 123) 100%),
    linear-gradient(112.5deg, rgb(37, 6, 46) 0%, rgb(37, 6, 46) 28%, rgb(66, 27, 59) 28%, rgb(66, 27, 59) 31%, rgb(96, 48, 72) 31%, rgb(96, 48, 72) 59%, rgb(125, 69, 85) 59%, rgb(125, 69, 85) 66%, rgb(154, 90, 97) 66%, rgb(154, 90, 97) 68%, rgb(184, 111, 110) 68%, rgb(184, 111, 110) 94%, rgb(213, 132, 123) 94%, rgb(213, 132, 123) 100%),
    linear-gradient(90deg, rgb(37, 6, 46) 0%, rgb(37, 6, 46) 28%, rgb(66, 27, 59) 28%, rgb(66, 27, 59) 31%, rgb(96, 48, 72) 31%, rgb(96, 48, 72) 59%, rgb(125, 69, 85) 59%, rgb(125, 69, 85) 66%, rgb(154, 90, 97) 66%, rgb(154, 90, 97) 68%, rgb(184, 111, 110) 68%, rgb(184, 111, 110) 94%, rgb(213, 132, 123) 94%, rgb(213, 132, 123) 100%),
    linear-gradient(135deg, rgb(37, 6, 46) 0%, rgb(37, 6, 46) 28%, rgb(66, 27, 59) 28%, rgb(66, 27, 59) 31%, rgb(96, 48, 72) 31%, rgb(96, 48, 72) 59%, rgb(125, 69, 85) 59%, rgb(125, 69, 85) 66%, rgb(154, 90, 97) 66%, rgb(154, 90, 97) 68%, rgb(184, 111, 110) 68%, rgb(184, 111, 110) 94%, rgb(213, 132, 123) 94%, rgb(213, 132, 123) 100%),
    linear-gradient(90deg, rgb(100, 205, 26), rgb(46, 36, 113));
    
  background-repeat: no-repeat;
  background-blend-mode: overlay; /* Mantenemos el blend-mode aquí */
  background-size: cover;
  position: relative; /* Necesario para posicionar el pseudo-elemento */
}

.hero-content {
    position: relative; 
    z-index: 2; /* Mayor que el z-index: 1 del ::after */
    /* Añade padding vertical para dar espacio al contenido */
    padding-bottom: 50px;
}

/* 2. NUEVA REGLA: Crea el desvanecimiento con un pseudo-elemento */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* El pseudo-elemento cubre todo el Hero */
    
    /* 🎨 Ajuste Clave: Desvanecimiento muy corto al final */
    background: linear-gradient(to bottom, 
                                rgba(255, 255, 255, 0) 90%,  /* 🛑 Transparente hasta el 95% del hero */
                                #ffffff 100%);               /* Se desvanece a blanco solo en el último 5% */
                                
    z-index: 1; /* Se asegura de que esté sobre el fondo, pero *debajo* del texto */
    pointer-events: none;
}

.marketing{
    background-image: url('/img/MARKETING_DIGITAL1.png');
    background-size: 380px 370px;
    background-position: center;
    background-repeat: no-repeat;
}

/* Fondo degradado con más contraste */
  .card-marketing {
    position: relative;
    background: linear-gradient(135deg, #5e17eb, #800020);
    border-radius: 16px;
    padding: 40px 20px;
    box-shadow: 0 8px 0 #800020, 8px 0 0 #800020; /* relieve inferior + derecho */
    transition: all 0.25s ease-in-out;
    border: 2px solid transparent;
    cursor: pointer;
  }

  .card-marketing::before {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 8px;
    background: #991f1f;
    border-radius: 0 0 16px 16px;
    transition: all 0.25s ease-in-out;
    z-index: -1;
  }

  .card-marketing::after {
    content: "";
    position: absolute;
    top: 0;
    right: -8px;
    width: 8px;
    height: 100%;
    background: #732121;
    border-radius: 0 16px 16px 0;
    transition: all 0.25s ease-in-out;
    z-index: -1;
  }

  /* Estado presionado */
  .card-marketing.pressed {
    transform: translate(8px, 8px);
    box-shadow: none;
    border: 2px solid #ff4d4d;
  }

  .card-marketing.pressed::before,
  .card-marketing.pressed::after {
    opacity: 0;
  }

  /* Imagen de fondo */
  .card-marketing .bg-cover {
    background: url('/img/MARKETING_DIGITAL1.png') center/cover no-repeat;
    opacity: 0.08;
  }
  
.servicios {
    margin: 0;
    /* 🛑 DEBE SER CERO O NO ESTAR DEFINIDO */
    padding-top: 0 !important; /* Usamos !important por si acaso algo lo anula */
    
    padding-bottom: 80px; /* Usamos solo padding inferior */
    width: 100%;
}

.servicios h1 {
    font-weight: bold;
    color: #e30713;
}

.nosotros {
  margin: 0;
  padding-top: 110px;
  padding: 80px 0;
  width: 100%;
  }

.nosotros h1 {
  font-weight: bold;
  color: #e30713;
  height: 39px;
}

.mision {
  margin: 0;
  padding-top: 80px;
  padding: 65px 0;
  width: 100%;
  }

.mision h1 {
  font-weight: bold;
  color: #e30713;
  height: 39px;
}

.vision {
  margin: 0;
  padding-top: 80px;
  padding: 30px 0;
  width: 100%;
  }

.vision h1 {
  font-weight: bold;
  color: #e30713;
  height: 39px;
}

.valores-eticos {
  margin: 0;
  padding-top: 80px;
  padding: 70px 0;
  width: 100%;
  }

.valores-eticos h1 {
  font-weight: bold;
  color: #e30713;
  height: 39px;
}

.valor-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #f5f5f5;
}

.valor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.199);
    cursor: pointer;
}

.testimonios {
  margin: 0;
  padding-top: 110px;
  padding: 80px 0;
  width: 100%;
  }

.testimonios h1 {
  font-weight: bold;
  color: #e30713;
  height: 39px;
}

.footer {
  margin: 0;
  padding-top: 110px;
  background: #1d1d1d;
  color: #ffffff;
  padding: 80px 0;
  width: 100%;
  }

.footer a {
  color: #ffffff;
  text-decoration: none;
}

.footer h1 {
  font-weight: bold;
  color: #e30713;
  height: 39px;
}

.footer p {
  color: #ffffff;
  font-size: 0.9rem;
}

.carousel-card-testimonio{
  padding: 20px;
  margin: 10px;
  position: relative;
  transition: transform 0.3s ease;
  border: 1px solid #e63946;
  border-radius: 20px;
  font-size: 0.9rem;
}

.contacto {
  margin: 0;
  padding-top: 110px;
  padding: 80px 0;
  width: 100%;
  }

.contacto h1 {
  font-weight: bold;
  color: #e30713;
  height: 39px;
}

.circle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #e30713; /* Color de fondo */
  border-radius: 50%;         /* Hace el fondo circular */
  width: 60px;                /* Tamaño del círculo */
  height: 60px;
}
.circle-icon i {
  color: #ffffff;             /* Color del icono */
  font-size: 2rem;            /* Tamaño del icono */
}

.circle-icon-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #1877F2; /* Color de fondo */
  border-radius: 50%;         /* Hace el fondo circular */
  width: 60px;                /* Tamaño del círculo */
  height: 60px;
}

.circle-icon-social i {
  color: #ffffff;             /* Color del icono */
  font-size: 2rem;            /* Tamaño del icono */
  text-decoration: none;
}

.circle-icon-instagram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  border-radius: 50%;         /* Hace el fondo circular */
  width: 60px;                /* Tamaño del círculo */
  height: 60px;
}

.circle-icon-instagram i {
  color: #ffffff;             /* Color del icono */
  font-size: 2rem;            /* Tamaño del icono */
  text-decoration: none;
}

.circle-icon-in {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #0A66C2;
  border-radius: 50%;         /* Hace el fondo circular */
  width: 60px;                /* Tamaño del círculo */
  height: 60px;
}

.circle-icon-in i {
  color: #ffffff;             /* Color del icono */
  font-size: 2rem;            /* Tamaño del icono */
}

.circle-icon-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #000000;
  border-radius: 50%;         /* Hace el fondo circular */
  width: 60px;                /* Tamaño del círculo */
  height: 60px;
}

.circle-icon-x i {
  color: #ffffff;             /* Color del icono */
  font-size: 2rem;            /* Tamaño del icono */
}

.info-contact{
  border: 1px solid #dbdbdb;
  border-radius: 20px;
  background-color: #f5f5f5;
}

.form-contact{
  border: 1px solid #dbdbdb;
  border-radius: 20px;
}

/* CSS personalizado para el carrusel */
#serviceCarousel .carousel-inner {
    overflow: hidden; /* Oculta cualquier desbordamiento horizontal */
  }
  #serviceCarousel .carousel-item {
    display: flex;              /* Dispone las tarjetas en fila */
    transition: transform .5s;  /* Transición suave al desplazar */
  }
  #serviceCarousel .carousel-item .card {
    flex: 0 0 33.333%;  /* En escritorio: 3 tarjetas por vista */
    max-width: 33.333%;
  }
  /* En tablet (≥768px y <992px): 2 tarjetas por vista */
  @media (max-width: 991.98px) {
    #serviceCarousel .carousel-item .card {
      flex: 0 0 50%;
      max-width: 50%;
    }
  }
  /* En móvil (<768px): 1 tarjeta por vista */
  @media (max-width: 767.98px) {
    #serviceCarousel .carousel-item .card {
      flex: 0 0 100%;
      max-width: 100%;
    }
  }
  

/* Navbar */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

/* Toggler personalizado (icono blanco) */
.custom-toggler .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='white' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
  }   

.navbar-brand span {
    color: #ffffff !important;
    font-weight: 700;
}

.navbar-nav .nav-link {
    color: #ffffff !important;
    font-weight: 500;
    margin: 0 10px;
    transition: all 0.3s ease-in-out;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: #e63946 !important;
    transform: scale(1.05);
}

.navbar.scrolled {
    background-color: white !important;
    transition: background-color 0.3s ease-in-out;
}

.navbar.scrolled .nav-link,
.navbar.scrolled .navbar-brand span {
    color: #000000 !important;
}

.navbar.scrolled .custom-toggler .navbar-toggler-icon {
    /* Cambia icono a negro si es necesario */
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='black' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Dropdown personalizado */
.dropdown-menu {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease-in-out;
    min-width: 220px;
    z-index: 1000;
}

.dropdown-item {
    color: #212529 !important;
    padding: 10px 20px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.dropdown-item:hover {
    background: #e63946;
    color: #fff !important;
}

.dropdown-divider {
    border-top: 1px solid #dee2e6;
    margin: 5px 0;
}

/* Mostrar dropdown al hacer hover */
.dropdown.show .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: block;
}

/* Botón: Iniciar Sesión */
.custom-login-btn {
    background-color: #ffffff;
    color: #e30713;
    border-color: #e30713;
    transition: all 0.3s ease;
}

.custom-login-btn:hover {
    color: white;
    background-color: #e30713;
    border-color: #ffffff;
}

/* Botón: Registrate */
.custom-register-btn {
    background-color: #e30713;
    border-color: #ffffff;
    color: white;
    transition: all 0.3s ease;
}

.custom-register-btn:hover {
    background-color: #1d1d1d;
    border-color: #e30713;
    color: #fff;
}

.carousel-container {
  overflow: hidden;
  position: relative;
  padding: 20px;
  width: 100%;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  will-change: transform;
}

.carousel-card {
  flex: 0 0 100%;
  box-sizing: border-box;
  padding: 10px;
}

/* Responsivo */
@media (min-width: 601px) {
  .carousel-card {
      flex: 0 0 50%;
  }
}

@media (min-width: 901px) {
  .carousel-card {
      flex: 0 0 33.3333%;
  }
}

.carousel-card .card {
  height: 100%;                 /* ✅ Asegurar altura completa */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.carousel-card img {
  width: 100%;
  max-width: 100%;              /* ✅ Asegura que no desborde */
  height: auto;
  object-fit: contain;          /* ✅ No deforma imágenes */
  border-radius: 12px;
}

/* Ajustes para textos internos */
.carousel-card .card-body {
  padding: 1rem;
  font-size: 0.95rem;
  overflow-wrap: break-word;    /* ✅ Prevenir texto largo sin romper */
}

.carousel-card:hover img {
  transform: scale(1.05);
  filter: brightness(90%);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  background-color: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s;
}

.carousel-dot.active {
  background-color: #333;
}

.hidden{
visibility: hidden;
}

.custom-line {
  width: 10%;          /* Controla el largo de la línea */
  height: 5px;         /* Grosor de la línea */
  background-color: red; /* Color de la línea */
  border: none;        /* Elimina bordes predeterminados */
  margin: 0 auto;      /* Centra la línea */
}

.custom-line1 {
  width: 20%;          /* Controla el largo de la línea */
  height: 5px;         /* Grosor de la línea */
  background-color: red; /* Color de la línea */
  border: none;        /* Elimina bordes predeterminados */
  margin: 0;      /* Centra la línea */
}

.custom-line2 {
  width: 20%;          /* Controla el largo de la línea */
  height: 5px;         /* Grosor de la línea */
  background-color: red; /* Color de la línea */
  border: none;        /* Elimina bordes predeterminados */
  margin-left: auto;       /* Empuja hacia la derecha */
  margin-right: 0;         /* Por claridad */
}

.custom-line-white {
  width: 100%;          /* Controla el largo de la línea */
  height: 3px;         /* Grosor de la línea */
  background-color: rgb(255, 255, 255); /* Color de la línea */
  border: none;        /* Elimina bordes predeterminados */
  margin: 0 auto;      /* Centra la línea */
}

.whatsapp-window {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 320px;
  max-width: 90%;
  border-radius: 15px;
  background-color: #f0fdf4;
  z-index: 9999;
  display: none;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.5s ease-in-out;
}

.whatsapp-window.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.whatsapp-header {
  background-color: #25d366;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}

.whatsapp-body {
  font-size: 14px;
  color: #333;
}

.whatsapp-icon {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  padding: 10px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  cursor: pointer;
  display: none;
  transition: transform 0.3s ease-in-out;
}

.whatsapp-icon:hover {
  transform: scale(1.1);
}

#particles-js {
  position: relative;
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  background-color: #1d1d1d; /* Fondo oscuro */
  z-index: -1; /* Detrás de todo */
  overflow: hidden;
} 