@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  font-family: 'Poppins', sans-serif;
  scroll-behavior: smooth;
}
 .contenido-legal {
            max-width: 800px;
            margin: 4rem auto;
            padding: 2rem;
            background: #ffffff;
            border-radius: 8px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.05);
        }
        .contenido-legal h1 {
            color: #0077b6;
            font-size: 2rem;
            margin-bottom: 1.5rem;
            border-bottom: 2px solid #f0f0f0;
            padding-bottom: 0.5rem;
        }
        .contenido-legal h2 {
            color: #333;
            font-size: 1.3rem;
            margin-top: 2rem;
            margin-bottom: 1rem;
        }
        .contenido-legal p, .contenido-legal li {
            font-size: 1rem;
            line-height: 1.7;
            color: #555;
        }
        .contenido-legal ul {
            padding-left: 1.5rem;
            margin-bottom: 1.5rem;
        }
        .tabla-cookies {
            width: 100%;
            border-collapse: collapse;
            margin: 1.5rem 0;
            font-size: 0.95rem;
        }
        .tabla-cookies th, .tabla-cookies td {
            border: 1px solid #e0e0e0;
            padding: 0.8rem;
            text-align: left;
        }
        .tabla-cookies th {
            background-color: #f8f9fa;
            color: #333;
            font-weight: 600;
        }
        .enlace-volver {
            display: inline-block;
            margin-top: 2rem;
            color: #0077b6;
            text-decoration: none;
            font-weight: bold;
        }
        .enlace-volver:hover {
            text-decoration: underline;
        }

.cabeza_botones {
  position: sticky;
  top: 0;
  background-color: white;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 15px 30px;
}

.contenedor_superior {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
}

.grupo-izquierdo a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo {
  width: 50px;
  height: auto;
}

.nombre_empresa {
  font-size: 22px;
  font-weight: 700;
  color: #007cb4;
  white-space: nowrap;
}
#SobreNosotros {
  padding: 20px 20px 0 20px; 
  text-align: center;
  max-width: 800px;
  margin: 0 auto 80px auto;
}

#SobreNosotros .titulo_servicio {
  margin-top: 0;       
  margin-bottom: 15px; 
}


button.menu-toggle {
  display: none;
  font-size: 24px;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  color: #007cb4 !important;
  cursor: pointer;
  width: 32px;
  height: 32px;
  padding: 5px;
  line-height: 1;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
  box-shadow: none !important;
  outline: none !important;
}

.contenedor_button {
  display: flex;
  gap: 15px;
  margin-left: auto;
  align-items: center;
}

.boton-navegacion {
  padding: 10px 15px;
  border-radius: 5px;
  background-color: white;
  color: black;
  font-weight: bold;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
}

.boton-navegacion:hover {
  background-color: #007cb4;
  color: white;
}


.cabezero {
  background-image: url("img/fondoburbujas.png");  
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover; 
  
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 7; 
  min-height: 350px;   
  
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

.frase_principal {
  font-size: clamp(30px, 5vw, 50px); 
  font-weight: bold;
  color: #fefefe;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
  padding: 0 10px;
}


.contenido {
  padding: 40px 0;
}

.tres_primeros {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 40px 20px;
}

.servicio_1 {
  flex: 1 1 300px;
  background-color: #f2f2f2;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.servicio_1:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.titulo_servicio {
  text-align: center;
  font-size: 30px;
  font-weight: bold;
  margin: 40px 0 20px;
}

.titulo {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}

.imagen img {
  max-width: 100%;
  height: auto;
  margin-bottom: 10px;
  border-radius: 5px;
}

.info {
  color: #007cb4;
  cursor: pointer;
  font-weight: 600;
  margin-top: 10px;
}


.form {
  display: flex;
  justify-content: center;
  padding: 60px 20px;
  background-color: #e6f7fc;
}

.formulario {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 500px;
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.campo {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.radio-opciones {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

select,
input,
textarea {
  font-size: 16px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: 'Poppins', sans-serif;
  width: 100%;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

.botones {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

button {
  background-color: #007cb4;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 5px;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  flex: 1;
}

button:hover {
  background-color: #005e87;
}

.restablecer {
  background-color: #333;
}

/* BOTÓN FLOTANTE (Z-INDEX CORREGIDO) */
.boton-flotante {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  color: white;
  font-size: 30px; 
  width: 60px;
  height: 60px;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 100000; /* Prioridad absoluta por encima de las cookies */
  
  display: flex;
  align-items: center;
  justify-content: center;
  
  transition: all 0.3s ease;
  animation: pulse-whatsapp 2s infinite;
}

.boton-flotante:hover {
  background-color: #13445a;
  transform: scale(1.1);
  animation: none;
}

.boton-flotante:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.5);
}

.boton-flotante i {
  line-height: 1;
}

@keyframes pulse-whatsapp {
  0% { 
    transform: scale(1); 
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); 
  }
  70% { 
    transform: scale(1.05); 
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); 
  }
  100% { 
    transform: scale(1); 
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); 
  }
}


.footer {
  background-color: #13445a;
  color: white;
  padding: 25px 20px;
}
.footer-link {
  text-decoration: none;
  color: white; 
  transition: opacity 0.2s ease;
}

.footer-link:hover {
  opacity: 0.85; 
  color: #2cc7ee; 
}

.footer-horizontal-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 35px;
  max-width: 1300px;
  margin: 0 auto 15px auto;
  font-size: 14px;
}

.footer-item {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.footer-item i {
  color: #2cc7ee;
  font-size: 16px;
}

.footer-item .separador-interno {
  margin: 0 6px;
  opacity: 0.4;
}

.footer-legal-linea {
  text-align: center;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
}

.footer-legal-linea a {
  color: white;
  text-decoration: underline;
  margin: 0 5px;
  transition: color 0.2s ease;
}

.footer-legal-linea a:hover {
  color: #2cc7ee;
}


@media (max-width: 950px) {
  .footer-horizontal-container {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .footer-item {
    white-space: normal;
    justify-content: center;
  }
}


.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  background-color: #333333;
  color: white;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 99999; 
  font-size: 14px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.cookie-banner button {
  background-color: #007cb4;
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  flex: none; 
  width: auto; 
  white-space: nowrap; 
  margin-left: 20px;
  transition: background-color 0.3s ease;
}

.cookie-banner button:hover {
  background-color: #005e87;
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    text-align: center;
    gap: 15px; 
    padding: 20px; 
  }


  .cookie-banner div {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important; 
    width: 100% !important;
    margin-left: 0 !important; 
  }


  .cookie-banner .boton-navegacion {
    width: 100% !important;
    display: block !important;
    margin-right: 0 !important; 
    padding: 10px 24px !important; 
    font-size: 14px !important;
  }


  .cookie-banner button {
    margin-left: 0 !important;
    width: 100% !important;
    display: block !important;
  }
}

@media (max-width: 768px) {
  .grupo-izquierdo {
    gap: 8px;
  }
  
  .nombre_empresa {
    font-size: 18px;
  }

  .logo {
    width: 40px;
  }

  button.menu-toggle { 
    display: flex !important; 
    align-items: center !important;
    justify-content: center !important;
    flex: none !important;
    width: 44px !important; 
    height: 44px !important;
    background: transparent !important; 
    color: #007cb4 !important; 
    font-size: 28px !important; 
    border: none !important;
    border-radius: 50% !important; 
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease !important;
    cursor: pointer;
  }
  
  button.menu-toggle:hover {
    color: #005e87 !important; 
    background-color: rgba(0, 124, 180, 0.1) !important; 
  }

  button.menu-toggle:focus-visible {
    outline: 2px solid #007cb4 !important; 
    outline-offset: 2px !important;
    background-color: rgba(0, 124, 180, 0.15) !important;
  }

  button.menu-toggle:active {
    transform: scale(0.92) !important; 
  }
  
  .frase_principal h1 {
    font-size: 45px !important; 
    line-height: 1.3 !important;
    padding-bottom: 40px;
  }
  .titulo_servicio{
     font-size: 25px !important;
    
  }

  .contenedor_button { 
    display: none; 
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    gap: 10px;
  }
  
  .contenedor_button.active {
    display: flex;
  }

  .boton-navegacion {
    width: 100%;
  }
  
  .cabezero {
    aspect-ratio: auto;
    height: 350px;
    background-image: url("img/fondoburbujas.png"); 
  }
  
}