/**
 * Cookie Banner Styles - Anteojos Ediciones
 * Paleta institucional: verde (#0a6b63), turquesa (#78c8c3), rosa (#eeb9b0), amarillo (#f4cb64)
 */

/* ==== BANNER CONTENEDOR ==== */
.ae-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 0 16px 16px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(100%);
  transition:
    opacity 0.4s ease,
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-family: "Raleway", sans-serif;
}

.ae-cookie-banner.ae-cb-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.ae-cookie-banner.ae-cb-hiding {
  opacity: 0;
  transform: translateY(100%);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
  pointer-events: none;
}

/* ==== INNER WRAPPER ==== */
.ae-cb-inner {
  max-width: 1200px;
  margin: 0 auto;
  background: linear-gradient(135deg, #064f49 0%, #0a6b63 60%, #37958e 100%);
  border-radius: 20px;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow:
    0 -4px 30px rgba(10, 107, 99, 0.25),
    0 8px 32px rgba(0, 0, 0, 0.15);
  color: #ffffff;
  border: 1px solid rgba(120, 200, 195, 0.3);
}

/* ==== ICONO ==== */
.ae-cb-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f4cb64;
}

.ae-cb-icon svg {
  width: 28px;
  height: 28px;
}

/* ==== TEXTO ==== */
.ae-cb-text {
  flex: 1;
  min-width: 0;
}

.ae-cb-text p {
  font-size: 0.92rem;
  line-height: 1.65;
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
}

.ae-cb-text strong {
  color: #ffffff;
  font-weight: 700;
}

/* ==== BOTONES ==== */
.ae-cb-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.ae-cb-link {
  color: #78c8c3;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid rgba(120, 200, 195, 0.4);
  padding-bottom: 2px;
  transition: all 0.3s ease;
}

.ae-cb-link:hover,
.ae-cb-link:focus {
  color: #f4cb64;
  border-bottom-color: #f4cb64;
  outline: none;
}

.ae-cb-btn {
  background: #ffffff;
  color: #0a6b63;
  border: none;
  padding: 12px 28px;
  border-radius: 999px;
  font-family: "Raleway", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.ae-cb-btn:hover,
.ae-cb-btn:focus {
  background: #f4cb64;
  color: #064f49;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  outline: none;
}

.ae-cb-btn:active {
  transform: translateY(0);
}

/* ==== FOCUS VISIBLE (accesibilidad) ==== */
.ae-cb-btn:focus-visible,
.ae-cb-link:focus-visible {
  outline: 3px solid #f4cb64;
  outline-offset: 3px;
}

/* ==== RESPONSIVE: TABLET ==== */
@media (max-width: 860px) {
  .ae-cb-inner {
    flex-wrap: wrap;
    padding: 20px 24px;
    gap: 16px;
  }

  .ae-cb-icon {
    width: 40px;
    height: 40px;
  }

  .ae-cb-icon svg {
    width: 24px;
    height: 24px;
  }

  .ae-cb-text {
    flex-basis: calc(100% - 60px);
  }

  .ae-cb-text p {
    font-size: 0.88rem;
  }

  .ae-cb-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

/* ==== RESPONSIVE: MÓVIL ==== */
@media (max-width: 540px) {
  .ae-cookie-banner {
    padding: 0 10px 10px;
  }

  .ae-cb-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 18px 20px;
    border-radius: 16px;
    gap: 14px;
  }

  .ae-cb-icon {
    display: none;
  }

  .ae-cb-text p {
    font-size: 0.85rem;
    line-height: 1.6;
    text-align: center;
  }

  .ae-cb-actions {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .ae-cb-btn {
    width: 100%;
    text-align: center;
    padding: 14px 24px;
  }

  .ae-cb-link {
    font-size: 0.85rem;
  }
}
