.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

/* ================= HEADER ================= */

.site-header{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;

  background: transparent;
  box-shadow: none;

  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-solid{
  background: #f5f5f5;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.site-header:not(.is-solid) .nav-link{
  color: rgb(15 15 15);
}

/* Ajuste cuando estás logueado en WordPress */
body.admin-bar .site-header{
  top: 32px;
}

@media (max-width: 782px){
  body.admin-bar .site-header{
    top: 46px;
  }
}

/* Espacio para que el contenido no quede debajo del header */
.site-main{
  margin-top: 156px;
}

/* ================= ESTRUCTURA ================= */

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 8px 0;
}

.brand-logo{
  display: block;
  height: 80px;
  width: auto;
}

/* ================= NAV DESKTOP ================= */

.main-nav{
  display: flex;
  align-items: center;
  gap: 44px;
  position: relative;
}

.nav-toggle{
  display: none;
}

.nav-menu{
  display: flex;
  align-items: center;
  position: relative;
  top: -16px;
  gap: 44px;
}

.nav-link{
  display: inline-flex;
  align-items: center;
  gap: 12px;

  color: rgb(var(--color-dark));
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.1;

  transition: color 0.2s ease;
}

.nav-link::before{
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  background: url("../images/icono-circulo.png") no-repeat center / contain;
  opacity: 0.55;
}

.nav-link:hover{
  color: rgb(var(--color-blue));
}

.nav-link.is-disabled{
  opacity: 0.5;
  cursor: default;
}

/* ================= HEADER — TABLET ================= */
@media (max-width: 1024px){

  .brand-logo{
    height: 72px;
    padding-left: 16px;
  }

  .main-nav,
  .nav-menu{
    gap: 24px;
  }

  .nav-link{
    font-size: 16px;
  }

  .site-main{
    margin-top: 100px;
  }
}

/* ================= HEADER — MÓVIL ================= */
@media (max-width: 782px){

  .header-inner{
    padding: 12px 0;
    gap: 14px;
  }

  .brand-logo{
    height: 64px;
    padding-left: 16px;
  }

  .site-main{
    margin-top: 88px;
  }

  .nav-toggle{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 14px;
    border: 2px solid rgba(var(--color-gray), 0.35);
    background: transparent;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    color: rgb(var(--color-dark));
  }

  .nav-menu{
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(320px, 92vw);

    background: #f5f5f5;
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
    border-radius: 16px;
    padding: 16px;

    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .main-nav.is-open .nav-menu{
    display: flex;
  }

  .nav-link{
    font-size: 15px;
  }

  .nav-link::before{
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
  }

  /* Ajuste admin bar en móvil */
  body.admin-bar .site-header{
    top: 46px;
  }
}

/* ================= HEADER — MÓVIL “ESTÁNDAR” 360/390 ================= */
/* iPhone 13 (390) y Galaxy S22+ (360) quedan cubiertos aquí */
@media (max-width: 420px){

  .header-inner{
    padding: 10px 0;
    gap: 12px;
  }

  .brand-logo{
    height: 60px;
    padding-left: 16px;
  }

  .site-main{
    margin-top: 84px;
  }

  .nav-toggle{
    height: 42px;
    padding: 0 12px;
  }

  .nav-menu{
    width: min(300px, 92vw);
    padding: 14px;
  }
}

/* ================= FOOTER ================= */

.site-footer{
  position: relative;
  z-index: 1;
  color: rgb(var(--color-white));
  padding: 100px 0 80px;

  /* IMPORTANTE: permite que el círculo salga hacia arriba */
  overflow: visible;

  /* ANTES: background: linear-gradient(...) */
  /* AHORA: color uniforme */
  background: #232b6b; /* usa el color que quieras */
}

/* Medio círculo decorativo (dentro del footer, subido) */
.site-footer .footer-decoration{
  position: absolute;
  right: -220px;
  top: -260px; /* AJUSTA: más negativo = más hacia arriba */
  width: 650px;
  height: 650px;

  background: url("../images/medio-circulo-izquierdo.png") no-repeat center / contain;
  opacity: 0.25;
  pointer-events: none;

  z-index: 1;
}

.site-footer a{
  color: inherit;
}

/* Wrapper */
.footer-wrapper{
  position: relative;
  z-index: 2; /* contenido por encima del círculo */

  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Logo */
.footer-brand{
  display: flex;
}

.footer-logo{
  width: 180px;
  height: auto;
  display: block;
}

/* Grid */
.footer-inner{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 60px;
  align-items: start;
}

/* Títulos */
.footer-title{
  color: rgb(var(--color-orange));
  font-size: 28px;
  margin: 0 0 18px;
}

/* Listas */
.footer-list{
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-list li{
  margin: 10px 0;
}

.footer-list a{
  text-decoration: none;
  font-size: 20px;
  transition: opacity 0.2s ease;
}

.footer-list a:hover{
  opacity: 0.8;
}

/* Contacto */
.footer-contact .contact-line{
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0;
  font-size: 20px;
}

/* Iconos Tel / Mail */
.contact-line::before{
  content: "";
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.contact-phone::before{
  background-image: url("../images/icono-telefono.png");
}

.contact-mail::before{
  background-image: url("../images/icono-mail.png");
}

/* Redes Sociales */
.social-links{
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.social-links a{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 20px;
  transition: opacity 0.2s ease;
}

.social-links a:hover{
  opacity: 0.8;
}

/* Iconos RRSS */
.social-links a::before{
  content: "";
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.social-links a[href*="facebook"]::before{
  background-image: url("../images/icono-facebook.png");
}

.social-links a[href*="instagram"]::before{
  background-image: url("../images/icono-instagram.png");
}

.social-links a[href*="wa.me"]::before,
.social-links a[href*="whatsapp"]::before{
  background-image: url("../images/icono-whatsapp.png");
}

/* Convertir iconos a blanco */
.contact-line::before,
.social-links a::before{
  filter: brightness(0) invert(1);
}

/* Evita que textos largos rompan el layout */
.footer-col a{
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ================= FOOTER — TABLET ================= */
@media (max-width: 1024px){

  .site-footer{
    padding: 80px 0 64px;
  }

  .footer-inner{
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer-logo{
    width: 160px;
  }

  .footer-title{
    font-size: 24px;
  }

  .footer-list a,
  .footer-contact .contact-line,
  .social-links a{
    font-size: 18px;
  }

  .site-footer .footer-decoration{
    width: 520px;
    height: 520px;
    right: -200px;
    top: -220px;
    opacity: 0.22;
  }
}

/* ================= FOOTER — MOBILE ================= */
@media (max-width: 782px){

  .site-footer{
    padding: 64px 0 52px;
  }

  .footer-wrapper{
    gap: 32px;
  }

  .footer-inner{
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-logo{
    width: 150px;
  }

  .footer-title{
    font-size: 22px;
  }

  .footer-list a,
  .footer-contact .contact-line,
  .social-links a{
    font-size: 17px;
  }

  .site-footer .footer-decoration{
    width: 420px;
    height: 420px;
    right: -180px;
    top: -180px;
    opacity: 0.18;
  }
}

/* ================= FOOTER — MOBILE 360 / 390 ================= */
/* Optimizado para Galaxy S22+ (360px) y iPhone 13 (390px) */
@media (max-width: 420px){

  .site-footer{
    padding: 56px 0 46px;
  }

  .footer-wrapper{
    gap: 26px;
  }

  .footer-logo{
    width: 140px;
  }

  .footer-title{
    font-size: 20px;
  }

  .footer-list a,
  .footer-contact .contact-line,
  .social-links a{
    font-size: 16px;
  }

  .contact-line::before,
  .social-links a::before{
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
  }

  .site-footer .footer-decoration{
    width: 360px;
    height: 360px;
    right: -200px;
    top: -150px;
    opacity: 0.15;
  }
}