@import url('https://fonts.googleapis.com/css?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700&display=swap');

:root{
  --azul: #2b496e;
  --azul-oscuro: #1a2633;
  --gris-texto: #6a7482;
  --gris-claro: #f2f4f7;
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: #333;
}

a{ text-decoration: none; }

/* ===================== HEADER ===================== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--azul);
  box-shadow: 0 2px 15px rgba(0,0,0,0.15);
}

.header-inner{
  max-width: 1300px;
  margin: 0 auto;
  padding: 24px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.header-logo img{
  height: 34px;
  display: block;
  border-radius: 4px;
}

.header-nav{
  display: flex;
  align-items: center;
  gap: 34px;
  margin-left: auto;
}

.header-nav a{
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  padding: 6px 2px;
  position: relative;
  transition: color .25s ease;
}

.header-nav a::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: #ffffff;
  transition: width .25s ease;
}

.header-nav a:hover{ color: #cfe0f5; }
.header-nav a:hover::after{ width: 100%; }
.header-nav a.activo{ color: #ffffff; }
.header-nav a.activo::after{ width: 100%; }

.header-nav a.btn-header-whatsapp{
  font-family: 'Outfit', sans-serif;
  background: #ffffff;
  color: var(--azul) !important;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color .4s cubic-bezier(.25,.8,.25,1), color .4s cubic-bezier(.25,.8,.25,1), transform .4s cubic-bezier(.25,.8,.25,1), box-shadow .4s cubic-bezier(.25,.8,.25,1);
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}

.header-nav a.btn-header-whatsapp::after{ display: none !important; }

.header-nav a.btn-header-whatsapp:hover{
  background: #eef2f7;
  color: var(--azul) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.22);
}

.header-nav a.btn-header-whatsapp:active{
  transform: translateY(0);
  transition-duration: .1s;
}

.header-burger{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.header-burger span{
  display: block;
  height: 2.5px;
  width: 100%;
  background: #ffffff;
  border-radius: 2px;
  transition: all .3s ease;
}

.header-burger.abierto span:nth-child(1){ transform: translateY(7.5px) rotate(45deg); }
.header-burger.abierto span:nth-child(2){ opacity: 0; }
.header-burger.abierto span:nth-child(3){ transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 860px){
  .header-nav{
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 78%;
    max-width: 320px;
    background: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 6px;
    padding: 90px 30px 30px 30px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.12);
    transition: right .35s ease;
  }
  .header-nav.abierto{ right: 0; }
  .header-nav a{ font-size: 17px; padding: 12px 0; width: 100%; border-bottom: 1px solid #eef1f5; color: var(--azul-oscuro); }
  .header-nav a::after{ background: var(--azul); }
  .header-nav a:hover{ color: var(--azul); }
  .header-nav a.activo{ color: var(--azul); }
  .header-nav a.btn-header-whatsapp{ margin-top: 14px; text-align: center; width: 100%; padding: 15px 20px; border-bottom: none; background: var(--azul); color: #fff !important; }
  .header-nav a.btn-header-whatsapp:hover{ background: #1f3552; color: #fff !important; }
  .header-burger{ display: flex; }
  .header-logo img{ height: 26px; }
}

.overlay-menu{
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,20,28,0.45);
  z-index: 900;
}
.overlay-menu.abierto{ display: block; }

/* ===================== FOOTER ===================== */
.site-footer{
  background: var(--azul);
  color: #d7e0ea;
  padding: 60px 20px 0 20px;
  font-family: 'Inter', sans-serif;
}

.footer-inner{
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand a.footer-logo{
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: .3px;
  line-height: 1.15;
  margin: 0 0 18px 0;
}

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

.footer-col.footer-brand p{
  font-size: 14px;
  line-height: 1.6;
  color: #c3ceda;
  margin: 0 0 22px 0;
}

.footer-brand .footer-social{ display: flex; gap: 20px; margin: 0; }

.footer-brand .footer-social a{
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .25s ease;
  flex-shrink: 0;
}

.footer-brand .footer-social a:hover{ transform: translateY(-3px); }

.footer-social svg{ display: block; width: 22px; height: 22px; fill: #ffffff; opacity: .8; transition: opacity .25s ease; }
.footer-social a:hover svg{ opacity: 1; }

.footer-col h4{
  font-family: 'Outfit', sans-serif;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 20px 0;
}

.footer-col a, .footer-col p{
  display: block;
  font-size: 14px;
  color: #c3ceda;
  line-height: 2;
  margin: 0;
  transition: color .2s ease;
}

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

.footer-bottom{
  max-width: 1300px;
  margin: 0 auto;
  padding: 22px 0;
  text-align: center;
  font-size: 13px;
  color: #7c8493;
}

@media (max-width: 860px){
  .footer-inner{
    grid-template-columns: 1fr 1fr;
    gap: 34px;
  }
}

@media (max-width: 560px){
  .footer-inner{ grid-template-columns: 1fr; }
}

/* ===================== BOTONES FLOTANTES ===================== */
.btn-flotante{
  position: fixed;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  z-index: 800;
  border: none;
  cursor: pointer;
  transition: all .25s ease;
  text-decoration: none;
}

.btn-flotante svg{ width: 28px; height: 28px; fill: #ffffff; }

.btn-whatsapp-flotante{
  bottom: 24px;
  background: #25D366;
}

.btn-whatsapp-flotante:hover{
  background: #20bd5a;
  transform: scale(1.08);
}

.btn-subir{
  bottom: 92px;
  background: var(--azul);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
}

.btn-subir.visible{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.btn-subir:hover{
  background: #1f3552;
  transform: translateY(-3px);
}

@media (max-width: 600px){
  .btn-flotante{ width: 48px; height: 48px; right: 16px; }
  .btn-flotante svg{ width: 23px; height: 23px; }
  .btn-whatsapp-flotante{ bottom: 16px; }
  .btn-subir{ bottom: 74px; }
}
