@font-face {
  font-family: 'Avenir';
  src: url('fonts/Avenir_7.woff2') format('woff2'),
         url('fonts/Avenir_7.woff') format('woff');
  font-weight: 300;
  font-style: normal;
}
html {
  scroll-behavior: smooth; /* Desplazamiento suave */
}

:root {
  --primary-color: #000080;
  --secondary-color: #fff;
  --text-color: #000;
  --text-color2: #fff;
  --hover-color: #cc850a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Avenir', sans-serif;
}

/*-------------- Diseño del cursor ---------------*/
#custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 18px; 
  height: 18px;
  background-color: #06d6a0;
  border-radius: 50%; 
  pointer-events: none; 
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease-out;
  z-index: 10000; 
}

  
/* -------------------------------------------------------------------------
                            Estilo del navbar 
----------------------------------------------------------------------------*/
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--secondary-color); 
  padding: 5px 40px;
  border-bottom: 1px solid white;
  position: relative; 
}
  
/* Logo del navbar */
.navbar .logo img{
    height: 40px;
}

/* Botón de menú */
.menu-toggle {
  display: none; 
  font-size: 1.5rem;
  color:var(--text-color);
  cursor: pointer;
}

  
/* Lista de enlaces */
.nav-links {
  list-style: none;
  display: flex;
  gap: 40px;
}

.nav-links li {
  position: relative; 
}
  
.nav-links li a {
  text-decoration: none;
  color: var(--text-color);
  font-size: 18px;
  transition: color 0.3s ease;
  position: relative; 
}

/* Efecto de resplandor */
.nav-links li a::after {
  content: '';
  position: absolute;
  left: 50%; /* Centra el resplandor */
  bottom: -5px; /* Posiciona debajo del texto */
  width: 0; 
  height: 1.5px; /* Altura del resplandor */
  background: linear-gradient(to right, #03045e, #03045e);
  border-radius: 10px;
  transition: all 0.3s ease; /* Transición para suavizar el efecto */
  transform: translateX(-50%);
}

.nav-links li a:hover::after {
  width: 100%; 
  box-shadow: 0 0 10px #67C0C1; 
}
  
.nav-links li a:hover {
  color: #2B9B93;
}
  
/* -------------------------------------------------------------------------
                            CONTENIDO PRINCIPAL
---------------------------------------------------------------------------- */
.main-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /*display: flex;
  justify-content: space-between;
  align-items: center;*/
  padding: 0px;
  background-color:#f9f9f9;
}
  
/* Lado izquierdo (Texto) */
.content-left {
  flex: 1;
  padding: 40px;
}
  
.content-left .titulo {
  font-size: 72px;
  color:#000080;
}

.content-left .sub{
  font-size: 38px;
  color: var(--text-color);
    
}
  
.content-left p {
  font-size: 16px;
  color: var(--text-color);
  line-height: 1.5;
}
  
/* Estilo para el botón de WhatsApp */
.whatsapp-button {
  display: inline-flex; 
  align-items: center; 
  position: relative; /* Necesario para el pseudo-elemento ::before */
  background: -webkit-linear-gradient(90deg, #010057,#1905ad,#0a0057);                      
  background: linear-gradient(90deg, #010057,#1905ad,#0a0057);
  color: var(--text-color2); 
  text-decoration: none;
  font-size: 16px;
  padding: 10px 20px;
  border: 1px solid #fff;
  border-radius: 15px; 
  margin-top: 20px; 
  overflow: hidden; 
  z-index: 1; 
  transition: all 1s; 
}

/* Efecto de fondo con pseudo-elemento */
.whatsapp-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -40px;
  width: 0%;
  height: 100%;
  background: #5efe55;
  transform: skewX(45deg);
  z-index: -1; 
  transition: all 1s; 
}

/* Hover: Activa el efecto diagonal */
.whatsapp-button:hover::before {
  width: 150%; /* Expande el fondo completamente */
}
  
.whatsapp-button img {
  width: 20px;
  height: 20px;
  margin-right: 10px; 
}
  
/* Lado derecho (Imagen) */
.content-right {
  flex: 1;
  padding: 40px;
  text-align: center;
}
  
.content-right img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}
/* Contenedor de la flecha y luz */
.content-scroll {
  text-align: center;
  margin-top: 0px; 
  grid-column: span 2;
}
.content-scroll .light-effect {
  display: block;
  margin: 0 auto;
  width: 80%; 
  height: auto;
  bottom: 10px; 
}

.content-scroll .scroll-icon {
  display: block;
  margin: 0 auto;
  width: 50px; 
  height: auto;
  cursor: pointer;
  animation: bounce 2s infinite; 
}
.hidden {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease; /* Suaviza la desaparición */
}
/* Animación de rebote */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
      transform: translateY(0);
  }
  40% {
      transform: translateY(-10px);
  }
  60% {
      transform: translateY(-5px);
  }
}

/* -------------------------------------------------------------------------
                                SECCION NOSOTROS
---------------------------------------------------------------------------- */
.section-2 {
  background: -webkit-linear-gradient(90deg, #010057,#1905ad,#0a0057);                      
  background: linear-gradient(90deg, #010057,#1905ad,#0a0057);   
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh; /* La sección ocupará el 80% de la altura del viewport */
  text-align: center;
  color: var(--text-color2);
  font-size: 18px;
  line-height: 1.6; 
}

/* -------------------------------------------------------------------------- 
                            NUESTROS SERVICIOS
----------------------------------------------------------------------------*/
.section-4 {
  display: flex;
  flex-direction: column;
  gap: 40px; 
  padding: 40px;
  background-color: var(--secondary-color);
}

/* Bloques de contenido alternado */
.block {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 100px; 
}

/* Bloques de imagen y texto */
.block-left,
.block-right {
  flex: 1; 
}

.block-left img,
.block-right img {
  max-width: 100%; 
  height: auto;
  border-radius: 10px; 
}

/* Texto del lado derecho e izquierdo */
.block-right .titulo,
.block-left .titulo {
  font-size: 34px;
  color: var(--text-color); 
  margin-bottom: 15px;
}

.block-right ul,
.block-left ul {
  list-style: none;
  padding: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
}

.block-right li {
  position: relative;
  font-size: 16px;
  line-height: 2;
  padding-left: 20px; 
}

.block-right li::before {
  content: counter(item) " ";
  counter-increment: item; 
  position: absolute;
  left: 0; 
  color: var(--primary-color); 
  font-weight: bold;
}

/* Inicializa el contador para la lista */
.block-right ul {
  counter-reset: item;
}

.block-right p,
.block-left p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
}

/* SVG Iconos debajo del h2 */
.block-right .icon,
.block-left .icon {
  display: block; 
  margin: 10px auto 20px; 
  width: 100%; 
  height: 2px; 
  object-fit: cover; 
}

.linea-decorativa {
  width: 100%;
  height: 2px;
  background: #000080; /* Puedes ajustar colores */
  border-radius: 10px;
  margin: 10px auto 20px;
   
}


/*--------------------------------------------------------------------------- 
                        SECCION DE BANNER DE PROMOCIONES 
-----------------------------------------------------------------------------*/
.section-promos {
  background-color: #f9f9f9;
  padding: 60px 20px;
  text-align: center;
}

.promos-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-promos h2 {
  font-size: 2rem;
  color: #002C5C;
  margin-bottom: 10px;
}

.section-promos p {
  font-size: 1rem;
  margin-bottom: 40px;
  color: #333;
}

.banner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.banner-grid img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.banner-grid img:hover {
  transform: scale(1.03);
}


/*------------------------------------------------------------------------- 
                            SECCION DE CONTACTO
---------------------------------------------------------------------------*/
.section-consulta {
    background: #fff;/* Chrome 10-25, Safari 5.1-6 */                          
                                                                                                 
  color: var(--text-color);
}

.consulta-container {
  display: flex;
  max-width: 1200px;
  width: 100%;
  gap: 30px;
}
.consulta-imagen{
  text-align: center;
}

/* Imagen en el lado izquierdo */
.consulta-imagen img {
  width: 70%;
  max-width: 500px;
  height: 100%;
}

/* Contenido en el lado derecho */
.consulta-contenido {
  flex: 1;
}

.consulta-contenido .titulo {
  font-size: 2rem;
  line-height: 1.5;
  margin-bottom: 20px;
}

.consulta-contenido .sofom {
  color:#000080;
}

.consulta-contenido p {
  font-size: 1rem;
  margin-bottom: 30px;
}

/* Estilo del formulario */
.consulta-formulario {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  gap: 20px;
}

input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ccc;
  background: var(--secondary-color);
  color: var(--text-color);
  font-size: 1rem;
}

button {
  background-color: var(--secondary-color); 
  color: var(--primary-color2);
  border: 1px solid #000080;
  padding: 10px 20px;
  font-size: 1rem;
  cursor: pointer;
  /*transition: background-color 0.3s ease;*/
  position: relative;
  transition: all 1s;
  overflow: hidden;
}

button:hover {
  color: #fff; 
}
button::before {
  content: "";
  position: absolute;
  height: 100%;
  width: 0%;
  top: 0;
  left: -40px;
  transform: skewX(45deg);
  background-color: var(--primary-color);
  z-index: -1;
  transition: all 1s;
}
button:hover::before {
  width: 160%;
}

.form-note {
  font-size: 0.8rem;
  color: #ccc;
  text-align: center;
}

/*-------------------- Footer ------------------*/
.footer {
  background: -webkit-linear-gradient(90deg, #010057,#1905ad,#0a0057);                      
  background: linear-gradient(90deg, #010057,#1905ad,#0a0057);  
  color: var(--text-color2);
  display: flex;
  justify-content: center;
  font-family: 'Avenir', sans-serif;
}

.footer-container {
  max-width: 1260px;
  width: 100%;
}

.footer-container .footer-luz{
  text-align: center;
}

.footer-container .light-effect-4{
  width: 80%; 
  display: block;
  margin: 0 auto;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid white;
}

.footer-row:last-child {
  margin-bottom: 0;
  border-bottom: none; 
}

/* Primera fila */
.footer-logo img {
  height: 40px;
  padding:10px;
}

.footer-links {
  display: flex;
  gap: 40px; 
  text-align: center;
  padding:10px;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-color2);
  font-size: 1rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #2B9B93;
}

.footer-redes a {
  margin-right: 15px;
}

.footer-redes img {
  width: 20px;
}

/* Segunda fila */
.footer-info p {
  margin: 0;
  font-size: 0.9rem;
}

.footer-contacto{
  display: flex;
  margin-right: 10px; 
}

.footer-contacto a {
  margin: 0 10px;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--text-color2);
}
.footer-contacto a:hover {
  color: #2B9B93;
}

.footer-contacto img {
  width: 20px;
  margin-right: 0px;
  vertical-align: middle;
}

/* Tercera fila */
.footer-whatsapp {
  display: flex;
  justify-content: center; 
  align-items: center;
}

.scroll-to-top {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: 50%; /* Empuja el ícono hacia la derecha */
  margin-right: auto; /* Asegura que quede centrado */
  width: 34px;
  height: 34px;
  background-color: transparent; 
  border-radius: 50%; 
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.scroll-to-top img {
  width: 44px;
  height: 44px;
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

.scroll-to-top:hover img {
  transform: rotate(180deg) scale(1.2); 
}

.whatsapp-boton {
  display: inline-flex;
  align-items: center;
  position: relative;
  background-color: #7ad865; 
  color: var(--text-color2);
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: bold;
  overflow: hidden; 
  z-index: 1;
  transition: all 1s;
}

/* Efecto de fondo con pseudo-elemento */
.whatsapp-boton::before {
  content: "";
  position: absolute;
  top: 0;
  left: -40px;
  width: 0%;
  height: 100%;
  background-color:  #5efe55;
  transform: skewX(45deg);
  z-index: -1; 
  transition: all 1s;
}

/* Hover: Activa el efecto diagonal */
.whatsapp-boton:hover::before {
  width: 150%;
}

.whatsapp-boton img {
  width: 25px;
  margin-right: 10px;
}

.footer-logo,
.footer-info,
.footer-contacto,
.footer-whatsapp,
.footer-redes {
  padding: 0 30px; 
}

.footer-whatsapp{
  /*padding: 0px 30px 10px 0px;*/
  padding-bottom: 10px;
}

/*---------------- Media Queries para hacer responsive ----------------*/
/*------------------------Nav-------------------*/
@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .nav-links {
    display: none; 
    flex-direction: column;
    gap: 15px; 
    position: absolute;
    top: 60px; 
    right: 20px;
    background-color: #000080;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  }

  .nav-links.show {
    display: flex; 
  }

  .nav-links li a {
    font-size: 16px;
    color: #fff;
  }

  .navbar .menu-toggle {
    display: block;
    font-size: 1.5rem;
    color: #000080;
    cursor: pointer;
  }
}

@media (max-width: 480px) {
  .nav-links li a {
    font-size: 14px; 
  }
}

/*------------------Presentacion-------------------- */
@media (max-width: 768px) {
  .main-content {
    grid-template-columns: 1fr;
  }

  .content-scroll {
    text-align: center;
    margin-top: 20px;
    grid-column: span 1;
  }  
}

@media (max-width: 480px) {
  .content-left .titulo {
    font-size: 2rem;
  }

  .content-left .sub {
    font-size: 1rem;
  }

  .content-left p {
    font-size: 0.8rem;
  }

  .content-right img {
    max-width: 100%;
  }

  .content-scroll .scroll-icon {
    width: 25px;
  }
}

/*------------------- Proceso TuSofom -----------------*/
@media (max-width: 768px) {
  .section-2{
    padding:10px;
    font-size: 16px;
  }
}

@media (max-width: 480px){
  .section-2{
      padding:20px;
    font-size: 12px;
  }
}

/*-------------------- Ventajas --------------------*/
@media (max-width: 768px) {
  .section-3 {
    grid-template-columns: 1fr;
  }

  .section-3 .luz-abajo {
    grid-column: span 1;
    text-align: center;
    margin-bottom: 0px;
  }

  .section-3 .advantages h1 {
    font-size: 20px;
  }

  .section-3 .advantages ul {
    padding: 0;
  }

  .advantages-image {
    text-align: center;
  }

  .advantages-image img {
    max-width: 100%;
    margin: 0 auto;
  }
}

/* Pantallas menores a 480px */
@media (max-width: 480px) {
  .section-3 {
    padding: 0px 10px 0;
  }

  .section-3 .advantages p {
    font-size: 1.8rem;
  }

  .section-3 li {
    font-size: 14px;
    padding-left: 20px;
  }

  .section-3 .advantages-icon {
    width: 100%;
  }

  .advantages-image img {
    max-width: 100%;
  }
}

/*------------ Soporte legal, comisiones y resultados -------*/
@media (max-width: 768px){
  .block {
    flex-direction: column; 
    align-items: center; 
    gap: 20px; 
  }

  .block-left,
  .block-right {
    flex: unset; 
    width: 100%; 
  }
  
  .block-left,
  .block-right .titulo{
    font-size: 1.8rem;
  }

  .block-left {
    order: 1; 
  }

  .block-right {
    order: 2; 
  }

  .block-left-2 {
    order: 2; 
  }

  .block-right-2 {
    order: 1; 
  }
}

/*------------------ Preguntas --------------------*/
@media (max-width: 768px){
  .section-faqs .titulo{
    font-size: 1.8rem;
  }
  .section-faqs .faqs-icon{
    width: 100%;
  }
}

/*---------------------Formulario-------------------*/
@media (max-width: 768px) {
  .consulta-container {
    flex-direction: column; 
    gap: 20px; 
  }

  .consulta-imagen {
    order: 2; 
  }

  .consulta-imagen img {
    width: 100%;
    max-width: 300px; 
    height: 100%; 
    display: block;
    margin: 0 auto;
  }
  .consulta-contenido {
    order: 1;
    padding: 20px;
    text-align: center;
  }

  .consulta-contenido h1 {
    font-size: 1.8rem; 
  }

  .consulta-contenido p {
    font-size: 0.9rem;
  }

  .form-group {
    flex-direction: column; 
  }

  input {
    font-size: 0.9rem; 
  }

  button {
    font-size: 0.9rem; 
  }
}


@media (max-width: 480px) {
  

  .consulta-contenido h1 {
    font-size: 1.5rem; 
  }

  .consulta-contenido p {
    font-size: 0.8rem; 
  }

  .consulta-imagen img {
    width: 100%; 
    max-width: 300px; 
    height: 100%;
    
  }

  input {
    font-size: 0.8rem; 
    padding: 8px; 
  }

  button {
    font-size: 0.8rem; 
    padding: 8px 15px; 
  }
}

/*---------------- Footer ------------------*/
@media (max-width: 768px){
  .footer-logo img {
    height: 20px;
  }
  .footer-links {
    display: flex;
    gap: 15px; 
    text-align: center;
  }
  .footer-redes a {
    margin-right: 5px;
  }
  
  .footer-redes img {
    width: 18px;
  }
  .footer-info p{
    font-size: 0.5rem;
  }

  .footer-contacto a{
    font-size: 0.8rem;
  }
}

@media (max-width: 480px){
  .footer-row {
    flex-direction: column;
    align-items: center; 
    text-align: center; 
  }
  .footer-logo img {
    height: 30px;
  }
  .footer-logo {
    margin-bottom: 15px;
  }
  .footer-links {
    gap: 10px; 
    margin-bottom: 15px; 
  }
  .scroll-to-top{
    margin-bottom: 15px;
    margin-left: 45%;
  }

  .footer-info p{
    font-size: 0.5rem;
  }

  .footer-contacto a{
    font-size: 0.6rem;
  }
}