/* 
 * COOKIES BANNER - Instituto de Córnea S.A.S.
 * Barra de consentimiento de cookies discreta y premium
 * El banner permanece visible en la parte inferior sin bloquear la navegación
 * Los usuarios pueden hacer scroll y navegar libremente mientras el banner está visible
 */

.cookies-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
  padding: 1.25rem 1.5rem;
  z-index: var(--z-index-cookies-banner, 10000);
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
              opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: var(--font-family-primary, 'Montserrat', sans-serif);
}

.cookies-banner.show {
  transform: translateY(0);
  opacity: 1;
}

.cookies-banner-container {
  max-width: var(--container-max-width, 1200px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookies-banner-content {
  flex: 1;
  min-width: 280px;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cookies-banner-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-orange, #ff6600) 0%, var(--secondary-orange, #ff8533) 100%);
  border-radius: 50%;
  color: white;
  font-size: 1.125rem;
}

.cookies-banner-text {
  flex: 1;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--black, #333);
  font-weight: var(--font-weight-normal, 400);
}

.cookies-banner-text strong {
  font-weight: var(--font-weight-semibold, 600);
  color: var(--black, #333);
}

.cookies-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookies-banner-btn {
  padding: 0.625rem 1.5rem;
  border-radius: var(--border-radius-md, 1rem);
  font-size: 0.9375rem;
  font-weight: var(--font-weight-semibold, 600);
  font-family: var(--font-family-primary, 'Montserrat', sans-serif);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  outline: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}

.cookies-banner-btn-accept {
  background: linear-gradient(135deg, var(--primary-orange, #ff6600) 0%, var(--secondary-orange, #ff8533) 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(255, 102, 0, 0.25);
}

.cookies-banner-btn-accept:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 102, 0, 0.35);
}

.cookies-banner-btn-accept:active {
  transform: translateY(0);
}

.cookies-banner-btn-reject {
  background: transparent;
  color: var(--gray-medium, #666);
  border: 1.5px solid var(--gray-light, #e0e0e0);
}

.cookies-banner-btn-reject:hover {
  background: var(--gray-light, #f5f5f5);
  color: var(--black, #333);
  border-color: var(--gray-medium, #999);
}

.cookies-banner-btn-reject:active {
  background: var(--gray-light, #e8e8e8);
}

/* Responsive - Tablets (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
  .cookies-banner {
    padding: 1.125rem 1.5rem;
  }

  .cookies-banner-container {
    gap: 1.25rem;
  }

  .cookies-banner-text {
    font-size: 0.9375rem;
  }

  .cookies-banner-btn {
    padding: 0.6875rem 1.375rem;
    font-size: 0.9375rem;
  }
}

/* Responsive - Tablets pequeñas y móviles grandes (481px - 768px) */
@media (max-width: 768px) {
  .cookies-banner {
    padding: 1rem 1.25rem;
  }

  .cookies-banner-container {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .cookies-banner-content {
    flex-direction: row;
    min-width: 100%;
    gap: 0.875rem;
  }

  .cookies-banner-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
    flex-shrink: 0;
  }

  .cookies-banner-text {
    font-size: 0.875rem;
    line-height: 1.5;
  }

  .cookies-banner-actions {
    width: 100%;
    flex-direction: row;
    gap: 0.75rem;
    justify-content: stretch;
  }

  .cookies-banner-btn {
    flex: 1;
    width: 100%;
    padding: 0.75rem 1.25rem;
    min-height: 44px;
    font-size: 0.875rem;
  }
}

/* Responsive - Móviles pequeños (hasta 480px) */
@media (max-width: 480px) {
  .cookies-banner {
    padding: 0.875rem 1rem;
  }

  .cookies-banner-container {
    gap: 0.875rem;
  }

  .cookies-banner-content {
    gap: 0.75rem;
  }

  .cookies-banner-icon {
    width: 32px;
    height: 32px;
    font-size: 0.9375rem;
  }

  .cookies-banner-text {
    font-size: 0.8125rem;
    line-height: 1.5;
  }

  .cookies-banner-actions {
    flex-direction: column;
    gap: 0.625rem;
  }

  .cookies-banner-btn {
    width: 100%;
    padding: 0.8125rem 1.25rem;
    min-height: 44px;
    font-size: 0.875rem;
  }
}

/* Responsive - Móviles muy pequeños (hasta 360px) */
@media (max-width: 360px) {
  .cookies-banner {
    padding: 0.75rem 0.875rem;
  }

  .cookies-banner-text {
    font-size: 0.75rem;
    line-height: 1.4;
  }

  .cookies-banner-icon {
    width: 28px;
    height: 28px;
    font-size: 0.875rem;
  }

  .cookies-banner-btn {
    padding: 0.75rem 1rem;
    font-size: 0.8125rem;
  }
}

/* Animación de entrada suave */
@keyframes slideUpFadeIn {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookies-banner.show {
  animation: slideUpFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

