/* Header */
.main_header {
  position: fixed;
  width: 100%;
  height: auto;
  top: 0;
  background: rgba(255, 255, 255, 0.466);
  backdrop-filter: blur(10px);
  transform: translateX(0%);
  z-index: 1;
  align-items: center;
  justify-content: center;
  animation: slideInDown 1500ms ease-out;

  a {
    position-area: relative;
  }
  img {
    max-width: 45%;
  }
  .logo {
    transition: var(--transition);
  }

  .logo:hover {
    transform: scale(1.08);
  }
}
#proyectos {
  scroll-margin-top: 3rem; /* ajusta según el alto de tu encabezado */
}

.header-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0rem 0;
  margin-top: 2.5rem;
}

.section-header {
  max-width: 1200;
  text-align: center;
  margin-bottom: 2rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 1rem 0;
  color: var(--gray-900);
}

.section-header p {
  font-size: 1.25rem;
  color: var(--gray-600);
  max-width: 55rem;
  margin: 0 auto;
}
/* Reset y Variables */
li {
  list-style-type: none;
}

.whatsapp-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  cursor: pointer;
}

.whatsapp-btn img {
  display: block;
  height: 60px;
  width: auto;
}

.carrousel {
  /* width: 90%;
  max-width: 50em;
  padding: 2em;
  color: var(--negro);
  transition: all 0.4s ease;
  border-radius: 1em;
  background-color: var(--blanco);
  box-shadow: 1em 1em 2em var(--sombra-ppal), -1em -1em 2em var(--sombra-sec),
    inset 0 0 0 transparent, inset 0 0 0 transparent; */
  overflow: hidden;
}

.carrousel .grande {
  width: 300%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  overflow-x: hidden;
  transition: all 0.4s ease;
  border-radius: 1em;

  /* flex-flow: row nowrap; */
  /* padding: 2em; */
  /* transform: translateX(0%); */
  /* color: var(--negro); */
  /* background-color: var(--blanco); */
  /* box-shadow: 1em 1em 2em var(--sombra-ppal), -1em -1em 2em var(--sombra-sec), */
  /* inset 0 0 0 transparent, inset 0 0 0 transparent; */
}

.grande img {
  height: 400px;
  width: auto;
}

.carrousel .img {
  width: calc(100% / 3 -2em);
  min-height: 10vh;
  /* color: var(--negro); */
  transition: all 0.4s ease;
  border-radius: 1em;
  background-color: var(--gray-400);
  box-shadow: 1em 1em 2em var(--gray-600), -1em -1em 2em var(--gray-200),
    inset 0 0 0 transparent, inset 0 0 0 transparent;
}

.carrousel .puntos {
  width: 100%;
  margin: 1em 0 0;
  padding: 0.2em;
  display: flex;
  flex-flow: row nowrap;
  justify-content: center;
  align-items: center;
}

.carrousel .punto {
  width: 2em;
  height: 2em;
  margin: 1em 1em 0;
  color: var(--negro);
  transition: all 0.4s ease;
  border-radius: 1em;
  background-color: var(--blanco);
}
.carrousel .punto.activo {
  background-color: lightblue;
}

.container-services {
  margin: 0 auto;
  padding: 0 3rem;
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
}

.delay-200 {
  animation-delay: 0.2s;
}
.delay-400 {
  animation-delay: 0.4s;
}
.delay-600 {
  animation-delay: 0.6s;
}
.delay-800 {
  animation-delay: 0.8s;
}

/* Barra de Sectores */
.sectors-bar {
  position: absolute;
  top: 0;
  width: 100%;
  background: linear-gradient(
    90deg,
    var(--rm-red) 0%,
    var(--rm-purple) 25%,
    var(--rm-cyan) 50%,
    var(--rm-lime) 75%,
    var(--rm-red) 100%
  );
  background-size: 200% 100%;
  animation: gradientShift 8s ease infinite;
  color: white;
  padding: 0.5rem 0;
  z-index: 1000;
  overflow: hidden;
  animation: slideInDown 1500ms ease-out;
}

.sectors-marquee {
  display: flex;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
}

.sector-item {
  display: inline-flex;
  align-items: center;
  margin: 0 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.sector-item:hover {
  transform: scale(1.1);
}

.sector-item i {
  font-size: 0.5rem;
  margin-right: 0.5rem;
  animation: pulse 2s infinite;
}

.menu > li {
  position: relative;
}

.menu a {
  display: block;
  padding: 10px 15px;
  text-decoration: none;
  color: #333;
  font-weight: bold;
}

.menu .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 150px;
}

.menu .dropdown-menu li a {
  padding: 10px;
  font-weight: normal;
  color: #555;
}

.menu .dropdown:hover .dropdown-menu {
  display: block;
}

.menu .dropdown-menu li a:hover {
  background: #f0f0f0;
}
.video {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  position: fixed;
}

/* .main {
  height: 300vw;
} */

.logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--gradient-primary);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  transition: var(--transition);
}

.logo:hover .logo-icon {
  transform: scale(1.1);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--gray-700);
  cursor: pointer;
}

.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 0 12px;
  cursor: pointer;
  z-index: 1;
}

.prev {
  left: 10px;
}
.next {
  right: 10px;
}

.dots {
  text-align: center;
  position: absolute;
  bottom: 10px;
  width: 100%;
}

.dots span {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 5px;
  background-color: #bbb;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
}

.dots .active {
  background-color: #fff;
}
/* ----------Listas------------ */
.features-list {
  list-style: none;
  margin: 1rem 0;
}

.features-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0;
  font-size: 0.875rem;
  color: var(--gray-600);
}

.features-list i {
  color: var(--rm-olive);
  font-size: 1rem;
}

.features-list .feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: 520;
  transition: var(--transition);
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--rm-red-dark) 0%, #a10e0f 100%);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--rm-red);
  color: var(--rm-red);
}

.btn-outline:hover {
  background: var(--rm-red);
  color: white;
}

.btn-secondary {
  position: absolute;
  background: var(--gray-600);
  color: white;
  bottom: 10px;
  left: 28%;
  padding: 10px 20px;
}

.btn-secondary:hover {
  background: var(--gray-700);
}

.btn-white {
  position: relative;
  background: white;
  color: var(--rm-red);
}

.btn-white:hover {
  background: var(--gray-100);
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 0.75rem 2rem;
  font-size: 1.125rem;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  background: var(--rm-purple);
  color: white;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  animation: bounce 5s ease-in-out infinite;
  transition: var(--transition);
}

.badge:hover {
  transform: scale(1.05);
}

.badge.bg-red {
  background: rgba(222, 7, 14, 0.1);
  color: var(--rm-red);
}

.badge.bg-purple {
  background: rgba(173, 82, 237, 0.1);
  color: var(--rm-purple);
}

.badge.bg-cyan {
  background: rgba(51, 160, 211, 0.205);
  color: #0dada2;
}

/* Hero Section */
.hero {
  position: relative;
  background-image: linear-gradient(to bottom, rgba(0, 0, 1, 0.75) 100%),
    url(/assets/imagenes/FondoB.png);
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  color: white;
  padding: 15rem 0px 11rem 0rem;
}

.hero-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-text {
  display: 2rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin: 1rem 0;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 1rem 0;
}

.subtitle-line {
  display: block;
  margin: 0.5rem 0;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--blanco);
  line-height: 1.6;
  margin: 1.5rem 0;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.stat {
  text-align: center;
  transition: var(--transition);
}

.stat:hover {
  transform: scale(1.05);
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--rm-red);
}

.stat-label {
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--rm-cyan);
  transition: var(--transition);
}

.stat:hover .stat-label {
  color: var(--rm-lime);
}

.image-inicio {
  width: 100%;
  height: auto;
  margin-inline-end: 50%;
}
.hero-image {
  position: relative;
}

.image-container {
  width: 100%;
  height: auto;
  position: relative;
  border-radius: 1rem;
  padding: 1rem;
  transition: var(--transition);
  background: linear-gradient(135deg, var(--rm-purple) 0%, var(--rm-cyan) 100%);
}

.image-container:hover {
  transform: rotate(6deg) scale(1.05);
}

.image-container img {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-2xl);
  transition: var(--transition);
}

.image-container:hover img {
  transform: scale(1.05);
}

/* Why Choose Us Section */
.section-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}

.section-content.reverse {
  grid-template-columns: 1fr 1fr;
}

.section-content.reverse .text-side {
  order: 1;
}

.section-content.reverse .image-side {
  order: 2;
}

.image-side img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  box-shadow: var(--shadow-2xl);
  transition: var(--transition);
}

.image-side img:hover {
  transform: scale(1.05);
}

.text-side h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 1rem 0;
  color: var(--gray-900);
}

.text-side h3 {
  font-size: 2rem;
  font-weight: 700;
  margin: 1rem 0;
  color: var(--gray-900);
}

.text-side p {
  font-size: 1.25rem;
  color: var(--gray-600);
  margin: 1rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}

.feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.feature i {
  color: #22c55e;
  font-size: 1.25rem;
}

/* Solutions Section */
.container-solutions {
  padding: 9rem 3rem;
  view-timeline-name: --reveal;
  view-timeline-axis: block;

  animation-name: show;
  animation-fill-mode: both;
  animation-timeline: --reveal;
  animation-range: 15% cover 50%;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.solution-card {
  position: relative;
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  border: none;
}

.solution-card:hover {
  transform: translateY(-1rem);
  box-shadow: var(--shadow-2xl);
}

.card-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.icon-container {
  width: 5rem;
  height: 5rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
  margin: 0 auto 1rem;
  transition: var(--transition);
}

.solution-card:hover .icon-container {
  transform: scale(1.25) rotate(12deg);
}

.card-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 1rem 0;
  transition: var(--transition);
}

.solution-card:hover .card-header h3 {
  color: var(--gray-700);
}

.card-header p {
  color: var(--gray-600);
  transition: var(--transition);
}

.solution-card:hover .card-header p {
  color: var(--gray-700);
}

/* Services Section */
.services {
  padding: 9rem 0;
  background: white;
  position: relative;
  overflow: hidden;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.module-card {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  border: none;
}

.module-card:hover {
  transform: translateY(-1rem);
  box-shadow: var(--shadow-2xl);
}

.module-icon {
  height: 4rem;
  border-radius: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.8rem;
  margin-bottom: 1rem;
  transition: var(--transition);
}

.module-card:hover .module-icon {
  transform: scale(1.25) rotate(360deg);
}

.module-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 1rem 0;
  transition: var(--transition);
}

.module-card:hover h3 {
  color: var(--gray-700);
}

.module-card p {
  color: var(--gray-600);
  font-size: 1rem;
  margin-bottom: 1rem;
  transition: var(--transition);
}

.module-card:hover p {
  color: var(--gray-700);
}

.sectors-section {
  text-align: center;
  margin-top: 4rem;
}

.sectors-section h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--gray-900);
}

.sectors-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.sector-tag {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.sector-tag:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
}

.sector-tag.purple {
  background: rgba(173, 82, 237, 0.1);
  color: var(--rm-purple);
}
.sector-tag.red {
  background: rgba(222, 7, 14, 0.1);
  color: var(--rm-red);
}
.sector-tag.yellow {
  background: rgba(234, 179, 8, 0.1);
  color: #eab308;
}
.sector-tag.gray {
  background: rgba(100, 116, 139, 0.1);
  color: var(--gray-500);
}
.sector-tag.green {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}
.sector-tag.blue {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}
.sector-tag.cyan {
  background: rgba(92, 230, 221, 0.1);
  color: var(--rm-cyan);
}
.sector-tag.orange {
  background: rgba(249, 115, 22, 0.1);
  color: #f97316;
}

/* Business Sectors Section */
.business-sectors {
  padding: 4rem 0;
  background: white;
}

.sector-boxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.sector-box {
  padding: 0.75rem;
  border-radius: 0.5rem;
  text-align: center;
  font-weight: 600;
  transition: var(--transition);
}

.sector-box:hover {
  transform: scale(1.05);
}

.sector-box.purple {
  background: rgba(173, 82, 237, 0.1);
  color: var(--rm-purple);
}
.sector-box.green {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}
.sector-box.blue {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}
.sector-box.orange {
  background: rgba(249, 115, 22, 0.1);
  color: #f97316;
}

/* Trust Section */
.trust-section {
  padding: 3rem 0;
  background: linear-gradient(135deg, var(--rm-red) 0%, var(--rm-purple) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.trust-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    var(--rm-red-dark) 0%,
    var(--rm-purple) 50%,
    var(--rm-red) 100%
  );
  background-size: 200% 100%;
  animation: gradientShift 8s ease infinite;
  opacity: 0.5;
}

.trust-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: center;
  position: initial;
  z-index: 10;
}

.trust-text h2 {
  position: relative;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.trust-text p {
  position: relative;
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

.trust-features {
  position: relative;

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.trust-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: var(--transition);
}

.trust-feature:hover {
  transform: scale(1.05);
}

.trust-feature i {
  font-size: 2rem;
  color: var(--rm-cyan);
}

.trust-feature:hover i {
  animation: pulse 1s infinite;
}

.feature-title {
  font-weight: 600;
}

.feature-subtitle {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

.trust-stats {
  text-align: center;
}

.stat-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  padding: 2rem;
  transition: var(--transition);
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.stat-big {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-card:hover .stat-big {
  animation: pulse 1s infinite;
}

.stars {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.stars i {
  color: var(--rm-lime);
  animation: pulse 2s infinite;
}

.stars i:nth-child(1) {
  animation-delay: 0s;
}
.stars i:nth-child(2) {
  animation-delay: 0.2s;
}
.stars i:nth-child(3) {
  animation-delay: 0.4s;
}
.stars i:nth-child(4) {
  animation-delay: 0.6s;
}
.stars i:nth-child(5) {
  animation-delay: 0.8s;
}

.rating-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Premium Service Section */
.premium-service {
  padding: 4rem 0;
  background: linear-gradient(135deg, #dbeafe 0%, #f3e8ff 100%);
}

/* Projects Section */

.projects {
  align-items: center;
}
.projects h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.projects p {
  font-size: 1.5rem;
  font-weight: 350;
  margin-bottom: 1.5rem;
  font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
}

.esferas {
  display: flex;
  align-items: center;
  justify-content: center;
}

.linea {
  width: 20%;
  height: 20%;
}
.small {
  width: 100px;
  height: 100px;
  margin: 0 10px;
}
.circle {
  border-radius: 50%;
}

.degradado {
  position: absolute;
  height: 100px;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 30, 0.2),
    rgba(10, 10, 30, 1)
  );
}

.container-projects {
  background-image: linear-gradient(
      to bottom,
      rgba(1, 1, 46, 0.1),
      rgba(10, 10, 30, 1)
    ),
    url(/assets/imagenes/robot.png);
  background-repeat: no-repeat;
  background-size: cover;
  color: white;
  padding: 15rem 0px 11rem 0rem;
}

.text-projects {
  max-width: 680px;
  padding: 0 2rem 0 10rem;
}
.detalle {
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 30, 1),
    rgba(10, 10, 30, 1)
  );
  padding: 5rem;
}
.detalle-texto {
  color: white;
  padding: 0rem 5rem;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.modelos-gif {
  display: flex;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  max-width: auto;
  justify-content: center;
  align-items: center;
  padding: 0 0 0 5rem;
}
.modelos-gif .pc {
  margin: -1rem;
  width: 650px;
}

.tablet {
  width: 28%;
  margin: -3rem;
}

.carousel--scroll-buttons {
  &::scroll-button(*) {
    position: fixed;
    position-anchor: --carousel;
    font-family: "Material Symbols Outlined";
  }

  &::scroll-button(right) {
    position-area: inline-end center;
    content: "arrow_forward" / "Next";
  }

  &::scroll-button(left) {
    position-area: inline-start center;
    content: "arrow_back" / "Previous";
  }
}

.carousel-track {
  display: flex;
  width: calc(100% * 2); /* 6 imágenes * 2 duplicadas */
  animation: scroll 25s linear infinite;
  gap: 2.6rem;
}

.carousel-track img {
  width: auto;
  object-fit: cover;
  height: 180px;
}

@keyframes scroll {
  100% {
    transform: translateX(-50%);
  }
}
.container-clientes {
  max-width: 100%;
}
.carousel-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
.project-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 2rem;
}

.project-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.project-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(173, 82, 237, 0.1);
  color: var(--rm-purple);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  width: fit-content;
}

.project-text h3 {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0;
}

.project-text p {
  font-size: 1.125rem;
  color: var(--gray-600);
  line-height: 1.6;
}

.results h4 {
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
}

.results ul {
  list-style: none;
  padding: 0;
}

.results li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  color: var(--gray-700);
}

.results i {
  color: #22c55e;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.project-image {
  position: relative;
}

.project-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--rm-purple) 0%, var(--rm-cyan) 100%);
  border-radius: 0.75rem;
  transform: rotate(3deg);
  transition: var(--transition);
}

.project-content:hover .project-image::before {
  transform: rotate(6deg);
}

.project-image img {
  position: relative;
  width: 100%;
  height: 16rem;
  object-fit: cover;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-xl);
  transition: var(--transition);
}

/* Controles del Carrusel */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--gray-800);
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  z-index: 10;
}

.carousel-btn:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
  left: 1rem;
}

.carousel-next {
  right: 1rem;
}

/* Indicadores del Carrusel */
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.indicator {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  border: none;
  background: var(--gray-300);
  cursor: pointer;
  transition: var(--transition);
}

.indicator:hover {
  background: var(--gray-400);
}

.indicator.active {
  background: var(--rm-red);
  transform: scale(1.25);
}

/* Design and Security */
.design-security {
  margin-top: 4rem;
}

.design-security .section-content {
  margin-bottom: 4rem;
}

.features-list .feature i {
  width: 2rem;
  height: 2rem;
  background: rgba(34, 197, 94, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #22c55e;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.security-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.security-item {
  background: rgba(255, 255, 255, 0.5);
  padding: 1rem;
  border-radius: 0.5rem;
  text-align: center;
  transition: var(--transition);
}

.security-item:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.8);
}

.security-item i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--rm-purple);
}

.security-item h4 {
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
}

.security-item p {
  font-size: 0.75rem;
  color: var(--gray-600);
}

/* Expansion Section */
.expansion-section {
  text-align: center;
  margin-top: 4rem;
}

.expansion-section img {
  width: 100%;
  max-width: 50rem;
  height: auto;
  border-radius: 1rem;
  box-shadow: var(--shadow-2xl);
  margin-bottom: 2rem;
  transition: var(--transition);
}

.expansion-section img:hover {
  transform: scale(1.05);
}

/* Contact Section */
.contact {
  padding: 3rem 0;
  background: white;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
}

.contact-items {
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  transition: var(--transition);
}

.contact-item:hover {
  transform: scale(1.05);
}

.contact-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  transition: var(--transition);
}

.contact-item:hover .contact-icon {
  transform: scale(1.1);
}

.contact-title {
  font-weight: 600;
  color: var(--gray-900);
}

.contact-text {
  color: var(--gray-600);
}

.social-section h4 {
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--gray-900);
}

.social-buttons {
  display: flex;
  gap: 1rem;
}

.social-btn {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--gray-300);
  background: transparent;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  transition: var(--transition);
}

.social-btn:hover {
  transform: scale(1.1);
}

.social-btn.facebook:hover {
  background: rgba(222, 7, 14, 0.1);
  border-color: var(--rm-red);
  color: var(--rm-red);
}

.social-btn.instagram:hover {
  background: rgba(173, 82, 237, 0.1);
  border-color: var(--rm-purple);
  color: var(--rm-purple);
}

.social-btn.linkedin:hover {
  background: rgba(92, 230, 221, 0.1);
  border-color: var(--rm-cyan);
  color: var(--rm-cyan);
}

/* Form */
.form-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow-xl);
  border: none;
  transition: var(--transition);
}

.form-card:hover {
  box-shadow: var(--shadow-2xl);
  transform: scale(1.02);
}

.form-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.form-card p {
  color: var(--gray-600);
  margin-bottom: 1.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  padding: 0.75rem;
  border: 1px solid var(--gray-300);
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: var(--transition);
}

.contact-form input:hover,
.contact-form textarea:hover {
  border-color: var(--rm-red);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--rm-red);
  box-shadow: 0 0 0 3px rgba(222, 7, 14, 0.1);
}

/* Footer */
.footer {
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 100%),
    url(/assets/imagenes/FondoA.jpg);
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;

  color: white;
  padding: 3rem 0;

  .logo_footer {
    width: 190px;
    height: auto;
    transition: var(--transition);
  }
  .logo_footer:hover {
    transform: scale(1.05);
  }
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section {
  transition: var(--transition);
}

.footer-section:hover {
  transform: scale(1.02);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-logo {
  width: 2rem;
  height: 2rem;
  background: var(--gradient-primary);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  transition: var(--transition);
}

.footer-section:hover .footer-logo .logo-icon {
  transform: scale(1.1);
}

.footer-logo h3 {
  font-weight: 700;
  margin: 0;
}

.footer-logo p {
  font-size: 0.75rem;
  color: var(--gray-200);
  margin: 0;
}

.footer-section p {
  font-size: 0.875rem;
  color: var(--gray-400);
  transition: var(--transition);
}

.footer-section:hover p {
  color: var(--gray-300);
}

.footer-section h4 {
  font-weight: 600;
  margin-bottom: 1rem;
  transition: var(--transition);
}

.footer-section:hover h4 {
  color: var(--rm-red);
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--gray-400);
  text-decoration: none;
  font-size: 0.875rem;
  transition: var(--transition);
  cursor: pointer;
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid var(--gray-800);
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.875rem;
  color: var(--gray-400);
}

.customers {
  padding: 4rem 0;
}

/* Modales */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 1rem;
  max-width: 28rem;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-2xl);
  animation: fadeInUp 0.3s ease-out;
}

.modal-large {
  max-width: 32rem;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--gray-200);
}

.modal-header h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--gray-500);
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--gray-700);
  transform: scale(1.1);
}

.modal-body {
  padding: 1.5rem;
}

.modal-body p {
  color: var(--gray-600);
  margin-bottom: 1.5rem;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-form input,
.modal-form textarea {
  padding: 0.75rem;
  border: 1px solid var(--gray-300);
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: var(--transition);
}

.modal-form input:focus,
.modal-form textarea:focus {
  outline: none;
  border-color: var(--rm-red);
  box-shadow: 0 0 0 3px rgba(222, 7, 14, 0.1);
}

.modal-buttons {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.modal-buttons .btn {
  flex: 1;
}

/* Tabs */
.modal-tabs {
  display: flex;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 1.5rem;
}

.tab-btn {
  flex: 1;
  padding: 0.75rem;
  background: none;
  border: none;
  font-weight: 500;
  color: var(--gray-600);
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 2px solid transparent;
}

.tab-btn:hover {
  color: var(--gray-900);
}

.tab-btn.active {
  color: var(--rm-red);
  border-bottom-color: var(--rm-red);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.features-grid-modal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.features-column {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.feature-item i {
  color: #22c55e;
  font-size: 1rem;
}

.info-box {
  background: rgba(173, 82, 237, 0.1);
  padding: 1rem;
  border-radius: 0.5rem;
}

.info-box h4 {
  font-weight: 600;
  color: var(--rm-purple);
  margin-bottom: 0.5rem;
}

.info-box p {
  font-size: 0.875rem;
  color: var(--rm-purple);
  margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-content,
  .section-content,
  .trust-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-text {
    text-align: center;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .solutions-grid,
  .modules-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .project-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .trust-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .trust-features {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .header-buttons {
    gap: 0.5rem;
  }

  .header-buttons .btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
  }

  .hero {
    padding: 7rem 0 3rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .text-side h2,
  .text-side h3 {
    font-size: 1.75rem;
  }

  .features-grid,
  .sector-boxes,
  .security-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .carousel-btn {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.25rem;
  }

  .carousel-prev {
    left: 2.5rem;
  }

  .carousel-next {
    right: 0.5rem;
  }

  .modal-content {
    margin: 1rem;
    max-width: none;
  }

  .features-grid-modal {
    grid-template-columns: 1fr;
  }

  .modal-buttons {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .sectors-marquee {
    animation: marquee 20s linear infinite;
  }

  .solutions-grid,
  .modules-grid {
    grid-template-columns: 1fr;
  }

  .project-content {
    padding: 1rem;
  }

  .project-text h3 {
    font-size: 1.5rem;
  }

  .project-text p {
    font-size: 1rem;
  }
}

/* Animaciones adicionales */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Estados de carga */
.loading {
  opacity: 0.5;
  pointer-events: none;
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print styles */
@media print {
  .sectors-bar,
  .header,
  .floating-elements,
  .modal,
  .carousel-btn,
  .carousel-indicators {
    display: none !important;
  }

  .hero {
    padding-top: 2rem;
  }

  * {
    background: white !important;
    color: black !important;
  }
}

/* Elementos Flotantes */
.floating-elements {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.floating-element {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
}

.floating-element-1 {
  width: 16rem;
  height: 16rem;
  background: linear-gradient(
    135deg,
    rgba(222, 7, 14, 0.2) 0%,
    rgba(173, 82, 237, 0.2) 100%
  );
  top: 10%;
  left: 10%;
  animation: float 6s ease-in-out infinite;
}

.floating-element-2 {
  width: 24rem;
  height: 24rem;
  background: linear-gradient(
    135deg,
    rgba(92, 230, 221, 0.2) 0%,
    rgba(191, 255, 73, 0.2) 100%
  );
  top: 60%;
  right: 10%;
  animation: floatDelayed 8s ease-in-out infinite;
}
