/* Estilos generales */
body {
  font-family: "Lucida Sans", "Lucida Sans Regular", "Lucida Grande",
    "Lucida Sans Unicode", Geneva, Verdana, sans-serif;
  margin: 0;
}

header {
  background-color: #0072CE;
  padding: 0px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}


h1,h2,
h3 {
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin: 20px auto;
  color: #0048a7d3;
  font-size: 1.5em;
}

.logo img {
  height: 150px;
  width: 250px;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

nav {
  margin: 0 auto;
  position: relative; /* O absolute, dependiendo de tu diseño */
  z-index: 10;
}

nav ul {
  list-style: none;
  margin: auto 0;
  padding: 0;
  display: flex;
  transition: transform 0.8s ease;
}


nav li {
  margin: 10px;
  position: relative; /* Para posicionar el submenú */
  font-size: 16px;
}

nav li a {
  text-decoration: none;
  color: #fff;
  display: block; /* Para que el enlace ocupe todo el espacio del li */
  padding: 7px; /* Espacio interno para el enlace */
  transition: color 0.3s ease, background-color 0.3s ease; /* Transiciones para color y fondo */
}

nav li a:hover {
  color: #fff;
  background-color: #0048a7d3;
}

/* Submenú */
nav ul ul {
  display: none;
  position: absolute;
  text-align: center;
  top: 100%; /* Posicionar debajo del elemento padre */
  left: 0;
  background-color: #f0f0f0;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(10px); /* Submenú ligeramente desplazado hacia abajo */
  transition: opacity 0.8s ease, transform 0.8s ease;
  z-index: 10; /* Asegurar que se superponga */
  min-width: 150px; /* Ancho mínimo para el submenú */
}

nav li:hover > ul {
  display: block;
  pad: 30px;
  opacity: 1;
  transform: translateY(0);
}

nav ul ul li {
  margin: 5px 0;
}

nav ul ul a {
  display: block;
  padding: 15px;
  color: #333;
  font-size: 14px;
  text-decoration: none;
  transition: background-color 0.8s ease;
}

nav ul ul a:hover {
  background-color: #0048a7d3;
}

.contenedor-principal{
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}


/* Responsive */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  nav ul {
    flex-direction: column;
    margin-top: 20px;
    transform: none; /* Restablecer la transformación del menú */
  }

  nav li {
    margin: 10px 0;
  }

  nav ul ul {
    position: relative; /* Para que el submenú se ajuste al flujo */
    top: auto;
    left: auto;
    transform: translateY(0); /* Restablecer la transformación del submenú */
    opacity: 1; /* Mostrar el submenú en responsive */
    display: none; /* Ocultar el submenú por defecto en responsive */
  }

  nav li:hover > ul {
    display: block; /* Mostrar el submenú al hacer clic en el elemento padre */
  }

  .logo img{
    margin: auto 5%;
  }
}

/*Sección Cotizacion*/
.contenedor-cotizacion {
  display: flex;
  justify-content: center;
  align-items: center;
}

.content-cotizacion {
  background-color: #ccc; /* Color de fondo blanco */
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Sombra ligera */
  text-align: center;
  width: 100%;
}

.button-cotizacion {
  display: inline-block;
  padding: 12px 20px;
  background-color: #007bff; /* Color de fondo azul */
  color: #fff; /* Color de texto blanco */
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none; /* Quitar subrayado del enlace */
  transition: background-color 0.3s ease, transform 0.2s ease; /*Transición suave*/
}

.button-cotizacion:hover {
  background-color: #0056b3; /* Color de fondo azul más oscuro al pasar el cursor */
  transform: translateY(-2px); /* Desplazamiento vertical al pasar el cursor */
}

/* Estilos responsivos */
@media (max-width: 768px) {
  .content {
    padding: 20px;
  }
}

/*Sección Footer*/

footer {
  background-color: #0072CE; /* Azul oscuro de fondo */
  color: #ffffff;
  padding: 20px 0;
  width: 100%;
  height: auto;
  text-align: center; /* Centrar el contenido */
}

.contenedor-footer {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between; /* Distribuir elementos */
  align-items: center;
  padding: 0 20px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Alinear a la izquierda */
}

.footer-left p {
  margin: 5px 0;
  font-size: 14px;
  text-align: center;
  color: #fff;
}

.footer-center img {
  max-height: 150px; /* Ajustar tamaño del logo */
  border-radius: 10px;
}

.footer-center p {
  margin: 5px 0;
  font-size: 14px;
  text-align: center;
  color: #fff;
}

.footer-right {
  display: flex;
}

.footer-right a {
  margin-left: 10px;
}

.footer-right a img {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
}

.footer-bottom {
  margin-top: 20px; /* Espacio superior */
  padding: 10px 0;
  font-size: 12px;
  background-color: #0072CE; 
  width: 100%;
}

/* Estilos responsivos */
@media (max-width: 768px) {
  .contenedor-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-left {
    align-items: center; /* Centrar en pantallas pequeñas */
    margin-bottom: 10px;
  }

  .footer-center {
    margin-bottom: 10px;
  }

  .footer-right {
    margin-top: 10px;
    justify-content: center;
    margin-bottom: 10px;
  }

  .footer-bottom {
    margin-top: 10px; /* Reducir espacio en móviles */
  }
}

@media (max-width: 480px) {
  .footer-center img {
    max-height: 40px; /* Ajustar tamaño en móviles */
  }

  .footer-right a img {
    width: 25px;
    height: 25px;
  }
}

.aviso-privacidad{
  text-decoration: none;
  color: #fff;
}

/*ESTILOS PARA SECCIÓN - PREGUNTAS FRECUENTES*/

.titulo-PF {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    color: #0048a7d3;
  }

  .contenedor-pf{
    max-width: 800px;
    margin: 0 auto;
  }
  
  details{
    display: block;
    border: 1px solid #ccc;
    margin-bottom: 10px;
    border-radius: 5px;
  }
  
  summary{
    display: block;
    background-color: #f0f0f0;
    padding: 10px;
    cursor: pointer;
    list-style: none;
  }
  
  summary::after {
    content: '+';
    float: right;
    transition: transform 0.5s ease-in-out; /*Transición para el indicador*/
  }
  
  summary {
    padding: 10px;
    transition: padding 0.5s ease-in-out;
  }
  
  details[open] summary {
    padding-bottom: 20px; /* Expande el relleno al abrir */
  }
  
  summary p { /* Si tienes párrafos dentro del summary */
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
  }
  
  details:not([open]) summary p {
    opacity: 0;
  }
  
  
  
  details[open] summary::after {
    content: '-';
    transform: rotate(90deg);
  }
  
  details p {
    padding: 10px;
    margin: 0;
  }

  details ul li{
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    font-size: 18px;
    color: #666;
  }
  
  /* Responsive Design */
  @media (max-width: 600px) {
    .logo{
        margin:auto;
    }
    .container {
        padding: 10px;
    }
  
    details {
        margin-bottom: 5px;
    }
  
    summary, details p {
        padding: 8px;
    }
  }
  
  @media (max-width: 768px){
    details,summary{
      transform: none !important;
      transition: none !important;
    }
  }
  
  