/* =====================================================
   FUNDACIÓN AGIOGLOBAL
   COMMON.CSS
   SOLO CABECERA Y FOOTER
   ===================================================== */

:root {
  --primary: #2579cc;
  --primary-dark: #185b9e;
  --primary-light: #eaf3fc;
  --accent: #d0774a;
  --accent-dark: #b96339;
  --white: #ffffff;
  --text: #303b49;
  --muted: #687585;
  --border: #e5ebf2;
}

@font-face {
  font-family: Nimbus Bold;
  src: url("../Font/NimbusSanTBold.ttf");
}

@font-face {
  font-family: Nimbus;
  src: url("../Font/NimbusSanT.ttf");
}

@font-face {
  font-family: Nimbus Light;
  src: url("../Font/NimbusSanTLig.ttf");
}

* {
  font-family: "Nimbus", sans-serif;
}

a {
  text-decoration: none;
}

/* =====================================================
   CABECERA
   ===================================================== */

.site-header {
  position: relative;
  z-index: 1000;
  width: 100%;
  background: var(--white);
  box-shadow: 0 3px 18px rgba(0, 0, 0, 0.07);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  width: 100%;
  min-height: 95px;
  margin: 0 auto;
  padding: 12px 0%;
}

.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-logo img {
  display: block;
  max-height: 140px;
  object-fit: contain;
}

.site-menu {
  position: relative;
  display: flex;
  flex: 1;
  justify-content: flex-end;
  align-items: center;
  padding-right: 1rem;
}

.site-menu-toggle {
  display: none;
}

.site-menu-content {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 25px;
  width: 100%;
}

.site-menu-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 1.8vw, 27px);
}

.site-menu-links > a {
  position: relative;
  padding: 10px 0;
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.25s ease;
  text-decoration: none;
}

.site-menu-links > a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

.site-menu-links > a:hover {
  color: var(--primary);
}

.site-menu-links > a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Botones cabecera */

.site-menu-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 43px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
  transition: 0.25s ease;
}

.nav-button-outline {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--white);
}

.nav-button-outline:hover {
  color: var(--white);
  background: var(--primary);
}

.nav-button-primary {
  color: var(--white);
  background: var(--accent);
}

.nav-button-primary:hover {
  color: var(--white);
  background: var(--accent-dark);
  transform: translateY(-2px);
}

/* Logo AgioGlobal */

.site-agioglobal {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding-left: 15px;
  border-left: 1px solid var(--border);
}

.site-agioglobal img {
  width: 105px;
  max-height: 55px;
  object-fit: contain;
}

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

.site-footer {
  width: 100%;
  color: var(--white);
  background: #173e65;
}

/* Zona principal */

.footer-main {
  padding: 65px 6%;
  background: linear-gradient(120deg, #173e65, #205c91);
}

.footer-container {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 45px;
  max-width: 1350px;
  margin: 0 auto;
}

/* Marca */

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 30px;
}

.footer-logo img {
  display: block;
  width: 240px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.footer-registration {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  max-width: 300px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.registration-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--primary-dark);
  background: var(--white);
  font-size: 1.2rem;
}

.footer-registration p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  line-height: 1.65;
}

/* Columnas */

.footer-column h3 {
  position: relative;
  margin: 0 0 25px;
  padding-bottom: 13px;
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
}

.footer-column h3::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 38px;
  height: 3px;
  border-radius: 5px;
  background: var(--accent);
  content: "";
}

.footer-column ul {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-column ul li a {
  display: inline-block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.footer-column ul li a:hover {
  color: var(--white);
  transform: translateX(4px);
}

/* Contacto */

.footer-contact-intro {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-phone {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
  transition: color 0.2s ease;
}

.footer-phone:hover {
  color: #f2b18e;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.88rem;
  line-height: 1.6;
  transition: color 0.2s ease;
}

.footer-contact-item:hover {
  color: var(--white);
}

.footer-contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.13);
  font-size: 0.95rem;
}

/* Redes sociales */

.footer-social {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 23px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 39px;
  height: 39px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  transition:
    background 0.25s ease,
    transform 0.25s ease;
}

.footer-social a:hover {
  background: var(--accent);
  transform: translateY(-4px);
}

.footer-social img {
  width: 19px;
  height: 19px;
  object-fit: contain;
}

/* =====================================================
   COLABORADORES
   ===================================================== */

.footer-partners {
  padding: 45px 0 40px;
  overflow: hidden;
  background: var(--white);
}

.footer-partners-heading {
  padding: 0 20px;
  margin-bottom: 35px;
  text-align: center;
}

.footer-partners-heading h3 {
  margin: 0 0 8px;
  color: var(--primary-dark);
  font-size: 1.5rem;
}

.footer-partners-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Carrusel continuo */

.partners-track {
  display: flex;
  width: max-content;
  animation: partners-scroll 45s linear infinite;
}

.partners-track:hover {
  animation-play-state: paused;
}

.partners-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 65px;
  padding: 10px 32px;
}

.partners-group a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 145px;
  height: 85px;
  flex-shrink: 0;
}

.partners-group img {
  display: block;
  max-width: 135px;
  max-height: 70px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition:
    filter 0.25s ease,
    opacity 0.25s ease;
}

.partners-group a:hover img {
  filter: grayscale(0);
  opacity: 1;
}

@keyframes partners-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* =====================================================
   COPYRIGHT
   ===================================================== */

.footer-bottom {
  padding: 22px 6%;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: #123451;
}

.footer-bottom-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1350px;
  margin: 0 auto;
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.footer-bottom a:hover {
  color: var(--white);
}

/* =====================================================
   TABLETS
   ===================================================== */

@media (max-width: 1150px) {
  .site-nav {
    gap: 20px;
    padding-right: 3%;
    padding-left: 3%;
  }

  .site-menu-content {
    gap: 15px;
  }

  .site-menu-links {
    gap: 15px;
  }

  .site-menu-links > a {
    font-size: 0.85rem;
  }

  .site-logo img {
    width: 155px;
  }

  .site-agioglobal img {
    width: 85px;
  }

  .nav-button {
    padding: 9px 12px;
    font-size: 0.8rem;
  }

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

/* =====================================================
   MENÚ MÓVIL
   ===================================================== */

@media (max-width: 850px) {
  .site-nav {
    min-height: 78px;
    padding: 0;
  }

  .site-logo img {
    width: 165px;
    max-height: 58px;
  }

  .site-menu {
    flex: 0 0 auto;
  }

  .site-menu-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 13px;
    border: 1px solid var(--border);
    border-radius: 7px;
    color: var(--primary-dark);
    background: var(--white);
    cursor: pointer;
    list-style: none;
    font-size: 0.9rem;
    font-weight: 700;
  }

  .site-menu-toggle::-webkit-details-marker {
    display: none;
  }

  .menu-toggle-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 22px;
  }

  .menu-toggle-icon span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 3px;
    background: var(--primary);
    transition:
      transform 0.25s ease,
      opacity 0.25s ease;
  }

  .site-menu[open] .menu-toggle-icon span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .site-menu[open] .menu-toggle-icon span:nth-child(2) {
    opacity: 0;
  }

  .site-menu[open] .menu-toggle-icon span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-menu-content {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 20px;
    width: min(340px, calc(100vw - 30px));
    padding: 25px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--white);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.13);
  }

  .site-menu[open] .site-menu-content {
    display: flex;
  }

  .site-menu-links {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .site-menu-links > a {
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
  }

  .site-menu-links > a::after {
    display: none;
  }

  .site-menu-actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .nav-button {
    width: 100%;
    min-height: 45px;
    font-size: 0.9rem;
  }

  .site-agioglobal {
    justify-content: center;
    padding: 18px 0 0;
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .site-agioglobal img {
    width: 115px;
  }
}

/* =====================================================
   MÓVILES
   ===================================================== */

@media (max-width: 650px) {
  .footer-main {
    padding: 50px 7%;
  }

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

  .footer-logo img {
    width: 220px;
  }

  .footer-registration {
    max-width: 100%;
  }

  .footer-column h3 {
    margin-bottom: 20px;
  }

  .footer-partners {
    padding: 35px 0;
  }

  .footer-partners-heading h3 {
    font-size: 1.25rem;
  }

  .partners-group {
    gap: 35px;
    padding: 10px 18px;
  }

  .partners-group a {
    width: 115px;
    height: 70px;
  }

  .partners-group img {
    max-width: 105px;
    max-height: 60px;
  }

  .footer-bottom {
    padding: 22px 7%;
  }

  .footer-bottom-content {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}

/* =====================================================
   MÓVILES PEQUEÑOS
   ===================================================== */

@media (max-width: 380px) {
  .site-nav {
    padding-right: 4%;
    padding-left: 4%;
  }

  .site-logo img {
    width: 135px;
  }

  .site-menu-toggle {
    gap: 8px;
    padding: 9px;
  }

  .menu-toggle-text {
    font-size: 0.8rem;
  }

  .site-menu-content {
    right: -5px;
  }
}
