/********** Template CSS **********/
:root {
  --primary: #0074f0;
  --secondary: #4777f5;
  --light: #f7faff;
  --dark: #1d1d27;
}

html {
  scroll-behavior: smooth;
}

/*** Service ***/
.service-item img {
  transition: 0.5s;
}

.service-item:hover img {
  transform: scale(1.1);
}

/*** Section Title ***/
.section-title::before {
  position: absolute;
  content: "";
  width: 150px;
  height: 5px;
  left: 0;
  bottom: 0;
  background: var(--primary);
  border-radius: 2px;
}

.section-title.text-center::before {
  left: 50%;
  margin-left: -75px;
}

.section-title.section-title-sm::before {
  width: 90px;
  height: 3px;
}

.section-title::after {
  position: absolute;
  content: "";
  width: 6px;
  height: 5px;
  bottom: 0px;
  background: #ffffff;
  -webkit-animation: section-title-run 5s infinite linear;
  animation: section-title-run 5s infinite linear;
}

.section-title.section-title-sm::after {
  width: 4px;
  height: 3px;
}

.section-title.text-center::after {
  -webkit-animation: section-title-run-center 5s infinite linear;
  animation: section-title-run-center 5s infinite linear;
}

.section-title.section-title-sm::after {
  -webkit-animation: section-title-run-sm 5s infinite linear;
  animation: section-title-run-sm 5s infinite linear;
}

@-webkit-keyframes section-title-run {
  0% {
    left: 0;
  }
  50% {
    left: 145px;
  }
  100% {
    left: 0;
  }
}

@-webkit-keyframes section-title-run-center {
  0% {
    left: 50%;
    margin-left: -75px;
  }
  50% {
    left: 50%;
    margin-left: 45px;
  }
  100% {
    left: 50%;
    margin-left: -75px;
  }
}

@-webkit-keyframes section-title-run-sm {
  0% {
    left: 0;
  }
  50% {
    left: 85px;
  }
  100% {
    left: 0;
  }
}

/*** Feature ***/
.feature-item {
  transition: 0.5s;
}

.feature-item:hover {
  margin-top: -15px;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.08);
}

/*** Spinner ***/
#spinner {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-out, visibility 0s linear 0.5s;
  z-index: 99999;
}

#spinner.show {
  transition: opacity 0.5s ease-out, visibility 0s linear 0s;
  visibility: visible;
  opacity: 1;
}

.back-to-top {
  position: fixed;
  display: none;
  right: 45px;
  bottom: 45px;
  z-index: 99;
}

/*** Heading ***/
h1,
h2,
h3,
.fw-bold {
  font-weight: 700 !important;
}

h4,
h5,
h6,
.fw-medium {
  font-weight: 500 !important;
}

/*** Button ***/
.btn {
  font-weight: 500;
  transition: 0.5s;
}

.btn-square {
  width: 38px;
  height: 38px;
}

.btn-sm-square {
  width: 32px;
  height: 32px;
}

.btn-lg-square {
  width: 48px;
  height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: normal;
  border-radius: 50px;
}

/*** Navbar ***/
.navbar-light .navbar-nav .nav-link {
  position: relative;
  margin-left: 25px;
  padding: 35px 0;
  color: var(--light) !important;
  outline: none;
  transition: 0.5s;
}

.sticky-top.navbar-light .navbar-nav .nav-link {
  padding: 20px 0;
  color: var(--dark) !important;
}

.sticky-top.navbar-light .nav-item .nav-link {
  color: var(--dark) !important;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
  color: var(--secondary) !important;
}

.navbar-light .nav-item .nav-link:hover,
.navbar-light .nav-item .nav-link.active {
  color: var(--secondary) !important;
}

.navbar-light .navbar-brand h1 {
  color: #ffffff;
}

.navbar-light .navbar-brand img {
  max-height: 60px;
  transition: 0.5s;
}

.sticky-top.navbar-light .navbar-brand img {
  max-height: 45px;
}

@media (max-width: 991.98px) {
  .sticky-top.navbar-light {
    position: relative;
    background: #ffffff;
  }

  .navbar-light .navbar-nav .nav-link {
    color: var(--dark) !important;
  }

  .navbar-light .navbar-collapse {
    margin-top: 15px;
    border-top: 1px solid #dddddd;
  }

  .navbar-light .navbar-nav .nav-link,
  .sticky-top.navbar-light .navbar-nav .nav-link {
    padding: 10px 0;
    margin-left: 0;
    color: var(--dark) !important;
  }

  .navbar-light .navbar-brand h1 {
    color: var(--primary);
  }

  .navbar-light .navbar-brand img {
    max-height: 45px;
  }
}

@media (max-width: 1080px) {
  .sticky-top.navbar-light {
    position: relative;
    background: #ffffff;
  }

  .navbar-light .navbar-nav .nav-link {
    color: var(--dark) !important;
  }

  .navbar-light .navbar-collapse {
    margin-top: 15px;
    border-top: 1px solid #dddddd;
  }

  .navbar-light .navbar-nav .nav-link,
  .sticky-top.navbar-light .navbar-nav .nav-link {
    padding: 10px 0;
    margin-left: 0;
    color: var(--dark) !important;
  }

  .navbar-light .navbar-brand h1 {
    color: var(--primary);
  }

  .navbar-light .navbar-brand img {
    max-height: 45px;
  }
}

@media (min-width: 992px) {
  .navbar-light {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    border-bottom: 1px solid rgba(256, 256, 256, 0.1);
    z-index: 999;
  }

  .sticky-top.navbar-light {
    position: fixed;
    background: #ffffff;
  }

  .navbar-light .navbar-nav .nav-link::before {
    position: absolute;
    content: "";
    width: 0;
    height: 2px;
    bottom: -1px;
    left: 50%;
    background: var(--secondary);
    transition: 0.5s;
  }

  .navbar-light .navbar-nav .nav-link:hover::before,
  .navbar-light .navbar-nav .nav-link.active::before {
    width: 100%;
    left: 0;
  }

  .navbar-light .navbar-nav .nav-link.nav-contact::before {
    display: none;
  }

  .sticky-top.navbar-light .navbar-brand h1 {
    color: var(--primary);
  }
}

@media (min-width: 1080px) {
  .navbar-light {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    border-bottom: 1px solid rgba(256, 256, 256, 0.1);
    z-index: 999;
  }
  
  .sticky-top.navbar-light {
    position: fixed;
    background: #ffffff;
  }

  .navbar-light .navbar-nav .nav-link::before {
    position: absolute;
    content: "";
    width: 0;
    height: 2px;
    bottom: -1px;
    left: 50%;
    background: var(--secondary);
    transition: 0.5s;
  }

  .navbar-light .navbar-nav .nav-link:hover::before,
  .navbar-light .navbar-nav .nav-link.active::before {
    width: 100%;
    left: 0;
  }

  .navbar-light .navbar-nav .nav-link.nav-contact::before {
    display: none;
  }

  .sticky-top.navbar-light .navbar-brand h1 {
    color: var(--primary);
  }
}

/*** Hero Header ***/
.hero-header {
  background: url(../img/bg-dot.png), url(../img/bg-dot.png),
    url(../img/bg-round.png), url(../img/bg-tree.png),
    url(../img/bg-bottom-hero.png);
  background-position: 10px 10px, bottom 190px right 10px, left 55% top -1px,
    left 45% bottom -1px, center bottom -1px;
  background-repeat: no-repeat;
}

/*** Service ***/
.service-item {
  position: relative;
  height: 350px;
  padding: 30px 25px;
  background: #ffffff;
  box-shadow: 0 0 45px rgba(0, 0, 0, 0.08);
  transition: 0.5s;
}

.service-item:hover {
  background: var(--primary);
}

.service-item .service-icon {
  margin: 0 auto 20px auto;
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light);
  background: url(../img/icon-shape-primary.png) center center no-repeat;
  transition: 0.5s;
}

.service-item:hover .service-icon {
  color: var(--primary);
  background: url(../img/icon-shape-white.png);
}

.service-item h5,
.service-item p {
  transition: 0.5s;
}

.service-item:hover h5,
.service-item:hover p {
  color: var(--light);
}

.service-item a.btn {
  position: relative;
  display: flex;
  color: var(--primary);
  transition: 0.5s;
  z-index: 1;
}

.service-item:hover a.btn {
  color: var(--primary);
}

.service-item a.btn::before {
  position: absolute;
  content: "";
  width: 35px;
  height: 35px;
  top: 0;
  left: 0;
  border-radius: 35px;
  background: #dddddd;
  transition: 0.5s;
  z-index: -1;
}

.service-item:hover a.btn::before {
  width: 100%;
  background: var(--light);
}

/*--------------------------------------------------------------
# Portfolio
--------------------------------------------------------------*/
.portfolio .portfolio-item {
  margin-bottom: 30px;
}

.portfolio #portfolio-flters {
  padding: 0;
  margin: 0 auto 35px auto;
  list-style: none;
  text-align: center;
  background: #ecf5f9;
  border-radius: 50px;
  padding: 2px 15px;
}

.portfolio #portfolio-flters li {
  cursor: pointer;
  display: inline-block;
  padding: 10px 15px 8px 15px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  color: #2f4d5a;
  margin-bottom: 5px;
  transition: all 0.3s ease-in-out;
}

.portfolio #portfolio-flters li:hover,
.portfolio #portfolio-flters li.filter-active {
  color: #67b0d1;
}

.portfolio #portfolio-flters li:last-child {
  margin-right: 0;
}

.portfolio .portfolio-wrap {
  transition: 0.3s;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.portfolio .portfolio-wrap::before {
  content: "";
  background: rgba(255, 255, 255, 0.5);
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  transition: all ease-in-out 0.3s;
  z-index: 2;
  opacity: 0;
}

.portfolio .portfolio-wrap .portfolio-links {
  opacity: 1;
  left: 0;
  right: 0;
  bottom: -60px;
  z-index: 3;
  position: absolute;
  transition: all ease-in-out 0.3s;
  display: flex;
  justify-content: center;
}

.portfolio .portfolio-wrap .portfolio-links a {
  color: #fff;
  font-size: 28px;
  text-align: center;
  background: rgba(103, 176, 209, 0.75);
  transition: 0.3s;
  width: 50%;
}

.portfolio .portfolio-wrap .portfolio-links a:hover {
  background: rgba(103, 176, 209, 0.95);
}

.portfolio .portfolio-wrap .portfolio-links a + a {
  border-left: 1px solid #8ec4dd;
}

.portfolio .portfolio-wrap:hover::before {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 1;
}

.portfolio .portfolio-wrap:hover .portfolio-links {
  opacity: 1;
  bottom: 0;
}

/*--------------------------------------------------------------
  # Portfolio Details
  --------------------------------------------------------------*/
.portfolio-details {
  padding-top: 40px;
}

.portfolio-details .portfolio-details-slider img {
  width: 100%;
}

.portfolio-details .portfolio-details-slider .swiper-pagination {
  margin-top: 20px;
  position: relative;
}

.portfolio-details
  .portfolio-details-slider
  .swiper-pagination
  .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: #fff;
  opacity: 1;
  border: 1px solid #67b0d1;
}

.portfolio-details
  .portfolio-details-slider
  .swiper-pagination
  .swiper-pagination-bullet-active {
  background-color: #67b0d1;
}

.portfolio-details .portfolio-info {
  padding: 30px;
  box-shadow: 0px 0 30px rgba(47, 77, 90, 0.08);
}

.portfolio-details .portfolio-info h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.portfolio-details .portfolio-info ul {
  list-style: none;
  padding: 0;
  font-size: 15px;
}

.portfolio-details .portfolio-info ul li + li {
  margin-top: 10px;
}

.portfolio-details .portfolio-description {
  padding-top: 30px;
}

.portfolio-details .portfolio-description h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 20px;
}

.portfolio-details .portfolio-description p {
  padding: 0;
}

/*** Footer ***/
.footer {
  background: url(../img/footer.png) center center no-repeat;
  background-size: contain;
}

.footer .btn.btn-social {
  margin-right: 5px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light);
  border: 1px solid rgba(256, 256, 256, 0.1);
  border-radius: 40px;
  transition: 0.3s;
}

.footer .btn.btn-social:hover {
  color: var(--primary);
}

.footer .btn.btn-link {
  display: block;
  margin-bottom: 10px;
  padding: 0;
  text-align: left;
  color: var(--light);
  font-weight: normal;
  transition: 0.3s;
}

.footer .btn.btn-link::before {
  position: relative;
  content: "\f105";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-right: 10px;
}

.footer .btn.btn-link:hover {
  letter-spacing: 1px;
  box-shadow: none;
}

.footer .copyright {
  padding: 25px 0;
  font-size: 14px;
  border-top: 1px solid rgba(256, 256, 256, 0.1);
}

.footer .copyright a {
  color: white;
}

.footer .footer-menu a {
  margin-right: 15px;
  padding-right: 15px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.footer .footer-menu a:last-child {
  margin-right: 0;
  padding-right: 0;
  border-right: none;
}

/* Ocultar logo por defecto */
.logo-scroll {
  display: none;
}

/* Mostrar logo al hacer scroll */
.navbar.fixed-top .logo-scroll {
  display: block !important;
}

/* Centrar las opciones del menú */
.nav-center {
  margin: 0 auto !important;
}

.modern-hero-container {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(135deg, #0073e5 0%, #1a1a2e 50%, #16213e 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-animated-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.hero-floating-element {
  position: absolute;
  background: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.1),
    rgba(0, 212, 255, 0.1)
  );
  border-radius: 50%;
  animation: heroFloat 12s ease-in-out infinite;
}

.hero-floating-element:nth-child(1) {
  width: 200px;
  height: 200px;
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}

.hero-floating-element:nth-child(2) {
  width: 150px;
  height: 150px;
  top: 60%;
  right: 10%;
  animation-delay: 4s;
}

.hero-floating-element:nth-child(3) {
  width: 100px;
  height: 100px;
  bottom: 20%;
  left: 15%;
  animation-delay: 8s;
}

.hero-floating-element:nth-child(4) {
  width: 120px;
  height: 120px;
  top: 30%;
  right: 25%;
  animation-delay: 2s;
}

.hero-floating-element:nth-child(5) {
  width: 80px;
  height: 80px;
  bottom: 40%;
  right: 5%;
  animation-delay: 6s;
}

@keyframes heroFloat {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg) scale(1);
    opacity: 0.3;
  }
  25% {
    transform: translateY(-30px) rotate(90deg) scale(1.1);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-60px) rotate(180deg) scale(0.9);
    opacity: 0.4;
  }
  75% {
    transform: translateY(-30px) rotate(270deg) scale(1.05);
    opacity: 0.7;
  }
}

.hero-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
      2px 2px at 20px 30px,
      rgba(255, 255, 255, 0.3),
      transparent
    ),
    radial-gradient(2px 2px at 40px 70px, rgba(0, 212, 255, 0.4), transparent),
    radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.2), transparent),
    radial-gradient(1px 1px at 130px 80px, rgba(0, 212, 255, 0.3), transparent),
    radial-gradient(
      2px 2px at 160px 30px,
      rgba(255, 255, 255, 0.2),
      transparent
    );
  background-repeat: repeat;
  background-size: 200px 100px;
  animation: particlesMove 20s linear infinite;
}

@keyframes particlesMove {
  0% {
    transform: translateY(0px);
  }
  100% {
    transform: translateY(-100px);
  }
}

.modern-hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
}

.hero-title {
  font-family: "Teko", sans-serif;
  font-size: 4rem;
  font-weight: 700;
  color: white;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}

.hero-title::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  animation: titleShine 3s ease-in-out infinite;
}

@keyframes titleShine {
  0% {
    left: -100%;
  }
  50% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}

.hero-title .highlight {
  background: linear-gradient(45deg, #00d4ff, #ffffff, #00d4ff);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease-in-out infinite;
}

@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.hero-subtitle {
  font-family: "Teko", sans-serif;
  font-size: 1.8rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  line-height: 1.4;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.modern-hero-btn {
  font-family: "Teko", sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  padding: 18px 40px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
  backdrop-filter: blur(10px);
}

.hero-btn-primary {
  background: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.95),
    rgba(255, 255, 255, 0.85)
  );
  color: #0073e5;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.hero-btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #0073e5, #00d4ff);
  transition: left 0.4s ease;
  z-index: -1;
}

.hero-btn-primary:hover::before {
  left: 0;
}

.hero-btn-primary:hover {
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(0, 115, 229, 0.4);
}

.hero-btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.hero-btn-secondary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.4s ease;
  z-index: -1;
}

.hero-btn-secondary:hover::before {
  left: 0;
}

.hero-btn-secondary:hover {
  color: white;
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(255, 255, 255, 0.2);
}

.hero-image-container {
  position: relative;
  z-index: 5;
}

.hero-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.hero-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(0, 115, 229, 0.1),
    rgba(0, 212, 255, 0.1)
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.hero-image:hover::before {
  opacity: 1;
}

.hero-image:hover {
  transform: scale(1.05) rotateY(5deg);
  box-shadow: 0 40px 80px rgba(0, 115, 229, 0.4);
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  margin-left: 100px;
  flex-wrap: wrap;
}

.hero-stat-item {
  text-align: center;
  color: white;
}

.hero-stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(45deg, #00d4ff, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 5px;
  animation: countUp 2s ease-out;
}

.hero-stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  animation: bounce 2s infinite;
}

.scroll-indicator i {
  font-size: 1.5rem;
  margin-top: 10px;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* MEJORAS ESPECÍFICAS PARA MÓVILES */
@media (max-width: 768px) {
  .modern-hero-container {
    min-height: 100vh;
    padding: 20px 0;
  }

  .hero-title {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 20px;
  }

  .hero-subtitle {
    font-size: 1.3rem;
    line-height: 1.4;
    margin-bottom: 30px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
  }

  .modern-hero-btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
    font-size: 1.2rem;
    padding: 15px 30px;
  }

  .hero-stats {
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
  }

  .hero-stat-number {
    font-size: 2rem;
  }

  .hero-stat-label {
    font-size: 0.8rem;
  }

  .hero-floating-element {
    display: none;
  }

  .hero-image {
    max-width: 100%;
    margin: 0 auto;
  }

  .scroll-indicator {
    bottom: 20px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .modern-hero-btn {
    font-size: 1.1rem;
    padding: 12px 25px;
  }

  .hero-stat-number {
    font-size: 1.8rem;
  }
}

.modern-about-container {
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(0, 115, 229, 0.02) 0%,
    rgba(26, 26, 46, 0.05) 50%,
    rgba(22, 33, 62, 0.02) 100%
  );
  border-radius: 30px;
  padding: 80px 40px;
  margin: 40px 0;
  overflow: hidden;
}

.about-animated-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.about-floating-element {
  position: absolute;
  background: linear-gradient(
    45deg,
    rgba(0, 115, 229, 0.08),
    rgba(0, 212, 255, 0.08)
  );
  border-radius: 50%;
  animation: aboutFloat 10s ease-in-out infinite;
}

.about-floating-element:nth-child(1) {
  width: 120px;
  height: 120px;
  top: 15%;
  left: 8%;
  animation-delay: 0s;
}

.about-floating-element:nth-child(2) {
  width: 80px;
  height: 80px;
  top: 70%;
  right: 12%;
  animation-delay: 3s;
}

.about-floating-element:nth-child(3) {
  width: 100px;
  height: 100px;
  bottom: 25%;
  left: 20%;
  animation-delay: 6s;
}

.about-floating-element:nth-child(4) {
  width: 60px;
  height: 60px;
  top: 40%;
  right: 25%;
  animation-delay: 1.5s;
}

@keyframes aboutFloat {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg) scale(1);
    opacity: 0.4;
  }
  33% {
    transform: translateY(-25px) rotate(120deg) scale(1.1);
    opacity: 0.7;
  }
  66% {
    transform: translateY(-12px) rotate(240deg) scale(0.9);
    opacity: 0.3;
  }
}

.about-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
      1px 1px at 25px 35px,
      rgba(0, 115, 229, 0.3),
      transparent
    ),
    radial-gradient(1px 1px at 50px 75px, rgba(0, 212, 255, 0.2), transparent),
    radial-gradient(1px 1px at 95px 45px, rgba(0, 115, 229, 0.2), transparent),
    radial-gradient(1px 1px at 135px 85px, rgba(0, 212, 255, 0.3), transparent);
  background-repeat: repeat;
  background-size: 180px 120px;
  animation: aboutParticlesMove 25s linear infinite;
}

@keyframes aboutParticlesMove {
  0% {
    transform: translateX(0px) translateY(0px);
  }
  100% {
    transform: translateX(-180px) translateY(-120px);
  }
}

.modern-about-content {
  position: relative;
  z-index: 10;
}

.about-section-title {
  position: relative;
  margin-bottom: 40px;
}

.about-subtitle {
  font-size: 1.1rem;
  font-weight: 600;
  color: #0073e5;
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
}

.about-subtitle::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 3px;
  background: linear-gradient(45deg, #0073e5, #00d4ff);
  border-radius: 2px;
}

.about-title {
  font-size: 2.8rem;
  font-weight: 700;
  color: #1d1d27;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}

.about-title::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(45deg, #0073e5, #00d4ff);
  border-radius: 2px;
  animation: titleUnderline 3s ease-in-out infinite;
}

@keyframes titleUnderline {
  0%,
  100% {
    width: 80px;
  }
  50% {
    width: 120px;
  }
}

.about-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #666;
  margin-bottom: 40px;
  position: relative;
}

.about-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  margin-bottom: 40px;
}

.about-feature-item {
  display: flex;
  align-items: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 15px;
  border: 1px solid rgba(0, 115, 229, 0.1);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.about-feature-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 115, 229, 0.05),
    transparent
  );
  transition: left 0.6s ease;
}

.about-feature-item:hover::before {
  left: 100%;
}

.about-feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 115, 229, 0.1);
  border-color: rgba(0, 212, 255, 0.3);
}

.about-feature-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(45deg, #0073e5, #00d4ff);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  transition: all 0.4s ease;
}

.about-feature-item:hover .about-feature-icon {
  transform: scale(1.1) rotate(10deg);
}

.about-feature-icon i {
  color: white;
  font-size: 1.2rem;
}

.about-feature-text {
  font-size: 1rem;
  font-weight: 600;
  color: #1d1d27;
  transition: color 0.3s ease;
}

.about-feature-item:hover .about-feature-text {
  color: #0073e5;
}

.about-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.modern-about-btn {
  background: linear-gradient(45deg, #0073e5, #00d4ff);
  color: white;
  border: none;
  padding: 15px 35px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 115, 229, 0.3);
}

.modern-about-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #00d4ff, #0073e5);
  transition: left 0.4s ease;
  z-index: -1;
}

.modern-about-btn:hover::before {
  left: 0;
}

.modern-about-btn:hover {
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(0, 115, 229, 0.4);
}

.about-social-links {
  display: flex;
  gap: 15px;
}

.about-social-btn {
  width: 50px;
  height: 50px;
  background: linear-gradient(
    45deg,
    rgba(0, 115, 229, 0.1),
    rgba(0, 212, 255, 0.1)
  );
  border: 2px solid rgba(0, 115, 229, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0073e5;
  text-decoration: none;
  transition: all 0.4s ease;
  backdrop-filter: blur(10px);
}

.about-social-btn:hover {
  background: linear-gradient(45deg, #0073e5, #00d4ff);
  border-color: transparent;
  color: white;
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 10px 25px rgba(0, 115, 229, 0.3);
}

.about-image-container {
  position: relative;
  z-index: 5;
}

.about-image {
  width: 100%;
  height: auto;
  border-radius: 25px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.about-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(0, 115, 229, 0.1),
    rgba(0, 212, 255, 0.1)
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.about-image:hover::before {
  opacity: 1;
}

.about-image:hover {
  transform: scale(1.03) rotateY(2deg);
  box-shadow: 0 35px 70px rgba(0, 115, 229, 0.2);
}

.about-stats {
  position: absolute;
  bottom: -20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.95);
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 115, 229, 0.1);
}

.about-stat-item {
  text-align: center;
  margin-bottom: 10px;
}

.about-stat-item:last-child {
  margin-bottom: 0;
}

.about-stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(45deg, #0073e5, #00d4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 5px;
}

.about-stat-label {
  font-size: 0.8rem;
  color: #666;
  font-weight: 600;
}

/* MEJORAS ESPECÍFICAS PARA MÓVILES - ABOUT */
@media (max-width: 768px) {
  .modern-about-container {
    padding: 40px 20px;
    margin: 20px 0;
    border-radius: 20px;
  }

  .about-title {
    font-size: 2rem;
    line-height: 1.2;
  }

  .about-description {
    font-size: 1rem;
    line-height: 1.6;
  }

  .about-features-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .about-feature-item {
    padding: 15px;
    flex-direction: column;
    text-align: center;
  }

  .about-feature-icon {
    margin-right: 0;
    margin-bottom: 10px;
  }

  .about-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }

  .modern-about-btn {
    width: 100%;
    text-align: center;
  }

  .about-social-links {
    justify-content: center;
  }

  .about-stats {
    position: static;
    margin-top: 20px;
  }

  .about-floating-element {
    display: none;
  }
}

@media (max-width: 480px) {
  .about-title {
    font-size: 1.7rem;
  }

  .about-subtitle {
    font-size: 1rem;
    padding-left: 25px;
  }

  .about-subtitle::before {
    width: 15px;
  }

  .about-feature-text {
    font-size: 0.9rem;
  }
}

.modern-newsletter-container {
  position: relative;
  background: linear-gradient(135deg, #0073e5 0%, #1a1a2e 50%, #16213e 100%);
  border-radius: 30px;
  padding: 80px 40px;
  margin: 40px 0;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  align-items: center;
}

.newsletter-animated-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.newsletter-floating-element {
  position: absolute;
  background: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.1),
    rgba(0, 212, 255, 0.1)
  );
  border-radius: 50%;
  animation: newsletterFloat 8s ease-in-out infinite;
}

.newsletter-floating-element:nth-child(1) {
  width: 100px;
  height: 100px;
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}

.newsletter-floating-element:nth-child(2) {
  width: 80px;
  height: 80px;
  top: 70%;
  right: 8%;
  animation-delay: 2s;
}

.newsletter-floating-element:nth-child(3) {
  width: 60px;
  height: 60px;
  bottom: 20%;
  left: 15%;
  animation-delay: 4s;
}

.newsletter-floating-element:nth-child(4) {
  width: 90px;
  height: 90px;
  top: 40%;
  right: 20%;
  animation-delay: 1s;
}

@keyframes newsletterFloat {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg) scale(1);
    opacity: 0.3;
  }
  33% {
    transform: translateY(-20px) rotate(120deg) scale(1.1);
    opacity: 0.6;
  }
  66% {
    transform: translateY(-10px) rotate(240deg) scale(0.9);
    opacity: 0.4;
  }
}

.newsletter-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
      2px 2px at 30px 40px,
      rgba(255, 255, 255, 0.3),
      transparent
    ),
    radial-gradient(1px 1px at 60px 80px, rgba(0, 212, 255, 0.4), transparent),
    radial-gradient(
      1px 1px at 100px 50px,
      rgba(255, 255, 255, 0.2),
      transparent
    ),
    radial-gradient(2px 2px at 140px 90px, rgba(0, 212, 255, 0.3), transparent);
  background-repeat: repeat;
  background-size: 200px 120px;
  animation: newsletterParticlesMove 15s linear infinite;
}

@keyframes newsletterParticlesMove {
  0% {
    transform: translateY(0px) translateX(0px);
  }
  100% {
    transform: translateY(-120px) translateX(-200px);
  }
}

.modern-newsletter-content {
  position: relative;
  z-index: 10;
  width: 100%;
}

.newsletter-title {
  font-size: 3rem;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.newsletter-title::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  animation: newsletterTitleShine 4s ease-in-out infinite;
}

@keyframes newsletterTitleShine {
  0% {
    left: -100%;
  }
  50% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}

.newsletter-title .highlight {
  background: linear-gradient(45deg, #00d4ff, #ffffff, #00d4ff);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: newsletterGradientShift 3s ease-in-out infinite;
}

@keyframes newsletterGradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.newsletter-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  line-height: 1.5;
}

.modern-newsletter-form {
  position: relative;
  max-width: 500px;
}

.newsletter-input-container {
  position: relative;
  margin-bottom: 20px;
}

.modern-newsletter-input {
  width: 100%;
  max-width: 100%;
  padding: 15px 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  resize: none;
  box-sizing: border-box;
  transition: all 0.4s ease;
  backdrop-filter: blur(10px);
}

.modern-newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.modern-newsletter-input:focus {
  outline: none;
  border-color: rgba(0, 212, 255, 0.6);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
  transform: scale(1.02);
}

.newsletter-submit-btn {
  position: relative;
  transform: none;
  right: auto;
  top: auto;
  display: inline-block;
  margin: 20px auto 0 auto;
  width: 60px;
  height: 60px;
  background: linear-gradient(45deg, #00d4ff, #0073e5);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 8px 20px rgba(0, 212, 255, 0.3);
}

.newsletter-submit-btn:hover {
  transform: translateY(-5px) scale(1.1) rotate(10deg);
  box-shadow: 0 15px 30px rgba(0, 212, 255, 0.5);
  background: linear-gradient(45deg, #0073e5, #00d4ff);
}

.newsletter-submit-btn:active {
  transform: translateY(-5px) scale(0.95);
}

.newsletter-image-container {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: center;
  align-items: center;
}

.newsletter-image {
  max-width: 300px;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.newsletter-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(0, 212, 255, 0.1),
    rgba(255, 255, 255, 0.1)
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.newsletter-image:hover::before {
  opacity: 1;
}

.newsletter-image:hover {
  transform: scale(1.05) rotateY(5deg);
  box-shadow: 0 35px 70px rgba(0, 212, 255, 0.4);
}

.newsletter-features {
  display: flex;
  gap: 30px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.newsletter-feature {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

.newsletter-feature i {
  margin-right: 10px;
  color: #00d4ff;
  font-size: 1.1rem;
}

.newsletter-success-message {
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  color: white;
  padding: 15px 25px;
  border-radius: 15px;
  margin-top: 20px;
  backdrop-filter: blur(10px);
  animation: successFadeIn 0.5s ease-out;
}

@keyframes successFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* MEJORAS ESPECÍFICAS PARA MÓVILES - NEWSLETTER */
@media (max-width: 768px) {
  .modern-newsletter-container {
    padding: 40px 20px;
    min-height: auto;
    margin: 20px 0;
    border-radius: 20px;
  }

  .newsletter-title {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 15px;
  }

  .newsletter-subtitle {
    font-size: 1.1rem;
    margin-bottom: 30px;
  }

  .modern-newsletter-form {
    max-width: 100%;
  }

  .newsletter-input-container {
    margin-bottom: 15px;
  }

  .modern-newsletter-input {
    padding: 12px 18px;
    font-size: 0.95rem;
     border-radius: 30px;
  }

  .newsletter-submit-btn {
    width: 50px;
    height: 50px;
    font-size: 1rem;
  }

  .newsletter-features {
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
  }

  .newsletter-feature {
    font-size: 0.9rem;
  }

  .newsletter-floating-element {
    display: none;
  }

  .newsletter-image {
    max-width: 250px;
    margin-top: 5vh;
  }
}

@media (max-width: 480px) {
  .newsletter-title {
    font-size: 1.7rem;
  }

  .newsletter-subtitle {
    font-size: 1rem;
  }

  .modern-newsletter-input {
    padding: 10px 15px;
    font-size: 0.9rem;
  }

  .newsletter-submit-btn {
    width: 45px;
    height: 45px;
  }

  .newsletter-features {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
}

.newsletter-input-container.text-center {
  text-align: center;
}

.newsletter-submit-btn {
  display: inline-block;
  margin-top: 10px;
}

/* SERVICIOS ULTRA OPTIMIZADOS PARA MÓVILES */
.ultra-services-container {
  position: relative;
  background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
  border-radius: 30px;
  padding: 80px 40px;
  margin: 40px 0;
}

.ultra-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  position: relative;
}

.ultra-service-card {
  background: #ffffff;
  border-radius: 25px;
  padding: 40px 30px;
  text-align: center;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 2px solid rgba(0, 115, 229, 0.1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.ultra-service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 115, 229, 0.1);
  border-color: rgba(0, 212, 255, 0.2);
}

.ultra-service-icon {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 30px;
  background: rgba(0, 115, 229, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
  border: 3px solid rgba(0, 115, 229, 0.15);
}

.ultra-service-card:hover .ultra-service-icon {
  background: rgba(0, 115, 229, 0.12);
  border-color: rgba(0, 115, 229, 0.25);
}

.ultra-service-icon img {
  width: 70px;
  height: 70px;
  filter: brightness(1.1);
}

.ultra-service-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1d1d27;
  margin-bottom: 20px;
  transition: color 0.2s ease;
}

.ultra-service-card:hover .ultra-service-title {
  color: #0073e5;
}

.ultra-service-description {
  color: #666;
  line-height: 1.7;
  margin-bottom: 30px;
  font-size: 0.95rem;
}

.ultra-service-btn {
  font-family: "Teko", sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  padding: 15px 40px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
  backdrop-filter: blur(10px);
  display: inline-block;
  background: linear-gradient(45deg, #0073e5, #00d4ff);
  color: white;
  box-shadow: 0 15px 35px rgba(0, 115, 229, 0.3);
}

.ultra-service-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg,
      rgba(255, 255, 255, 0.95),
      rgba(255, 255, 255, 0.85));
  transition: left 0.4s ease;
  z-index: -1;
}

.ultra-service-btn:hover::before {
  left: 0;
}

.ultra-service-btn:hover {
  color: #0073e5;
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(0, 115, 229, 0.4);
  text-decoration: none;
}

.ultra-service-features {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 35px;
  height: 35px;
  background: rgba(0, 115, 229, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(0, 115, 229, 0.2);
}

.ultra-service-features::after {
  content: "★";
  color: #0073e5;
  font-size: 16px;
  font-weight: bold;
}

.ultra-services-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-top: 60px;
  padding: 30px 0;
  border-top: 2px solid rgba(0, 115, 229, 0.1);
}

.ultra-stat-item {
  text-align: center;
  padding: 20px;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(0, 115, 229, 0.1);
  transition: transform 0.2s ease;
}

.ultra-stat-item:hover {
  transform: translateY(-2px);
}

.ultra-stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: #0073e5;
  margin-bottom: 10px;
}

.ultra-stat-label {
  color: #666;
  font-weight: 600;
  font-size: 1rem;
}

/* MEJORAS ESPECÍFICAS PARA MÓVILES - SERVICIOS */
@media (max-width: 768px) {
  .ultra-services-container {
    padding: 40px 20px;
    margin: 20px 0;
    border-radius: 20px;
  }

  .ultra-services-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .ultra-service-card {
    padding: 30px 20px;
    transition: none;
  }

  .ultra-service-card:hover {
    transform: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  }

  .ultra-service-icon {
    width: 100px;
    height: 100px;
  }

  .ultra-service-icon img {
    width: 60px;
    height: 60px;
  }

  .ultra-service-title {
    font-size: 1.2rem;
  }

  .ultra-service-description {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .ultra-service-btn {
    font-size: 1.2rem;
    padding: 12px 30px;
    width: 100%;
    max-width: 250px;
  }

  .ultra-services-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 40px;
  }

  .ultra-stat-number {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .ultra-services-stats {
    grid-template-columns: 1fr;
  }

  .ultra-service-icon {
    width: 80px;
    height: 80px;
  }

  .ultra-service-icon img {
    width: 50px;
    height: 50px;
  }

  .ultra-service-title {
    font-size: 1.1rem;
  }

  .ultra-service-btn {
    font-size: 1.1rem;
    padding: 10px 25px;
  }
}

/* PORTFOLIO OPTIMIZADO PARA MÓVILES */
.modern-portfolio-container {
  position: relative;
  background: linear-gradient(135deg, #0073e5 0%, #1a1a2e 50%, #16213e 100%);
  border-radius: 30px;
  padding: 80px 40px;
  margin: 40px 0;
  overflow: hidden;
  min-height: auto;
}

.portfolio-animated-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.portfolio-floating-element {
  position: absolute;
  background: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.1),
    rgba(0, 212, 255, 0.1)
  );
  border-radius: 50%;
  animation: portfolioFloat 15s ease-in-out infinite;
}

.portfolio-floating-element:nth-child(1) {
  width: 180px;
  height: 180px;
  top: 8%;
  left: 5%;
  animation-delay: 0s;
}

.portfolio-floating-element:nth-child(2) {
  width: 140px;
  height: 140px;
  top: 65%;
  right: 8%;
  animation-delay: 5s;
}

.portfolio-floating-element:nth-child(3) {
  width: 100px;
  height: 100px;
  bottom: 15%;
  left: 12%;
  animation-delay: 10s;
}

.portfolio-floating-element:nth-child(4) {
  width: 120px;
  height: 120px;
  top: 35%;
  right: 20%;
  animation-delay: 2.5s;
}

.portfolio-floating-element:nth-child(5) {
  width: 90px;
  height: 90px;
  bottom: 45%;
  right: 5%;
  animation-delay: 7.5s;
}

.portfolio-floating-element:nth-child(6) {
  width: 110px;
  height: 110px;
  top: 20%;
  left: 25%;
  animation-delay: 12.5s;
}

@keyframes portfolioFloat {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg) scale(1);
    opacity: 0.3;
  }
  20% {
    transform: translateY(-30px) rotate(72deg) scale(1.1);
    opacity: 0.6;
  }
  40% {
    transform: translateY(-50px) rotate(144deg) scale(0.9);
    opacity: 0.4;
  }
  60% {
    transform: translateY(-35px) rotate(216deg) scale(1.05);
    opacity: 0.7;
  }
  80% {
    transform: translateY(-15px) rotate(288deg) scale(0.95);
    opacity: 0.5;
  }
}

.portfolio-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
      2px 2px at 30px 40px,
      rgba(255, 255, 255, 0.3),
      transparent
    ),
    radial-gradient(2px 2px at 70px 80px, rgba(0, 212, 255, 0.4), transparent),
    radial-gradient(
      1px 1px at 110px 50px,
      rgba(255, 255, 255, 0.2),
      transparent
    ),
    radial-gradient(1px 1px at 150px 90px, rgba(0, 212, 255, 0.3), transparent),
    radial-gradient(
      2px 2px at 190px 30px,
      rgba(255, 255, 255, 0.2),
      transparent
    );
  background-repeat: repeat;
  background-size: 220px 120px;
  animation: portfolioParticlesMove 25s linear infinite;
}

@keyframes portfolioParticlesMove {
  0% {
    transform: translateY(0px) translateX(0px);
  }
  100% {
    transform: translateY(-120px) translateX(-220px);
  }
}

.modern-portfolio-content {
  position: relative;
  z-index: 10;
}

.portfolio-section-header {
  text-align: center;
  margin-bottom: 60px;
}

.portfolio-subtitle {
  font-family: "Teko", sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
  position: relative;
  padding-left: 40px;
  display: inline-block;
}

.portfolio-subtitle::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 3px;
  background: linear-gradient(45deg, #00d4ff, #ffffff);
  border-radius: 2px;
}

.portfolio-title {
  font-family: "Teko", sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}

.portfolio-title::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  animation: portfolioTitleShine 4s ease-in-out infinite;
}

@keyframes portfolioTitleShine {
  0% {
    left: -100%;
  }
  50% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}

.portfolio-title .highlight {
  background: linear-gradient(45deg, #00d4ff, #ffffff, #00d4ff);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: portfolioGradientShift 3s ease-in-out infinite;
}

@keyframes portfolioGradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.portfolio-description {
  font-family: "Teko", sans-serif;
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 50px;
  line-height: 1.5;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.portfolio-filter-tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.portfolio-filter-tab {
  font-family: "Teko", sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  padding: 15px 30px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.portfolio-filter-tab::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    rgba(0, 212, 255, 0.3),
    rgba(255, 255, 255, 0.1)
  );
  transition: left 0.4s ease;
  z-index: -1;
}

.portfolio-filter-tab:hover::before,
.portfolio-filter-tab.active::before {
  left: 0;
}

.portfolio-filter-tab:hover,
.portfolio-filter-tab.active {
  background: linear-gradient(
    45deg,
    rgba(0, 212, 255, 0.2),
    rgba(255, 255, 255, 0.1)
  );
  border-color: rgba(0, 212, 255, 0.5);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 212, 255, 0.3);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.portfolio-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 25px;
  overflow: hidden;
  position: relative;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(15px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.portfolio-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 30px 60px rgba(0, 212, 255, 0.3);
  border-color: rgba(0, 212, 255, 0.5);
}

.portfolio-card-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.portfolio-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.portfolio-card:hover .portfolio-card-image img {
  transform: scale(1.1);
}

.portfolio-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(0, 115, 229, 0.9),
    rgba(0, 212, 255, 0.9)
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
}

.portfolio-card:hover .portfolio-image-overlay {
  opacity: 1;
}

.portfolio-view-btn {
  font-family: "Teko", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.portfolio-view-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.6);
  transform: scale(1.05);
  color: white;
  text-decoration: none;
}

.portfolio-card-content {
  padding: 30px;
  color: white;
}

.portfolio-card-title {
  font-family: "Teko", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: white;
  text-align: center;
}

.portfolio-card-description {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 25px;
  text-align: center;
  font-size: 1rem;
}

.portfolio-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 25px;
  justify-content: center;
}

.portfolio-tech-tag {
  background: linear-gradient(
    45deg,
    rgba(0, 212, 255, 0.3),
    rgba(255, 255, 255, 0.2)
  );
  color: white;
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(0, 212, 255, 0.3);
  backdrop-filter: blur(10px);
}

.portfolio-card-stats {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.portfolio-stat-item {
  text-align: center;
}

.portfolio-stat-number {
  font-family: "Teko", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  background: linear-gradient(45deg, #00d4ff, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 5px;
}

.portfolio-stat-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.portfolio-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(15px);
}

.portfolio-modal-content {
  position: relative;
  margin: 3% auto;
  width: 90%;
  max-width: 800px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95),
    rgba(247, 250, 255, 0.95)
  );
  border-radius: 25px;
  padding: 50px;
  border: 1px solid rgba(0, 115, 229, 0.2);
  backdrop-filter: blur(20px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.portfolio-close {
  position: absolute;
  right: 25px;
  top: 25px;
  font-size: 35px;
  font-weight: bold;
  color: #0073e5;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 115, 229, 0.1);
}

.portfolio-close:hover {
  color: white;
  background: linear-gradient(45deg, #0073e5, #00d4ff);
  transform: scale(1.1);
}

.portfolio-modal-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 30px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.portfolio-modal-title {
  font-family: "Teko", sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #0073e5;
  margin-bottom: 20px;
  text-align: center;
}

.portfolio-modal-description {
  color: #666;
  line-height: 1.7;
  font-size: 1.1rem;
  margin-bottom: 30px;
  text-align: center;
}

.portfolio-modal-features {
  background: rgba(0, 115, 229, 0.05);
  border-radius: 15px;
  padding: 25px;
  border: 1px solid rgba(0, 115, 229, 0.1);
}

.portfolio-modal-features h4 {
  font-family: "Teko", sans-serif;
  color: #0073e5;
  margin-bottom: 20px;
  font-size: 1.5rem;
  text-align: center;
}

.portfolio-modal-features ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.portfolio-modal-features li {
  color: #666;
  padding: 10px 15px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  position: relative;
  padding-left: 40px;
  border: 1px solid rgba(0, 115, 229, 0.1);
}

.portfolio-modal-features li::before {
  content: "✓";
  position: absolute;
  left: 15px;
  color: #0073e5;
  font-weight: bold;
  font-size: 1.1rem;
}

/* MEJORAS ESPECÍFICAS PARA MÓVILES - PORTFOLIO */
@media (max-width: 768px) {
  .modern-portfolio-container {
    padding: 40px 20px;
    margin: 20px 0;
    border-radius: 20px;
    min-height: auto;
  }

  .portfolio-title {
    font-size: 2.2rem;
    line-height: 1.2;
  }

  .portfolio-description {
    font-size: 1.1rem;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .portfolio-filter-tabs {
    gap: 10px;
    margin-bottom: 40px;
  }

  .portfolio-filter-tab {
    padding: 12px 20px;
    font-size: 1rem;
  }

  .portfolio-card {
    transition: none;
  }

  .portfolio-card:hover {
    transform: none;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  }

  .portfolio-card-content {
    padding: 20px;
  }

  .portfolio-floating-element {
    display: none;
  }

  .portfolio-modal-content {
    margin: 5% auto;
    padding: 30px 20px;
    width: 95%;
  }
}

@media (max-width: 480px) {
  .portfolio-title {
    font-size: 1.8rem;
  }

  .portfolio-description {
    font-size: 1rem;
  }

  .portfolio-filter-tab {
    padding: 10px 15px;
    font-size: 0.9rem;
  }

  .portfolio-card-title {
    font-size: 1.5rem;
  }

  .portfolio-card-description {
    font-size: 0.9rem;
  }
}

/* FOOTER OPTIMIZADO PARA MÓVILES */
.modern-footer-container {
  position: relative;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #ffffff 100%);
  border-radius: 30px 30px 0 0;
  padding: 80px 40px 40px;
  margin: 40px 0 0 0;
  overflow: hidden;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
}

.footer-animated-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.footer-floating-element {
  position: absolute;
  background: linear-gradient(
    45deg,
    rgba(0, 115, 229, 0.08),
    rgba(0, 212, 255, 0.08)
  );
  border-radius: 50%;
  animation: footerFloat 12s ease-in-out infinite;
}

.footer-floating-element:nth-child(1) {
  width: 150px;
  height: 150px;
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}

.footer-floating-element:nth-child(2) {
  width: 100px;
  height: 100px;
  top: 60%;
  right: 8%;
  animation-delay: 3s;
}

.footer-floating-element:nth-child(3) {
  width: 80px;
  height: 80px;
  bottom: 30%;
  left: 15%;
  animation-delay: 6s;
}

.footer-floating-element:nth-child(4) {
  width: 120px;
  height: 120px;
  top: 35%;
  right: 25%;
  animation-delay: 1.5s;
}

.footer-floating-element:nth-child(5) {
  width: 70px;
  height: 70px;
  bottom: 15%;
  right: 10%;
  animation-delay: 4.5s;
}

@keyframes footerFloat {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg) scale(1);
    opacity: 0.4;
  }
  25% {
    transform: translateY(-25px) rotate(90deg) scale(1.1);
    opacity: 0.7;
  }
  50% {
    transform: translateY(-40px) rotate(180deg) scale(0.9);
    opacity: 0.3;
  }
  75% {
    transform: translateY(-20px) rotate(270deg) scale(1.05);
    opacity: 0.6;
  }
}

.footer-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
      2px 2px at 25px 35px,
      rgba(0, 115, 229, 0.2),
      transparent
    ),
    radial-gradient(1px 1px at 55px 75px, rgba(0, 212, 255, 0.3), transparent),
    radial-gradient(1px 1px at 95px 45px, rgba(0, 115, 229, 0.15), transparent),
    radial-gradient(2px 2px at 135px 85px, rgba(0, 212, 255, 0.25), transparent);
  background-repeat: repeat;
  background-size: 180px 120px;
  animation: footerParticlesMove 20s linear infinite;
}

@keyframes footerParticlesMove {
  0% {
    transform: translateY(0px) translateX(0px);
  }
  100% {
    transform: translateY(-120px) translateX(-180px);
  }
}

.modern-footer-content {
  position: relative;
  z-index: 10;
}

.footer-section-title {
  font-family: "Teko", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #1d1d27;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.footer-section-title::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 115, 229, 0.1),
    transparent
  );
  animation: footerTitleShine 4s ease-in-out infinite;
}

@keyframes footerTitleShine {
  0% {
    left: -100%;
  }
  50% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}

.footer-section-title::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(45deg, #0073e5, #00d4ff);
  border-radius: 2px;
  animation: footerUnderline 3s ease-in-out infinite;
}

@keyframes footerUnderline {
  0%,
  100% {
    width: 60px;
  }
  50% {
    width: 80px;
  }
}

.footer-contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 15px;
  border: 1px solid rgba(0, 115, 229, 0.1);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: #1d1d27;
}

.footer-contact-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 115, 229, 0.05),
    transparent
  );
  transition: left 0.6s ease;
}

.footer-contact-item:hover::before {
  left: 100%;
}

.footer-contact-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 115, 229, 0.15);
  border-color: rgba(0, 212, 255, 0.3);
  color: #0073e5;
  text-decoration: none;
}

.footer-contact-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(45deg, #0073e5, #00d4ff);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  transition: all 0.4s ease;
}

.footer-contact-item:hover .footer-contact-icon {
  transform: scale(1.1) rotate(10deg);
}

.footer-contact-icon i {
  color: white;
  font-size: 1.1rem;
}

.footer-contact-text {
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.footer-logo {
  max-width: 250px;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.footer-logo::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(0, 115, 229, 0.1),
    rgba(0, 212, 255, 0.1)
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.footer-logo:hover::before {
  opacity: 1;
}

.footer-logo:hover {
  transform: scale(1.05) rotateY(5deg);
  box-shadow: 0 25px 50px rgba(0, 115, 229, 0.2);
}

.footer-social-item {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 15px;
  border: 1px solid rgba(0, 115, 229, 0.1);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: #1d1d27;
}

.footer-social-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 115, 229, 0.05),
    transparent
  );
  transition: left 0.6s ease;
}

.footer-social-item:hover::before {
  left: 100%;
}

.footer-social-item:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 115, 229, 0.15);
  border-color: rgba(0, 212, 255, 0.3);
  color: #0073e5;
  text-decoration: none;
}

.footer-social-icon {
  width: 35px;
  height: 35px;
  background: linear-gradient(45deg, #0073e5, #00d4ff);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  transition: all 0.4s ease;
}

.footer-social-item:hover .footer-social-icon {
  transform: scale(1.15) rotate(15deg);
}

.footer-social-icon i {
  color: white;
  font-size: 1rem;
}

.footer-social-text {
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-copyright {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  padding: 25px;
  margin-top: 40px;
  border: 1px solid rgba(0, 115, 229, 0.1);
  position: relative;
  overflow: hidden;
}

.footer-copyright::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(0, 115, 229, 0.02),
    rgba(0, 212, 255, 0.02)
  );
  animation: copyrightGlow 6s ease-in-out infinite;
}

@keyframes copyrightGlow {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.7;
  }
}

.footer-copyright-text {
  color: #1d1d27;
  font-size: 0.95rem;
  margin: 0;
  position: relative;
  z-index: 2;
}

.footer-copyright-link {
  color: #0073e5;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
}

.footer-copyright-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(45deg, #0073e5, #00d4ff);
  transition: width 0.3s ease;
}

.footer-copyright-link:hover::after {
  width: 100%;
}

.footer-copyright-link:hover {
  color: #00d4ff;
  text-decoration: none;
}

/* MEJORAS ESPECÍFICAS PARA MÓVILES - FOOTER */
@media (max-width: 768px) {
  .modern-footer-container {
    padding: 40px 20px 30px;
    margin: 20px 0 0 0;
    border-radius: 20px 20px 0 0;
  }

  .footer-section-title {
    font-size: 1.4rem;
  }

  .footer-logo {
    max-width: 200px;
  }

  .footer-floating-element {
    display: none;
  }

  .footer-contact-item,
  .footer-social-item {
    justify-content: flex-start;
    padding: 12px 15px;
  }

  .footer-contact-icon,
  .footer-social-icon {
    width: 35px;
    height: 35px;
    margin-right: 10px;
  }

  .footer-contact-text,
  .footer-social-text {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .footer-section-title {
    font-size: 1.2rem;
  }

  .footer-copyright-text {
    font-size: 0.8rem;
    text-align: center;
  }

  .footer-logo {
    max-width: 150px;
  }

  .footer-contact-item,
  .footer-social-item {
    flex-direction: column;
    text-align: center;
    padding: 15px;
  }

  .footer-contact-icon,
  .footer-social-icon {
    margin-right: 0;
    margin-bottom: 8px;
  }
}

/* OPTIMIZACIONES GENERALES PARA MÓVILES */
@media (max-width: 768px) {
  /* Eliminar animaciones costosas en móviles */
  .hero-floating-element,
  .about-floating-element,
  .newsletter-floating-element,
  .portfolio-floating-element,
  .footer-floating-element {
    display: none !important;
  }

  /* Reducir efectos de partículas */
  .hero-particles,
  .about-particles,
  .newsletter-particles,
  .portfolio-particles,
  .footer-particles {
    opacity: 0.3;
    animation: none;
  }

  /* Simplificar transiciones */
  * {
    transition-duration: 0.2s !important;
  }

  /* Mejorar rendimiento de scroll */
  body {
    -webkit-overflow-scrolling: touch;
  }

  /* Optimizar imágenes */
  img {
    max-width: 100%;
    height: auto;
  }
}

/* Eliminar animaciones para usuarios con preferencias reducidas */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* Optimización adicional: forzar aceleración por hardware */
.ultra-service-card,
.ultra-service-icon,
.ultra-service-btn,
.ultra-stat-item,
.portfolio-card,
.modern-hero-btn,
.modern-about-btn,
.newsletter-submit-btn {
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Estilos base del template original */
:root {
  --primary: #0074f0;
  --secondary: #4777f5;
  --light: #f7faff;
  --dark: #1d1d27;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Heebo", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #888;
  background-color: #f3f6ff;
}

.container-xxl {
  width: 100%;
  padding-right: 0.75rem;
  padding-left: 0.75rem;
  margin-right: auto;
  margin-left: auto;
  max-width: 1320px;
}

.container-fluid {
  width: 100%;
  padding-right: 0.75rem;
  padding-left: 0.75rem;
  margin-right: auto;
  margin-left: auto;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-top: 0;
  margin-right: -0.75rem;
  margin-left: -0.75rem;
}

.col-12 {
  flex: 0 0 auto;
  width: 100%;
  padding-right: 0.75rem;
  padding-left: 0.75rem;
}

.col-md-6 {
  flex: 0 0 auto;
  width: 50%;
  padding-right: 0.75rem;
  padding-left: 0.75rem;
}

.align-items-center {
  align-items: center !important;
}

.text-center {
  text-align: center !important;
}

.mb-2 {
  margin-bottom: 0.5rem !important;
}

.my-5 {
  margin-top: 3rem !important;
  margin-bottom: 3rem !important;
}

.px-0 {
  padding-right: 0 !important;
  padding-left: 0 !important;
}

/* Estilos del newsletter del template original */
.modern-newsletter-container {
  position: relative;
  background: linear-gradient(135deg, #0073e5 0%, #1a1a2e 50%, #16213e 100%);
  border-radius: 30px;
  padding: 80px 40px;
  margin: 40px 0;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  align-items: center;
}

.newsletter-animated-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.newsletter-floating-element {
  position: absolute;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(0, 212, 255, 0.1));
  border-radius: 50%;
  animation: newsletterFloat 8s ease-in-out infinite;
}

.newsletter-floating-element:nth-child(1) {
  width: 100px;
  height: 100px;
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}

.newsletter-floating-element:nth-child(2) {
  width: 80px;
  height: 80px;
  top: 70%;
  right: 8%;
  animation-delay: 2s;
}

.newsletter-floating-element:nth-child(3) {
  width: 60px;
  height: 60px;
  bottom: 20%;
  left: 15%;
  animation-delay: 4s;
}

.newsletter-floating-element:nth-child(4) {
  width: 90px;
  height: 90px;
  top: 40%;
  right: 20%;
  animation-delay: 1s;
}

@keyframes newsletterFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg) scale(1);
    opacity: 0.3;
  }
  33% {
    transform: translateY(-20px) rotate(120deg) scale(1.1);
    opacity: 0.6;
  }
  66% {
    transform: translateY(-10px) rotate(240deg) scale(0.9);
    opacity: 0.4;
  }
}

.newsletter-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(2px 2px at 30px 40px, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1px 1px at 60px 80px, rgba(0, 212, 255, 0.4), transparent),
    radial-gradient(1px 1px at 100px 50px, rgba(255, 255, 255, 0.2), transparent),
    radial-gradient(2px 2px at 140px 90px, rgba(0, 212, 255, 0.3), transparent);
  background-repeat: repeat;
  background-size: 200px 120px;
  animation: newsletterParticlesMove 15s linear infinite;
}

@keyframes newsletterParticlesMove {
  0% {
    transform: translateY(0px) translateX(0px);
  }
  100% {
    transform: translateY(-120px) translateX(-200px);
  }
}

.modern-newsletter-content {
  position: relative;
  z-index: 10;
  width: 100%;
}

.newsletter-title {
  font-size: 3rem;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.newsletter-title .highlight {
  background: linear-gradient(45deg, #00d4ff, #ffffff, #00d4ff);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: newsletterGradientShift 3s ease-in-out infinite;
}

@keyframes newsletterGradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.newsletter-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  line-height: 1.5;
}

.modern-newsletter-form {
  position: relative;
  max-width: 500px;
}

.newsletter-input-container {
  position: relative;
  margin-bottom: 20px;
}

.modern-newsletter-input {
  width: 100%;
  max-width: 100%;
  padding: 15px 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  resize: none;
  box-sizing: border-box;
  transition: all 0.4s ease;
  backdrop-filter: blur(10px);
}

.modern-newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.modern-newsletter-input:focus {
  outline: none;
  border-color: rgba(0, 212, 255, 0.6);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
  transform: scale(1.02);
}

.message-textarea {
  border-radius: 20px !important;
  min-height: 100px;
  resize: vertical;
}

.newsletter-submit-btn {
  position: relative;
  transform: none;
  right: auto;
  top: auto;
  display: inline-block;
  margin: 20px auto 0 auto;
  width: 60px;
  height: 60px;
  background: linear-gradient(45deg, #00d4ff, #0073e5);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 8px 20px rgba(0, 212, 255, 0.3);
}

.newsletter-submit-btn:hover {
  transform: translateY(-5px) scale(1.1) rotate(10deg);
  box-shadow: 0 15px 30px rgba(0, 212, 255, 0.5);
  background: linear-gradient(45deg, #0073e5, #00d4ff);
}

.newsletter-submit-btn:active {
  transform: translateY(-5px) scale(0.95);
}

.newsletter-features {
  display: flex;
  gap: 30px;
  margin-top: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter-feature {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

.newsletter-feature i {
  margin-right: 10px;
  color: #00d4ff;
  font-size: 1.1rem;
}

.newsletter-image {
  max-width: 300px;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.newsletter-image:hover {
  transform: scale(1.05) rotateY(5deg);
  box-shadow: 0 35px 70px rgba(0, 212, 255, 0.4);
}

/* Estilos específicos para el selector de teléfono */
.phone-input-wrapper {
  display: flex;
  position: relative;
}

.country-selector {
  position: relative;
  z-index: 100;
}

.country-selector-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 80px;
  padding: 15px 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-right: none;
  border-radius: 50px 0 0 50px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.4s ease;
  backdrop-filter: blur(10px);
}

.country-selector-btn:hover,
.country-selector-btn:focus {
  outline: none;
  border-color: rgba(0, 212, 255, 0.6);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
}

.country-placeholder {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.country-selected {
  display: flex;
  align-items: center;
  color: white !important;
}

.country-flag {
  font-size: 1.2rem;
  margin-right: 8px;
}

.country-code {
  font-weight: 600;
  font-family: monospace;
}

.country-arrow {
  margin-left: 10px;
  transition: transform 0.3s ease;
  font-size: 0.8rem;
}

.country-selector.open .country-arrow {
  transform: rotate(180deg);
}

.phone-number-input {
  flex: 1;
  border-radius: 0 50px 50px 0 !important;
  border-left: none !important;
}

.country-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 5px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  max-height: 300px;
  overflow: hidden;
  display: none;
  z-index: 1000;
}

.country-dropdown.show {
  display: block;
  animation: dropdownFadeIn 0.3s ease-out;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.country-search-container {
  position: relative;
  padding: 15px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.country-search-icon {
  position: absolute;
  left: 25px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  font-size: 0.9rem;
}

.country-search {
  width: 100%;
  padding: 10px 15px 10px 35px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.country-search:focus {
  outline: none;
  border-color: #0073e5;
  box-shadow: 0 0 10px rgba(0, 115, 229, 0.2);
}

.country-search::placeholder {
  color: #999;
}

.country-list {
  max-height: 200px;
  overflow-y: auto;
}

.country-item {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.country-item:hover {
  background: rgba(0, 115, 229, 0.1);
}

.country-item-flag {
  font-size: 1.1rem;
  margin-right: 12px;
  width: 20px;
}

.country-item-name {
  flex: 1;
  color: #333;
  font-weight: 500;
  font-size: 0.9rem;
}

.country-item-code {
  color: #666;
  font-family: monospace;
  font-size: 0.85rem;
  font-weight: 600;
}

.no-countries {
  padding: 20px;
  text-align: center;
  color: #999;
  font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
  .modern-newsletter-container {
    padding: 40px 20px;
    min-height: auto;
    margin: 20px 0;
    border-radius: 20px;
  }

  .newsletter-title {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 15px;
  }

  .newsletter-subtitle {
    font-size: 1.1rem;
    margin-bottom: 30px;
  }

  .modern-newsletter-form {
    max-width: 100%;
  }

  .newsletter-input-container {
    margin-bottom: 15px;
  }

  .modern-newsletter-input {
    padding: 12px 18px;
    font-size: 0.95rem;
    border-radius: 30px;
  }

  .phone-input-wrapper {
    flex-direction: column;
  }

  .country-selector-btn {
    border-radius: 30px;
    border-right: 2px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 10px;
    min-width: 100%;
  }

  .phone-number-input {
    border-radius: 30px !important;
    border-left: 2px solid rgba(255, 255, 255, 0.2) !important;
  }

  .newsletter-submit-btn {
    width: 50px;
    height: 50px;
    font-size: 1rem;
  }

  .newsletter-features {
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-direction: column;
    align-items: center;
  }

  .newsletter-feature {
    font-size: 0.9rem;
  }

  .newsletter-floating-element {
    display: none;
  }

  .newsletter-image {
    max-width: 250px;
    margin-top: 20px;
  }

  .col-md-6 {
    width: 100%;
  }

  .row {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .newsletter-title {
    font-size: 1.7rem;
  }

  .newsletter-subtitle {
    font-size: 1rem;
  }

  .modern-newsletter-input {
    padding: 10px 15px;
    font-size: 0.9rem;
  }

  .country-selector-btn {
    padding: 12px 15px;
    font-size: 0.9rem;
    min-width: 100%;
  }

  .newsletter-submit-btn {
    width: 45px;
    height: 45px;
  }
}

/* === Modal AS (Aires Soft) === */
.as-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  z-index: 99999;
}

.as-modal {
  width: min(520px, 92vw);
  background: linear-gradient(135deg, rgba(255,255,255,.95), rgba(255,255,255,.88));
  border-radius: 20px;
  padding: 28px 22px;
  border: 1px solid rgba(0, 212, 255, 0.25);
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  position: relative;
  text-align: center;
}

.as-modal-icon {
  width: 64px; height: 64px; line-height: 64px;
  margin: 0 auto 10px auto;
  border-radius: 50%;
  background: linear-gradient(45deg, #00d4ff, #0073e5);
  color: #fff; font-weight: 800; font-size: 1.6rem;
  box-shadow: 0 10px 25px rgba(0, 212, 255, .35);
}

.as-modal-title {
  margin: 6px 0 8px 0;
  font-size: 1.35rem;
  color: var(--dark);
  font-weight: 700;
}

.as-modal-message {
  color: #555;
  line-height: 1.6;
  margin: 0 8px 16px 8px;
}

.as-modal-btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: linear-gradient(45deg, #00d4ff, #0073e5);
  color: #fff; font-weight: 600;
  box-shadow: 0 10px 24px rgba(0, 212, 255, 0.30);
  transition: transform .2s ease;
}
.as-modal-btn:hover { transform: translateY(-2px); }

.as-modal-close {
  position: absolute;
  top: 8px; right: 10px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 0; background: rgba(0,0,0,.05);
  color: #333; font-size: 1.2rem; cursor: pointer;
}

.as-modal--success .as-modal-icon { background: linear-gradient(45deg, #22c55e, #16a34a); }
.as-modal--error .as-modal-icon { background: linear-gradient(45deg, #ef4444, #dc2626); }


/* === HACER TODA LA CARD CLICKEABLE === */
.full-card-link {
  position: absolute;
  inset: 0;
  z-index: 5;
  text-decoration: none;
  background: transparent;
}


/* Fix para móviles: Calendly arriba, imagen abajo */
@media (max-width: 768px) {
  #newsletter .row {
    flex-direction: column !important;
  }

  #newsletter .col-md-6 {
    width: 100% !important;
    max-width: 100% !important;
  }

  .newsletter-image-container {
    margin-top: 25px !important;
  }

  .calendly-inline-widget {
    height: 750px !important; /* evita corte en móvil */
  }
}
/* Bordes redondeados para Calendly */
.calendly-rounded {
  border-radius: 20px;
  overflow: hidden; /* SUPER IMPORTANTE */
}

/* Asegura que el iframe interno respete el borde */
.calendly-rounded .calendly-inline-widget iframe {
  border-radius: 20px !important;
}
