* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  width: auto;
}
html {
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
  width: 100%;
  height: 100%;
  background-color: #edf5fc;
}
body {
  width: 100%;
  margin: auto;
  max-width: 100%;
  background-color: #edf5fc;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
} 

/* Organización de la información de contacto superior */

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 10px 5%;
  text-decoration: none;
}

.info-contacto{
  display: flex;
  gap: 50px;
  align-items: center;
  width: 100%;
}

.info-contacto a {
  text-decoration: none;
  color: inherit;
}

.info-contacto .ubicacion-item {
  margin-left: auto;
  align-self: flex-end;
}

.info-icon-map {
  width: auto;
  height: auto;
  font-size: 18px;
  color: #05518c;
  margin-right: 6px;
}

.modos {
  margin-left: auto;
}

.icon-btn {
  border: 1px solid #7db1d8;
  background: #ffffff;
  color: #05518c;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.icon-btn:hover {
  background: #05518c;
  color: #ffffff;
  border-color: #05518c;
}

.info-icon{
  width: 20px;
  height: 20px;
}

:root {
  --bg-color: #edf5fc;
  --text-color: #222222;
  --primary-color: #1e88e5;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: 0.3s ease;
}

.dark-mode {
  --bg-color: #121212;
  --text-color: #f1f1f1;
  --primary-color: #4dabf7;
}

.main-header {
  background: var(--bg-color);
}

.logo-nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 15px 8%;
}

/* Logo */

.logo{
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
}
.logo img {
  width: 400px;
  height: auto;
}

/* Organización de los botones de navegación */

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 1;
}

.nav-links {
  display: flex;
  gap: 15px;
  list-style: none;
  border-radius: 20%;
  border-color: #1e88e5;
}

.nav-links a {
  display: inline-block;
  padding: 9px 16px;
  border: 1px solid #70a7cf;
  border-radius: 10px;
  background: #ffffff;
  text-decoration: none;
  color: #05518c;
  font-weight: 600;
  transition: all 0.25s ease;
}

.nav-links a:hover {
  background: #05518c;
  color: #ffffff;
  border-color: #05518c;
  transform: translateY(-1px);
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  color: #1e88e5;
  font-size: 30px;
  transition: 0.3s;
}

.social-icons a[aria-label="WhatsApp"] {
  color: #25d366;
}

.social-icons a[aria-label="Instagram"] {
  color: #e1306c;
}

.social-icons a[aria-label="Facebook"] {
  color: #1877f2;
}

.social-icons a:hover {
  transform: scale(1.2);
}


.nosotros-page {
  padding: 26px 8% 60px;
}

.nosotros-container {
  max-width: 1300px;
  margin: 0 auto;
}

.nosotros-container h1 {
  color: #05518c;
  font-size: 2.7rem;
  margin-bottom: 8px;
}

.intro {
  color: #334e63;
  margin-bottom: 20px;
  font-size: 1.02rem;
}

.nosotros-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 18px;
  min-height: 580px;
}

.nosotros-menu {
  background: #ffffff;
  border: 1px solid #cfe2f0;
  border-radius: 14px;
  padding: 12px;
  display: grid;
  gap: 8px;
  align-content: start;
  max-height: 740px;
  overflow-y: auto;
}

.menu-item {
  width: 100%;
  text-align: left;
  border: 1px solid #d1e5f4;
  background: #f8fcff;
  color: #05518c;
  border-radius: 10px;
  padding: 12px 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.menu-item:hover,
.menu-item.active {
  background: #05518c;
  color: #ffffff;
  border-color: #05518c;
}

.nosotros-detail {
  position: relative;
  background: #ffffff;
  border: 1px solid #d4e6f4;
  border-radius: 14px;
  padding: 22px;
  overflow: hidden;
  min-height: 580px;
}

.detail-visual {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.detail-logo {
  width: min(520px, 70%);
  height: auto;
  opacity: 0.42;
  transition: opacity 0.25s ease;
}

.nosotros-detail.has-selection .detail-logo {
  opacity: 0.12;
}

.detail-placeholder {
  position: relative;
  z-index: 2;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #234a68;
}

.detail-placeholder h2 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.detail-placeholder p {
  font-size: 1.05rem;
}

.detail-placeholder.hidden {
  display: none;
}

.detail-content {
  display: none;
  position: relative;
  z-index: 2;
}

.detail-content.active {
  display: block;
}

.detail-content h2 {
  color: #05518c;
  margin-bottom: 14px;
  font-size: 2rem;
}

.detail-content h3 {
  color: #0c608f;
  margin: 16px 0 8px;
  font-size: 1.2rem;
}

.detail-content p,
.detail-content li {
  color: #2f4a60;
  line-height: 1.62;
  font-size: 1.02rem;
}

.detail-content ul {
  padding-left: 22px;
  margin: 8px 0 12px;
  display: grid;
  gap: 5px;
}


.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1200;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: #ffffff;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 16px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.whatsapp-float i {
  font-size: 1.25rem;
}

.whatsapp-float:hover {
  background: #20be5c;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
}
































.site-footer {
  background: #123a5a;
  color: #eaf4fc;
  padding: 36px 8% 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.footer-col h3,
.footer-col h4 {
  color: #ffffff;
  margin-bottom: 10px;
}

.footer-col p,
.footer-col li,
.footer-col a {
  color: #d0e4f3;
  text-decoration: none;
  line-height: 1.55;
  font-size: 0.95rem;
}

.footer-col ul {
  list-style: none;
  display: grid;
  gap: 6px;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-logo {
  width: 300px;
  height: auto;
  margin-bottom: 10px;
}

.footer-copy {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  color: #d7e9f7;
}

@media (max-width: 1366px) {
  .top-bar {
    padding: 10px 4%;
  }

  .info-contacto {
    gap: 24px;
    flex-wrap: wrap;
  }

  .logo img {
    width: 320px;
  }

  .logo-nav-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 12px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .logo img {
    width: 280px;
  }

  .logo-nav-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 12px;
  }

  .nosotros-page {
    padding: 20px 6% 50px;
  }

  .nosotros-layout {
    grid-template-columns: 1fr;
  }

  .nosotros-menu {
    max-height: none;
  }

  .nosotros-container h1 {
    font-size: 2.2rem;
  }

  .detail-content h2 {
    font-size: 1.7rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .top-bar {
    padding: 10px 4%;
  }

  .info-contacto {
    gap: 14px;
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .whatsapp-float {
    right: 12px;
    bottom: 12px;
    padding: 10px 12px;
    gap: 8px;
    font-size: 0.9rem;
  }
}
