/* Cookie Banner Styles - Encapsulado */
.amecs-cookie-banner {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  max-width: 420px;
  animation: amecs-cookie-slideIn 0.5s ease-out;
}

@keyframes amecs-cookie-slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.amecs-cookie-container {
  background: linear-gradient(135deg, rgba(0, 1, 5, 0.95) 0%, rgba(0, 10, 48, 0.9) 100%);
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
}

.amecs-cookie-content {
  padding: 28px;
}

.amecs-cookie-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.amecs-cookie-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #175075 0%, #29558f 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.amecs-cookie-icon svg {
  width: 28px;
  height: 28px;
}

.amecs-cookie-header h3 {
  color: white;
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.amecs-cookie-body {
  margin-bottom: 28px;
}

.amecs-cookie-body p {
  color: rgba(255, 255, 255, 0.92);
  font-size: .8rem;
  line-height: 1.6;
  margin-bottom: 24px;
  font-weight: 400;
}

.amecs-cookie-settings {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 20px;
  margin-top: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  animation: amecs-cookie-fadeIn 0.3s ease;
}

@keyframes amecs-cookie-fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.amecs-cookie-option {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.amecs-cookie-option:last-child {
  border-bottom: none;
}

.amecs-cookie-switch {
  position: relative;
  display: inline-block;
  width: 54px;
  height: 28px;
  flex-shrink: 0;
}

.amecs-cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.amecs-cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.15);
  transition: .4s;
  border-radius: 34px;
}

.amecs-cookie-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.amecs-cookie-switch input:checked + .amecs-cookie-slider {
  background: linear-gradient(135deg, #01e401 0%, #01e401  100%);
  box-shadow: 0 0 10px rgba(200, 0, 167, 0.4);
}

.amecs-cookie-switch input:checked + .amecs-cookie-slider:before {
  transform: translateX(26px);
}

.amecs-cookie-switch input:disabled + .amecs-cookie-slider {
  background-color: rgba(255, 255, 255, 0.1);
  cursor: not-allowed;
}

.amecs-cookie-label {
  flex: 1;
}

.amecs-cookie-label strong {
  display: block;
  color: white;
  font-size: 1rem;
  margin-bottom: 4px;
  font-weight: 600;
}

.amecs-cookie-label span {
  display: block;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.88rem;
  line-height: 1.4;
}

/* Botones en disposición VERTICAL */
.amecs-cookie-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.amecs-cookie-btn {
  padding: 14px 24px;
  border-radius: 12px;
  border: none;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  width: 100%;
  letter-spacing: 0.5px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.amecs-cookie-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

.amecs-cookie-btn:focus:not(:active)::after {
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  100% {
    transform: scale(20, 20);
    opacity: 0;
  }
}

.amecs-cookie-btn-primary {
  background: linear-gradient(135deg, #002550 0%, #00285c 100%);
  color: white;
  border: 1px solid #0100445d;
}

.amecs-cookie-btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.amecs-cookie-btn-accept {
  background: linear-gradient(135deg, #299fff 0%, #00b4d4 100%);
  color: white;
  border: 1px solid rgba(41, 121, 255, 0.3);
}

.amecs-cookie-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.amecs-cookie-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.amecs-cookie-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
}

.amecs-cookie-btn-primary:hover {
  background: linear-gradient(135deg, #19384d 0%, #19243a 100%);
  box-shadow: 0 8px 20px rgba(25, 30, 58, 0.25);
}

.amecs-cookie-btn-accept:hover {
  background: linear-gradient(135deg, #1c68ff 0%, #1a56ff 100%);
  box-shadow: 0 8px 20px rgba(41, 121, 255, 0.25);
}

/* Indicador de que hay más opciones */
.amecs-cookie-customize-indicator {
  display: inline-block;
  margin-left: 8px;
  font-size: 0.9em;
  opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
  .amecs-cookie-banner {
    left: 20px;
    right: 20px;
    bottom: 20px;
    max-width: none;
    border-radius: 18px;
  }
  
  .amecs-cookie-content {
    padding: 22px;
  }
  
  .amecs-cookie-header {
    margin-bottom: 20px;
  }
  
  .amecs-cookie-icon {
    width: 44px;
    height: 44px;
  }
  
  .amecs-cookie-icon svg {
    width: 24px;
    height: 24px;
  }
  
  .amecs-cookie-header h3 {
    font-size: 1.3rem;
  }
  
  .amecs-cookie-body p {
    font-size: 0.7rem;
  }
  
  .amecs-cookie-btn {
    padding: 13px 20px;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .amecs-cookie-banner {
    left: 15px;
    right: 15px;
    bottom: 15px;
  }
  
  .amecs-cookie-content {
    padding: 18px;
  }
  
  .amecs-cookie-header {
    gap: 12px;
  }
  
  .amecs-cookie-icon {
    width: 40px;
    height: 40px;
  }
  
  .amecs-cookie-header h3 {
    font-size: 1.2rem;
  }
  
  .amecs-cookie-btn {
    padding: 12px 18px;
  }
}

/* Estado oculto */
.amecs-cookie-banner[hidden] {
  display: none !important;
}

/* Animación para desaparecer */
.amecs-cookie-banner.hiding {
  animation: amecs-cookie-slideOut 0.4s ease-in forwards;
}

@keyframes amecs-cookie-slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}