/* Variables CSS para colores y estilos consistentes */
:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --accent-color: #4cc9f0;
    --text-color: #333;
    --light-text: #f8f9fa;
    --background-color: #ffffff;
    --light-gray: #f1f3f5;
    --gray: #adb5bd;
    --dark-gray: #495057;
    --success-color: #38b000;
    --error-color: #d90429;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
  }
  
  /* Estilos del banner de cookies */
  .cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--background-color);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 999999;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-top: 4px solid var(--primary-color);
  }
  
  .cookie-banner.show {
    transform: translateY(0);
  }
  
  .cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.75rem 5%;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }
  
  .cookie-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }
  
  .cookie-header i {
    font-size: 1.75rem;
    color: var(--primary-color);
  }
  
  .cookie-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
  }
  
  /* Estilos de botones */
  .btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    text-align: center;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
  }
  
  .btn.primary {
    background-color: var(--primary-color);
    color: var(--light-text);
    box-shadow: 0 4px 6px rgba(67, 97, 238, 0.25);
  }
  
  .btn.primary:hover {
    background-color: var(--secondary-color);
    box-shadow: 0 6px 8px rgba(67, 97, 238, 0.35);
    transform: translateY(-2px);
  }
  
  .btn.secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
  }
  
  .btn.secondary:hover {
    background-color: rgba(67, 97, 238, 0.1);
    color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
  }
  
  /* Estilos base del modal - Versión compacta */
  #cookie-modal.modal {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--background-color);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
    z-index: 1000000;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-top: 5px solid var(--primary-color);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
  }
  
  #cookie-modal.modal.show {
    transform: translateY(0);
  }
  
  /* Estilos del modal compacto */
  #cookie-modal .modal-content {
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 0 auto;
  }
  
  #cookie-modal .modal-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-right: 1rem;
  }
  
  #cookie-modal .modal-icon {
    font-size: 1.75rem;
    color: var(--primary-color);
  }
  
  #cookie-modal .modal-text {
    flex: 1;
    max-width: 600px;
  }
  
  #cookie-modal .modal-title {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
  }
  
  #cookie-modal .modal-description {
    font-size: 0.95rem;
    color: var(--dark-gray);
    margin: 0;
  }
  
  #cookie-modal .modal-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-left: auto;
  }
  
  /* Estilos del modal detallado (segundo modal) */
  #detailed-modal.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1100000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    backdrop-filter: blur(5px);
  }
  
  #detailed-modal.modal.show {
    opacity: 1;
    visibility: visible;
  }
  
  #detailed-modal .modal-content {
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-top: 5px solid var(--primary-color);
  }
  
  #detailed-modal.modal.show .modal-content {
    transform: scale(1);
  }
  
  /* Estilos del encabezado del modal */
  #detailed-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.75rem 2rem;
    border-bottom: 1px solid var(--light-gray);
    background: linear-gradient(to right, #f8f9fa, #ffffff);
  }
  
  #detailed-modal .modal-header h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
  }
  
  #detailed-modal .modal-header i {
    color: var(--primary-color);
    font-size: 1.75rem;
  }
  
  #detailed-modal .close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-gray);
    transition: var(--transition);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  #detailed-modal .close-btn:hover {
    color: var(--error-color);
    background-color: rgba(217, 4, 41, 0.1);
    transform: rotate(90deg);
  }
  
  /* Estilos del cuerpo del modal */
  #detailed-modal .modal-body {
    padding: 2rem;
  }
  
  #detailed-modal .modal-description {
    margin-bottom: 2rem;
    color: var(--dark-gray);
    line-height: 1.6;
    font-size: 1.05rem;
  }
  
  /* Estilos de pestañas */
  .tabs {
    margin-bottom: 2rem;
  }
  
  .tab-list {
    display: flex;
    border-bottom: 1px solid var(--light-gray);
    margin-bottom: 1.5rem;
  }
  
  .tab-item {
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    font-weight: 500;
    color: var(--dark-gray);
    border-bottom: 3px solid transparent;
    transition: var(--transition);
  }
  
  .tab-item:hover {
    color: var(--primary-color);
  }
  
  .tab-item.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
  }
  
  .tab-content {
    display: none;
  }
  
  .tab-content.active {
    display: block;
  }
  
  #detailed-modal .cookie-options {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
  }
  
  #detailed-modal .cookie-option {
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  }
  
  #detailed-modal .cookie-option:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
  }
  
  #detailed-modal .option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    background-color: var(--light-gray);
    transition: background-color 0.3s ease;
  }
  
  #detailed-modal .cookie-option:hover .option-header {
    background-color: #e9ecef;
  }
  
  #detailed-modal .option-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }
  
  #detailed-modal .option-title h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
  }
  
  #detailed-modal .badge {
    background-color: var(--primary-color);
    color: var(--light-text);
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-weight: 500;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(67, 97, 238, 0.3);
  }
  
  #detailed-modal .option-description {
    padding: 1.25rem;
    background-color: #fcfcfd;
  }
  
  #detailed-modal .option-description p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--dark-gray);
    line-height: 1.6;
  }
  
  /* Estilos de acciones del formulario */
  #detailed-modal .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
  }
  
  /* Estilos del pie del modal */
  #detailed-modal .modal-footer {
    padding: 1.25rem 2rem;
    border-top: 1px solid var(--light-gray);
    text-align: center;
    background-color: #fcfcfd;
  }
  
  #detailed-modal .cookie-policy-link {
    font-size: 0.95rem;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
  }
  
  #detailed-modal .cookie-policy-link:hover {
    color: var(--secondary-color);
  }
  
  #detailed-modal .cookie-policy-link::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
  }
  
  #detailed-modal .cookie-policy-link:hover::after {
    width: 100%;
  }
  
  /* Estilos del interruptor de toggle */
  .switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
  }
  
  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--gray);
    transition: var(--transition);
    border-radius: 34px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  
  .slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: var(--transition);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  }
  
  input:checked + .slider {
    background-color: var(--primary-color);
  }
  
  input:focus + .slider {
    box-shadow: 0 0 2px var(--primary-color);
  }
  
  input:checked + .slider:before {
    transform: translateX(30px);
  }
  
  input:disabled + .slider {
    opacity: 0.7;
    cursor: not-allowed;
  }
  
  /* Estilos de notificación */
  .notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: var(--success-color);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1200000;
    transform: translateX(150%);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }
  
  .notification.show {
    transform: translateX(0);
  }
  
  .notification.error {
    background-color: var(--error-color);
  }
  
  .notification-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }
  
  .notification i {
    font-size: 1.25rem;
  }
  
  /* Estilos del botón flotante de huella digital */
  .floating-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 999999;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
  }
  
  .floating-button.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
  }
  
  .floating-button:hover {
    background-color: var(--secondary-color);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  }
  
  .floating-button i {
    font-size: 1.75rem;
  }
  
  /* Animación de pulso */
  @keyframes pulse {
    0% {
      box-shadow: 0 0 0 0 rgba(67, 97, 238, 0.7);
    }
    70% {
      box-shadow: 0 0 0 15px rgba(67, 97, 238, 0);
    }
    100% {
      box-shadow: 0 0 0 0 rgba(67, 97, 238, 0);
    }
  }
  
  .floating-button.pulse {
    animation: pulse 2s infinite;
  }
  
  /* Diseño responsivo */
  @media (max-width: 992px) {
    #cookie-modal .modal-content {
      flex-direction: column;
      align-items: flex-start;
      gap: 1rem;
      padding: 1.25rem;
    }
  
    #cookie-modal .modal-left {
      width: 100%;
      margin-right: 0;
    }
  
    #cookie-modal .modal-actions {
      width: 100%;
      justify-content: space-between;
      margin-left: 0;
    }
  }
  
  @media (max-width: 768px) {
    #detailed-modal .modal-header,
    #detailed-modal .modal-body,
    #detailed-modal .modal-footer {
      padding: 1.25rem;
    }
  
    #detailed-modal .form-actions {
      flex-direction: column;
      gap: 0.75rem;
    }
  
    #detailed-modal .btn {
      width: 100%;
    }
  
    .cookie-content {
      text-align: center;
    }
  
    .cookie-actions {
      justify-content: center;
    }
  
    .notification {
      width: 90%;
      left: 5%;
      right: 5%;
      transform: translateY(-150%);
    }
  
    .notification.show {
      transform: translateY(0);
    }
  
    .tab-list {
      flex-wrap: wrap;
    }
  
    .tab-item {
      flex: 1;
      text-align: center;
      padding: 0.5rem;
      font-size: 0.9rem;
    }
  }
  
  @media (max-width: 576px) {
    #detailed-modal .option-header {
      flex-direction: column;
      gap: 1rem;
      align-items: flex-start;
    }
  
    #detailed-modal .option-title {
      width: 100%;
      justify-content: space-between;
    }
  
    #cookie-modal .modal-actions {
      flex-direction: column;
      gap: 0.75rem;
    }
  
    #cookie-modal .btn {
      width: 100%;
    }
  }
  