* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body{
	background-color: #f8fafc;
  color: #0f172a;
}

/* HEADER GLASS */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 60px;

  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;

  transition: 0.3s;
}

header.top {
  background: linear-gradient(
    to bottom,
    rgba(0, 26, 77, 0.9),
    rgba(0, 26, 77, 0.1),
    transparent
  );
}

header.scrolled {
  background: rgba(255,255,255,0.85);
}

header.scrolled nav a,
header.scrolled .logo-text {
  color: #002168;
}

.logo{
  height: 40px;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-text {
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  color: white;
}

nav a {
  margin-left: 30px;
  text-decoration: none;
  color: rgba(255,255,255,0.9);
  font-size: 14px;
  transition: 0.3s;
}

nav a:hover {
  color: white;
}

@media(max-width: 768px) {
  .logo-text {
    font-size: 14px;
  }
}

/* MINI HERO */
.mini-hero {
  height: 30vh;

  display: flex;
  justify-content: center;
  align-items: center;

  background: linear-gradient(to bottom, #001a4d, #f8fafc);
  color: white;
  position: relative;
  overflow: hidden;
}

.mini-hero h1 {
  z-index: 2;
  font-size: 32px;
}

.logo{
  height: 40px;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-text {
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  color: white;
}

nav a {
  margin-left: 30px;
  text-decoration: none;
  color: rgba(255,255,255,0.9);
  font-size: 14px;
  transition: 0.3s;
}

nav a:hover {
  color: white;
}

@media(max-width: 768px) {
  .logo-text {
    font-size: 14px;
  }
}

.menu-toggle {
  display: none;
}

/* OLA */
.wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

/* por defecto (desktop) */
.wave-mobile {
  display: none;
}

/* MOBILE */
@media (max-width: 768px) {
  .wave-desktop {
    display: none;
  }

  .wave-mobile {
    display: block;
    height: 80%;
  }
}

/* VALPORES */
.values {
  padding: 100px 40px;
  text-align: center;
  background: #f8fafc;
}

.values h2 {
  font-size: 32px;
  letter-spacing: 2px;
  margin-bottom: 60px;
  color: #1e3a8a;
}

/* fila */
.values-row {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

/* cada item */
.value {
  width: 52%;
  text-align: center;
}

/* círculo */
.circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

/* colores */
.orange { background: #fed7aa; }
.green { background: #bbf7d0; }
.blue { background: #bfdbfe; }

/* línea vertical */
.line {
  width: 2px;
  height: 50px;
  background: #1e3a8a;
  margin: 10px auto;
}

/* texto */
.values-row {
  display: flex;
  justify-content: center;
  gap: 60px;
}

/* base */
.value {
  width: 550px;
  text-align: center;
}

/* tarjetas suaves */
.value.big {
  background: white;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

/* círculos más vivos */
.circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;

  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

/* línea */
.line {
  width: 2px;
  height: 40px;
  background: #1e3a8a;
  margin: 15px auto;
}

/* títulos */
.value h4 {
  margin-bottom: 10px;
  font-size: 18px;
  color: #002168;
}

/* texto corto (historia) */
.value p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
}

/* texto largo (misión/visión) */
.value.big p {
  text-align: left;
  font-size: 14px;
  line-height: 1.6;
}

.value.big:hover {
  transform: translateY(-5px);
  transition: 0.3s;
}

/* CONTACT */

/* CONTACTO */
.contact {
  padding: 100px 60px;
  background: #f8fafc;
}

/* contenedor */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1100px;
  margin: auto;
}

/* info */
.contact-info {
  background: rgba(255,255,255,0.7);
  padding: 30px;
  border-radius: 16px;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.contact-info h2 {
  margin-bottom: 15px;
  color: #002168;
}

.contact-info p {
  margin-bottom: 20px;
  color: #475569;
}

.info-item {
  margin-bottom: 15px;
}

.info-item strong {
  display: block;
  color: #002168;
}

.info-item span {
  color: #475569;
}

/* map */
.contact-map {
  background: rgba(255,255,255,0.7);
  padding: 20px;
  border-radius: 16px;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.contact-map h2 {
  margin-bottom: 15px;
  color: #002168;
}

/* mapa bonito */
.contact-map iframe {
  border-radius: 12px;
}

/* RESPONSIVE */
@media(max-width: 768px) {
  .contact-container {
    grid-template-columns: 1fr;
  }
}

/* icono grande */
.big-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
}

/* items */
.info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

/* texto */
.info-item span {
  color: #475569;
  margin: 15px 0;
}

/* hover más pro */
.info-item:hover {
  transform: translateX(5px);
  transition: 0.3s;
}

/* ================= MOBILE ================= */
/* BOTÓN */
.menu-toggle {
  display: none;
  width: 30px;
  height: 22px;
  position: relative;
  cursor: pointer;
  z-index: 200;
}

/* LAS 3 LÍNEAS */
.menu-toggle span {
  position: absolute;
  width: 100%;
  height: 3px;
  background: currentColor;
  left: 0;
  transition: all 0.4s ease;
  border-radius: 5px;
}

.menu-toggle span {
  transition: all 0.35s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

/* POSICIÓN INICIAL */
.menu-toggle span:nth-child(1) {
  top: 0;
}

.menu-toggle span:nth-child(2) {
  top: 9px;
}

.menu-toggle span:nth-child(3) {
  bottom: 0;
}

/* ===== ANIMACIÓN A X ===== */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 9px;
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg);
  bottom: 10px;
}

.menu-toggle.active {
  color: #fff !important;
}

/* ================= RESPONSIVE FIX ================= */
@media (max-width: 768px) {

  /* HEADER */
  header {
    padding: 15px 20px;
  }

  .menu-toggle {
    display: block;
    color: white;
  }

  /* estado inicial (hero oscuro) */
  header.top .menu-toggle {
    color: white;
  }

  /* cuando haces scroll (fondo claro) */
  header.scrolled .menu-toggle {
    color: #002168;
  }

  .menu-toggle span {
    background: currentColor;
  }

  /* CONTENEDOR MENU */
  nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 75%;

    background: rgba(0, 26, 77, 0.96);
    backdrop-filter: blur(12px);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 35px;

    transform: translateX(100%);
    transition: transform 0.4s ease;

    z-index: 150;
  }

  /* MENU ACTIVO */
  nav.active {
    transform: translateX(0);
  }

  /* LINKS */
  nav a {
    font-size: 22px;
    font-weight: 500;
    color: #fff !important;
    text-decoration: none;
    position: relative;
    transition: 0.3s ease;
  }

  /* EFECTO HOVER */
  nav a::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 50%;
    width: 0%;
    height: 2px;
    background: white;
    transform: translateX(-50%);
    transition: 0.3s ease;
  }

  nav a:hover::after {
    width: 100%;
  }

  nav a:hover {
    transform: translateY(-2px);
  }

  /* HAMBURGUESA */
  .menu-toggle {
    display: block;
    font-size: 26px;
    cursor: pointer;
    z-index: 200;
  }

  /* MINI HERO */
  .mini-hero {
    height: 40vh;
    padding: 20px;
    text-align: center;
  }

  .mini-hero h1 {
    font-size: 24px;
  }

  /* VALUES (CLAVE 🔥) */
  .values {
    padding: 60px 20px;
  }

  .values-row {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .value {
    width: 100%;
    max-width: 400px;
  }

  /* CONTACT */
  .contact {
    padding: 60px 20px;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }

  .contact-info,
  .contact-map {
    padding: 20px;
  }

  .contact-map iframe {
    height: 250px;
  }

}

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;

  width: 60px;
  height: 60px;

  background: #25D366;
  color: white;

  border-radius: 50%;

  display: flex;
  justify-content: center;
  align-items: center;

  font-size: 32px;

  text-decoration: none;

  box-shadow: 0 8px 20px rgba(0,0,0,0.25);

  z-index: 999;

  transition: all 0.3s ease;
}

/* hover */
.whatsapp-float:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.3);
}

/* animación suave */
.whatsapp-float::before {
  content: "";
  position: absolute;

  width: 100%;
  height: 100%;

  border-radius: 50%;
  background: rgba(37, 211, 102, 0.4);

  animation: pulse 2s infinite;
  z-index: -1;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }

  70% {
    transform: scale(1.5);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 0;
  }
}