/* ========================= */
/* FOOTER BASE */
/* ========================= */

.footer {
  width: 100%;
  background-color: var(--verde);
}

.footer-grid {
  display: flex;
  flex-direction: row;
  gap: 30px;

  padding: 20px 40px;
}

.footer-h3 {
  color: var(--blanco);
  font-size: var(--text-h3);
}

/* ========================= */
/* LINKS FOOTER */
/* ========================= */

.footer-a {
  position: relative;
  display: inline-block;

  color: var(--blanco);
  text-decoration: none;
  font-size: var(--text-md);

  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

.footer-a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;

  width: 0;
  height: 2px;

  background: var(--blanco);

  transition: width 0.3s ease;
}

.footer-a:hover {
  color: var(--blanco);
  transform: translateX(4px);
}

.footer-a:hover::after {
  width: 100%;
}

/* ========================= */
/* COLUMNA 1 - BRAND */
/* ========================= */

.footer-brand {
  width: 500px;
}

.footer-logo {
  display: flex;
  flex-direction: row;
  gap: 20px;

  height: 60%;
}


.footer-svg {
  width: 100px;
  height: auto;
  fill: var(--blanco);
}

.footer-logo-txt {
  display: flex;
  flex-direction: column;
  align-items: center;

  margin-top: 20px;
  margin-bottom: 20px;

  color: var(--blanco);
  font-family: 'Copperplate';
}

.footer-logo-txt h2 {
  margin-bottom: 0;
  font-size: var(--text-h1);
}

.footer-logo-txt p {
  margin-top: 0;
  font-size: var(--text-h2);
}

.footer-brand-txt {
  margin-top: 0;

  color: var(--blanco);
  font-size: var(--text-lg);
}

/* ========================= */
/* REDES SOCIALES */
/* ========================= */

.footer-social {
  color: var(--blanco);
  font-size: var(--text-h1);
}

.footer-social a {
  color: var(--blanco);
  font-size: var(--text-hero-sub);

  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.footer-social a:hover {
  transform: translateY(-4px) scale(1.08);
  opacity: 0.85;
}

/* ========================= */
/* COLUMNA 2 - NAV */
/* ========================= */

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 30px;

  width: 400px;
}

/* ========================= */
/* COLUMNA 3 - HELP */
/* ========================= */

.footer-help {
  display: flex;
  flex-direction: column;
  gap: 30px;

  width: 400px;
}

/* ========================= */
/* COLUMNA 4 - EXTRA */
/* ========================= */

.footer-extra {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.footer-asociaciones i {
  margin-right: 20px;

  color: var(--blanco);
  font-size: var(--text-h1);
}

/* ========================= */
/* NEWSLETTER */
/* ========================= */

.footer-newsletter p {
  color: var(--blanco);
}

.newsletter-form {
  display: flex;
  align-items: stretch;
  overflow: hidden;

  width: 100%;
  max-width: 380px;
  margin-top: 24px;

  border-radius: 14px;

  transition:
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

.newsletter-form:focus-within {
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.15);
}

.newsletter-input {
  flex: 1;
  height: 52px;
  padding: 0 18px;

  border: none;
  outline: none;
  border-radius: 12px 0 0 12px;

  background: rgba(255, 255, 255, 0.95);
  color: var(--negro);

  font-family: "Montserrat", sans-serif;
  font-size: var(--text-md);
  font-weight: 500;

  transition: background-color 0.3s ease;
}

.newsletter-input::placeholder {
  color: rgba(0, 0, 0, 0.45);
}

.newsletter-input:focus {
  background: #fff;
}

.newsletter-btn {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 58px;
  height: 52px;

  border: none;
  border-radius: 0 12px 12px 0;

  background: var(--naranja);
  color: var(--blanco);

  cursor: pointer;

  transition: background-color 0.3s ease;
}

.newsletter-btn:hover {
  background: var(--naranja-oscuro);
}

.newsletter-btn i {
  font-size: var(--text-md);
  transition: transform 0.3s ease;
}

.newsletter-btn:hover i {
  transform: translateX(4px);
}

/* ========================= */
/* FOOTER BOTTOM */
/* ========================= */

.footer-bottom {
  position: relative;

  width: 100%;
  margin-top: 1%;
  padding-top: 1%;
}

.footer-bottom::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;

  width: 96%;
  height: 3px;

  background: rgba(255, 255, 255, 0.35);

  transform: translateX(-50%);
}

.footer-bottom p {
  margin: 0;
  padding-left: 2%;
  padding-bottom: 1%;

  color: var(--blanco);
  font-size: var(--text-sm);
  font-weight: 400;
}

/* ========================= */
/* FOOTER RESPONSIVE */
/* ========================= */

/* ========================= */
/* TABLET */
/* ========================= */

@media (max-width: 992px) {
  .footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 36px 32px;

    padding: 40px 32px;
  }

  /* ========================= */
  /* BRAND */
  /* ========================= */

  .footer-brand {
    grid-column: 1;
    grid-row: 1 / 3;

    width: 100%;
  }

  .footer-logo {
    align-items: center;
    gap: 18px;

    height: auto;
  }

  .footer-svg {
    width: 90px;
  }

  .footer-logo-txt {
    align-items: flex-start;
    margin: 0;
  }

  .footer-brand-txt {
    max-width: 520px;

    font-size: var(--text-md);
    line-height: 1.5;
  }

  .footer-social a {
    font-size: 2.3rem;
  }

  /* ========================= */
  /* EXTRA */
  /* ========================= */

  .footer-extra {
    grid-column: 2;
    grid-row: 1 / 3;

    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;

    width: 100%;
  }

  .footer-asociaciones i {
    margin-right: 14px;
    font-size: 2rem;
  }

  .newsletter-form {
    max-width: 100%;
  }

  /* ========================= */
  /* NAV + HELP */
  /* ========================= */

  .footer-nav,
  .footer-help {
    width: 100%;
    gap: 18px;
  }

  .footer-nav {
    grid-column: 1;
    grid-row: 3;
  }

  .footer-help {
    grid-column: 2;
    grid-row: 3;
  }

  .footer-h3 {
    margin-bottom: 6px;
    font-size: 1.25rem;
  }

  .footer-a {
    font-size: var(--text-sm);
  }

  /* ========================= */
  /* BOTTOM */
  /* ========================= */

  .footer-bottom {
    margin-top: 0;
    padding-top: 18px;
  }

  .footer-bottom p {
    padding: 0 32px 18px;
    font-size: 0.8rem;
  }
}

/* ========================= */
/* MÓVIL GRANDE */
/* ========================= */

@media (max-width: 768px) {
  .footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px 22px;

    padding: 38px 22px 26px;
  }

  /* BRAND */

  .footer-brand {
    grid-column: 1;
    grid-row: 1 / 3;
  }

  .footer-logo {
    gap: 14px;
  }

  .footer-svg {
    width: 72px;
  }

  .footer-logo-txt h2 {
    font-size: 1.9rem;
  }

  .footer-logo-txt p {
    font-size: 1.05rem;
  }

  .footer-brand-txt {
    font-size: var(--text-sm);
    line-height: 1.5;
  }

  .footer-social a {
    font-size: 1.8rem;
  }

  /* EXTRA */

  .footer-extra {
    grid-column: 2;
    grid-row: 1 / 3;

    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .footer-asociaciones i {
    margin-right: 10px;
    font-size: 1.6rem;
  }

  /* NAV + HELP */

  .footer-nav,
  .footer-help {
    gap: 16px;
  }

  .footer-nav {
    grid-column: 1;
    grid-row: 3;
  }

  .footer-help {
    grid-column: 2;
    grid-row: 3;
  }

  .footer-h3 {
    font-size: 1.1rem;
  }

  .footer-a {
    font-size: 0.88rem;
  }

  /* NEWSLETTER */

  .newsletter-input {
    font-size: 0.88rem;
  }

  /* BOTTOM */

  .footer-bottom::before {
    width: 94%;
  }

  .footer-bottom p {
    padding: 0 22px 16px;
    font-size: 0.74rem;
  }
}

/* ========================= */
/* MÓVIL PEQUEÑO */
/* ========================= */

@media (max-width: 480px) {
  .footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 16px;

    padding: 30px 14px 20px;
  }

  /* ========================= */
  /* BRAND */
  /* ========================= */

  .footer-brand {
    position: relative;

    grid-column: 1 / -1;
    grid-row: 1;

    width: 100%;
  }

  .footer-logo {
    width: calc(100% - 72px);
    height: auto;

    display: flex;
    align-items: center;
    gap: 10px;
  }

  .footer-svg {
    width: 52px;
    flex-shrink: 0;
  }

  .footer-logo-txt {
    align-items: flex-start;
    margin: 0;
  }

  .footer-logo-txt h2 {
    font-size: 2rem;
  }

  .footer-logo-txt p {
    font-size: 1rem;
  }

  .footer-brand-txt {
    margin-top: 12px;
    max-width: 72%;

    font-size: 1rem;
    line-height: 1.45;
  }

  /* ========================= */
  /* RRSS */
  /* ========================= */

  .footer-social {
    position: absolute;
    top: 20px;
    right: 6px;

    display: flex;
    align-items: center;
    gap: 20px;
  }

  .footer-social a {
    font-size: 3rem;
  }

  /* ========================= */
  /* EXTRA */
  /* ========================= */

  .footer-extra {
    display: contents;
  }

  .footer-asociaciones {
    grid-column: 1;
    grid-row: 2;
  }

  .footer-asociaciones i {
    margin-right: 6px;
    font-size: 1.1rem;
  }

  .footer-newsletter {
    grid-column: 2;
    grid-row: 2;
  }

  .footer-newsletter p {
    font-size: 0.72rem;
    line-height: 1.45;
  }

  /* ========================= */
  /* NEWSLETTER */
  /* ========================= */

  .newsletter-form {
    margin-top: 12px;
    max-width: 100%;
  }

  .newsletter-input {
    height: 40px;
    padding: 0 12px;

    font-size: 0.72rem;
  }

  .newsletter-btn {
    width: 40px;
    height: 40px;
  }

  .newsletter-btn i {
    font-size: 0.72rem;
  }

  /* ========================= */
  /* NAV + HELP */
  /* ========================= */

  .footer-nav {
    grid-column: 1;
    grid-row: 3;
  }

  .footer-help {
    grid-column: 2;
    grid-row: 3;
  }

  .footer-nav,
  .footer-help {
    gap: 10px;
    width: 100%;
  }

  .footer-h3 {
    font-size: 0.9rem;
    line-height: 1.15;
  }

  .footer-a {
    font-size: 0.72rem;
  }

  /* ========================= */
  /* BOTTOM */
  /* ========================= */

  .footer-bottom::before {
    width: 90%;
    height: 2px;
  }

  .footer-bottom p {
    padding: 0 14px 12px;
    font-size: 0.6rem;
  }
}


/* ==========================================================================
   BANNER DE COOKIES GLOBAL
   ========================================================================== */

#azahar-cookie-banner {
  display: none;
  position: fixed !important;
  bottom: 20px !important;
  left: 20px !important;
  right: 20px !important;
  max-width: 520px !important;
  margin: 0 auto !important;
  background-color: #ffffff !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25) !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  padding: 20px !important;
  z-index: 9999999 !important;
  box-sizing: border-box !important;
}

.cookie-banner-wrapper {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.cookie-banner-icon {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-banner-icon i {
  color: var(--naranja, #e67e22);
  font-size: 4rem;
}

.cookie-banner-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-grow: 1;
}

.cookie-banner-text p {
  font-size: 0.9rem;
  color: #4a5568;
  line-height: 1.45;
  margin: 0;
}

.cookie-banner-text a {
  color: var(--naranja, #e67e22);
  text-decoration: underline;
  font-weight: 500;
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.btn-cookie {
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.btn-cookie:active {
  transform: scale(0.97);
}

.btn-cookie-secondary {
  background-color: #edf2f7;
  color: #4a5568;
}

.btn-cookie-secondary:hover {
  background-color: #e2e8f0;
}

.btn-cookie-primary {
  background-color: var(--naranja, #e67e22);
  color: #ffffff;
}

.btn-cookie-primary:hover {
  filter: brightness(1.08);
}

@media (max-width: 480px) {
  #azahar-cookie-banner {
    bottom: 12px !important;
    left: 12px !important;
    right: 12px !important;
    padding: 16px !important;
  }

  .cookie-banner-actions {
    flex-direction: column-reverse;
  }

  .btn-cookie {
    width: 100%;
    text-align: center;
  }
}