/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #000000 0%, #1a0000 50%, #000000 100%);
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Gaming-style animations */
@keyframes glow {
    0% { box-shadow: 0 0 5px #ff0000; }
    50% { box-shadow: 0 0 20px #ff0000, 0 0 30px #ff0000; }
    100% { box-shadow: 0 0 5px #ff0000; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Consent Modal Styles */
.consent-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #000000 0%, #330000 50%, #000000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 1s ease-in-out;
}

.consent-content {
    background: linear-gradient(145deg, #1a1a1a, #000000);
    border: 2px solid #ff0000;
    border-radius: 20px;
    padding: 2rem;
    max-width: 800px;
    width: 90%;
    text-align: center;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.3);
    animation: slideIn 0.8s ease-out;
}

.consent-header .header-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    border: 1px solid #ff0000;
}

.consent-title {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 900;
    color: #ff0000;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
    animation: glow 2s infinite alternate;
}

.consent-text p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.legal-text {
    font-weight: bold;
    color: #ff6666;
}

.accept-text {
    font-size: 1.3rem;
    font-weight: bold;
    color: #ffffff;
}

.consent-buttons {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Custom Button Styles */
.btn-custom-accept {
    background: linear-gradient(145deg, #ff0000, #cc0000);
    border: none;
    color: white;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 25px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.btn-custom-accept:hover {
    background: linear-gradient(145deg, #ff3333, #ff0000);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.5);
    animation: pulse 0.6s ease-in-out;
}

.btn-custom-decline {
    background: linear-gradient(145deg, #333333, #1a1a1a);
    border: 2px solid #666666;
    color: white;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 25px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-custom-decline:hover {
    background: linear-gradient(145deg, #555555, #333333);
    border-color: #999999;
    transform: translateY(-2px);
    color: white;
}

.btn-custom-send {
    background: linear-gradient(145deg, #ff0000, #cc0000);
    border: none;
    color: white;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 30px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.btn-custom-send:hover {
    background: linear-gradient(145deg, #ff3333, #ff0000);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.5);
    animation: glow 1s ease-in-out;
}

.btn-custom-cancel {
    background: linear-gradient(145deg, #666666, #333333);
    border: 2px solid #999999;
    color: white;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 30px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-custom-cancel:hover {
    background: linear-gradient(145deg, #888888, #555555);
    border-color: #bbbbbb;
    transform: translateY(-3px);
    color: white;
}

/* Modal Overlay Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease-in-out;
}

.modal-content-custom {
    background: linear-gradient(145deg, #1a1a1a, #000000);
    border: 2px solid #ff0000;
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.3);
    animation: slideIn 0.5s ease-out;
}

.modal-content-large {
    background: linear-gradient(145deg, #1a1a1a, #000000);
    border: 2px solid #ff0000;
    border-radius: 20px;
    padding: 2rem;
    max-width: 800px;
    width: 95%;
    max-height: 80vh;
    overflow-y: auto;
    text-align: left;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.3);
    animation: slideIn 0.5s ease-out;
}

.modal-content-custom h3,
.modal-content-large h3 {
    font-family: 'Orbitron', monospace;
    color: #ff0000;
    margin-bottom: 1.5rem;
    text-align: center;
}

.modal-buttons {
    margin-top: 2rem;
    text-align: center;
}

/* Form Container Styles */
.form-banner {
    width: 100%;
    height: 60vh;
    overflow: hidden;
    position: relative;
    margin-bottom: 2rem;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-bottom: 3px solid #ff0000;
}

.banner-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-bottom: 3px solid #ff0000;
    background: #000000;
}

.data-form {
    background: linear-gradient(145deg, #1a1a1a, #000000);
    border: 2px solid #ff0000;
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.2);
    animation: slideIn 0.8s ease-out;
}

/* Form Input Styles */
.form-label {
    color: #ffffff;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.form-control,
.form-select {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border: 2px solid #444444;
    color: #ffffff;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    background: linear-gradient(145deg, #333333, #222222);
    border-color: #ff0000;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
    color: #ffffff;
}

.form-control::placeholder {
    color: #888888;
}

.form-select option {
    background: #1a1a1a;
    color: #ffffff;
}

/* Validation Styles */
.is-invalid {
    border-color: #ff6666 !important;
    animation: pulse 0.5s ease-in-out;
}

.invalid-feedback {
    color: #ff6666;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.is-valid {
    border-color: #00ff00 !important;
}

/* Form Buttons */
.form-buttons {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #333333;
}

/* Summary Content */
.summary-content {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border: 1px solid #444444;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1rem 0;
    max-height: 400px;
    overflow-y: auto;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #333333;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    font-weight: bold;
    color: #ff6666;
}

.summary-value {
    color: #ffffff;
    text-align: right;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.loading-content {
    text-align: center;
    color: #ffffff;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #333333;
    border-top: 3px solid #ff0000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .consent-title {
        font-size: 2rem;
    }
    
    .consent-content {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .consent-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-custom-accept,
    .btn-custom-decline,
    .btn-custom-send,
    .btn-custom-cancel {
        width: 100%;
        max-width: 300px;
        margin: 0.5rem 0;
    }
    
    .form-banner {
        height: 40vh;
    }
    
    .data-form {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .modal-content-custom,
    .modal-content-large {
        margin: 1rem;
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .consent-title {
        font-size: 1.5rem;
    }
    
    .consent-text p {
        font-size: 1rem;
    }
    
    .form-banner {
        height: 30vh;
    }
    
    .btn-custom-send,
    .btn-custom-cancel {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

/* Utility Classes */
.d-none {
    display: none !important;
}

.text-glow {
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.border-glow {
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.3);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #ff0000;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff3333;
}

/* Plan Options Dynamic Styles */
.plan-option-group {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border: 1px solid #444444;
    border-radius: 10px;
    padding: 1rem;
    margin-top: 1rem;
    animation: slideIn 0.5s ease-out;
}

.plan-option-group .form-label {
    color: #ff6666;
    font-weight: bold;
}

/* Application Checkboxes Styles */
.application-checkboxes {
    background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
    border: 1px solid #333333;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 0.5rem;
}

.application-checkboxes .form-check {
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.application-checkboxes .form-check:hover {
    background: linear-gradient(145deg, #333333, #222222);
}

.application-checkboxes .form-check-input {
    background-color: #2a2a2a;
    border: 2px solid #666666;
    border-radius: 4px;
    width: 1.2em;
    height: 1.2em;
    margin-top: 0.1em;
    transition: all 0.3s ease;
}

.application-checkboxes .form-check-input:checked {
    background-color: #ff0000;
    border-color: #ff0000;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
}

.application-checkboxes .form-check-input:focus {
    border-color: #ff6666;
    box-shadow: 0 0 0 0.2rem rgba(255, 0, 0, 0.25);
}

.application-checkboxes .form-check-input:disabled {
    background-color: #1a1a1a;
    border-color: #444444;
    opacity: 0.5;
}

.application-checkboxes .form-check-label {
    color: #ffffff;
    font-weight: 500;
    margin-left: 0.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.application-checkboxes .form-check-input:checked + .form-check-label {
    color: #ff6666;
    font-weight: bold;
}

.application-checkboxes .form-check-input:disabled + .form-check-label {
    color: #666666;
    cursor: not-allowed;
}

.application-checkboxes.selection-complete {
    border-color: #00ff00;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
}

.form-text.text-muted {
    color: #888888 !important;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Animation for form validation */
.shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Evita que el banner/video capture clics */
.form-banner,
.banner-video,
.banner-image { pointer-events: none; }

/* Si los modales están ocultos, que no intercepten nada */
.consent-modal.d-none,
.modal-overlay.d-none {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

/* Asegura que el select esté “arriba” y clickeable */
#departamento {
  position: relative;
  z-index: 20;
  pointer-events: auto;
}
.data-form { position: relative; z-index: 10; }
