/* RESET Y BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
}

/* CONTENEDOR GENERAL */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* HEADER */
header {
  background: #091627;
  color: white;
  text-align: center;
  padding: 40px 20px;
}

.titulo-principal {
  font-size: 2rem;           /* tamaño moderado para escritorio */
  font-weight: 600;
  margin-top: 10px;
  text-align: center;
  color: white;
  letter-spacing: 1px;
}

/* Para tablets */
@media (max-width: 768px) {
  .titulo-principal {
    font-size: 1.6rem;
  }
}

/* Para celulares */
@media (max-width: 480px) {
  .titulo-principal {
    font-size: 1.3rem;
  }
}

.titulo-principal {
  font-size: 2rem;
  font-weight: 600;
  margin-top: 10px;
  text-align: center;
  color: white;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .titulo-principal {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .titulo-principal {
    font-size: 1.3rem;
  }
}
/* LOGO */
.logo {
  max-width: 100%;
  height: auto;
  width: 200px;
}

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  background-color: #001f3f;
  z-index: 1000;
  padding: 15px 0;
  opacity: 0;
  transform: translateY(-30px);
  transition: all 0.8s ease;
}

.navbar.visible {
  opacity: 1;
  transform: translateY(0);
}

.navbar.scrolling {
  background-color: #001933;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  padding: 10px 0;
}

.menu {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 8px 12px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.menu li a:hover,
.menu a.activo {
  background-color: #88c0f0;
  color: #002b5c;
}

/* HAMBURGUESA */
.menu-icon {
  display: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  background: none;
  border: none;
  margin: 0 auto;
}

.menu.open {
  display: flex !important;
}

/* SECCIONES */
.seccion {
  padding: 60px 20px;
  background-color: #fff;
  border-bottom: 1px solid #ddd;
}

.seccion h2 {
  color: #002b5c;
  margin-bottom: 20px;
  font-size: 2em;
  text-align: center;
}

.seccion h3 {
  color: #004080;
  margin-top: 30px;
  margin-bottom: 10px;
}

.seccion ul {
  margin-left: 20px;
  margin-bottom: 20px;
}

/* FORMULARIOS */
form {
  background-color: #f4f4f4;
  padding: 25px;
  border-radius: 8px;
  max-width: 600px;
  margin: 30px auto 0 auto;
}

form label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

form input,
form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1em;
}

form button {
  background-color: #002b5c;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 5px;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.3s;
}

form button:hover {
  background-color: #004080;
}

/* CONTACTO */
#contacto p,
.direccion-link {
  margin-bottom: 10px;
  font-size: 1.1em;
}

#contacto a,
.direccion-link a {
  color: #002b5c;
  text-decoration: none;
  font-weight: bold;
}

#contacto a:hover,
.direccion-link a:hover {
  text-decoration: underline;
  color: #004080;
}

/* ICONOS */
.icono-instagram,
.icono-ubicacion {
  width: 22px;
  height: 22px;
  vertical-align: middle;
}

/* BOTONES FLOTANTES */
.whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25d366;
  color: white;
  padding: 12px 15px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  z-index: 1000;
  font-size: 16px;
}

.btn-arriba {
  position: fixed;
  bottom: 80px;
  right: 20px;
  background: #002b5c;
  color: white;
  padding: 10px 14px;
  border-radius: 50%;
  font-size: 18px;
  text-decoration: none;
  z-index: 999;
  transition: background 0.3s ease;
}

.btn-arriba:hover {
  background-color: #004080;
}

/* FAQ */
.faq details {
  background-color: #f0f0f0;
  padding: 15px;
  border-left: 4px solid #004080;
  margin-bottom: 10px;
  border-radius: 5px;
}

.faq summary {
  font-weight: bold;
  cursor: pointer;
  color: #002b5c;
  font-size: 1.1em;
}

/* TESTIMONIOS */
.testimonio {
  background: #f4f4f4;
  padding: 20px;
  margin: 15px 0;
  border-left: 4px solid #004080;
  border-radius: 5px;
  font-style: italic;
}

.testimonio cite {
  display: block;
  margin-top: 10px;
  font-weight: bold;
  color: #333;
}

/* FOOTER */
footer {
  background-color: #002b5c;
  color: white;
  text-align: center;
  padding: 30px 20px;
}

/* MAPA */
.mapa iframe {
  width: 100%;
  height: 400px;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* ANIMACIÓN EN SCROLL */
.animada {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.animada.visible {
  opacity: 1;
  transform: translateY(0);
}

/* MEDIA QUERIES */
@media (max-width: 768px) {
  .menu {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding-top: 10px;
  }

  .menu-icon {
    display: block;
  }

  .seccion h2 {
    font-size: 1.6em;
  }

  form {
    padding: 20px;
  }

  .logo {
    width: 60px;
  }

  .whatsapp,
  .btn-arriba {
    right: 10px;
  }
}

@media (max-width: 480px) {
  .seccion h2 {
    font-size: 1.4em;
  }

  .menu li a {
    font-size: 0.95em;
  }

  form input,
  form textarea {
    font-size: 0.95em;
  }

  .testimonio {
    font-size: 0.95em;
  }

  .mapa iframe {
    height: 300px;
  }
}


@media (max-width: 768px) {
  .logo {
    width: 200px;
  }
}

@media (max-width: 480px) {
  .logo {
    width: 60px;
  }
}

.logo {
  display: block;
  margin: 0 auto 10px auto;
  max-width: 320px;
  width: 100%;
  height: auto;
}