html{
    scroll-behavior: smooth
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: #f9f9f9;
    color: #333;
  }
  header {
    background-color: #2183b5;
    color: white;
    padding: 2rem 1rem;
    text-align: center;
  }
  header img {
    max-width: 100px;
    margin-bottom: 1rem;
  }
  header h1 {
    margin: 0;
    font-size: 2.5rem;
  }
  header p {
    font-size: 1.2rem;
  }
  .section {
    padding: 2rem 1rem;
    max-width: 800px;
    margin: auto;
  }

  #contacto_inicio{
    margin-top: 60px;
    margin-bottom: 0px;
  }

  #contacto_inicio_link{
    text-decoration: none;
    color: white;
  }






  .contact {
    background-color: #e8f4fc;
    padding: 2rem 1rem;
    text-align: center;
  }
  .contact h2 {
    margin-bottom: 1rem;
    color: #2183b5;
  }
  .contact a {
    display: block;
    font-size: 1.2rem;
    color: #2183b5;
    text-decoration: none;
    margin: 0.5rem 0;
  }
  form {
    margin-top: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
  }
  form input, form textarea {
    width: 100%;
    padding: 0.75rem;
    margin: 0.5rem 0;
    border: 1px solid #ccc;
    border-radius: 5px;
  }
  form button {
    background-color: #2183b5;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
  }
  footer {
    text-align: center;
    padding: 1rem;
    background-color: #f0f0f0;
    font-size: 0.9rem;
  }





/*Servicios*/

#text_servicios {
  margin-bottom: 2rem;
  color: #2183b5;
  text-align: center;
  font-size: 2.8rem;
  padding-top: 60px;
  font-weight: 700;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
  position: relative;
}

#text_servicios::after {
  content: "";
  display: block;
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #2183b5, #1a6a90);
  margin: 15px auto 0;
  border-radius: 2px;
}

.promo-cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 100px; /* Reducido para mejor visualización */
  padding: 20px;
  max-width: 1200px; /* Limita el ancho máximo */
  margin: 0 auto 100px; /* Centrado y margen inferior */
}

/* Contenedor de cada tarjeta (estructura 3D) */
.promo-card {
  background: transparent;
  width: 260px;
  height: 220px;
  perspective: 1000px;
  flex: 0 0 calc(33.333% - 100px); /* 3 tarjetas por fila con gap incluido */
  margin-bottom: 30px;
  transform: translate(-8%, 0);
  cursor: pointer;

}

/* Parte interna que se voltea */
.promo-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  border-radius: 15px;
}

/* Al pasar el mouse */
.promo-card:hover .promo-card-inner {
  transform: rotateY(180deg) translate(-15%, 0);
}

/* Frente y reverso de la tarjeta */
.promo-card-front,
.promo-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 20px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  transition: all 0.5s ease;
}
/* Colores */
.promo-card-front {
  background: linear-gradient(135deg, #2183b5, #1a6a90);
  transform-style: preserve-3d;
}

.promo-card-front::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100" fill="none" stroke="white" stroke-width="0.5" opacity="0.2"><circle cx="50" cy="50" r="40"/></svg>');
  background-size: 60px 60px;
  border-radius: 20px;
  opacity: 0.3;
}


.promo-card-front h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  position: relative;
  z-index: 2;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}


.promo-card-back {
  background: linear-gradient(135deg, #1a6a90, #134d6b);
  transform: rotateY(180deg);
  text-align: center;
  overflow: hidden;
}


.promo-card-back::after {
  content: "";
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

/* Enlace en la parte de atrás */
.promo-card-back p {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

.promo-card-back a {
  margin-top: 15px;
  color: #fff;
  text-decoration: none;
  background: rgba(255,255,255,0.2);
  padding: 10px 25px;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
  border: 1px solid rgba(255,255,255,0.3);
}

.promo-card-back a:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.promo-card:hover .promo-card-front {
  box-shadow: 0 5px 15px rgba(33, 131, 181, 0.4);
}

.promo-card:hover .promo-card-back {
  box-shadow: 0 5px 15px rgba(26, 106, 144, 0.4);
}


/* Precio */
.precio {
  font-size: 1.2rem;
  font-weight: bold;
  margin: 10px 0;
  background: rgba(255,255,255,0.2);
  padding: 5px 15px;
  border-radius: 30px;
  position: relative;
  z-index: 2;
}

/* Responsive */


@media (max-width: 768px) {
  #text_servicios {
    font-size: 2.2rem;
    padding-top: 40px;
  }
  
  .promo-cards {
    gap: 1px; /* Reducido para móviles */
    margin-bottom: 0px;
  }
  
  .promo-card {
    width: calc(50% - 15px); /* 2 tarjetas por fila con gap incluido */
    height: 250px; /* Altura aumentada */
    flex: 0 0 auto; /* Elimina la restricción flex conflictiva */
    max-width: none; /* Elimina la limitación máxima */
    margin-bottom: 20px;
    transform: translateX(-2.5%); /* Elimina el translate que puede causar problemas */
  }

  .promo-card:hover{
    transform: translateX(-12.6%);
  }
  
  .promo-card-inner {
    height: 70%; /* Asegura que ocupe toda la altura */
  }
  
  .promo-card-front,
  .promo-card-back {
    padding: 20px 15px; /* Padding ajustado para móviles */
  }
  
  .promo-card-front h3 {
    font-size: 1.3rem; /* Tamaño de fuente ajustado */
    margin-bottom: 10px;
  }
  
  .precio {
    font-size: 1.4rem;
    margin: 8px 0;
  }
  .promo-card-back a {
    padding: 8px 20px; /* Botón más compacto */
    font-size: 0.9rem;
  }
}

/* Para móviles muy pequeños (opcional) */
@media (max-width: 480px) {
  .promo-card {
    width: calc(50% - 15px); /* 2 tarjetas por fila con gap incluido */
    height: 250px; /* Altura aumentada */
    flex: 0 0 auto; /* Elimina la restricción flex conflictiva */
    max-width: none; /* Elimina la limitación máxima */
    margin-bottom:0px;
    transform: translateX(-4.5%); /* Elimina el translate que puede causar problemas */
  }
  
  .promo-card:hover{
    transform: translateX(-9.5%);
  }

  
  .promo-cards {
    gap: 15px;
  }
}

/*Fin servicios*/









/*Licencias*/

.licencias-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 15px; /* Reduje el padding horizontal */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  width: 100%; /* Asegura que no exceda el ancho de la pantalla */
  box-sizing: border-box; /* Incluye padding en el cálculo del ancho */
}

.section-title {
  margin-bottom: 2rem;
  color: #2183b5;
  text-align: center;
  font-size: 2.8rem;
  padding-top: 60px;
  font-weight: 700;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #2183b5, #1a6a90);
  margin: 15px auto 0;
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  color: #666;
  font-size: 1rem; /* Reduje el tamaño para móviles */
  margin-bottom: 30px;
  padding: 0 10px; /* Añadí padding para evitar que el texto toque los bordes */
}

.licencias-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px; /* Reduje el gap */
  margin-bottom: 40px;
  width: 100%;
  box-sizing: border-box;
}

.licencia-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  width: calc(33.333% - 30px); /* 3 columnas en desktop con gap incluido */
  padding: 20px; /* Reduje el padding */
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid #e1e1e1;
  box-sizing: border-box; /* Importante para el cálculo del ancho */
}

.licencia-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.licencia-header {
  text-align: center;
  margin-bottom: 15px;
}

.licencia-logo {
  width: 60px; /* Reduje el tamaño */
  height: 60px;
  object-fit: contain;
  margin: 0 5px 10px; /* Ajusté los márgenes */
}

.licencia-card h3 {
  color: #2b579a;
  font-size: 1.2rem; /* Reduje el tamaño */
  margin: 0;
  line-height: 1.3;
}

.licencia-precio {
  font-size: 1.5rem; /* Reduje el tamaño */
  font-weight: bold;
  color: #107c10;
  text-align: center;
  margin: 15px 0;
}

.licencia-beneficios {
  padding: 0;
  margin: 0 0 20px 0;
  list-style: none;
}

.licencia-beneficios li {
  padding: 6px 0;
  color: #333;
  position: relative;
  padding-left: 25px;
  font-size: 0.9rem; /* Reduje el tamaño */
  line-height: 1.4;
}

.licencia-beneficios li:before {
  content: "✓";
  color: #107c10;
  font-weight: bold;
  position: absolute;
  left: 0;
}

.licencia-btn {
  display: block;
  background-color: #107c10;
  color: white;
  text-align: center;
  padding: 10px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
  font-size: 0.9rem; /* Reduje el tamaño */
}

.licencia-btn:hover {
  background-color: #0a5a0a;
}

/* FAQ Section */
.faq-section {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 12px;
  max-width: 900px;
  margin: 0 auto;
  width: calc(100% - 30px); /* Asegura que no toque los bordes */
}

.faq-section h3 {
  color: #2183b5;
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.faq-item {
  margin-bottom: 15px;
  border-bottom: 1px solid #e1e1e1;
  padding-bottom: 15px;
}

.faq-question {
  font-weight: bold;
  color: #2183b5;
  font-size: 1rem;
  margin-bottom: 8px;
  cursor: pointer;
}

.faq-answer {
  color: #555;
  line-height: 1.5;
  font-size: 0.9rem;
}

/* Media Queries */
@media (max-width: 1024px) {
  .licencia-card {
    width: calc(50% - 20px); /* 2 columnas en tablets */
  }
}

@media (max-width: 768px) {
  .licencias-section {
    padding: 30px 10px;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .licencia-card {
    width: 100%;
    max-width: 350px;
  }
  
  .licencia-card h3 {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .licencias-section {
    padding: 20px 10px;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .section-subtitle {
    font-size: 0.9rem;
  }
  
  .licencia-logo {
    width: 50px;
    height: 50px;
  }
  
  .licencia-precio {
    font-size: 1.3rem;
  }
  
  .licencia-btn {
    padding: 8px;
  }

  .licencia-card {
    border: 1px solid #2183b5;
  }
  
}

/*Fin licencias*/








#logo_nav{
    border-radius: 50%;
    margin-top: 100px;
}

.menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  position: absolute;
  top: 10px;
  right: 20px;
  z-index: 1001;
}


#nav {
    position: fixed;
    top: 15px;                   
    left: 50%;
    transform: translateX(-50%);
    user-select: none;
    display: flex;
    justify-content: center;
    align-items: center;
    width: max-content;
    background: #444343;
    height: 7.5vh;
    border-radius: 15px;
    overflow: hidden;
    padding: 0 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.hide-nav {
    opacity: 0;
    transform: translate(-50%, -30px);  
    pointer-events: none;    
}


#nav #list_nav {
    list-style: none;
    display: flex;            
    margin: 0;
    padding: 0;
}


#nav #list_nav .list_li {
    padding: 0 20px;          
    display: flex;
    align-items: center;       
    height: 100%;              
}

.list_li .list_a {
    text-decoration: none;
    color: white;
    font-size: 1rem;
}

.list_li .list_a:hover{
    background-color: white;
    color: black;
    padding: 10px;
    border-radius: 10px;
    transition: 0.3s;
}



/* Contacto arreglos */
.contact {
  padding: 20px;
  width: 100%;
  box-sizing: border-box;
}

form {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

form input,
form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  box-sizing: border-box;
}
/* fin Contacto arreglos */


/* RESPONSIVE STYLES */
@media (max-width: 768px) {

  .menu-toggle {
    display: block;
  }

  #nav {
    display: none;
  }

  #nav.show {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 60px;
    background-color: #222;
    padding: 10px;
    width: 100%;
    z-index: 1000;
  }

  #nav #list_nav {
    flex-direction: column;
  }

  header h1 {
    font-size: 2rem;
  }

  header p {
    font-size: 1rem;
  }

  #nav {
    flex-direction: column;
    top: 0;
    width: 100%;
    height: auto;
    padding: 10px 0;
    border-radius: 0;
  }

  #nav #list_nav {
    flex-direction: column;
    width: 100%;
  }

  #nav #list_nav .list_li {
    padding: 10px 0;
    justify-content: center;
  }

  .promo-cards {
    flex-direction: column;
    align-items: center;
  }

  .promo-card {
    width: 90%;
  }

  .service-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .toggle-btn {
    margin-top: 10px;
  }

  .section {
    padding: 1rem;
  }

  form {
    width: 100%;
    padding: 0 10px;
  }

  #logo_nav {
    margin-top: 50px;
    max-width: 80px;
  }




  .promo-cards {
    flex-direction: column;
    align-items: center;
  }

}
