/* Aviso de Privacidad - Banner Principal */
.privacidad-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: linear-gradient(135deg, #548b3b 0%, #3a8a42 100%);
  color: #fff;
  padding: 12px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(-100%);
  animation: slideDown 0.6s ease forwards;
  animation-delay: 0.5s;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

.privacidad-banner.hidden {
  display: none;
}

.privacidad-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.privacidad-text {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
}

.privacidad-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.privacidad-icon svg {
  width: 20px;
  height: 20px;
}

.privacidad-message {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
}

.privacidad-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.privacidad-text-content {
  font-size: 0.9rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.5;
}

.privacidad-link {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.privacidad-link:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.privacidad-close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.privacidad-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg);
}

.privacidad-close svg {
  width: 20px;
  height: 20px;
}

/* Modal del Aviso de Privacidad */
.aviso-privacidad-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.aviso-privacidad-modal.active {
  opacity: 1;
  visibility: visible;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.aviso-privacidad-content {
  background: #fff;
  border-radius: 16px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.4s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.aviso-privacidad-header {
  background: linear-gradient(135deg, #548b3b 0%, #3a8a42 100%);
  color: #fff;
  padding: 25px 30px;
  border-radius: 16px 16px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.aviso-privacidad-header h2 {
  font-size: 1.8rem;
  margin: 0;
  flex: 1;
  font-weight: 700;
}

.aviso-privacidad-close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.aviso-privacidad-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.aviso-privacidad-close svg {
  width: 22px;
  height: 22px;
}

.aviso-privacidad-body {
  padding: 30px;
  color: #2c3e50;
}

.aviso-section {
  margin-bottom: 30px;
}

.aviso-section .version {
  color: #666;
  font-style: italic;
}

.aviso-section h4 {
  color: #548b3b;
  font-size: 1.1rem;
  margin: 20px 0 10px 0;
  font-weight: 600;
}

.aviso-section h3 {
  color: #548b3b;
  font-size: 1.3rem;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
  font-weight: 700;
}

.aviso-section p {
  margin-bottom: 15px;
  line-height: 1.8;
  color: #333;
}

.aviso-section ul {
  margin: 0 0 15px 20px;
  color: #333;
}

.aviso-section li {
  margin-bottom: 10px;
  line-height: 1.7;
  color: #333;
}

.aviso-section .aviso-table {
  width: 100%;
  border-collapse: collapse;
  margin: 15px 0;
  font-size: 0.9rem;
}

.aviso-section .aviso-table th,
.aviso-section .aviso-table td {
  padding: 12px;
  text-align: left;
  border: 1px solid #ddd;
}

.aviso-section .aviso-table th {
  background: #548b3b;
  color: #fff;
  font-weight: 600;
}

.aviso-section .aviso-table tr:nth-child(even) {
  background: #f9f9f9;
}

.aviso-section .aviso-table td:first-child {
  font-weight: 600;
  width: 40%;
}

.aviso-privacidad-footer {
  padding: 25px 30px;
  border-top: 2px solid #f0f0f0;
  border-radius: 0 0 16px 16px;
  text-align: right;
}

.aviso-privacidad-footer .btn {
  padding: 14px 40px;
  font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .privacidad-content {
    flex-direction: column;
    text-align: center;
  }

  .privacidad-text {
    flex-direction: column;
  }

  .privacidad-message {
    flex-direction: column;
    text-align: center;
  }

  .privacidad-title {
    font-size: 0.95rem;
  }

  .privacidad-text-content {
    font-size: 0.85rem;
  }

  .privacidad-link {
    width: 100%;
    text-align: center;
    padding: 10px 20px;
  }

  .aviso-privacidad-header {
    padding: 20px;
  }

  .aviso-privacidad-header h2 {
    font-size: 1.4rem;
  }

  .aviso-privacidad-content {
    margin: 0;
    border-radius: 0;
    height: 100%;
    max-height: 100vh;
  }

  .aviso-privacidad-body {
    padding: 20px;
  }

.aviso-section h3:first-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.aviso-section h3 {
    font-size: 1.1rem;
  }

  .aviso-section p,
  .aviso-section li {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .privacidad-title {
    font-size: 0.85rem;
  }

  .privacidad-text-content {
    font-size: 0.8rem;
  }

  .privacidad-content {
    padding: 0 15px;
  }

  .aviso-privacidad-header {
    padding: 15px 20px;
  }

  .aviso-privacidad-body {
    padding: 15px 20px;
  }
}
