body {
  margin: 0;
  background-color: #fff;
}

/*   --- PRELOADER ---   */
/* Fondo blanco pantalla completa */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  flex-direction: column;
}

/* Barra superior con degradado morado-azul */
.progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 5px;
  width: 0%;
  background: linear-gradient(90deg, #7f00ff, #00c6ff);
  animation: loadProgress 2.5s ease-out forwards;
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}

/* Logo centrado */
.logo-container {
  text-align: center;
}

.logo {
  width: 140px;
  height: auto;
  animation: fadeIn 1.2s ease-in-out;
}

/* Animaciones */
@keyframes loadProgress {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}




/*Hero Section*/
.servicio-hero {
  background: #ffffff;
  padding: 6rem 3rem; /* Más espacio para separar esquinas del borde */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-top: 80px;
  box-sizing: border-box;
}

/* Líneas degradadas en esquinas */
.servicio-hero::before,
.servicio-hero::after {
  content: "";
  position: absolute;
  width: 60px;
  height: 60px;
  z-index: 1;
  pointer-events: none;
  box-sizing: border-box;
}

.servicio-hero::before {
  top: 2rem; /* Separación del borde */
  left: 2rem;
  border-top: 4px solid;
  border-left: 4px solid;
  border-image-source: linear-gradient(to bottom right, #6A0DAD, #007BFF);
  border-image-slice: 1;
}

.servicio-hero::after {
  bottom: 2rem;
  right: 2rem;
  border-bottom: 4px solid;
  border-right: 4px solid;
  border-image-source: linear-gradient(to top left, #6A0DAD, #007BFF);
  border-image-slice: 1;
}

.servicio-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 3rem;
  max-width: 1200px;
  width: 100%;
  animation: fadeIn 1s ease-in-out;
}

.servicio-texto {
  flex: 1.5; /* Más espacio para el texto */
}

.servicio-titulo {
  font-size: 4rem;
  font-weight: bold;
  position: relative;
  display: inline-block;
  background: linear-gradient(to right, #6A0DAD, #007BFF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4rem; /* ← aumentado para más espacio */
}

.servicio-titulo::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 0;
  width: 100%;
  height: 25px;
  background-image: url('../img/subrayado-onda.svg');
  background-repeat: no-repeat;
  background-size: contain;
  animation: subrayarOnda 1.2s ease-out forwards;
  opacity: 0;
  transform-origin: left;
}

/* Animación de aparición del SVG decorativo */
@keyframes subrayarOnda {
  0% {
    transform: scaleX(0);
    opacity: 0;
  }
  100% {
    transform: scaleX(1);
    opacity: 1;
  }
}

.servicio-descripcion {
  font-size: 1.2rem;
  line-height: 1.7;
  color: #333;
}

.servicio-icono {
  flex: 1; /* Menos espacio para la imagen */
  display: flex;
  justify-content: center;
  align-items: center;
}

.servicio-icono img {
  width: 230px;
  max-width: 100%;
  animation: slideInRight 2.5s ease;
}

@media (max-width: 768px) {
  .servicio-container {
    flex-direction: column;
    text-align: center;
  }

  .servicio-icono {
    margin-top: 2rem;
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInRight {
  from { transform: translateX(50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}





/* Sección de servicios */
.sec_services-section {
  background-color: #0b0b1e;
  padding: 60px 20px;
  text-align: center;
  color: #fff;
}

.sec_services-title {
  font-size: 2.5em;
  color: #fff;
  margin-bottom: 40px;
}

.sec_services-title span {
  color: #00f0ff;
}

.sec_services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  justify-content: center;
}

.sec_service-card {
  background: #1c1c3a;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.sec_service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px #9f00ff;
}

.sec_service-card i {
  font-size: 2.5em;
  margin-bottom: 15px;
  color: #00f0ff;
}

.sec_service-card h3 {
  margin-bottom: 10px;
  color: #9f00ff;
}

.sec_service-card p {
  font-size: 0.95em;
  margin-bottom: 15px;
  color: #ddd;
}

.sec_service-btn {
  background: #00f0ff;
  color: #0b0b1e;
  padding: 10px 20px;
  border: none;
  border-radius: 25px;
  font-weight: bold;
  transition: 0.3s;
}

.sec_service-btn:hover {
  background: #9f00ff;
  color: white;
}

/* Modales */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(3px);
  justify-content: center;
  align-items: center;
}

/* Modal refinado con letra más pequeña */
.modal-content {
  background: #1c1c3a;
  color: white;
  padding: 20px;
  border-radius: 18px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 0 20px #00f0ff;
  position: relative;
  font-size: 13px; /* letra más pequeña */
  line-height: 1.5;
  overflow-y: auto;
  max-height: 90vh;
}

/* Título del modal */
.modal-content h2 {
  color: #9f00ff;
  margin-bottom: 10px;
  font-size: 18px;
}

/* Botón de cierre */
.modal-content .close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  color: #fff;
  cursor: pointer;
}

/* Enlace estilo CTA */
.modal-link {
  display: inline-block;
  margin-top: 15px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: #00f0ff;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
}

.modal-link:hover {
  color: #9f00ff;
  border-bottom: 1px solid #9f00ff;
}



.sec_services-title {
  font-size: 2.5em;
  color: #fff;
  margin-bottom: 20px;
}

.sec_services-title span {
  color: #00f0ff;
}

.sec_services-outro {
  max-width: 1000px;
  margin: 0 auto 40px;
  color: #ccc;
  font-size: 1.1em;
  line-height: 1.7;
  padding: 0 15px;
}

.sec_services-outro strong {
  color: #9f00ff;
}

.sec_services-button-container {
  margin-top: 40px;
  text-align: center;
}

.sec_services-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: #0b0b1e;
  padding: 12px 28px;
  font-size: 1.05em;
  font-weight: bold;
  border: 2px solid transparent;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.sec_services-button::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 30px;
  padding: 2px;
  background: linear-gradient(135deg, #9f00ff, #00f0ff);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  z-index: -1;
}

.sec_services-button:hover {
  background: linear-gradient(135deg, #9f00ff, #00f0ff);
  color: #fff;
}

.sec_services-button i {
  font-size: 1.2em;
}


/* Máximo 3 columnas en pantallas grandes */
@media screen and (min-width: 992px) {
  .sec_services-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 2 columnas en tablets medianos */
@media screen and (max-width: 991px) and (min-width: 600px) {
  .sec_services-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 1 columna en celulares */
@media screen and (max-width: 599px) {
  .sec_services-container {
    grid-template-columns: 1fr;
  }
}






  /* Seccion nuestra metodologia*/

/* ¿Por qué elegirnos? */

.elegirnos {
  padding: 60px 20px;
  background-color: #f7f7f7;
  text-align: center;
}

.elegirnos-title {
  font-size: 2.8rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  font-family: 'Poppins', sans-serif;
}


.elegirnos-contenido {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.elegirnos-img {
  max-width: 100%;
  width: 800px;
  height: auto;
  transition: transform 0.3s ease;
}

.elegirnos-img:hover {
  transform: scale(1.02);
}






/* SECCIÓN: Proceso de trabajo  */

.proceso-trabajo {
  padding: 60px 20px;
  background-color: #f9f9ff;
  text-align: center;
}

.titulo-proceso {
  font-size: 2.8rem;
  margin-bottom: 40px;
}

.pasos-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.paso {
  background: white;
  border: 2px solid #5C4B91;
  border-radius: 16px;
  padding: 18px;
  width: 280px;
  height: 220px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.paso.show {
  opacity: 1;
  transform: translateY(0);
}

.paso.active {
  transform: scale(1.05);
  border-color: #2980b9;
  box-shadow: 0 0 20px rgba(41, 128, 185, 0.5);
}

.numero {
  font-weight: bold;
  font-size: 1.2rem;
  color: #5C4B91;
}

.icono {
  font-size: 2rem;
  margin: 10px 0;
}

.flecha-emoji {
  font-size: 2rem;
  margin: 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}


@media screen and (max-width: 768px) {
  .flecha-emoji {
    display: none;
  }
}





/* SECCIÓN: SABIAS QUE  */

/* CSS (secc-sq.css) */
.secc_sq_container {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  color: white;
  padding: 60px 20px;
  text-align: center;
  position: relative;
  overflow-x: hidden;
}

.secc_sq_title {
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #9f86ff;
}

.secc_sq_facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  position: relative;
}

.secc_sq_fact {
  flex: 1 1 250px;
  max-width: 220px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 20px;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Estilo escalonado descendente */
.secc_sq_fact:nth-child(1) { margin-top: 0px; }
.secc_sq_fact:nth-child(2) { margin-top: 40px; }
.secc_sq_fact:nth-child(3) { margin-top: 80px; }
.secc_sq_fact:nth-child(4) { margin-top: 120px; }
.secc_sq_fact:nth-child(5) { margin-top: 160px; }

.secc_sq_fact:hover {
  transform: translateY(-10px);
}

.secc_sq_circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 8px solid #5a00e0;
  margin: 0 auto 20px;
  position: relative;
  background: conic-gradient(#5a00e0 0deg, #000 0deg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
}

.secc_sq_counter {
  font-size: 2rem;
  color: #00bfff;
  margin-bottom: 15px;
}

.secc_sq_icon {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #ffffff;
  animation: iconPulse 2s infinite;
}

@keyframes iconPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.secc_sq_final_title {
  font-size: 2rem;
  margin: 50px 0 20px;
  color: #ffffff;
}

.secc_sq_cta {
  background: linear-gradient(to right, #6a00ff, #007bff);
  color: white;
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s, transform 0.3s;
  display: inline-block;
  font-size: 1rem;
  transform: scale(1);
}

.secc_sq_cta:hover {
  background: linear-gradient(to right, #007bff, #6a00ff);
  transform: scale(1.05);
}

/* Animations */
.secc_sq_anim {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

.secc_sq_anim.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fillCircle {
  from {
    background: conic-gradient(#5a00e0 0deg, #000 0deg);
  }
  to {
    background: conic-gradient(#5a00e0 360deg, #000 360deg);
  }
}

@keyframes secc_sq_floating {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

.secc_sq_icon_floating {
  animation: secc_sq_floating 3s ease-in-out infinite;
  display: inline-block;
}


/* Parallax efecto visual sutil */
.secc_sq_fact::before {
  content: "";
  position: absolute;
  top: -50px;
  left: -50px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(255,255,255,0.08), transparent 70%);
  z-index: 0;
  pointer-events: none;
  animation: floatLight 10s infinite linear;
}

@keyframes floatLight {
  0% { transform: translate(0, 0); }
  50% { transform: translate(20px, 20px); }
  100% { transform: translate(0, 0); }
}

@media (max-width: 1024px) {
  .secc_sq_fact {
    flex: 1 1 calc(50% - 40px);
  }
}

@media (max-width: 768px) {
  .secc_sq_fact {
    flex: 1 1 100%;
    max-width: 100%;
    margin-top: 30px !important;
  }
}






/* SECCIÓN: PORTAFOLIO  */

.secc_pf_container {
  padding: 80px 20px;
  background: linear-gradient(145deg, #0f0f1c, #191931);
  color: white;
}

.secc_pf_header {
  text-align: center;
  margin-bottom: 50px;
}

.secc_pf_title {
  font-size: 2.5rem;
  color: #8a6cff;
}

.secc_pf_subtitle {
  font-size: 1.2rem;
  color: #cccccc;
  margin-top: 10px;
}

.secc_pf_grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  grid-auto-rows: 280px;
  gap: 20px;
}

.secc_pf_item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.secc_pf_item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.secc_pf_item:hover img {
  transform: scale(1.1);
}

.secc_pf_overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 15, 30, 0.8);
  color: #ffffff;
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.secc_pf_item:hover .secc_pf_overlay {
  transform: translateY(0);
}

.secc_pf_overlay h3 {
  margin: 0 0 5px;
  font-size: 1.2rem;
  color: #9d86ff;
}

.secc_pf_overlay p {
  margin: 0;
  font-size: 0.95rem;
  color: #eaeaea;
}

.secc_pf_hidden {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.secc_pf_visible {
  opacity: 1;
  transform: translateY(0);
}






/* FORMULARIO  */

#formulario-cotizacion {
  background: #edf0f7;
  padding: 40px 0;
  font-family: 'Poppins', sans-serif;
}

#formulario-cotizacion .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 20px;
  max-width: 1200px;
  margin: auto;
}

.left-panel {
  flex: 1 1 40%;
  padding: 20px;
  text-align: center;
}

.left-panel h1 {
  font-size: 32px;
  color: #4b2e83;
  font-weight: 700;
}

.left-panel p {
  font-size: 18px;
  margin-bottom: 20px;
}

.side-image {
  width: 100%;
  border-radius: 12px;
  margin-top: 10px;
}

.right-panel {
  flex: 1 1 50%;
  background: #fff;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  max-width: 600px;
}

.steps {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 25px;
}

.step {
  text-align: center;
}

.step .circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ccc;
  border: 2px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto;
  color: white;
  transition: 0.3s;
}

.step.active .circle {
  background: white;
  color: #4b2e83;
  border: 2px solid #4b2e83;
}

.step.completed .circle {
  background: #4b2e83;
  color: white;
  border-color: #4b2e83;
}

.connector {
  font-size: 20px;
  color: #999;
  margin: 0 10px;
}

.form-step {
  display: none;
  flex-direction: column;
  gap: 10px;
}

.form-step.active {
  display: flex;
}

input,
select {
  padding: 10px;
  font-size: 16px;
  border-radius: 8px;
  border: 2px solid transparent;
  background-color: #f0f0f5;
  transition: border 0.3s;
}

input:invalid:focus,
select:invalid:focus {
  border: 2px solid red;
}

label {
  font-weight: 600;
  margin-top: 10px;
}

.buttons {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
}

button {
  background: linear-gradient(135deg, #4b2e83, #5a6dee);
  color: white;
  border: none;
  padding: 10px 20px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

button:hover {
  background: linear-gradient(135deg, #5a6dee, #4b2e83);
}

@media (max-width: 768px) {
  .container {
    flex-direction: column;
    padding: 20px;
  }

  .buttons {
    flex-direction: column;
    gap: 10px;
  }
}

textarea {
  width: 100%;
  padding: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  border: 2px solid transparent;
  background-color: #f0f0f5;
  border-radius: 8px;
  resize: vertical;
  transition: border 0.3s;
}


textarea:focus {
  font-family: 'Poppins', sans-serif;
  border-color: black;
  outline: none;
}





/*   --- BOTON WHATSAPP ---   */

/* Botón flotante */
.chat-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  color: white;
  font-size: 28px; /* antes 24px */
  border-radius: 50%;
  width: 70px;     /* antes 60px */
  height: 70px;    /* antes 60px */
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

/* Chat desplegable */
.chat-popup {
  position: fixed;
  bottom: 100px;   /* ajustado por el nuevo tamaño del botón */
  right: 20px;
  width: 320px;    /* antes 300px */
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  display: none;
  flex-direction: column;
  z-index: 1000;
  font-family: sans-serif;
  opacity: 0;
}

.chat-message {
  background-color: #f1f1f1;
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 10px;
  font-size: 14px;
  color: #333;
}

/* Encabezado del chat */
.chat-header {
  display: flex;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid #ddd;
}

.chat-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 12px;
}

/* Cuerpo del chat */
.chat-body {
  padding: 15px;
}

.chat-body p {
  margin-bottom: 10px;
}

/* Enlace de WhatsApp */
.whatsapp-link {
  background-color: #25D366;
  color: white;
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 8px;
  display: inline-block;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.whatsapp-link i {
  margin-right: 8px;
}

.whatsapp-link:hover {
  background-color: #1ebe5d;
}

/* Animación fade */
.whatsapp-fade-in {
  animation: fadeIn 0.4s ease forwards;
  display: flex !important;
}

.whatsapp-fade-out {
  animation: fadeOut 0.3s ease forwards;
}

@keyframes whatsapp-fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes whatsapp-fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(20px);
  }
}