/* Modal de Registro - Estilos */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.modal-container {
    background: #ffffff;
    border-radius: 20px;
    padding: 48px;
    max-width: 500px;
    width: 90%;
    max-height: 90dvh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 32px;
    height: 32px;
    background: #f5f5f7;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #e8e8ed;
    transform: rotate(90deg);
}

.modal-close svg {
    width: 16px;
    height: 16px;
    stroke: #6e6e73;
}

.modal-header {
    text-align: center;
    margin-bottom: 32px;
}

.modal-title {
    font-size: 32px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 12px;
    line-height: 1.2;
}

.modal-subtitle {
    font-size: 16px;
    color: #6e6e73;
    line-height: 1.5;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 14px;
    font-weight: 500;
    color: #1d1d1f;
}

.form-input {
    padding: 16px;
    border: 1px solid #d2d2d7;
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.2s ease;
    background: #ffffff;
}

.form-input:focus {
    outline: none;
    border-color: #29e775;
    box-shadow: 0 0 0 4px rgba(41, 231, 117, 0.1);
}

.form-input::placeholder {
    color: #86868b;
}

.form-error {
    font-size: 12px;
    color: #ff3b30;
    margin-top: 4px;
    display: none;
}

.form-group.error .form-input {
    border-color: #ff3b30;
}

.form-group.error .form-error {
    display: block;
}

.form-submit {
    margin-top: 16px;
    padding: 18px 32px;
    background: #29e775;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.form-submit:hover {
    background: #1fd163;
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(41, 231, 117, 0.3);
}

.form-submit:active {
    transform: translateY(0);
}

.form-submit:disabled {
    background: #d2d2d7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.form-submit.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.8s linear infinite;
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}

.modal-footer {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #f5f5f7;
    text-align: center;
}

.modal-privacy {
    font-size: 12px;
    color: #86868b;
    line-height: 1.5;
}

.modal-privacy a {
    color: #0066cc;
    text-decoration: none;
}

.modal-privacy a:hover {
    text-decoration: underline;
}

.modal-success {
    text-align: center;
    padding: 32px;
    display: none;
}

.modal-success-icon {
    width: 80px;
    height: 80px;
    background: #29e775;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.modal-success-icon svg {
    width: 40px;
    height: 40px;
    stroke: #ffffff;
    stroke-width: 3;
}

.modal-success-title {
    font-size: 24px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 12px;
}

.modal-success-message {
    font-size: 16px;
    color: #6e6e73;
    line-height: 1.5;
}

/* Video Lightbox Estilos */
.video-modal-container {
    background: #000000;
    border-radius: 16px;
    overflow: hidden;
    max-width: 90vw;
    max-height: 90vh;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .video-modal-container {
    transform: scale(1);
}

.video-modal-container .modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.video-modal-container .modal-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: rotate(90deg);
}

.video-modal-container .modal-close svg {
    width: 20px;
    height: 20px;
    stroke: #ffffff;
    stroke-width: 2;
}

.video-modal-container .video-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.video-modal-container video {
    width: 100%;
    height: auto;
    max-height: 90vh;
    display: block;
    background: #000000;
}

.video-preview-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.video-preview-container:hover {
    transform: scale(1.02);
}

.video-placeholder {
    position: relative;
    display: block;
    border-radius: 16px;
    overflow: hidden;
}

.video-placeholder img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.video-placeholder:hover img {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.play-button svg {
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

/* Responsive */
@media (max-width: 640px) {
    .modal-container {
        padding: 32px 24px;
        margin: 16px;
    }
    
    .modal-title {
        font-size: 28px;
    }
    
    .form-input {
        font-size: 16px;
        padding: 14px;
    }
    
    .video-modal-container {
        max-width: 95vw;
        max-height: 85vh;
        border-radius: 12px;
    }
    
    .video-modal-container .modal-close {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
    }
    
    .video-modal-container .modal-close svg {
        width: 18px;
        height: 18px;
    }
    
    .play-button svg {
        width: 60px;
        height: 60px;
    }
} 