/* Reset básico para eliminar márgenes y rellenos predeterminados */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Estilo del cuerpo */
body {
    background-color: #f7f7f7;
    color: #333;
    text-align: center;
     padding-top: 120px;
     line-height: 1.6;
}

/* ===== RESET BÁSICO ===== */
body, p, a {
  font-family: 'Segoe UI', sans-serif;
  color: #222;
  text-decoration: none;
}
h1,h2,h3{color:#004466}
body {
  background-color: #f7f7f7;
  line-height: 1.6;
}

/* Estilo del encabezado */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0px;
    background-color: white;
    flex-wrap: wrap;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.contenedor-header {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap:2rem
}

.contenedor-header img {
    height: 125px;
    animation: aparecerLogo 0.7s ease-out forwards;
    opacity: 0;
    transform: scale(0.8);
    margin: 0;        /* Elimina márgenes externos */
    padding: 0;       /* Elimina posibles espacios internos */
    display: block;   /* Evita márgenes automáticos en línea */
}
@keyframes aparecerLogo {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Barra de navegación */
nav ul {
    list-style: none;
    display: flex;
    background-color: transparent;
    padding: 0;
    margin: 0;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: black;
    text-decoration: none;
    font-size: 18px;
    padding: 8px 12px;
    transition: background 0.3s;
}

nav ul li a:hover {
    background-color: #00334e;
;
    border-radius: 5px;
    color : white;
}

/* resaltar pagina en la que se encuentra */
nav ul li a.active {
    background-color:  #00334e;
    border-radius: 4px;
    color : white;
}

/* Sección principal */
main {
    padding: 20px;
}

h2 {
    margin-bottom: 10px;
}

/* Pie de página */
footer {
  margin-top: 20px;
  width: 100%;
  background-color: #7272724b;
}

.kit-digital {
  width: 100%;
  padding: 10px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.kit-digital img {
  max-width: 90%;
  height: auto;
}
footer p {color:#004466;border-top: 1px solid white;padding-left: 10px;padding-right: 10px;padding-top: 15px;padding-bottom:15px;}
footer p a {color:#004466;text-decoration: none;cursor: pointer;font-weight: bold;}

/* lightbox es lo de ver la imagen en pantlla completa */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 3);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border: 4px solid #fff;
    border-radius: 8px;
}

.lightbox .cerrar {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}


/* ===============================
   TRADUCTOR FLOTANTE (G)
   =============================== */

/* CONTENEDOR FLOTANTE */
#translate-float {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9999;
  font-family: inherit;
}

/* Ajustar tamaño del gadget de Google */
#google_translate_element {
  cursor: pointer;
  font-size: 0; /* Oculta texto innecesario */
}

/* Ajustar select desplegable */
.goog-te-combo {
  font-size: 0.95rem;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  cursor: pointer;
  background-color: white;
  color: #000;
}

/* Ocultar logo y texto de “Con la tecnología de Google” */
.goog-te-gadget span:not(.goog-te-combo) {
  display: none !important;
}

/* Quitar barra superior de Google */
.goog-te-banner-frame {
  display: none !important;
}

body {
  top: 0 !important;
}
/* Reemplazar icono de Google por un globo terráqueo */
.goog-te-gadget-icon {
  background-image: url('img/mundo-translate.png') !important; /* tu imagen del globo */
  background-position: center !important;
  background-size: contain !important;
  width: 70px !important;  /* ajusta el tamaño */
  height: 70px !important; /* ajusta el tamaño */
}

/* Asegurarse de que la imagen original desaparezca */
.goog-te-gadget-icon img {
  display: none !important;
}

.goog-te-gadget-simple {
    background-color: transparent !important;
    border: none !important;
}

/* ===============================
   MENÚ MÓVIL MODAL
   =============================== */

#menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.2rem;
  cursor: pointer;
  color: #00334e;
}

/* ----- SOLO MÓVIL ----- */
@media (max-width: 599px) {

  #menu-toggle {
    display: block;
    position: relative;
    z-index: 3000;
  }

  #navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.96);

    display: flex;
    align-items: flex-start;
    justify-content: center;

    padding-top: 140px; /* deja respirar el logo */
    transform: translateY(-100%);
    transition: transform 0.35s ease;
    z-index: 2000;
  }

  #navbar.active {
    transform: translateY(0);
  }

  #navbar nav ul {
    flex-direction: column;
    gap: 2.5rem;
  }

  #navbar nav ul li a {
    font-size: 1.6rem;
    color: white;
  }

  #navbar nav ul li a.active {
    background: none;
    border-bottom: 2px solid white;
  }
}



/*//////////////////RESPONSIVE///////////////////*/
@media(max-width: 599px) {
  .carrusel-noticias{width: auto!important;margin-left: 20px !important;margin-right: 20px !important;}
}
@media (min-width: 600px) and (max-width: 854px) {
  main{margin-top:55px !important}
  .instalaciones,.servicios-main {padding-top: 10px !important;}
  .contacto{margin-top: 0px !important;}
  .contenedor-header {
    gap: 0rem;
  }
  #navbar {
    padding-top: 10px;
    padding-bottom: 10px;
  }
}
