* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
}

.cookie-preferences-modal {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.cookie-preferences {
    background-color: #333;
    color: #fff;
    padding: 20px;
    width: 500px;
    height: 500px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;
}

.cookie-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-header h2 {
    font-size: 18px;
}

.cookie-header button {
    background-color: transparent;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

.cookie-body {
    flex-grow: 1;
    margin-top: 20px;
    margin-bottom: 20px;
}

.cookie-body h3 {
    margin-bottom: 10px;
}

.cookie-body p {
    font-size: 14px;
    margin-bottom: 15px;
}

.cookie-options h4 {
    margin: 20px 0 10px;
    font-size: 16px;
    color: #ffcc00;
    cursor: pointer;
}

.toggle-content {
    display: none;
}

.toggle {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.toggle input[type="checkbox"] {
    display: none;
}

.toggle input[type="checkbox"] + label {
    display: inline-block;
    width: 40px;
    height: 20px;
    background-color: #bbb;
    border-radius: 50px;
    position: relative;
    cursor: pointer;
}

.toggle input[type="checkbox"] + label::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    background-color: white;
    border-radius: 50%;
    top: 1px;
    left: 1px;
    transition: 0.3s;
}

.toggle input[type="checkbox"]:checked + label {
    background-color: #4caf50;
}

.toggle input[type="checkbox"]:checked + label::after {
    transform: translateX(20px);
}

.cookie-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #555;
}

.cookie-footer button {
    background-color: #ffcc00;
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.cookie-footer button#save-preferences {
    background-color: #555;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    flex: 1;
    margin-right: 10px;
    white-space: normal;
}

.cookie-footer button#accept-all-cookies {
    background-color: #ffcc00;
    color: #000;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    flex: 1;
    white-space: normal;
}

.reject-cookies-modal {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000; /* Debe estar por encima del modal principal */
}

.reject-cookies-content {
    background-color: #333;
    color: #fff;
    padding: 20px;
    width: 400px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.dialog-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.dialog-actions button {
    background-color: #ffcc00;
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.footer-text {
    margin-top: 10px;
    font-size: 9px;
    color: gray;
    text-align: left;
}

.footer-text a {
    color: gray;
    text-decoration: none;
}

.footer-text a strong {
    font-weight: bold;
    color: black;
}

.footer-text a:hover {
    text-decoration: underline;
}
